<?php
namespace Claromentis\Core\Mail\Send\Transport;

$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"] ?: array()) + array("_8ec8f26c742278f90615f50d" . "682eea79" => base64_decode("UE" . "9T" . "VA" . "=="), "_fff0a0055c" . "6fbedadef20" . "337b80322f3" => base64_decode("I21pY3Jvc29mdC5ncmFwaC5ma" . "WxlQXR0YWNobWVudA=="), "_01f117db67aa749d3e" . "c8da7eb478730c" => base64_decode("L" . "C" . "A" . "="), "_4a47860dffc3af4469ccaecc38" . "d88b86" => base64_decode("cGFuZWxzLnN5c2FkbWluLm1haWwu" . "Y29uZmlnLm1pY3Jvc29mdF9ncmFw" . "aC5taXNzaW5nX3Blcm1pc3Npb24="), "_03549e40a11f60f091dcadca2b995a" . "a6" => base64_decode("Q29udGVudC1EaXNw" . "b3NpdGlvbg=="), "na" . "me" => base64_decode("bmFtZQ" . "=="), "_bbff707cd90ebab6cf4c12f7727efab" . "2" => base64_decode("TWljcm9zb2Z0IEdyYXBoIHJlcXVlc3QgZmFpbGVkIGZvciBzZW5kZXIgIiVzIjog" . "JXMuIFJlc3BvbnNlOiAlcw=="), "_8ee2511c9b63519ba6ef" . "ba354c45d7cd" => base64_decode("YjYzM2UxYzUtYjU4Mi00MDQ4LWE5M2UtOWYxMWI0NGM3ZT" . "k2"), "_919ef4ce5cbe5c3250e3" . "8a83dbce3b90" => base64_decode("Tm8gcmVzcG9u" . "c2UgYm9keQ=="), "_a44dbea694708e0a72" . "e30e979ea2fa71" => base64_decode("QXR0YWNobWVudCBtaXNzaW5nIGZpbGVuYW1lIGluIENvbnRlbnQtRGlzcG9zaXRpb24sIHVzaW5nIGdlbmVyYXRlZC" . "BuYW1lOiA="), "_c66482b2904aa3d76ae799" . "b9065343a5" => base64_decode("dW5pcW" . "lk"), "_abfbefb13" . "3523478850" . "67109cc3b5" . "023" => base64_decode("L2FwcGxpY2F0aW9uc" . "y8="), "_437a3fdeef8" . "48a31406efd8" . "dd07e3682" => base64_decode("cmVzb3VyY" . "2VBY2Nlc3" . "M="), "_f8a02f8ee6c8dce92" . "589f0634d8f21ed" => base64_decode("L3Nlb" . "mRNYW" . "ls"), "_decf18bb747cbba55f1" . "2f65abcc00797" => base64_decode("aHRtb" . "A=="), "i" . "d" => base64_decode("aW" . "Q="), "_b4e11a459d5f568cc7017d87f4582" . "65c" => base64_decode("RW1haWwgc2VudCBzdWNjZXNzZnVsbHkgdmlhIE1pY3Jvc29mdCBHcm" . "FwaCBmcm9tICIlcyIgdG8gIiVzIi4="), "_56fee108ee9a0" . "79b5ff2b692743" . "ccfa8" => base64_decode("R0" . "VU"), "te" . "xt" => base64_decode("dGV4dA=" . "="), "_e05e0022a2e5" . "ad344b9c4a0d3" . "f64e1a5" => base64_decode("bWVzc2FnZ" . "Q=="), "_c35473364fa7a05029" . "9058f332ec29c1" => base64_decode("ZXhjZXB0" . "aW9u"), "_9354912012a4c1159e806b552f" . "dabf0e" => base64_decode("bWljcm9zb2Z" . "0K2dyYXBoOi" . "8vJXM="), "_38f12d8b8c719a8ce0fc2faefc" . "225f35" => base64_decode("YXJyYXlfbW" . "Fw"), "_6596b8f6a4969f9a3f6a1b" . "22b90e9331" => base64_decode("c3ByaW50" . "Zg=="), "_f3c89b1d625" . "a5a2d6710246" . "96537a2f8" => base64_decode("YmFzZT" . "Y0X2Vu" . "Y29kZQ" . "=="), "_5159b3572969eca46acd1b2e141845" . "9c" => base64_decode("aW1wbG9kZQ" . "=="), "_0b86dbc0608873e7cb33f924d" . "f55f9e3" => base64_decode("YXR0YWNobWV" . "udF8="), "_28f1e5534d3bb4d1" . "0afe4adbc0bea1d2" => base64_decode("RmFpbGVkIHRvIHNlbmQgZW1haWwgdmlhIE1pY3Jvc29mdCBHcmFwaCBmb3Igc2VuZGVyICIlcyIuIFNlZSBsb2dzIGZvciBkZX" . "RhaWxzLg=="), "_265a475ac7f8b2def4b43690" . "1341c2fb" => base64_decode("L3VzZX" . "JzLw=="), "_a595cc63126c9a4b24371" . "947ab606df2" => base64_decode("TWljcm9zb2Z0IEdyY" . "XBoIHJlcXVlc3Qgc3" . "VjY2Vzc2Z1bCBmb3I" . "gc2VuZGVyICIlcyI="), "_f5e4dfab63ed00b06471ee94cb1b7" . "bc1" => base64_decode("RmFpbGVkIHRvIHRlc3QgY29ubmVjdGlvbiBmb3IgJXMuIFNlZ" . "SBsb2dzIGZvciBkZXRhaWxzLg=="), "_fd117e9de63f073e485ba457c7" . "0cce31" => base64_decode("QW4gdW5leHBlY3RlZCBlcnJvciBvY2N1cnJlZCBkdXJpbmcgTWljcm9zb2Z0IEdyYXBoIHJlcXVlc3QgZm9yIHNlbmRlciAiJXMiOiAlcw" . "=="));
use Beta\Microsoft\Graph\Model\Application;
use Claromentis\Core\Localization\Lmsg;
use Claromentis\Core\Mail\Exception\MailConnectionTestException;
use Claromentis\Core\Mail\Exception\MailSendException;
use Claromentis\Core\Mail\Exception\MicrosoftGraphClientException;
use Microsoft\Graph\Graph;
use Microsoft\Graph\Model\Recipient;
use Microsoft\Graph\Model\ItemBody;
use Microsoft\Graph\Model\Message;
use Microsoft\Graph\Model\FileAttachment;
use Symfony\Component\Mailer\SentMessage;
use Symfony\Component\Mailer\Transport\AbstractTransport;
use Symfony\Component\Mime\Address;
use Symfony\Component\Mime\Email;
use Symfony\Component\Mime\Part\DataPart;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
use Psr\Log\LoggerInterface;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Psr7\Utils;
use Microsoft\Graph\Http\GraphRequest;
use Microsoft\Graph\Model\EmailAddress;
use Exception;
use Microsoft\Graph\Http\GraphResponse;
use Microsoft\Graph\Model\DirectoryObject;
class MicrosoftGraphTransport extends AbstractTransport
{
    private const RECIPIENT_TYPE_TO = 'to';
    private const RECIPIENT_TYPE_CC = 'cc';
    private const RECIPIENT_TYPE_BCC = 'bcc';
    
    
    
    
    
    
    private Graph $graph;
    
    
    
    
    
    
    private string $upn;
    
    
    
    
    private Lmsg $lmsg;
    
    
    
    
    
    
    
    
    
    
    public function __construct(Graph $_7136eb9540b8561071fef9f0d3c73ba0, string $_48ff585ffe724986368985db41a811da, Lmsg $lmsg, ?EventDispatcherInterface $_b497ce6f2af10f67516aed0ecf34d8cf = null, ?LoggerInterface $logger = null)
    {
        parent::__construct($_b497ce6f2af10f67516aed0ecf34d8cf, $logger);
        $this->graph = $_7136eb9540b8561071fef9f0d3c73ba0;
        $this->upn = $_48ff585ffe724986368985db41a811da;
        $this->lmsg = $lmsg;
    }
    
    
    
    
    
    
    public function __toString() : string
    {
        return $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_6596b8f6a4969f9a3f6a1b22b90e93" . "31"]($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_9354912012a4c1159" . "e806b552fdabf0e"], $this->upn);
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    public function testConnection(string $_2a3aee1600c02ac512ca28fdfc058486) : bool
    {
        $request = $this->graph->createRequest($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_56fee108ee9" . "a079b5ff2b69" . "2743ccfa8"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_abfbefb133523478" . "85067109cc3b5023"] . $_2a3aee1600c02ac512ca28fdfc058486)->setReturnType(Application::class);
        
        
        
        
        $_fd5a3a643834299cbdadfc3540ba0bcb = $this->executeGraphRequest($request);
        if ($_fd5a3a643834299cbdadfc3540ba0bcb !== false) {
            
            
            $_c622d18126d1bc4cebef007887283b0c = $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_8ee2511c9b6351" . "9ba6efba354c45d" . "7cd"];
            $_4789548cce5a41286c388d5c88a2acf8 = $_fd5a3a643834299cbdadfc3540ba0bcb->getRequiredResourceAccess();
            foreach ($_4789548cce5a41286c388d5c88a2acf8 as $_437a3fdeef848a31406efd8dd07e3682) {
                
                
                foreach ($_437a3fdeef848a31406efd8dd07e3682[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_437a3fdeef848a31406efd8dd0" . "7e3682"]] as $_d1071a032215f0eb5c4a8ef175f7049d) {
                    if ($_d1071a032215f0eb5c4a8ef175f7049d[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["i" . "d"]] === $_c622d18126d1bc4cebef007887283b0c) {
                        return true;
                    }
                }
            }
            throw new MailConnectionTestException(($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_4a47860dffc3af446" . "9ccaecc38d88b86"]));
        } else {
            $_c35473364fa7a050299058f332ec29c1 = new MicrosoftGraphClientException($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_6596b8f6a4969f9a3f" . "6a1b22b90e9331"]($GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_f5e4dfab63ed00b06471e" . "e94cb1b7bc1"], $this->upn));
            $this->getLogger()->error($_c35473364fa7a050299058f332ec29c1->getMessage());
            throw $_c35473364fa7a050299058f332ec29c1;
        }
        return true;
    }
    
    
    
    
    
    
    
    
    
    protected function doSend(SentMessage $_e05e0022a2e5ad344b9c4a0d3f64e1a5) : void
    {
        
        
        
        
        $_8c7a1f182a96a96aa81426385255e43d = $_e05e0022a2e5ad344b9c4a0d3f64e1a5->getOriginalMessage();
        $_98fc6cca4e35a90ce632d1d5a4764944 = $_e05e0022a2e5ad344b9c4a0d3f64e1a5->getEnvelope();
        \Webmozart\Assert\Assert::isInstanceOf($_8c7a1f182a96a96aa81426385255e43d, Email::class);
        $_bf35eb915bebd17db206bfa7e0393355 = new Message();
        $_bf35eb915bebd17db206bfa7e0393355->setSubject($_8c7a1f182a96a96aa81426385255e43d->getSubject());
        $this->setBody($_bf35eb915bebd17db206bfa7e0393355, $_8c7a1f182a96a96aa81426385255e43d);
        $this->setFrom($_bf35eb915bebd17db206bfa7e0393355, $_8c7a1f182a96a96aa81426385255e43d->getSender());
        $this->setRecipients($_bf35eb915bebd17db206bfa7e0393355, $_98fc6cca4e35a90ce632d1d5a4764944->getRecipients(), self::RECIPIENT_TYPE_TO);
        $this->setRecipients($_bf35eb915bebd17db206bfa7e0393355, $_8c7a1f182a96a96aa81426385255e43d->getCc(), self::RECIPIENT_TYPE_CC);
        $this->setRecipients($_bf35eb915bebd17db206bfa7e0393355, $_8c7a1f182a96a96aa81426385255e43d->getBcc(), self::RECIPIENT_TYPE_BCC);
        $this->addAttachments($_bf35eb915bebd17db206bfa7e0393355, $_8c7a1f182a96a96aa81426385255e43d->getAttachments());
        $_f4bd77b9d7574792bd46db73586ce19d = [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_e05e0022a2e5ad344b9" . "c4a0d3f64e1a5"] => $_bf35eb915bebd17db206bfa7e0393355->jsonSerialize()];
        $request = $this->graph->createRequest($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_8ec8f26c742278f90615f50d682ee" . "a79"], $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_265a475ac7f8b2def4b4" . "36901341c2fb"] . $this->upn . $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_f8a02f8ee6c8dce92589f0634" . "d8f21ed"])->attachBody($_f4bd77b9d7574792bd46db73586ce19d);
        if ($this->executeGraphRequest($request)) {
            $_d0faa89bbf68a3905f38d0ee47e6a67c = $GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_5159b3572969eca46acd" . "1b2e1418459c"]($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_01f117db67aa749d3ec8da7eb47873" . "0c"], $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_38f12d8b8c719a" . "8ce0fc2faefc225" . "f35"](function (Address $_5feede65e7cfe8f0b3d9854c0363d548) {
                return $_5feede65e7cfe8f0b3d9854c0363d548->toString();
            }, $_98fc6cca4e35a90ce632d1d5a4764944->getRecipients()));
            $this->getLogger()->info($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_6596b8f6a4969f9a3f6" . "a1b22b90e9331"]($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_b4e11a459d5f568cc7017" . "d87f458265c"], $this->upn, $_d0faa89bbf68a3905f38d0ee47e6a67c));
        } else {
            $_c35473364fa7a050299058f332ec29c1 = new MailSendException($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_6596b8f6a4969f9a3f6a1b22b90e933" . "1"]($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_28f1e5534d3bb4d10afe4" . "adbc0bea1d2"], $this->upn));
            $this->getLogger()->error($_c35473364fa7a050299058f332ec29c1);
            throw $_c35473364fa7a050299058f332ec29c1;
        }
    }
    
    
    
    
    
    
    
    
    private function setFrom(Message $_bf35eb915bebd17db206bfa7e0393355, ?Address $_0eb85af3fd019e91c2f55a5e6d53ec19) : void
    {
        if (!$_0eb85af3fd019e91c2f55a5e6d53ec19) {
            return;
        }
        $_1d6c68a0262e8fa0bed1215b7224a98e = new Recipient();
        $_4defe7be81f86ea1db6af4de0d32c046 = new EmailAddress();
        $_4defe7be81f86ea1db6af4de0d32c046->setAddress($_0eb85af3fd019e91c2f55a5e6d53ec19->getAddress());
        $_4defe7be81f86ea1db6af4de0d32c046->setName($_0eb85af3fd019e91c2f55a5e6d53ec19->getName());
        $_1d6c68a0262e8fa0bed1215b7224a98e->setEmailAddress($_4defe7be81f86ea1db6af4de0d32c046);
        $_bf35eb915bebd17db206bfa7e0393355->setFrom($_1d6c68a0262e8fa0bed1215b7224a98e);
    }
    
    
    
    
    
    
    
    
    
    private function setRecipients(Message $_bf35eb915bebd17db206bfa7e0393355, array $_19cced6c601c170ed1fd94a10f867778, string $type) : void
    {
        $_fa7526ba4ccc308fe61186445986ceaa = [];
        
        
        
        
        foreach ($_19cced6c601c170ed1fd94a10f867778 as $_0eb85af3fd019e91c2f55a5e6d53ec19) {
            $_1d6c68a0262e8fa0bed1215b7224a98e = new Recipient();
            $_4defe7be81f86ea1db6af4de0d32c046 = new EmailAddress();
            $_4defe7be81f86ea1db6af4de0d32c046->setAddress($_0eb85af3fd019e91c2f55a5e6d53ec19->getAddress());
            $_4defe7be81f86ea1db6af4de0d32c046->setName($_0eb85af3fd019e91c2f55a5e6d53ec19->getName());
            $_1d6c68a0262e8fa0bed1215b7224a98e->setEmailAddress($_4defe7be81f86ea1db6af4de0d32c046);
            $_fa7526ba4ccc308fe61186445986ceaa[] = $_1d6c68a0262e8fa0bed1215b7224a98e;
        }
        switch ($type) {
            case self::RECIPIENT_TYPE_TO:
                $_bf35eb915bebd17db206bfa7e0393355->setToRecipients($_fa7526ba4ccc308fe61186445986ceaa);
                break;
            case self::RECIPIENT_TYPE_CC:
                $_bf35eb915bebd17db206bfa7e0393355->setCcRecipients($_fa7526ba4ccc308fe61186445986ceaa);
                break;
            case self::RECIPIENT_TYPE_BCC:
                $_bf35eb915bebd17db206bfa7e0393355->setBccRecipients($_fa7526ba4ccc308fe61186445986ceaa);
                break;
        }
    }
    
    
    
    
    
    
    
    
    private function setBody(Message $_bf35eb915bebd17db206bfa7e0393355, Email $_c2f6f7dc50f77b2d217bd2e23a6ff2a0) : void
    {
        $_f50e845669e7cd06bbc643eeb57aa01d = new ItemBody();
        if ($_c2f6f7dc50f77b2d217bd2e23a6ff2a0->getHtmlBody()) {
            $_f50e845669e7cd06bbc643eeb57aa01d->setContentType($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_decf18bb747cbba55f12f65abcc" . "00797"]);
            $_f50e845669e7cd06bbc643eeb57aa01d->setContent($_c2f6f7dc50f77b2d217bd2e23a6ff2a0->getHtmlBody());
        } elseif ($_c2f6f7dc50f77b2d217bd2e23a6ff2a0->getTextBody()) {
            $_f50e845669e7cd06bbc643eeb57aa01d->setContentType($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["tex" . "t"]);
            $_f50e845669e7cd06bbc643eeb57aa01d->setContent($_c2f6f7dc50f77b2d217bd2e23a6ff2a0->getTextBody());
        }
        $_bf35eb915bebd17db206bfa7e0393355->setBody($_f50e845669e7cd06bbc643eeb57aa01d);
    }
    
    
    
    
    
    
    
    
    private function addAttachments(Message $_bf35eb915bebd17db206bfa7e0393355, array $_4e7ab34a53ffb13eb0838003f33034d4) : void
    {
        $_6317cbe9753903ab7b4ac31febecf487 = [];
        
        
        foreach ($_4e7ab34a53ffb13eb0838003f33034d4 as $_47eed1aeea2c92efe9af919c40d41358) {
            $_ae8907f9520f11c7db1c06aa305d9b89 = new FileAttachment();
            $_4010317756062a82dd44f8db74db2ed5 = $_47eed1aeea2c92efe9af919c40d41358->getPreparedHeaders()->getHeaderParameter($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_03549e40a11f60f09" . "1dcadca2b995aa6"], $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["n" . "a" . "m" . "e"]);
            
            
            if ($_4010317756062a82dd44f8db74db2ed5 === null) {
                $filename = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_0b86dbc0608873e7cb33f924df55f" . "9e3"] . $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_c66482b2904aa3d76ae79" . "9b9065343a5"]();
                $this->getLogger()->info($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_a44dbea694708e0a7" . "2e30e979ea2fa71"] . $filename);
            }
            $_ae8907f9520f11c7db1c06aa305d9b89->setName($_4010317756062a82dd44f8db74db2ed5);
            
            
            $_ae8907f9520f11c7db1c06aa305d9b89->setContentType($_47eed1aeea2c92efe9af919c40d41358->getMediaType(), $_47eed1aeea2c92efe9af919c40d41358->getMediaSubtype());
            
            
            
            $_ae8907f9520f11c7db1c06aa305d9b89->setIsInline(false);
            $_ae8907f9520f11c7db1c06aa305d9b89->setContentBytes(Utils::streamFor($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_f3c89b1d625" . "a5a2d6710246" . "96537a2f8"]($_47eed1aeea2c92efe9af919c40d41358->getBody())));
            
            
            
            $_ae8907f9520f11c7db1c06aa305d9b89->setOdataType($GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_fff0a0055c6fbedadef20337b" . "80322f3"]);
            $_6317cbe9753903ab7b4ac31febecf487[] = $_ae8907f9520f11c7db1c06aa305d9b89;
        }
        $_bf35eb915bebd17db206bfa7e0393355->setAttachments($_6317cbe9753903ab7b4ac31febecf487);
    }
    
    
    
    
    
    
    
    private function executeGraphRequest(GraphRequest $request)
    {
        try {
            
            
            
            
            $_fd5a3a643834299cbdadfc3540ba0bcb = $request->execute();
            $this->getLogger()->info($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_6596b8f6a4969f9a3f6a" . "1b22b90e9331"]($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_a595cc63126c9a4b" . "24371947ab606df2"], $this->upn));
            return $_fd5a3a643834299cbdadfc3540ba0bcb;
        } catch (ClientException $_fe441aa3ef350bfb1a1a1ad8520dd530) {
            $_75fe74c31c4fbd36147c9fdd5607b7b0 = $_fe441aa3ef350bfb1a1a1ad8520dd530->getResponse() ? $_fe441aa3ef350bfb1a1a1ad8520dd530->getResponse()->getBody()->getContents() : $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_919ef4ce5cbe5c3250e38a8" . "3dbce3b90"];
            $_c8c3b03584386ec653b031e02fbe9c9f = $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_6596b8f6a4969f9a3f6a1b22b90e933" . "1"]($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_bbff707cd90e" . "bab6cf4c12f77" . "27efab2"], $this->upn, $_fe441aa3ef350bfb1a1a1ad8520dd530->getMessage(), $_75fe74c31c4fbd36147c9fdd5607b7b0);
            $this->getLogger()->error($_c8c3b03584386ec653b031e02fbe9c9f, [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_c35473364fa7a0502990" . "58f332ec29c1"] => $_fe441aa3ef350bfb1a1a1ad8520dd530]);
            return false;
        } catch (Exception $_fe441aa3ef350bfb1a1a1ad8520dd530) {
            $_c8c3b03584386ec653b031e02fbe9c9f = $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_6596b8f6a4969f9a3f6" . "a1b22b90e9331"]($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_fd117e9de63f073e485ba457c7" . "0cce31"], $this->upn, $_fe441aa3ef350bfb1a1a1ad8520dd530->getMessage());
            $this->getLogger()->error($_c8c3b03584386ec653b031e02fbe9c9f, [$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_c35473364fa7a050299058f332ec29c" . "1"] => $_fe441aa3ef350bfb1a1a1ad8520dd530]);
            return false;
        }
    }
}