Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace MiniOrange\OAuth\Controller\Actions; use Magento\Authorization\Mod..

Decoded Output download

<?php 
 
 
namespace MiniOrange\OAuth\Controller\Actions; 
 
use Magento\Authorization\Model\ResourceModel\Role\Collection; 
use Magento\Customer\Model\Customer; 
use Magento\Customer\Model\CustomerFactory; 
use Magento\Framework\App\Action\Context; 
use Magento\Framework\App\ResponseFactory; 
use Magento\Framework\Math\Random; 
use Magento\Store\Model\StoreManagerInterface; 
use Magento\User\Model\User; 
use Magento\User\Model\UserFactory; 
use MiniOrange\OAuth\Helper\Exception\MissingAttributesException; 
use MiniOrange\OAuth\Helper\OAuthConstants; 
use MiniOrange\OAuth\Helper\OAuthMessages; 
use MiniOrange\OAuth\Helper\OAuthUtility; 
use Magento\Customer\Model\AddressFactory; 
use Magento\Directory\Model\ResourceModel\Region\CollectionFactory; 
use Magento\Framework\Controller\ResultFactory; 
use Magento\Framework\Message\ManagerInterface; 
use Magento\Eav\Model\Config as EavConfig; 
use MiniOrange\OAuth\Helper\OAuth\lib\AESEncryption; 
class ProcessUserAction extends BaseAction 
{ 
    private $attrs; 
    private $flattenedattrs; 
    private $userEmail; 
    private $checkIfMatchBy; 
    private $defaultRole; 
    private $emailAttribute; 
    private $usernameAttribute; 
    private $firstNameKey; 
    private $lastNameKey; 
    private $groupNameKey; 
    private $groupName; 
    private $userGroupModel; 
    private $adminRoleModel; 
    private $adminUserModel; 
    private $customerLoginAction; 
    private $responseFactory; 
    private $customerFactory; 
    private $customerResource; 
    private $userFactory; 
    private $randomUtility; 
    private $dontCreateUserIfRoleNotMapped; 
    private $_state; 
    private $_configLoader; 
    public $_response; 
    private $storeManager; 
    private $customerRepository; 
    private $customerModel; 
    private $adminSession; 
    private $adminSessionManager; 
    private $adminConfig; 
    private $cookieMetadataFactory; 
    private $cookieManager; 
    private $urlInterface; 
    private $dataAddressFactory; 
    private $clientDetails; 
    protected $resultFactory; 
    private $countryNameKey; 
    private $cityNameKey; 
    private $phoneNameKey; 
    private $streetAddressNameKey; 
    private $mapStateNameKey; 
    private $zipCodeNameKey; 
    protected $messageManager; 
    protected $billingcountryNameKey; 
    protected $billingcityNameKey; 
    protected $billingphoneNameKey; 
    protected $billingCompanyNameKey; 
    protected $billingstreetAddressNameKey; 
    protected $billingmapStateNameKey; 
    protected $billingzipCodeNameKey; 
    protected $shippingcountryNameKey; 
    protected $shippingcityNameKey; 
    protected $shippingphoneNameKey; 
    protected $shippingCompanyNameKey; 
    protected $shippingstreetAddressNameKey; 
    protected $shippingmapStateNameKey; 
    protected $shippingzipCodeNameKey; 
    private $updateAttribute; 
    private $collectionFactory; 
    private $custom_tablename; 
    private $custom_attributes; 
    private $updateFrontendRole; 
    private $updateRole; 
    protected $eavConfig; 
    protected $_addressFactory; 
    protected $userResource; 
    private $HelperBackend; 
    public function __construct(Context $B2, OAuthUtility $Nq, \Magento\Customer\Model\ResourceModel\Group\Collection $lg, Collection $mO, User $uw, Customer $DP, StoreManagerInterface $fW, ResponseFactory $gN, CustomerLoginAction $PI, CustomerFactory $qw, UserFactory $at, Random $T6, \Magento\Customer\Model\ResourceModel\Customer $uh, AddressFactory $U4, \Magento\Framework\App\State $gr, \Magento\Backend\Model\Auth\Session $Rv, \Magento\Security\Model\AdminSessionsManager $iJ, \Magento\Framework\Stdlib\Cookie\CookieMetadataFactory $sv, \Magento\Framework\Stdlib\CookieManagerInterface $gR, \Magento\Backend\Model\UrlInterface $CV, \Magento\Framework\ObjectManager\ConfigLoaderInterface $KJ, \Magento\Customer\Api\CustomerRepositoryInterface $Z7, \Magento\Backend\Model\Session\AdminConfig $mA, \Magento\Backend\Helper\Data $jP, CollectionFactory $JB, ResultFactory $cE, ManagerInterface $yR, \Magento\Customer\Model\AddressFactory $W0, EavConfig $pn, \Magento\User\Model\ResourceModel\User $Mc) 
    { 
        $this->userGroupModel = $lg; 
        $this->adminRoleModel = $mO; 
        $this->adminUserModel = $uw; 
        $this->customerModel = $DP; 
        $this->storeManager = $fW; 
        $this->responseFactory = $gN; 
        $this->customerLoginAction = $PI; 
        $this->customerFactory = $qw; 
        $this->userFactory = $at; 
        $this->randomUtility = $T6; 
        $this->dataAddressFactory = $U4; 
        $this->customerResource = $uh; 
        $this->customerRepository = $Z7; 
        $this->_state = $gr; 
        $this->adminSession = $Rv; 
        $this->adminSessionManager = $iJ; 
        $this->adminConfig = $mA; 
        $this->cookieManager = $gR; 
        $this->cookieMetadataFactory = $sv; 
        $this->urlInterface = $CV; 
        $this->HelperBackend = $jP; 
        $this->_configLoader = $KJ; 
        $this->collectionFactory = $JB; 
        $this->resultFactory = $cE; 
        $this->messageManager = $yR; 
        $this->eavConfig = $pn; 
        $this->_addressFactory = $W0; 
        $this->userResource = $Mc; 
        parent::__construct($B2, $Nq); 
    } 
    public function execute() 
    { 
        $Xo = $this->oauthUtility->getSessionData(OAuthConstants::APP_NAME); 
        $yx = $this->oauthUtility->getOAuthClientApps(); 
        $jq = null; 
        foreach ($yx as $Rm) { 
            if (!($Rm->getData()["app_name"] === $Xo)) { 
                goto BI; 
            } 
            $jq = $Rm->getData(); 
            BI: 
            jW: 
        } 
        pK: 
        $this->clientDetails = $jq; 
        $this->emailAttribute = $jq["email_attribute"]; 
        $this->emailAttribute = $this->oauthUtility->isBlank($this->emailAttribute) ? OAuthConstants::DEFAULT_MAP_EMAIL : $this->emailAttribute; 
        $this->usernameAttribute = $jq["username_attribute"]; 
        $this->usernameAttribute = $this->oauthUtility->isBlank($this->usernameAttribute) ? OAuthConstants::DEFAULT_MAP_USERN : $this->usernameAttribute; 
        $this->firstNameKey = $jq["firstname_attribute"]; 
        $this->firstNameKey = $this->oauthUtility->isBlank($this->firstNameKey) ? OAuthConstants::DEFAULT_MAP_FN : $this->firstNameKey; 
        $this->lastNameKey = $jq["lastname_attribute"]; 
        $this->lastNameKey = $this->oauthUtility->isBlank($this->lastNameKey) ? OAuthConstants::DEFAULT_MAP_LN : $this->lastNameKey; 
        $this->defaultRole = $jq["default_role"]; 
        $this->checkIfMatchBy = $jq["mo_oauth_create_user_in_magento_by_using"]; 
        $this->updateAttribute = $jq["update_attributes_on_login"]; 
        $this->billingcountryNameKey = $jq["billing_country_attribute"]; 
        $this->billingcountryNameKey = $this->oauthUtility->isBlank($this->billingcountryNameKey) ? OAuthConstants::MAP_COUNTRY_BILLING : $this->billingcountryNameKey; 
        $this->oauthUtility->log_debug("billingcountryNameKey: " . $this->billingcountryNameKey); 
        $this->billingcityNameKey = $jq["billing_city_attribute"]; 
        $this->billingcityNameKey = $this->oauthUtility->isBlank($this->billingcityNameKey) ? OAuthConstants::MAP_CITY_BILLING : $this->billingcityNameKey; 
        $this->oauthUtility->log_debug("billingcityNameKey: "); 
        $this->billingphoneNameKey = $jq["billing_phone_attribute"]; 
        $this->billingphoneNameKey = $this->oauthUtility->isBlank($this->billingphoneNameKey) ? OAuthConstants::MAP_PHONE_BILLING : $this->billingphoneNameKey; 
        $this->oauthUtility->log_debug("billingphoneNameKey: " . $this->billingphoneNameKey); 
        $this->billingCompanyNameKey = $jq["billing_company_attribute"]; 
        $this->billingCompanyNameKey = $this->oauthUtility->isBlank($this->billingCompanyNameKey) ? OAuthConstants::MAP_COMPANY_BILLING : $this->billingCompanyNameKey; 
        $this->oauthUtility->log_debug("billingCompanyNameKey: " . $this->billingCompanyNameKey); 
        $this->billingstreetAddressNameKey = $jq["billing_address_attribute"]; 
        $this->billingstreetAddressNameKey = $this->oauthUtility->isBlank($this->billingstreetAddressNameKey) ? OAuthConstants::MAP_ADDRESS_BILLING : $this->billingstreetAddressNameKey; 
        $this->oauthUtility->log_debug("billingstreetAddressNameKey: " . $this->billingstreetAddressNameKey); 
        $this->billingmapStateNameKey = $jq["billing_state_attribute"]; 
        $this->billingmapStateNameKey = $this->oauthUtility->isBlank($this->billingmapStateNameKey) ? OAuthConstants::MAP_STATE_BILLING : $this->billingmapStateNameKey; 
        $this->oauthUtility->log_debug("billingmapStateNameKey: " . $this->billingmapStateNameKey); 
        $this->billingzipCodeNameKey = $jq["billing_zip_attribute"]; 
        $this->billingzipCodeNameKey = $this->oauthUtility->isBlank($this->billingzipCodeNameKey) ? OAuthConstants::MAP_ZIPCODE_BILLING : $this->billingzipCodeNameKey; 
        $this->oauthUtility->log_debug("billingzipCodeNameKey: " . $this->billingzipCodeNameKey); 
        $this->shippingcountryNameKey = $jq["shipping_country_attribute"]; 
        $this->shippingcountryNameKey = $this->oauthUtility->isBlank($this->shippingcountryNameKey) ? OAuthConstants::MAP_COUNTRY_SHIPPING : $this->shippingcountryNameKey; 
        $this->oauthUtility->log_debug("shippingcountryNameKey: " . $this->shippingcountryNameKey); 
        $this->shippingcityNameKey = $jq["shipping_city_attribute"]; 
        $this->shippingcityNameKey = $this->oauthUtility->isBlank($this->shippingcityNameKey) ? OAuthConstants::MAP_CITY_SHIPPING : $this->shippingcityNameKey; 
        $this->oauthUtility->log_debug("shippingcityNameKey: " . $this->shippingcityNameKey); 
        $this->shippingphoneNameKey = $jq["shipping_phone_attribute"]; 
        $this->shippingphoneNameKey = $this->oauthUtility->isBlank($this->shippingphoneNameKey) ? OAuthConstants::MAP_PHONE_SHIPPING : $this->shippingphoneNameKey; 
        $this->oauthUtility->log_debug("shippingphoneNameKey: " . $this->shippingphoneNameKey); 
        $this->shippingCompanyNameKey = $jq["shipping_company_attribute"]; 
        $this->shippingCompanyNameKey = $this->oauthUtility->isBlank($this->shippingCompanyNameKey) ? OAuthConstants::MAP_COMPANY_SHIPPING : $this->shippingCompanyNameKey; 
        $this->oauthUtility->log_debug("shippingCompanyNameKey: " . $this->shippingCompanyNameKey); 
        $this->shippingstreetAddressNameKey = $jq["shipping_address_attribute"]; 
        $this->shippingstreetAddressNameKey = $this->oauthUtility->isBlank($this->shippingstreetAddressNameKey) ? OAuthConstants::MAP_ADDRESS_SHIPPING : $this->shippingstreetAddressNameKey; 
        $this->oauthUtility->log_debug("shippingstreetAddressNameKey: " . $this->shippingstreetAddressNameKey); 
        $this->shippingmapStateNameKey = $jq["shipping_state_attribute"]; 
        $this->shippingmapStateNameKey = $this->oauthUtility->isBlank($this->shippingmapStateNameKey) ? OAuthConstants::MAP_STATE_SHIPPING : $this->shippingmapStateNameKey; 
        $this->oauthUtility->log_debug("shippingmapStateNameKey: " . $this->shippingmapStateNameKey); 
        $this->shippingzipCodeNameKey = $jq["shipping_zip_attribute"]; 
        $this->shippingzipCodeNameKey = $this->oauthUtility->isBlank($this->shippingzipCodeNameKey) ? OAuthConstants::MAP_ZIPCODE_SHIPPING : $this->shippingzipCodeNameKey; 
        $this->oauthUtility->log_debug("shippingzipCodeNameKey: " . $this->shippingzipCodeNameKey); 
        $this->groupNameKey = $jq["group_attribute"]; 
        $this->groupName = $jq["group_attribute"]; 
        $this->dontCreateUserIfRoleNotMapped = $jq["mo_oauth_dont_create_user_if_role_not_mapped"]; 
        $this->oauthUtility->log_debug("ProcessUserAction: execute"); 
        if (!empty($this->attrs)) { 
            goto oX; 
        } 
        $this->oauthUtility->log_debug("No Attributes Received : "); 
        throw new MissingAttributesException(); 
        oX: 
        $Xq = array_key_exists($this->firstNameKey, $this->flattenedattrs) ? $this->flattenedattrs[$this->firstNameKey] : null; 
        $XX = array_key_exists($this->lastNameKey, $this->flattenedattrs) ? $this->flattenedattrs[$this->lastNameKey] : null; 
        $ul = array_key_exists($this->usernameAttribute, $this->flattenedattrs) ? $this->flattenedattrs[$this->usernameAttribute] : null; 
        $this->userEmail = array_key_exists($this->emailAttribute, $this->flattenedattrs) ? $this->flattenedattrs[$this->emailAttribute] : $this->userEmail; 
        $Y6 = isset($this->attrs[$this->groupNameKey]) ? $this->attrs[$this->groupNameKey] : null; 
        $cb = isset($this->attrs[$this->groupNameKey]) ? $this->attrs[$this->groupNameKey] : null; 
        if (is_array($Y6) && count($Y6) == 1) { 
            goto G3; 
        } 
        if (is_array($Y6)) { 
            goto CI; 
        } 
        goto RS; 
        G3: 
        $Y6 = $Y6[0]; 
        goto RS; 
        CI: 
        $Y6 = implode(",", $Y6); 
        RS: 
        if (!$this->oauthUtility->isBlank($this->defaultRole)) { 
            goto sN; 
        } 
        $this->defaultRole = OAuthConstants::DEFAULT_ROLE; 
        sN: 
        if (!$this->oauthUtility->isBlank($this->checkIfMatchBy)) { 
            goto Jp; 
        } 
        $this->checkIfMatchBy = OAuthConstants::DEFAULT_MAP_BY; 
        Jp: 
        $KX = !empty($this->attrs[$this->billingcountryNameKey]) ? $this->attrs[$this->billingcountryNameKey] : null; 
        $UR = !empty($this->attrs[$this->billingcityNameKey]) ? $this->attrs[$this->billingcityNameKey] : null; 
        $tz = !empty($this->attrs[$this->billingphoneNameKey]) ? $this->attrs[$this->billingphoneNameKey] : null; 
        $pU = !empty($this->attrs[$this->billingstreetAddressNameKey]) ? $this->attrs[$this->billingstreetAddressNameKey] : null; 
        $ly = !empty($this->attrs[$this->billingmapStateNameKey]) ? $this->attrs[$this->billingmapStateNameKey] : null; 
        $GK = !empty($this->attrs[$this->billingzipCodeNameKey]) ? $this->attrs[$this->billingzipCodeNameKey] : null; 
        $eI = !empty($this->attrs[$this->billingCompanyNameKey]) ? $this->attrs[$this->billingCompanyNameKey] : null; 
        $Mj = !empty($this->attrs[$this->shippingcountryNameKey]) ? $this->attrs[$this->shippingcountryNameKey] : null; 
        $S6 = !empty($this->attrs[$this->shippingcityNameKey]) ? $this->attrs[$this->shippingcityNameKey] : null; 
        $tA = !empty($this->attrs[$this->shippingphoneNameKey]) ? $this->attrs[$this->shippingphoneNameKey] : null; 
        $z4 = !empty($this->attrs[$this->shippingstreetAddressNameKey]) ? $this->attrs[$this->shippingstreetAddressNameKey] : null; 
        $do = !empty($this->attrs[$this->shippingmapStateNameKey]) ? $this->attrs[$this->shippingmapStateNameKey] : null; 
        $DO = !empty($this->attrs[$this->shippingzipCodeNameKey]) ? $this->attrs[$this->shippingzipCodeNameKey] : null; 
        $Yq = !empty($this->attrs[$this->shippingCompanyNameKey]) ? $this->attrs[$this->shippingCompanyNameKey] : null; 
        $this->custom_attributes = $jq["custom_attributes"]; 
        $this->custom_tablename = $jq["custom_tablename"]; 
        $this->updateRole = $jq["update_backend_roles_on_sso"]; 
        $this->updateFrontendRole = $jq["update_frontend_groups_on_sso"]; 
        $V8 = is_array($cb) ? $cb[0] : $cb; 
        $this->oauthUtility->log_debug("FirstGroup from IdP (if Multiple): " . json_encode($V8)); 
        $Uz = null; 
        $BK = null; 
        if (!$KX) { 
            goto Pl; 
        } 
        $Uz = $this->getCountryCodeBasedOnMapping($KX); 
        Pl: 
        if (!$Mj) { 
            goto tt; 
        } 
        $BK = $this->getCountryCodeBasedOnMapping($Mj); 
        tt: 
        $Qm = $this->storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB); 
        $Qm = rtrim($Qm, "/\"); 
        $w7 = $this->clientDetails["mo_oauth_headless_sso"]; 
        if (!(isset($this->attrs["relayState"]) && !str_contains($this->attrs["relayState"], $Qm) && !$w7)) { 
            goto Bi; 
        } 
        $this->attrs["relayState"] = $Qm; 
        Bi: 
        $this->processUserAction($this->userEmail, $Xq, $XX, $ul, $this->defaultRole, $Y6, $this->checkIfMatchBy, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK); 
    } 
    public function getCountryCodeBasedOnMapping($wk) 
    { 
        $a5 = ["Afghanistan" => "AF", "\303\x85land Islands" => "AX", "Albania" => "AL", "Algeria" => "DZ", "American Samoa" => "AS", "Andorra" => "AD", "Angola" => "AO", "Anguilla" => "AI", "Antarctica" => "AQ", "Antigua and Barbuda" => "AG", "Argentina" => "AR", "Armenia" => "AM", "Aruba" => "AW", "Australia" => "AU", "Austria" => "AT", "Azerbaijan" => "AZ", "Bahamas" => "BS", "Bahrain" => "BH", "Bangladesh" => "BD", "Barbados" => "BB", "Belarus" => "BY", "Belgium" => "BE", "Belize" => "BZ", "Benin" => "BJ", "Bermuda" => "BM", "Bhutan" => "BT", "Bolivia" => "BO", "Bosnia and Herzegovina" => "BA", "Botswana" => "BW", "Bouvet Island" => "BV", "Brazil" => "BR", "British Indian Ocean Territory" => "IO", "British Virgin Islands" => "VG", "Brunei" => "BN", "Bulgaria" => "BG", "Burkina Faso" => "BF", "Burundi" => "BI", "Cambodia" => "KH", "Cameroon" => "CM", "Canada" => "CA", "Cape Verde" => "CV", "Caribbean Netherlands" => "BQ", "Cayman Islands" => "KY", "Central African Republic" => "CF", "Chad" => "TD", "Chile" => "CL", "China" => "CN", "Christmas Island" => "CX", "Cocos [Keeling] Islands" => "CC", "Colombia" => "CO", "Comoros" => "KM", "Congo - Brazzaville" => "CG", "Congo - Kinshasa" => "CD", "Cook Islands" => "CK", "Costa Rica" => "CR", "C\303\264te d\342\200\x99Ivoire" => "CI", "Croatia" => "HR", "Cuba" => "CU", "Cura\303\xa7ao" => "CW", "Cyprus" => "CY", "Czech Republic" => "CZ", "Denmark" => "DK", "Djibouti" => "DJ", "Dominica" => "DM", "Dominican Republic" => "DO", "Ecuador" => "EC", "Egypt" => "EG", "El Salvador" => "SV", "Equatorial Guinea" => "GQ", "Eritrea" => "ER", "Estonia" => "EE", "Ethiopia" => "ET", "Falkland Islands" => "FK", "Faroe Islands" => "FO", "Fiji" => "FJ", "Finland" => "FI", "France" => "FR", "French Guiana" => "GF", "French Polynesia" => "PF", "French Southern Territories" => "TF", "Gabon" => "GA", "Gambia" => "GM", "Georgia" => "GE", "Germany" => "DE", "Ghana" => "GH", "Gibraltar" => "GI", "Greece" => "GR", "Greenland" => "GL", "Grenada" => "GD", "Guadeloupe" => "GP", "Guam" => "GU", "Guatemala" => "GT", "Guernsey" => "GG", "Guinea" => "GN", "Guinea-Bissau" => "GW", "Guyana" => "GY", "Haiti" => "HT", "Heard Island and McDonald Islands" => "HM", "Honduras" => "HN", "Hong Kong SAR China" => "HK", "Hungary" => "HU", "Iceland" => "IS", "India" => "IN", "Indonesia" => "ID", "Iran" => "IR", "Iraq" => "IQ", "Ireland" => "IE", "Isle of Man" => "IM", "Israel" => "IL", "Italy" => "IT", "Jamaica" => "JM", "Japan" => "JP", "Jersey" => "JE", "Jordan" => "JO", "Kazakhstan" => "KZ", "Kenya" => "KE", "Kiribati" => "KI", "Kuwait" => "KW", "Kyrgyzstan" => "KG", "Laos" => "LA", "Latvia" => "LV", "Lebanon" => "LB", "Lesotho" => "LS", "Liberia" => "LR", "Libya" => "LY", "Liechtenstein" => "LI", "Lithuania" => "LT", "Luxembourg" => "LU", "Macau SAR China" => "MO", "Macedonia" => "MK", "Madagascar" => "MG", "Malawi" => "MW", "Malaysia" => "MY", "Maldives" => "MV", "Mali" => "ML", "Malta" => "MT", "Marshall Islands" => "MH", "Martinique" => "MQ", "Mauritania" => "MR", "Mauritius" => "MU", "Mayotte" => "YT", "Mexico" => "MX", "Micronesia" => "FM", "Moldova" => "MD", "Monaco" => "MC", "Mongolia" => "MN", "Montenegro" => "ME", "Montserrat" => "MS", "Morocco" => "MA", "Mozambique" => "MZ", "Myanmar [Burma]" => "MM", "Namibia" => "NA", "Nauru" => "NR", "Nepal" => "NP", "Netherlands" => "NL", "Netherlands Antilles" => "AN", "New Caledonia" => "NC", "New Zealand" => "NZ", "Nicaragua" => "NI", "Niger" => "NE", "Nigeria" => "NG", "Niue" => "NU", "Norfolk Island" => "NF", "Northern Mariana Islands" => "MP", "North Korea" => "KP", "Norway" => "NO", "Oman" => "OM", "Pakistan" => "PK", "Palau" => "PW", "Palestinian Territories" => "PS", "Panama" => "PA", "Papua New Guinea" => "PG", "Paraguay" => "PY", "Peru" => "PE", "Philippines" => "PH", "Pitcairn Islands" => "PN", "Poland" => "PL", "Portugal" => "PT", "Qatar" => "QA", "R\303\xa9union" => "RE", "Romania" => "RO", "Russia" => "RU", "Rwanda" => "RW", "Saint Barth\303\xa9lemy" => "BL", "Saint Helena" => "SH", "Saint Kitts and Nevis" => "KN", "Saint Lucia" => "LC", "Saint Martin" => "MF", "Saint Pierre and Miquelon" => "PM", "Saint Vincent and the Grenadines" => "VC", "Samoa" => "WS", "San Marino" => "SM", "S\303\243o Tom\303\251 and Pr\xc3\255ncipe" => "ST", "Saudi Arabia" => "SA", "Senegal" => "SN", "Serbia" => "RS", "Seychelles" => "SC", "Sierra Leone" => "SL", "Singapore" => "SG", "Sint Maarten" => "SX", "Slovakia" => "SK", "Slovenia" => "SI", "Solomon Islands" => "SB", "Somalia" => "SO", "South Africa" => "ZA", "South Georgia and the South Sandwich Islands" => "GS", "South Korea" => "KR", "Spain" => "ES", "Sri Lanka" => "LK", "Sudan" => "SD", "Suriname" => "SR", "Svalbard and Jan Mayen" => "SJ", "Swaziland" => "SZ", "Sweden" => "SE", "Switzerland" => "CH", "Syria" => "SY", "Taiwan, Province of China" => "TW", "Tajikistan" => "TJ", "Tanzania" => "TZ", "Thailand" => "TH", "Timor-Leste" => "TL", "Togo" => "TG", "Tokelau" => "TK", "Tonga" => "TO", "Trinidad and Tobago" => "TT", "Tunisia" => "TN", "Turkey" => "TR", "Turkmenistan" => "TM", "Turks and Caicos Islands" => "TC", "Tuvalu" => "TV", "Uganda" => "UG", "Ukraine" => "UA", "United Arab Emirates" => "AE", "United Kingdom" => "GB", "United States" => "US", "Uruguay" => "UY", "U.S. Outlying Islands" => "UM", "U.S. Virgin Islands" => "VI", "Uzbekistan" => "UZ", "Vanuatu" => "VU", "Vatican City" => "VA", "Venezuela" => "VE", "Vietnam" => "VN", "Wallis and Futuna" => "WF", "Western Sahara" => "EH", "Yemen" => "YE", "Zambia" => "ZM", "Zimbabwe" => "ZW"]; 
        if (!(strlen($wk) <= 3)) { 
            goto Yp; 
        } 
        return $wk; 
        Yp: 
        if (!isset($a5[$wk])) { 
            goto v2; 
        } 
        $uO = $a5[$wk]; 
        return $uO; 
        v2: 
        return null; 
    } 
    private function processUserAction($lf, $Xq, $XX, $ul, $VA, $Y6, $jR, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK) 
    { 
        if (!$this->oauthUtility->isTrialExpired()) { 
            goto xM; 
        } 
        $this->oauthUtility->log_debug("ProcessUserAction: execute : Your demo account has expired."); 
        print_r("Your Demo account has expired. Please contact [email protected]"); 
        exit; 
        xM: 
        if ($jR == "username") { 
            goto Xe; 
        } 
        $this->oauthUtility->log_debug("ProcessUserAction: processUerAction :: User Email"); 
        $DH = false; 
        $user = null; 
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["relayState"]); 
        if (!$DH) { 
            goto dg; 
        } 
        $this->oauthUtility->log_debug("ProcessUserAction: Inside the admin=true"); 
        $DH = true; 
        $user = $this->getAdminUserFromAttributes($lf); 
        dg: 
        if ($DH) { 
            goto Qc; 
        } 
        $this->oauthUtility->log_debug("user not found as admin.. searching in customers"); 
        $user = $this->getCustomerFromAttributes($lf); 
        Qc: 
        if (!$user) { 
            goto kr; 
        } 
        if (!$DH) { 
            goto EY; 
        } 
        $user = $this->getAdminUserFromAttributes($lf); 
        $user = $this->updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6); 
        goto Os; 
        EY: 
        $user = $this->updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6); 
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "checked") === 0)) { 
            goto yV; 
        } 
        $user = $this->updateCustom($user, $lf); 
        yV: 
        Os: 
        goto Ue; 
        kr: 
        $this->oauthUtility->log_debug("no users found in customers as well as in admin"); 
        $this->oauthUtility->log_debug("user does not exist"); 
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["relayState"]); 
        if ($DH) { 
            goto Km; 
        } 
        $a3 = $this->clientDetails["mo_oauth_auto_create_customer"]; 
        if ($a3) { 
            goto L7; 
        } 
        $this->oauthUtility->log_debug("AutoCreateCustomer is disabled"); 
        $EN = "User doesn't exist anywhere.You are not allowed to login. Please contact your administrator."; 
        $this->showerrorMessage($EN); 
        goto oP; 
        L7: 
        $this->oauthUtility->log_debug("creating new user"); 
        $user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK); 
        oP: 
        goto G5; 
        Km: 
        $a3 = $this->clientDetails["mo_oauth_auto_create_admin"]; 
        if ($a3) { 
            goto Fd; 
        } 
        $this->oauthUtility->log_debug("AutoCreateAdmin is disabled"); 
        $EN = "User doesn't exist anywhere.You are not allowed to login. Please contact your administrator."; 
        $this->oauthUtility->log_debug($ul . " - User Auto Creation is disabled for new Admin user. Redirecting to Login Page"); 
        return $this->getResponse()->setBody($EN); 
        goto vW; 
        Fd: 
        $this->oauthUtility->log_debug("creating new user"); 
        $user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK); 
        vW: 
        G5: 
        Ue: 
        if ($DH) { 
            goto R_; 
        } 
        $this->oauthUtility->setSessionData("customer_post_logout", 1); 
        $this->customerLoginAction->setUser($user)->setRelayState($this->attrs["relayState"])->execute(); 
        goto JI; 
        R_: 
        $this->oauthUtility->setAdminSessionData("admin_post_logout", 1); 
        $this->oauthUtility->log_debug("flow started from admin/backend"); 
        $this->redirectToBackendAndLogin($user->getUsername()); 
        JI: 
        goto W7; 
        Xe: 
        $this->oauthUtility->log_debug("ProcessUserAction: processUerAction :: Username"); 
        $DH = false; 
        $user = null; 
        if (!empty($ul)) { 
            goto I0; 
        } 
        print_r("Username not received"); 
        return; 
        I0: 
        if (!(strpos($ul, "@") === false)) { 
            goto jI; 
        } 
        $ul = $ul . "[email protected]"; 
        jI: 
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["relayState"]); 
        if (!$DH) { 
            goto Cb; 
        } 
        $this->oauthUtility->log_debug("ProcessUserAction: Inside the admin=true"); 
        $user = $this->getAdminUserFromAttributes($lf); 
        Cb: 
        if ($DH) { 
            goto OK; 
        } 
        $this->oauthUtility->log_debug("user not found as admin.. searching in customers"); 
        $DH = true; 
        $user = $this->getCustomerFromAttributes($lf); 
        OK: 
        if (!$user) { 
            goto WF; 
        } 
        if (!$DH) { 
            goto nk; 
        } 
        $user = $this->getAdminUserFromAttributes($lf); 
        $user = $this->updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6); 
        goto YR; 
        nk: 
        $user = $this->updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6); 
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "checked") === 0)) { 
            goto OH; 
        } 
        $user = $this->updateCustom($user, $lf); 
        OH: 
        YR: 
        goto s2; 
        WF: 
        $this->oauthUtility->log_debug("no users found in customers as well as in admin"); 
        $this->oauthUtility->log_debug("user does not exist"); 
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["relayState"]); 
        if ($DH) { 
            goto hk; 
        } 
        $a3 = $this->clientDetails["mo_oauth_auto_create_customer"]; 
        $this->oauthUtility->log_debug("autocreatecustomer: ", $a3); 
        if ($a3) { 
            goto dB; 
        } 
        $this->oauthUtility->log_debug("AutoCreateCustomer is disabled"); 
        $EN = "User doesn't exist anywhere. You are not allowed to login. Please contact your administrator."; 
        $this->showerrorMessage($EN); 
        goto lq; 
        dB: 
        $this->oauthUtility->log_debug("creating new user"); 
        $user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK); 
        lq: 
        goto Fh; 
        hk: 
        $a3 = $this->clientDetails["mo_oauth_auto_create_admin"]; 
        if ($a3) { 
            goto KQ; 
        } 
        $this->oauthUtility->log_debug("AutoCreateAdmin is disabled"); 
        $EN = "User doesn't exist anywhere. You are not allowed to login. Please contact your administrator."; 
        return $this->getResponse()->setBody($EN); 
        goto CM; 
        KQ: 
        $this->oauthUtility->log_debug("creating new user"); 
        $user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK); 
        CM: 
        Fh: 
        s2: 
        if ($DH) { 
            goto JN; 
        } 
        $this->oauthUtility->setSessionData("customer_post_logout", 1); 
        $this->customerLoginAction->setUser($user)->setRelayState($this->attrs["relayState"])->execute(); 
        goto Ew; 
        JN: 
        $this->oauthUtility->setAdminSessionData("admin_post_logout", 1); 
        $this->oauthUtility->log_debug("flow started from admin/backend"); 
        $this->oauthUtility->log_debug("Before RedirecttoBackendAndLogin getID" . $user->getId()); 
        $this->redirectToBackendAndLogin($user->getUsername()); 
        Ew: 
        W7: 
    } 
    private function redirectToBackendAndLogin($ul) 
    { 
        $qu = "adminhtml"; 
        $Ba = $ul; 
        $this->_request->setPathInfo("/admin"); 
        $this->oauthUtility->log_debug("redirectToBackendAndLogin: user: " . $Ba); 
        if ($this->_state->getAreaCode()) { 
            goto Lv; 
        } 
        $this->_state->setAreaCode($qu); 
        Lv: 
        $this->_objectManager->configure($this->_configLoader->load($qu)); 
        $this->_response = $this->_objectManager->get("Magento\Framework\App\Response\Http"); 
        $user = $this->_objectManager->get("Magento\User\Model\User")->loadByUsername($Ba); 
        $BT = $this->_objectManager->get("Magento\Backend\Model\Auth\Session"); 
        $BT->setUser($user); 
        $BT->processLogin(); 
        $this->oauthUtility->reinitconfig(); 
        if (!$BT->isLoggedIn()) { 
            goto ve; 
        } 
        $this->oauthUtility->log_debug("redirectToBackendAndLogin: isLoggedIn: true"); 
        $gR = $this->_objectManager->get("Magento\Framework\Stdlib\CookieManagerInterface"); 
        $um = $BT->getSessionId(); 
        if (!$um) { 
            goto KY; 
        } 
        $this->oauthUtility->log_debug("redirectToBackendAndLogin: cookieValue: true"); 
        $QY = $this->_objectManager->get("Magento\Backend\Model\Session\AdminConfig"); 
        $pF = str_replace("autologin.php", "index.php", $QY->getCookiePath()); 
        $zp = $this->_objectManager->get("Magento\Framework\Stdlib\Cookie\CookieMetadataFactory")->createPublicCookieMetadata()->setDuration(3600)->setPath($pF)->setDomain($QY->getCookieDomain())->setSecure($QY->getCookieSecure())->setHttpOnly($QY->getCookieHttpOnly()); 
        $gR->setPublicCookie($QY->getName(), $um, $zp); 
        if (!class_exists("Magento\Security\Model\AdminSessionsManager")) { 
            goto qm; 
        } 
        $this->oauthUtility->log_debug("redirectToBackendAndLogin: class exist AdminSessionsManager: true"); 
        $iJ = $this->_objectManager->get("Magento\Security\Model\AdminSessionsManager"); 
        $iJ->processLogin(); 
        qm: 
        KY: 
        $Mx = $this->oauthUtility->getAdminUrl("admin/dashboard/index"); 
        $this->userResource->recordLogin($user); 
        $this->oauthUtility->log_debug("redirectToBackendAndLogin: finalUrl: " . $Mx); 
        $this->getResponse()->setRedirect($Mx)->sendResponse(); 
        exit; 
        ve: 
        $this->userResource->recordLogin($user); 
        $Mx = $this->oauthUtility->getAdminUrl("admin/dashboard/index"); 
        $this->oauthUtility->log_debug("redirectToBackendAndLogin: finalUrl: " . $Mx); 
        $this->getResponse()->setRedirect($Mx)->sendResponse(); 
        exit; 
    } 
    private function generateEmail($ul) 
    { 
        $this->oauthUtility->log_debug("ProcessUserAction: generateEmail"); 
        $tw = $this->oauthUtility->getBaseUrl(); 
        $tw = substr($tw, strpos($tw, "//"), strlen($tw) - 1); 
        return $ul . "@" . $tw; 
    } 
    public function updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6) 
    { 
        $uS = $user->getId(); 
        $user = $this->oauthUtility->getAdminUserById($uS); 
        $De = $this->clientDetails["oauth_admin_role_mapping"]; 
        $py = $this->processRoles($VA, $DH, $De, $Y6); 
        $this->oauthUtility->log_debug("Setrole", $py); 
        if (!(empty($De) || is_null($Y6) || is_null($py))) { 
            goto UI; 
        } 
        $this->oauthUtility->log_debug("ProcessUserAction: inside empty rolemappig"); 
        $Mt = $this->clientDetails["default_role"]; 
        $j2 = $this->clientDetails["default_group"]; 
        $py = $DH ? $this->getRoleIdByName($Mt) : $this->getGroupIdByName($j2); 
        UI: 
        if (!(!$this->oauthUtility->isBlank($py) && isset($this->updateRole) && strcasecmp($this->updateRole, "checked") === 0)) { 
            goto qP; 
        } 
        $user->setRoleId($py); 
        $this->oauthUtility->log_debug("assigning group to new Admin: " . $py); 
        $user->save(); 
        qP: 
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "checked") === 0)) { 
            goto Lo; 
        } 
        $E1 = explode("@", $lf); 
        $ul = !$this->oauthUtility->isBlank($ul) ? $ul : $lf; 
        $Xq = !$this->oauthUtility->isBlank($Xq) ? $Xq : $E1[0]; 
        $Xq = preg_replace("/[^A-Za-z0-9\-]/", '', $Xq); 
        $XX = !$this->oauthUtility->isBlank($XX) ? $XX : $E1[1]; 
        $XX = preg_replace("/[^A-Za-z0-9\-]/", '', $XX); 
        $user->setFirstname($Xq); 
        $user->setLastname($XX); 
        $user->save(); 
        Lo: 
        return $user; 
    } 
    private function createNewUser($lf, $Xq, $XX, $ul, $user, &$DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK) 
    { 
        $this->oauthUtility->log_debug("ProcessUserAction: createNewUser"); 
        if (!$this->oauthUtility->check_plan(4)) { 
            goto di; 
        } 
        $this->oauthUtility->flushCache(); 
        $this->oauthUtility->reinitConfig(); 
        if ($this->oauthUtility->getRemainingUsersCount()) { 
            goto Ef; 
        } 
        $rJ = $this->oauthUtility->getStoreConfig(OAuthConstants::DEFAULT_TOKEN); 
        $gM = (int) AESEncryption::decrypt_data($this->oauthUtility->getStoreConfig(OAuthConstants::MAGENTO_COUNTER), $rJ); 
        $this->oauthUtility->setStoreConfig(OAuthConstants::MAGENTO_COUNTER, AESEncryption::encrypt_data($gM + 1, $rJ)); 
        $this->oauthUtility->flushCache(); 
        $this->oauthUtility->reinitConfig(); 
        goto ks; 
        Ef: 
        $this->oauthUtility->log_debug("Your Auto Create User Limit for the trial Miniorange Magento OAuth/OpenID plugin is exceeded. Please Upgrade to any of the Premium Plan to continue the service."); 
        print_r("Your Auto Create User Limit for the trial Miniorange Magento OAuth/OpenID plugin is exceeded. Please Upgrade to any of the Premium Plan to continue the service."); 
        exit; 
        ks: 
        di: 
        $this->oauthUtility->log_debug("ProcessUserAction: createNewUser defaultRole", $VA); 
        $this->oauthUtility->log_debug("ProcessUserAction: createNewUser groupname", $Y6); 
        $this->oauthUtility->log_debug("ProcessUserAction: createNewUser lastname", $XX); 
        $Gs = $this->generatePassword(16); 
        $E1 = explode("@", $lf); 
        $ul = !$this->oauthUtility->isBlank($ul) ? $ul : $lf; 
        $Xq = !$this->oauthUtility->isBlank($Xq) ? $Xq : $E1[0]; 
        $Xq = preg_replace("/[^A-Za-z0-9\-]/", '', $Xq); 
        $XX = !$this->oauthUtility->isBlank($XX) ? $XX : $E1[1]; 
        $XX = preg_replace("/[^A-Za-z0-9\-]/", '', $XX); 
        if ($DH) { 
            goto u2; 
        } 
        $De = $this->clientDetails["oauth_customer_group_mapping"]; 
        $this->oauthUtility->log_debug("createNewUser() : groupsMapped " . $De); 
        goto vM; 
        u2: 
        $De = $this->clientDetails["oauth_admin_role_mapping"]; 
        $this->oauthUtility->log_debug("createNewUser() : rolesMapped " . $De); 
        vM: 
        if (!(isset($this->dontCreateUserIfRoleNotMapped) && strcasecmp($this->dontCreateUserIfRoleNotMapped, "checked") === 0)) { 
            goto yS; 
        } 
        if ($this->isRoleMappingConfiguredForUser($De, $Y6)) { 
            goto HZ; 
        } 
        $DY = "We cannot login you. Please contact your administrator"; 
        if ($DH) { 
            goto TH; 
        } 
        $this->showerrorMessage($DY); 
        goto uC; 
        TH: 
        print_r($DY); 
        exit; 
        uC: 
        HZ: 
        yS: 
        $py = $this->processRoles($VA, $DH, $De, $Y6); 
        $this->oauthUtility->log_debug("Setrole", $py); 
        if (!(empty($De) || is_null($Y6) || is_null($py))) { 
            goto Y0; 
        } 
        $this->oauthUtility->log_debug("ProcessUserAction: inside empty rolemappig"); 
        $Mt = $this->clientDetails["default_role"]; 
        $j2 = $this->clientDetails["default_group"]; 
        $py = $DH ? $this->getRoleIdByName($Mt) : $this->getGroupIdByName($j2); 
        Y0: 
        $this->oauthUtility->log_debug("ProcessUserAction: role_mapping ", $De); 
        if ($DH) { 
            goto Mn; 
        } 
        $user = $this->createCustomer($ul, $lf, $Xq, $XX, $Gs, $py, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK); 
        goto qd; 
        Mn: 
        $this->oauthUtility->log_debug("Setrole", $py); 
        $user = $this->createAdminUser($ul, $lf, $Xq, $XX, $Gs, $py); 
        qd: 
        return $user; 
    } 
    private function isRoleMappingConfiguredForUser($De, $Y6) 
    { 
        if (!(empty($Y6) || empty($De))) { 
            goto La; 
        } 
        return FALSE; 
        La: 
        $De = json_decode($De); 
        foreach ($De as $qf => $Fb) { 
            $cb = explode(",", $Y6); 
            $OC = explode(";", $Fb); 
            foreach ($OC as $nq) { 
                foreach ($cb as $uo) { 
                    if (!(trim($uo, "["] ") == trim($nq, "["] "))) { 
                        goto Yz; 
                    } 
                    return TRUE; 
                    Yz: 
                    pU: 
                } 
                AQ: 
                Fj: 
            } 
            Aw: 
            Bk: 
        } 
        oU: 
    } 
    private function updateUserAttributes($Xq, $XX, $VA, $ul, $user, &$DH, $Y6) 
    { 
        $this->oauthUtility->log_debug("ProcessUserAction: updateUserAttributes"); 
        $uS = $user->getId(); 
        if ($this->oauthUtility->isBlank($Xq)) { 
            goto vf; 
        } 
        $this->oauthUtility->saveConfig(OAuthConstants::DB_FIRSTNAME, $Xq, $uS, $DH); 
        vf: 
        if ($this->oauthUtility->isBlank($XX)) { 
            goto oI; 
        } 
        $this->oauthUtility->saveConfig(OAuthConstants::DB_LASTNAME, $XX, $uS, $DH); 
        oI: 
        if ($this->oauthUtility->isBlank($ul)) { 
            goto gv; 
        } 
        $this->oauthUtility->saveConfig(OAuthConstants::USER_NAME, $ul, $uS, $DH); 
        gv: 
        $IC = $this->clientDetails["oauth_admin_role_mapping"]; 
        $kW = $this->clientDetails["oauth_customer_group_mapping"]; 
        $De = is_array($IC) && $DH ? $IC : array(); 
        $De = is_array($kW) && !$DH ? array_replace($De, $kW) : $De; 
        $py = $this->processRoles($VA, $DH, $De, $Y6); 
        if ($DH) { 
            goto LV; 
        } 
        $user->setData("group_id", $py); 
        $user->save(); 
        LV: 
    } 
    private function createCustomer($ul, $wx, $Xq, $XX, $Gs, $G6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK) 
    { 
        $Xo = $this->oauthUtility->getSessionData(OAuthConstants::APP_NAME); 
        $yx = $this->oauthUtility->getOAuthClientApps(); 
        $jq = null; 
        foreach ($yx as $Rm) { 
            if (!($Rm->getData()["app_name"] === $Xo)) { 
                goto Hg; 
            } 
            $jq = $Rm->getData(); 
            Hg: 
            ps: 
        } 
        gd: 
        $this->oauthUtility->log_debug("ProcessUserAction: createCustomer"); 
        $this->oauthUtility->log_debug("ProcessUserAction: role_assigned", $G6); 
        if (!(!isset($G6) || empty($G6))) { 
            goto D2; 
        } 
        $G6 = 1; 
        D2: 
        $j1 = $this->storeManager->getWebsite()->getWebsiteId(); 
        $cO = $this->storeManager->getStore(); 
        $F6 = $cO->getStoreId(); 
        $KA = $this->customerFactory->create()->setWebsiteId($j1)->setEmail($wx)->setFirstname($Xq)->setLastname($XX)->setPassword($Gs)->setGroupId($G6); 
        $yI = array_Keys((array) $this->attrs); 
        $Tz = json_decode((string) $jq["custom_attributes"]); 
        $Wz = array_values((array) $Tz); 
        $AF = array_intersect($yI, $Wz); 
        foreach ($AF as $QI) { 
            $CI = array_search($QI, (array) $Tz); 
            $sK = $this->attrs[$QI]; 
            $KA->setData($CI, $sK); 
            HK: 
        } 
        OV: 
        $KA->save(); 
        $this->oauthUtility->log_debug("assigning group to new user: " . $G6); 
        $yI = array_Keys((array) $this->attrs); 
        $Tz = json_decode((string) $this->custom_attributes); 
        $Wz = array_values((array) $Tz); 
        $AF = array_intersect($yI, $Wz); 
        $Vk = $this->custom_tablename; 
        if ($Vk) { 
            goto U0; 
        } 
        $Vk = "customer_entity"; 
        U0: 
        $this->oauthUtility->log_debug(" Update user's custom attributes"); 
        $uS = $KA->getId(); 
        if (!($tz || $pU || $UR || $ly || $Uz || $GK)) { 
            goto KL; 
        } 
        $im = $this->dataAddressFactory->create(); 
        $im->setFirstname($Xq); 
        $im->setLastname($XX); 
        if (!isset($tz)) { 
            goto yk; 
        } 
        $im->setTelephone($tz); 
        yk: 
        if (!isset($pU)) { 
            goto VX; 
        } 
        $im->setStreet($pU); 
        VX: 
        if (!isset($UR)) { 
            goto Zi; 
        } 
        $im->setCity($UR); 
        Zi: 
        if (!isset($ly)) { 
            goto fF; 
        } 
        $pz = $this->collectionFactory->create()->addRegionNameFilter($ly)->getFirstItem()->toArray(); 
        if (!isset($pz["region_id"])) { 
            goto Bj; 
        } 
        $im->setRegionId($pz["region_id"]); 
        Bj: 
        fF: 
        if (!isset($Uz)) { 
            goto Y4; 
        } 
        $im->setCountryId($Uz); 
        Y4: 
        if (!isset($GK)) { 
            goto aD; 
        } 
        $im->setPostcode($GK); 
        aD: 
        $im->setIsDefaultBilling("1"); 
        $im->setSaveInAddressBook("1"); 
        $im->setCustomerId($KA->getId()); 
        try { 
            $im->save(); 
            $KA = $im->getCustomer(); 
        } catch (\Exception $ib) { 
            $this->oauthUtility->log_debug("An error occurred while trying to set address: {$ib->getMessage()}"); 
        } 
        KL: 
        if (!($tA || $z4 || $S6 || $do || $BK || $DO)) { 
            goto tx; 
        } 
        $im = $this->dataAddressFactory->create(); 
        $im->setFirstname($Xq); 
        $im->setLastname($XX); 
        if (!isset($tA)) { 
            goto gT; 
        } 
        $im->setTelephone($tA); 
        gT: 
        if (!isset($z4)) { 
            goto sj; 
        } 
        $im->setStreet($z4); 
        sj: 
        if (!isset($S6)) { 
            goto Ks; 
        } 
        $im->setCity($S6); 
        Ks: 
        if (!isset($do)) { 
            goto Zk; 
        } 
        $pz = $this->collectionFactory->create()->addRegionNameFilter($do)->getFirstItem()->toArray(); 
        if (!isset($pz["region_id"])) { 
            goto lf; 
        } 
        $im->setRegionId($pz["region_id"]); 
        lf: 
        Zk: 
        if (!isset($BK)) { 
            goto P6; 
        } 
        $im->setCountryId($BK); 
        P6: 
        if (!isset($DO)) { 
            goto zY; 
        } 
        $im->setPostcode($DO); 
        zY: 
        $im->setIsDefaultShipping("1"); 
        $im->setSaveInAddressBook("1"); 
        $im->setCustomerId($KA->getId()); 
        try { 
            $im->save(); 
            $KA = $im->getCustomer(); 
        } catch (\Exception $ib) { 
            $this->oauthUtility->log_debug("An error occurred while trying to set address: {$ib->getMessage()}"); 
        } 
        tx: 
        return $KA; 
    } 
    private function updateCustomAttributes(&$KA) 
    { 
        $a5 = ["Afghanistan" => "AF", "\xc3\205land Islands" => "AX", "Albania" => "AL", "Algeria" => "DZ", "American Samoa" => "AS", "Andorra" => "AD", "Angola" => "AO", "Anguilla" => "AI", "Antarctica" => "AQ", "Antigua and Barbuda" => "AG", "Argentina" => "AR", "Armenia" => "AM", "Aruba" => "AW", "Australia" => "AU", "Austria" => "AT", "Azerbaijan" => "AZ", "Bahamas" => "BS", "Bahrain" => "BH", "Bangladesh" => "BD", "Barbados" => "BB", "Belarus" => "BY", "Belgium" => "BE", "Belize" => "BZ", "Benin" => "BJ", "Bermuda" => "BM", "Bhutan" => "BT", "Bolivia" => "BO", "Bosnia and Herzegovina" => "BA", "Botswana" => "BW", "Bouvet Island" => "BV", "Brazil" => "BR", "British Indian Ocean Territory" => "IO", "British Virgin Islands" => "VG", "Brunei" => "BN", "Bulgaria" => "BG", "Burkina Faso" => "BF", "Burundi" => "BI", "Cambodia" => "KH", "Cameroon" => "CM", "Canada" => "CA", "Cape Verde" => "CV", "Caribbean Netherlands" => "BQ", "Cayman Islands" => "KY", "Central African Republic" => "CF", "Chad" => "TD", "Chile" => "CL", "China" => "CN", "Christmas Island" => "CX", "Cocos [Keeling] Islands" => "CC", "Colombia" => "CO", "Comoros" => "KM", "Congo - Brazzaville" => "CG", "Congo - Kinshasa" => "CD", "Cook Islands" => "CK", "Costa Rica" => "CR", "C\303\xb4te d\342\x80\x99Ivoire" => "CI", "Croatia" => "HR", "Cuba" => "CU", "Cura\xc3\247ao" => "CW", "Cyprus" => "CY", "Czech Republic" => "CZ", "Denmark" => "DK", "Djibouti" => "DJ", "Dominica" => "DM", "Dominican Republic" => "DO", "Ecuador" => "EC", "Egypt" => "EG", "El Salvador" => "SV", "Equatorial Guinea" => "GQ", "Eritrea" => "ER", "Estonia" => "EE", "Ethiopia" => "ET", "Falkland Islands" => "FK", "Faroe Islands" => "FO", "Fiji" => "FJ", "Finland" => "FI", "France" => "FR", "French Guiana" => "GF", "French Polynesia" => "PF", "French Southern Territories" => "TF", "Gabon" => "GA", "Gambia" => "GM", "Georgia" => "GE", "Germany" => "DE", "Ghana" => "GH", "Gibraltar" => "GI", "Greece" => "GR", "Greenland" => "GL", "Grenada" => "GD", "Guadeloupe" => "GP", "Guam" => "GU", "Guatemala" => "GT", "Guernsey" => "GG", "Guinea" => "GN", "Guinea-Bissau" => "GW", "Guyana" => "GY", "Haiti" => "HT", "Heard Island and McDonald Islands" => "HM", "Honduras" => "HN", "Hong Kong SAR China" => "HK", "Hungary" => "HU", "Iceland" => "IS", "India" => "IN", "Indonesia" => "ID", "Iran" => "IR", "Iraq" => "IQ", "Ireland" => "IE", "Isle of Man" => "IM", "Israel" => "IL", "Italy" => "IT", "Jamaica" => "JM", "Japan" => "JP", "Jersey" => "JE", "Jordan" => "JO", "Kazakhstan" => "KZ", "Kenya" => "KE", "Kiribati" => "KI", "Kuwait" => "KW", "Kyrgyzstan" => "KG", "Laos" => "LA", "Latvia" => "LV", "Lebanon" => "LB", "Lesotho" => "LS", "Liberia" => "LR", "Libya" => "LY", "Liechtenstein" => "LI", "Lithuania" => "LT", "Luxembourg" => "LU", "Macau SAR China" => "MO", "Macedonia" => "MK", "Madagascar" => "MG", "Malawi" => "MW", "Malaysia" => "MY", "Maldives" => "MV", "Mali" => "ML", "Malta" => "MT", "Marshall Islands" => "MH", "Martinique" => "MQ", "Mauritania" => "MR", "Mauritius" => "MU", "Mayotte" => "YT", "Mexico" => "MX", "Micronesia" => "FM", "Moldova" => "MD", "Monaco" => "MC", "Mongolia" => "MN", "Montenegro" => "ME", "Montserrat" => "MS", "Morocco" => "MA", "Mozambique" => "MZ", "Myanmar [Burma]" => "MM", "Namibia" => "NA", "Nauru" => "NR", "Nepal" => "NP", "Netherlands" => "NL", "Netherlands Antilles" => "AN", "New Caledonia" => "NC", "New Zealand" => "NZ", "Nicaragua" => "NI", "Niger" => "NE", "Nigeria" => "NG", "Niue" => "NU", "Norfolk Island" => "NF", "Northern Mariana Islands" => "MP", "North Korea" => "KP", "Norway" => "NO", "Oman" => "OM", "Pakistan" => "PK", "Palau" => "PW", "Palestinian Territories" => "PS", "Panama" => "PA", "Papua New Guinea" => "PG", "Paraguay" => "PY", "Peru" => "PE", "Philippines" => "PH", "Pitcairn Islands" => "PN", "Poland" => "PL", "Portugal" => "PT", "Qatar" => "QA", "R\xc3\251union" => "RE", "Romania" => "RO", "Russia" => "RU", "Rwanda" => "RW", "Saint Barth\xc3\xa9lemy" => "BL", "Saint Helena" => "SH", "Saint Kitts and Nevis" => "KN", "Saint Lucia" => "LC", "Saint Martin" => "MF", "Saint Pierre and Miquelon" => "PM", "Saint Vincent and the Grenadines" => "VC", "Samoa" => "WS", "San Marino" => "SM", "S\303\xa3o Tom\303\xa9 and Pr\xc3\255ncipe" => "ST", "Saudi Arabia" => "SA", "Senegal" => "SN", "Serbia" => "RS", "Seychelles" => "SC", "Sierra Leone" => "SL", "Singapore" => "SG", "Sint Maarten" => "SX", "Slovakia" => "SK", "Slovenia" => "SI", "Solomon Islands" => "SB", "Somalia" => "SO", "South Africa" => "ZA", "South Georgia and the South Sandwich Islands" => "GS", "South Korea" => "KR", "Spain" => "ES", "Sri Lanka" => "LK", "Sudan" => "SD", "Suriname" => "SR", "Svalbard and Jan Mayen" => "SJ", "Swaziland" => "SZ", "Sweden" => "SE", "Switzerland" => "CH", "Syria" => "SY", "Taiwan, Province of China" => "TW", "Tajikistan" => "TJ", "Tanzania" => "TZ", "Thailand" => "TH", "Timor-Leste" => "TL", "Togo" => "TG", "Tokelau" => "TK", "Tonga" => "TO", "Trinidad and Tobago" => "TT", "Tunisia" => "TN", "Turkey" => "TR", "Turkmenistan" => "TM", "Turks and Caicos Islands" => "TC", "Tuvalu" => "TV", "Uganda" => "UG", "Ukraine" => "UA", "United Arab Emirates" => "AE", "United Kingdom" => "GB", "United States" => "US", "Uruguay" => "UY", "U.S. Outlying Islands" => "UM", "U.S. Virgin Islands" => "VI", "Uzbekistan" => "UZ", "Vanuatu" => "VU", "Vatican City" => "VA", "Venezuela" => "VE", "Vietnam" => "VN", "Wallis and Futuna" => "WF", "Western Sahara" => "EH", "Yemen" => "YE", "Zambia" => "ZM", "Zimbabwe" => "ZW"]; 
        $PK = ''; 
        $EY[] = []; 
        $c8[] = []; 
        $UH = ''; 
        $uO = ''; 
        $Oh = ''; 
        if (!array_key_exists("shipping_address", $this->attrs)) { 
            goto Sk; 
        } 
        $PK = $this->attrs["shipping_address"]["phone"]; 
        $EY[] = htmlspecialchars($this->formatStreetAddress($this->attrs["shipping_address"]["address"]["street_address"])); 
        if (!$this->attrs["shipping_address"]["address"]["region"]) { 
            goto YY; 
        } 
        $EY[] = $this->attrs["shipping_address"]["address"]["region"]; 
        YY: 
        $UH = $this->attrs["shipping_address"]["address"]["postal_code"]; 
        $uO = $a5[$this->attrs["shipping_address"]["address"]["country"]]; 
        $Oh = $this->attrs["shipping_address"]["address"]["locality"]; 
        Sk: 
        $ZR = ''; 
        if (!$this->oauthUtility->isBlank($PK)) { 
            goto xH; 
        } 
        $PK = "+1"; 
        xH: 
        $this->createOrUpdateAddress($KA, $KA->getFirstname(), $KA->getLastname(), $PK, $EY, $ZR, $Oh, $uO, $UH, "shipping"); 
        if (!array_key_exists("address", $this->attrs)) { 
            goto rv; 
        } 
        $c8[] = htmlspecialchars($this->formatStreetAddress($this->attrs["address"]["street_address"])); 
        if (!$this->attrs["address"]["region"]) { 
            goto VR; 
        } 
        $c8[] = $this->attrs["address"]["region"]; 
        VR: 
        $UH = $this->attrs["address"]["postal_code"]; 
        $uO = $a5[$this->attrs["address"]["country"]]; 
        $Oh = $this->attrs["address"]["locality"]; 
        rv: 
        $ZR = ''; 
        if (!$this->oauthUtility->isBlank($PK)) { 
            goto z2; 
        } 
        $PK = "+1"; 
        z2: 
        $this->createOrUpdateAddress($KA, $KA->getFirstname(), $KA->getLastname(), $PK, $c8, $ZR, $Oh, $uO, $UH, "billing"); 
    } 
    private function formatStreetAddress($PD) 
    { 
        $PD = preg_replace("/\xd
\xd
|\xd
|
\xa/", ",", $PD); 
        $PD = preg_replace("/
\xa|
|\xa/", ",", $PD); 
        return $PD; 
    } 
    private function createOrUpdateAddress(&$KA, $Xq, $XX, $PK, $EY, $ZR, $Oh, $uO, $UH, $Fs) 
    { 
        if (!$this->addressValidationCheck($EY, $UH, $uO)) { 
            goto cS; 
        } 
        $im = $this->dataAddressFactory->create(); 
        if ($Fs == "billing" && $KA->getDefaultBilling()) { 
            goto e6; 
        } 
        if ($Fs == "shipping" && $KA->getDefaultShipping()) { 
            goto wV; 
        } 
        if (!($Fs == "both" && $KA->getDefaultShipping())) { 
            goto ob; 
        } 
        $im->load($KA->getDefaultShipping()); 
        ob: 
        goto yY; 
        wV: 
        $im->load($KA->getDefaultShipping()); 
        yY: 
        goto o5; 
        e6: 
        $im->load($KA->getDefaultBilling()); 
        o5: 
        $im->setFirstname($Xq); 
        $im->setLastname($XX); 
        $im->setTelephone($PK); 
        $im->setStreet($EY); 
        $im->setCity($Oh); 
        $im->setCountryId($uO); 
        $im->setPostcode($UH); 
        $im->setRegionId($ZR); 
        $Nl = $Fs == "billing" || $Fs == "both"; 
        $oR = $Fs == "shipping" || $Fs == "both"; 
        $im->setIsDefaultShipping($oR); 
        $im->setIsDefaultBilling($Nl); 
        $im->setCustomerId($KA->getId()); 
        try { 
            $im->save(); 
            $KA = $im->getCustomer(); 
        } catch (\Exception $ib) { 
            die("An error occurred while trying to set address: {$ib->getMessage()}"); 
        } 
        cS: 
    } 
    private function addressValidationCheck($EY, $UH, $uO) 
    { 
        return !$this->oauthUtility->isBlank($EY) && !$this->oauthUtility->isBlank($UH) && !$this->oauthUtility->isBlank($uO); 
    } 
    private function createAdminUser($ul, $wx, $Xq, $XX, $Gs, $G6) 
    { 
        $this->oauthUtility->log_debug("ProcessUserAction: createAdminUser"); 
        if (!($G6 === "0" || $G6 == null)) { 
            goto UP; 
        } 
        $G6 = "1"; 
        UP: 
        if (!(strlen($ul) >= 40)) { 
            goto Zm; 
        } 
        $ul = substr($ul, 0, 40); 
        Zm: 
        $WK = ["username" => $ul, "firstname" => $Xq, "lastname" => $XX, "email" => $wx, "password" => $Gs, "interface_locale" => "en_US", "is_active" => 1]; 
        $DL = $G6; 
        $user = $this->userFactory->create(); 
        $user->setData($WK); 
        $user->setRoleId($G6); 
        $this->oauthUtility->log_debug("assigning group to new Admin: " . $G6); 
        $user->save(); 
        return $user; 
    } 
    private function processRoles($VA, $DH, $De, $Y6) 
    { 
        if ($DH) { 
            goto Qa; 
        } 
        $VA = $this->clientDetails["default_group"]; 
        goto iZ; 
        Qa: 
        $VA = $this->clientDetails["default_role"]; 
        iZ: 
        $this->oauthUtility->log_debug("default Role: " . $VA); 
        if (!$De) { 
            goto V4; 
        } 
        $De = json_decode($De); 
        V4: 
        $cg = null; 
        if (!(empty($Y6) || empty($De))) { 
            goto II; 
        } 
        return null; 
        II: 
        foreach ($De as $qf => $Fb) { 
            $cb = explode(",", $Y6); 
            $OC = explode(";", $Fb); 
            foreach ($OC as $nq) { 
                foreach ($cb as $uo) { 
                    if (!(trim($uo, "["] ") == trim($nq, "["] "))) { 
                        goto Fe; 
                    } 
                    $cg = $qf; 
                    return $cg; 
                    Fe: 
                    zj: 
                } 
                eq: 
                vd: 
            } 
            RW: 
            b2: 
        } 
        Nl: 
        if ($DH) { 
            goto vJ; 
        } 
        return $this->getGroupIdByName($VA); 
        goto kd; 
        vJ: 
        return $this->getRoleIdByName($VA); 
        kd: 
    } 
    private function getAdminUserFromAttributes($lf) 
    { 
        $OT = false; 
        $yf = $this->adminUserModel->getResource()->getConnection(); 
        $fm = $yf->select()->from($this->adminUserModel->getResource()->getMainTable())->where("email=:email"); 
        $nV = ["email" => $lf]; 
        $OT = $yf->fetchRow($fm, $nV); 
        $OT = is_array($OT) ? $this->adminUserModel->loadByUsername($OT["username"]) : $OT; 
        return $OT; 
    } 
    private function processDefaultRole($DH, $VA) 
    { 
        $this->oauthUtility->log_debug("ProcessUserAction: processDefaultRoles"); 
        if (!is_null($VA)) { 
            goto QW; 
        } 
        return; 
        QW: 
        $cb = $this->userGroupModel->toOptionArray(); 
        $qg = $this->adminRoleModel->toOptionArray(); 
        $GX = ''; 
        if ($DH) { 
            goto Xn; 
        } 
        foreach ($cb as $uo) { 
            $DH = $VA == $uo["label"] ? false : true; 
            if ($DH) { 
                goto oW; 
            } 
            $GX = $uo["value"]; 
            goto ec; 
            oW: 
            ub: 
        } 
        ec: 
        goto h2; 
        Xn: 
        foreach ($qg as $LT) { 
            $DH = $VA == $LT["label"] ? true : false; 
            if (!$DH) { 
                goto N2; 
            } 
            $GX = $LT["value"]; 
            goto ho; 
            N2: 
            Hy: 
        } 
        ho: 
        h2: 
        $this->oauthUtility->log_debug("ProcessUserAction: processDefaultRoles" . $GX); 
        return $GX; 
    } 
    private function getRoleIdByName($ri) 
    { 
        $VV = $this->adminRoleModel->addFieldToFilter("role_type", "G"); 
        $qg = $VV->toOptionArray(); 
        foreach ($qg as $LT) { 
            if (!($ri == $LT["label"])) { 
                goto zP; 
            } 
            $this->oauthUtility->log_debug("getRoleIdByName(): returning roleId: " . $LT["value"] . " for role: " . $LT["label"]); 
            return $LT["value"]; 
            zP: 
            Iz: 
        } 
        G4: 
        $this->oauthUtility->log_debug("getGroupIdByName(): Something went wrong. Default RoleId cannot be Found:assigning Administrator role "); 
        return 1; 
    } 
    private function getGroupIdByName($Y6) 
    { 
        $cb = $this->userGroupModel->toOptionArray(); 
        foreach ($cb as $uo) { 
            if (!($Y6 == $uo["label"])) { 
                goto x4; 
            } 
            $this->oauthUtility->log_debug("getGroupIdByName(): returning groupId: " . $uo["value"] . " for role: " . $uo["label"]); 
            return $uo["value"]; 
            x4: 
            Xb: 
        } 
        N0: 
        $this->oauthUtility->log_debug("getGroupIdByName(): Something went wrong. Default GroupId cannot be Found:assining general role "); 
        return 1; 
    } 
    private function getCustomerFromAttributes($lf) 
    { 
        $this->oauthUtility->log_debug("ProcessUserAction: getCustomAttributes"); 
        $this->customerModel->setWebsiteId($this->storeManager->getStore()->getWebsiteId()); 
        $KA = $this->customerModel->loadByEmail($lf); 
        return !is_null($KA->getId()) ? $KA : false; 
    } 
    public function setAttrs($jl) 
    { 
        $this->attrs = $jl; 
        return $this; 
    } 
    public function setFlattenedAttrs($jh) 
    { 
        $this->flattenedattrs = $jh; 
        return $this; 
    } 
    public function setUserEmail($fi) 
    { 
        $this->userEmail = $fi; 
        return $this; 
    } 
    public function updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6) 
    { 
        $E1 = explode("@", $lf); 
        $this->oauthUtility->log_debug("processUserAction: updateCustomer"); 
        if (!($Xq === null || empty($Xq))) { 
            goto Kk; 
        } 
        $Xq = $E1[0]; 
        $Xq = preg_replace("/[^A-Za-z0-9\-]/", '', $Xq); 
        Kk: 
        if (!($XX === null || empty($XX))) { 
            goto pv; 
        } 
        $XX = $E1[1]; 
        $XX = preg_replace("/[^A-Za-z0-9\-]/", '', $XX); 
        pv: 
        $De = $this->clientDetails["oauth_customer_group_mapping"]; 
        $py = $this->processRoles($VA, $DH, $De, $Y6); 
        $this->oauthUtility->log_debug("Setrole" . $py); 
        if (!(empty($De) || is_null($Y6) || is_null($py))) { 
            goto DF; 
        } 
        $this->oauthUtility->log_debug("ProcessUserAction: inside empty rolemappig"); 
        $Mt = $this->clientDetails["default_role"]; 
        $j2 = $this->clientDetails["default_group"]; 
        $py = $DH ? $this->getRoleIdByName($Mt) : $this->getGroupIdByName($j2); 
        DF: 
        $cO = $this->storeManager->getStore(); 
        $j1 = $this->storeManager->getStore()->getWebsiteId(); 
        $KA = $this->customerFactory->create(); 
        $KA->setWebsiteId($j1)->loadByEmail($lf); 
        if (!(!$this->oauthUtility->isBlank($py) && isset($this->updateFrontendRole) && strcasecmp($this->updateFrontendRole, "checked") === 0)) { 
            goto eO; 
        } 
        $KA->setWebsiteId($j1)->setStore($cO)->setGroupId($py)->setForceConfirmed(true)->save(); 
        eO: 
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "checked") === 0)) { 
            goto Bp; 
        } 
        $KA->setWebsiteId($j1)->setStore($cO)->setFirstname($Xq)->setLastname($XX)->setEmail($lf)->setForceConfirmed(true)->save(); 
        if (!($tz || $pU || $UR || $ly || $Uz || $GK || $eI)) { 
            goto aV; 
        } 
        $Vw = null; 
        $MB = $KA->getDefaultBilling(); 
        if (!isset($MB)) { 
            goto Ye; 
        } 
        $Vw = $this->_addressFactory->create()->load($MB); 
        Ye: 
        if (is_null($MB)) { 
            goto te; 
        } 
        $Vw->setFirstname($Xq); 
        $Vw->setLastname($XX); 
        $this->oauthUtility->log_debug(" exiting updateUserAttributes: phone"); 
        if (!isset($tz)) { 
            goto iT; 
        } 
        $Vw->setTelephone($tz); 
        iT: 
        if (!isset($pU)) { 
            goto Lt; 
        } 
        $Vw->setStreet($pU); 
        Lt: 
        if (!isset($UR)) { 
            goto zK; 
        } 
        $Vw->setCity($UR); 
        zK: 
        if (!isset($ly)) { 
            goto pa; 
        } 
        $pz = $this->collectionFactory->create()->addRegionNameFilter($ly)->getFirstItem()->toArray(); 
        if (!isset($pz["region_id"])) { 
            goto ZR; 
        } 
        $Vw->setRegionId($pz["region_id"]); 
        ZR: 
        pa: 
        if (!isset($Uz)) { 
            goto v8; 
        } 
        $Vw->setCountryId($Uz); 
        v8: 
        if (!isset($eI)) { 
            goto cY; 
        } 
        $Vw->setCompany($eI); 
        cY: 
        if (!isset($GK)) { 
            goto ba; 
        } 
        $Vw->setPostcode($GK); 
        ba: 
        $Vw->save(); 
        goto KO; 
        te: 
        $im = $this->dataAddressFactory->create(); 
        $im->setFirstname($Xq); 
        $im->setLastname($XX); 
        if (!isset($tz)) { 
            goto XA; 
        } 
        $im->setTelephone($tz); 
        XA: 
        if (!isset($pU)) { 
            goto Ma; 
        } 
        $im->setStreet($pU); 
        Ma: 
        if (!isset($UR)) { 
            goto kj; 
        } 
        $im->setCity($UR); 
        kj: 
        if (!isset($Uz)) { 
            goto O9; 
        } 
        $im->setCountryId($Uz); 
        O9: 
        if (!isset($eI)) { 
            goto VP; 
        } 
        $im->setCompany($eI); 
        VP: 
        if (!isset($ly)) { 
            goto tD; 
        } 
        $pz = $this->collectionFactory->create()->addRegionNameFilter($ly)->getFirstItem()->toArray(); 
        if (!isset($pz["region_id"])) { 
            goto OA; 
        } 
        $im->setRegionId($pz["region_id"]); 
        OA: 
        tD: 
        if (!isset($GK)) { 
            goto kU; 
        } 
        $im->setPostcode($GK); 
        kU: 
        $im->setIsDefaultBilling("1"); 
        $im->setSaveInAddressBook("1"); 
        $im->setCustomerId($KA->getId()); 
        try { 
            $im->save(); 
            $KA = $im->getCustomer(); 
        } catch (\Exception $ib) { 
            $this->oauthUtility->log_debug("An error occurred while trying to set address: {$ib->getMessage()}"); 
        } 
        KO: 
        aV: 
        if (!($tA || $z4 || $S6 || $do || $BK || $DO || $Yq)) { 
            goto o3; 
        } 
        $JZ = $KA->getDefaultShipping(); 
        $Ix = $this->_addressFactory->create()->load($JZ); 
        if (is_null($JZ)) { 
            goto q9; 
        } 
        $Ix->setFirstname($Xq); 
        $Ix->setLastname($XX); 
        $this->oauthUtility->log_debug(" exiting updateUserAttributes: phone"); 
        if (!isset($tA)) { 
            goto E5; 
        } 
        $Ix->setTelephone($tA); 
        E5: 
        if (!isset($z4)) { 
            goto kN; 
        } 
        $Ix->setStreet($z4); 
        kN: 
        if (!isset($S6)) { 
            goto pZ; 
        } 
        $Ix->setCity($S6); 
        pZ: 
        if (!isset($do)) { 
            goto zl; 
        } 
        $pz = $this->collectionFactory->create()->addRegionNameFilter($do)->getFirstItem()->toArray(); 
        if (!isset($pz["region_id"])) { 
            goto la; 
        } 
        $Ix->setRegionId($pz["region_id"]); 
        la: 
        zl: 
        if (!isset($BK)) { 
            goto Gg; 
        } 
        $Ix->setCountryId($BK); 
        Gg: 
        if (!isset($Yq)) { 
            goto NS; 
        } 
        $Ix->setCompany($Yq); 
        NS: 
        if (!isset($DO)) { 
            goto I6; 
        } 
        $Ix->setPostcode($DO); 
        I6: 
        $Ix->save(); 
        goto hd; 
        q9: 
        $im = $this->dataAddressFactory->create(); 
        $im->setFirstname($Xq); 
        $im->setLastname($XX); 
        if (!isset($tA)) { 
            goto zw; 
        } 
        $im->setTelephone($tA); 
        zw: 
        if (!isset($z4)) { 
            goto Bc; 
        } 
        $im->setStreet($z4); 
        Bc: 
        if (!isset($S6)) { 
            goto uF; 
        } 
        $im->setCity($S6); 
        uF: 
        if (!isset($do)) { 
            goto h_; 
        } 
        $pz = $this->collectionFactory->create()->addRegionNameFilter($do)->getFirstItem()->toArray(); 
        if (!isset($pz["region_id"])) { 
            goto B9; 
        } 
        $im->setRegionId($pz["region_id"]); 
        B9: 
        h_: 
        if (!isset($BK)) { 
            goto v0; 
        } 
        $im->setCountryId($BK); 
        v0: 
        if (!isset($Yq)) { 
            goto Eg; 
        } 
        $im->setCompany($Yq); 
        Eg: 
        if (!isset($DO)) { 
            goto gZ; 
        } 
        $im->setPostcode($DO); 
        gZ: 
        $im->setIsDefaultShipping("1"); 
        $im->setSaveInAddressBook("1"); 
        $im->setCustomerId($KA->getId()); 
        try { 
            $im->save(); 
            $KA = $im->getCustomer(); 
        } catch (\Exception $ib) { 
            $this->oauthUtility->log_debug("An error occurred while trying to set address: {$ib->getMessage()}"); 
        } 
        hd: 
        o3: 
        Bp: 
        return $KA; 
    } 
    public function generatePassword($kd = 16) 
    { 
        $ye = \Magento\Framework\Math\Random::CHARS_LOWERS . \Magento\Framework\Math\Random::CHARS_UPPERS . \Magento\Framework\Math\Random::CHARS_DIGITS . "#$%&*.;:()@!"; 
        $mU = $this->randomUtility->getRandomString($kd, $ye); 
        return $mU; 
    } 
    public function showerrorMessage($DY) 
    { 
        $this->oauthUtility->log_debug("Process User Action: Redirecting to error page: error message : " . $DY); 
        $this->messageManager->addErrorMessage($DY); 
        $Fm = $this->oauthUtility->getStoreConfig(OAuthConstants::AUTO_REDIRECT); 
        $Li = $this->oauthUtility->getStoreConfig(OAuthConstants::ALL_PAGE_AUTO_REDIRECT); 
        if ($Li) { 
            goto LI; 
        } 
        if ($Fm) { 
            goto vA; 
        } 
        $mn = $this->oauthUtility->getBaseUrl() . "customer/account/login"; 
        goto yp; 
        LI: 
        print_r($DY); 
        exit; 
        goto yp; 
        vA: 
        $mn = $this->oauthUtility->getSessionData("error_redirect_url"); 
        yp: 
        $this->getResponse()->setRedirect($mn)->sendResponse(); 
        exit; 
    } 
    public function updateCustom($user, $lf) 
    { 
        $Xo = $this->oauthUtility->getSessionData(OAuthConstants::APP_NAME); 
        $yx = $this->oauthUtility->getOAuthClientApps(); 
        $jq = null; 
        foreach ($yx as $Rm) { 
            if (!($Rm->getData()["app_name"] === $Xo)) { 
                goto d1; 
            } 
            $jq = $Rm->getData(); 
            d1: 
            wR: 
        } 
        Cv: 
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "checked") === 0)) { 
            goto nM; 
        } 
        $this->oauthUtility->log_debug(" In updateCustomAttribute function"); 
        $uS = $user->getId(); 
        $this->oauthUtility->log_debug("user id" . $uS); 
        $DH = is_a($user, "\Magento\User\Model\User") ? TRUE : FALSE; 
        $yI = array_Keys((array) $this->attrs); 
        $this->oauthUtility->log_debug("attributes keys ", $yI); 
        $Tz = json_decode((string) $jq["custom_attributes"]); 
        $Wz = array_values((array) $Tz); 
        foreach ((array) $Tz as $ls => $wk) { 
            $M_ = $this->eavConfig->getEntityType("customer")->getId(); 
            $Q5 = $this->eavConfig->getAttribute($M_, $ls); 
            if ($Q5 && $Q5->getId()) { 
                goto Rx; 
            } 
            $this->oauthUtility->log_debug("{$ls} custom attribute not present"); 
            Rx: 
            eX: 
        } 
        AZ: 
        $AF = array_intersect($yI, $Wz); 
        $this->oauthUtility->log_debug(" Update user's custom attributes"); 
        foreach ($AF as $QI) { 
            $CI = array_search($QI, (array) $Tz); 
            $sK = $this->attrs[$QI]; 
            $this->oauthUtility->log_debug("custom attribute = {$CI} and custom value = {$sK} "); 
            $KA = $this->customerFactory->create(); 
            $j1 = $this->storeManager->getWebsite()->getWebsiteId(); 
            $KA->setWebsiteId($j1); 
            $KA->loadByEmail($lf); 
            $KA->setData($CI, $sK); 
            $KA->save(); 
            B3: 
        } 
        eC: 
        nM: 
        return $user; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MiniOrange\OAuth\Controller\Actions;

use Magento\Authorization\Model\ResourceModel\Role\Collection;
use Magento\Customer\Model\Customer;
use Magento\Customer\Model\CustomerFactory;
use Magento\Framework\App\Action\Context;
use Magento\Framework\App\ResponseFactory;
use Magento\Framework\Math\Random;
use Magento\Store\Model\StoreManagerInterface;
use Magento\User\Model\User;
use Magento\User\Model\UserFactory;
use MiniOrange\OAuth\Helper\Exception\MissingAttributesException;
use MiniOrange\OAuth\Helper\OAuthConstants;
use MiniOrange\OAuth\Helper\OAuthMessages;
use MiniOrange\OAuth\Helper\OAuthUtility;
use Magento\Customer\Model\AddressFactory;
use Magento\Directory\Model\ResourceModel\Region\CollectionFactory;
use Magento\Framework\Controller\ResultFactory;
use Magento\Framework\Message\ManagerInterface;
use Magento\Eav\Model\Config as EavConfig;
use MiniOrange\OAuth\Helper\OAuth\lib\AESEncryption;
class ProcessUserAction extends BaseAction
{
    private $attrs;
    private $flattenedattrs;
    private $userEmail;
    private $checkIfMatchBy;
    private $defaultRole;
    private $emailAttribute;
    private $usernameAttribute;
    private $firstNameKey;
    private $lastNameKey;
    private $groupNameKey;
    private $groupName;
    private $userGroupModel;
    private $adminRoleModel;
    private $adminUserModel;
    private $customerLoginAction;
    private $responseFactory;
    private $customerFactory;
    private $customerResource;
    private $userFactory;
    private $randomUtility;
    private $dontCreateUserIfRoleNotMapped;
    private $_state;
    private $_configLoader;
    public $_response;
    private $storeManager;
    private $customerRepository;
    private $customerModel;
    private $adminSession;
    private $adminSessionManager;
    private $adminConfig;
    private $cookieMetadataFactory;
    private $cookieManager;
    private $urlInterface;
    private $dataAddressFactory;
    private $clientDetails;
    protected $resultFactory;
    private $countryNameKey;
    private $cityNameKey;
    private $phoneNameKey;
    private $streetAddressNameKey;
    private $mapStateNameKey;
    private $zipCodeNameKey;
    protected $messageManager;
    protected $billingcountryNameKey;
    protected $billingcityNameKey;
    protected $billingphoneNameKey;
    protected $billingCompanyNameKey;
    protected $billingstreetAddressNameKey;
    protected $billingmapStateNameKey;
    protected $billingzipCodeNameKey;
    protected $shippingcountryNameKey;
    protected $shippingcityNameKey;
    protected $shippingphoneNameKey;
    protected $shippingCompanyNameKey;
    protected $shippingstreetAddressNameKey;
    protected $shippingmapStateNameKey;
    protected $shippingzipCodeNameKey;
    private $updateAttribute;
    private $collectionFactory;
    private $custom_tablename;
    private $custom_attributes;
    private $updateFrontendRole;
    private $updateRole;
    protected $eavConfig;
    protected $_addressFactory;
    protected $userResource;
    private $HelperBackend;
    public function __construct(Context $B2, OAuthUtility $Nq, \Magento\Customer\Model\ResourceModel\Group\Collection $lg, Collection $mO, User $uw, Customer $DP, StoreManagerInterface $fW, ResponseFactory $gN, CustomerLoginAction $PI, CustomerFactory $qw, UserFactory $at, Random $T6, \Magento\Customer\Model\ResourceModel\Customer $uh, AddressFactory $U4, \Magento\Framework\App\State $gr, \Magento\Backend\Model\Auth\Session $Rv, \Magento\Security\Model\AdminSessionsManager $iJ, \Magento\Framework\Stdlib\Cookie\CookieMetadataFactory $sv, \Magento\Framework\Stdlib\CookieManagerInterface $gR, \Magento\Backend\Model\UrlInterface $CV, \Magento\Framework\ObjectManager\ConfigLoaderInterface $KJ, \Magento\Customer\Api\CustomerRepositoryInterface $Z7, \Magento\Backend\Model\Session\AdminConfig $mA, \Magento\Backend\Helper\Data $jP, CollectionFactory $JB, ResultFactory $cE, ManagerInterface $yR, \Magento\Customer\Model\AddressFactory $W0, EavConfig $pn, \Magento\User\Model\ResourceModel\User $Mc)
    {
        $this->userGroupModel = $lg;
        $this->adminRoleModel = $mO;
        $this->adminUserModel = $uw;
        $this->customerModel = $DP;
        $this->storeManager = $fW;
        $this->responseFactory = $gN;
        $this->customerLoginAction = $PI;
        $this->customerFactory = $qw;
        $this->userFactory = $at;
        $this->randomUtility = $T6;
        $this->dataAddressFactory = $U4;
        $this->customerResource = $uh;
        $this->customerRepository = $Z7;
        $this->_state = $gr;
        $this->adminSession = $Rv;
        $this->adminSessionManager = $iJ;
        $this->adminConfig = $mA;
        $this->cookieManager = $gR;
        $this->cookieMetadataFactory = $sv;
        $this->urlInterface = $CV;
        $this->HelperBackend = $jP;
        $this->_configLoader = $KJ;
        $this->collectionFactory = $JB;
        $this->resultFactory = $cE;
        $this->messageManager = $yR;
        $this->eavConfig = $pn;
        $this->_addressFactory = $W0;
        $this->userResource = $Mc;
        parent::__construct($B2, $Nq);
    }
    public function execute()
    {
        $Xo = $this->oauthUtility->getSessionData(OAuthConstants::APP_NAME);
        $yx = $this->oauthUtility->getOAuthClientApps();
        $jq = null;
        foreach ($yx as $Rm) {
            if (!($Rm->getData()["\x61\x70\x70\x5f\x6e\x61\155\x65"] === $Xo)) {
                goto BI;
            }
            $jq = $Rm->getData();
            BI:
            jW:
        }
        pK:
        $this->clientDetails = $jq;
        $this->emailAttribute = $jq["\x65\x6d\x61\x69\154\137\141\164\164\x72\151\142\165\x74\145"];
        $this->emailAttribute = $this->oauthUtility->isBlank($this->emailAttribute) ? OAuthConstants::DEFAULT_MAP_EMAIL : $this->emailAttribute;
        $this->usernameAttribute = $jq["\x75\x73\x65\x72\156\x61\155\x65\137\x61\x74\164\162\151\142\165\164\145"];
        $this->usernameAttribute = $this->oauthUtility->isBlank($this->usernameAttribute) ? OAuthConstants::DEFAULT_MAP_USERN : $this->usernameAttribute;
        $this->firstNameKey = $jq["\x66\151\x72\163\164\x6e\x61\x6d\x65\x5f\x61\x74\164\x72\151\142\x75\x74\x65"];
        $this->firstNameKey = $this->oauthUtility->isBlank($this->firstNameKey) ? OAuthConstants::DEFAULT_MAP_FN : $this->firstNameKey;
        $this->lastNameKey = $jq["\154\x61\x73\164\x6e\x61\x6d\145\137\x61\164\x74\162\x69\142\165\x74\x65"];
        $this->lastNameKey = $this->oauthUtility->isBlank($this->lastNameKey) ? OAuthConstants::DEFAULT_MAP_LN : $this->lastNameKey;
        $this->defaultRole = $jq["\144\x65\146\x61\165\154\x74\137\162\x6f\x6c\145"];
        $this->checkIfMatchBy = $jq["\x6d\157\137\x6f\x61\x75\164\150\x5f\x63\162\x65\x61\164\145\137\x75\163\145\162\137\151\x6e\137\155\x61\x67\x65\x6e\x74\x6f\137\x62\171\137\165\163\x69\x6e\147"];
        $this->updateAttribute = $jq["\x75\x70\x64\x61\x74\145\137\x61\x74\164\x72\151\x62\x75\164\x65\163\137\x6f\156\137\154\157\147\x69\x6e"];
        $this->billingcountryNameKey = $jq["\142\151\154\154\x69\156\147\137\x63\157\165\x6e\x74\x72\171\x5f\141\164\x74\162\151\x62\x75\164\x65"];
        $this->billingcountryNameKey = $this->oauthUtility->isBlank($this->billingcountryNameKey) ? OAuthConstants::MAP_COUNTRY_BILLING : $this->billingcountryNameKey;
        $this->oauthUtility->log_debug("\x62\151\154\x6c\151\156\147\x63\x6f\x75\x6e\164\162\171\x4e\141\x6d\145\113\x65\x79\72\40" . $this->billingcountryNameKey);
        $this->billingcityNameKey = $jq["\x62\151\154\x6c\151\x6e\x67\137\x63\x69\164\171\x5f\x61\x74\164\162\x69\x62\x75\x74\145"];
        $this->billingcityNameKey = $this->oauthUtility->isBlank($this->billingcityNameKey) ? OAuthConstants::MAP_CITY_BILLING : $this->billingcityNameKey;
        $this->oauthUtility->log_debug("\142\x69\154\x6c\151\156\147\143\151\x74\x79\x4e\x61\x6d\x65\113\145\x79\x3a\x20");
        $this->billingphoneNameKey = $jq["\x62\151\x6c\x6c\x69\156\147\137\160\150\x6f\156\x65\x5f\x61\x74\x74\x72\151\x62\x75\164\145"];
        $this->billingphoneNameKey = $this->oauthUtility->isBlank($this->billingphoneNameKey) ? OAuthConstants::MAP_PHONE_BILLING : $this->billingphoneNameKey;
        $this->oauthUtility->log_debug("\x62\151\154\154\151\156\147\x70\150\157\156\x65\116\x61\155\145\113\145\x79\x3a\40" . $this->billingphoneNameKey);
        $this->billingCompanyNameKey = $jq["\142\x69\154\154\x69\156\147\x5f\143\x6f\x6d\160\x61\x6e\171\x5f\141\164\164\162\x69\x62\165\164\x65"];
        $this->billingCompanyNameKey = $this->oauthUtility->isBlank($this->billingCompanyNameKey) ? OAuthConstants::MAP_COMPANY_BILLING : $this->billingCompanyNameKey;
        $this->oauthUtility->log_debug("\x62\151\154\x6c\x69\156\x67\103\x6f\x6d\160\141\x6e\x79\116\141\x6d\145\x4b\x65\x79\72\40" . $this->billingCompanyNameKey);
        $this->billingstreetAddressNameKey = $jq["\142\x69\154\x6c\x69\156\x67\137\141\144\x64\x72\145\163\163\x5f\x61\164\164\x72\151\x62\x75\x74\x65"];
        $this->billingstreetAddressNameKey = $this->oauthUtility->isBlank($this->billingstreetAddressNameKey) ? OAuthConstants::MAP_ADDRESS_BILLING : $this->billingstreetAddressNameKey;
        $this->oauthUtility->log_debug("\x62\151\154\x6c\x69\156\147\x73\164\x72\x65\145\x74\x41\x64\x64\x72\x65\163\163\116\141\x6d\x65\x4b\x65\171\x3a\40" . $this->billingstreetAddressNameKey);
        $this->billingmapStateNameKey = $jq["\142\x69\154\x6c\x69\x6e\x67\x5f\163\x74\141\x74\145\x5f\x61\164\164\162\151\142\165\164\x65"];
        $this->billingmapStateNameKey = $this->oauthUtility->isBlank($this->billingmapStateNameKey) ? OAuthConstants::MAP_STATE_BILLING : $this->billingmapStateNameKey;
        $this->oauthUtility->log_debug("\142\151\154\x6c\x69\x6e\147\155\x61\160\x53\x74\141\164\145\116\x61\155\145\113\145\171\72\x20" . $this->billingmapStateNameKey);
        $this->billingzipCodeNameKey = $jq["\x62\151\154\x6c\151\156\147\x5f\x7a\151\x70\x5f\141\x74\164\162\151\142\x75\164\145"];
        $this->billingzipCodeNameKey = $this->oauthUtility->isBlank($this->billingzipCodeNameKey) ? OAuthConstants::MAP_ZIPCODE_BILLING : $this->billingzipCodeNameKey;
        $this->oauthUtility->log_debug("\142\x69\154\154\151\x6e\147\x7a\x69\160\103\x6f\x64\145\x4e\141\155\x65\x4b\145\x79\x3a\x20" . $this->billingzipCodeNameKey);
        $this->shippingcountryNameKey = $jq["\163\150\x69\x70\x70\x69\x6e\x67\137\x63\157\165\x6e\164\162\x79\x5f\x61\164\x74\x72\x69\142\165\x74\x65"];
        $this->shippingcountryNameKey = $this->oauthUtility->isBlank($this->shippingcountryNameKey) ? OAuthConstants::MAP_COUNTRY_SHIPPING : $this->shippingcountryNameKey;
        $this->oauthUtility->log_debug("\x73\150\151\160\160\x69\156\x67\143\157\165\156\x74\162\171\116\x61\x6d\x65\x4b\145\x79\x3a\x20" . $this->shippingcountryNameKey);
        $this->shippingcityNameKey = $jq["\x73\x68\151\x70\160\151\x6e\147\137\143\151\x74\171\137\x61\164\164\162\x69\x62\x75\x74\145"];
        $this->shippingcityNameKey = $this->oauthUtility->isBlank($this->shippingcityNameKey) ? OAuthConstants::MAP_CITY_SHIPPING : $this->shippingcityNameKey;
        $this->oauthUtility->log_debug("\163\x68\151\x70\x70\x69\156\x67\x63\151\x74\x79\x4e\x61\155\x65\x4b\145\x79\x3a\40" . $this->shippingcityNameKey);
        $this->shippingphoneNameKey = $jq["\163\x68\x69\160\x70\151\156\147\137\x70\150\x6f\x6e\x65\137\x61\164\164\162\151\x62\x75\x74\145"];
        $this->shippingphoneNameKey = $this->oauthUtility->isBlank($this->shippingphoneNameKey) ? OAuthConstants::MAP_PHONE_SHIPPING : $this->shippingphoneNameKey;
        $this->oauthUtility->log_debug("\x73\x68\151\160\160\151\156\x67\160\150\157\x6e\x65\x4e\x61\x6d\x65\113\x65\x79\x3a\40" . $this->shippingphoneNameKey);
        $this->shippingCompanyNameKey = $jq["\163\x68\x69\160\160\151\x6e\147\x5f\143\x6f\x6d\x70\x61\156\x79\x5f\141\x74\164\162\151\142\165\x74\145"];
        $this->shippingCompanyNameKey = $this->oauthUtility->isBlank($this->shippingCompanyNameKey) ? OAuthConstants::MAP_COMPANY_SHIPPING : $this->shippingCompanyNameKey;
        $this->oauthUtility->log_debug("\x73\x68\151\x70\x70\151\156\x67\103\x6f\x6d\160\x61\156\171\116\141\x6d\x65\x4b\145\171\72\40" . $this->shippingCompanyNameKey);
        $this->shippingstreetAddressNameKey = $jq["\x73\x68\151\x70\160\151\156\147\137\141\144\x64\x72\145\163\x73\x5f\x61\x74\x74\162\151\x62\x75\x74\x65"];
        $this->shippingstreetAddressNameKey = $this->oauthUtility->isBlank($this->shippingstreetAddressNameKey) ? OAuthConstants::MAP_ADDRESS_SHIPPING : $this->shippingstreetAddressNameKey;
        $this->oauthUtility->log_debug("\163\150\x69\160\x70\151\156\147\x73\164\162\145\x65\x74\x41\x64\144\x72\145\x73\163\x4e\141\x6d\x65\113\x65\171\72\x20" . $this->shippingstreetAddressNameKey);
        $this->shippingmapStateNameKey = $jq["\163\x68\x69\x70\160\151\x6e\147\137\163\x74\x61\164\145\x5f\141\164\164\162\151\x62\165\x74\x65"];
        $this->shippingmapStateNameKey = $this->oauthUtility->isBlank($this->shippingmapStateNameKey) ? OAuthConstants::MAP_STATE_SHIPPING : $this->shippingmapStateNameKey;
        $this->oauthUtility->log_debug("\x73\150\x69\160\160\x69\156\x67\155\x61\x70\x53\164\141\164\x65\x4e\x61\155\x65\113\145\171\x3a\40" . $this->shippingmapStateNameKey);
        $this->shippingzipCodeNameKey = $jq["\x73\x68\151\x70\160\x69\156\x67\137\x7a\x69\x70\137\141\164\164\162\151\142\x75\164\x65"];
        $this->shippingzipCodeNameKey = $this->oauthUtility->isBlank($this->shippingzipCodeNameKey) ? OAuthConstants::MAP_ZIPCODE_SHIPPING : $this->shippingzipCodeNameKey;
        $this->oauthUtility->log_debug("\x73\150\x69\x70\x70\x69\156\147\x7a\151\160\103\157\x64\145\116\x61\x6d\x65\113\145\171\72\40" . $this->shippingzipCodeNameKey);
        $this->groupNameKey = $jq["\x67\162\x6f\165\x70\137\x61\x74\164\x72\x69\142\x75\x74\145"];
        $this->groupName = $jq["\x67\x72\157\165\160\x5f\x61\x74\164\162\x69\142\x75\164\x65"];
        $this->dontCreateUserIfRoleNotMapped = $jq["\x6d\157\137\157\141\x75\x74\150\137\x64\157\x6e\x74\137\143\x72\145\141\x74\x65\137\x75\163\145\162\137\151\146\137\162\x6f\x6c\x65\137\x6e\157\164\x5f\x6d\x61\160\160\x65\144"];
        $this->oauthUtility->log_debug("\x50\162\x6f\x63\145\x73\163\125\163\x65\x72\x41\x63\x74\x69\x6f\156\x3a\x20\x65\x78\x65\143\165\164\x65");
        if (!empty($this->attrs)) {
            goto oX;
        }
        $this->oauthUtility->log_debug("\x4e\157\x20\x41\x74\164\x72\151\142\x75\x74\x65\163\40\122\x65\x63\x65\x69\166\x65\x64\x20\72\x20");
        throw new MissingAttributesException();
        oX:
        $Xq = array_key_exists($this->firstNameKey, $this->flattenedattrs) ? $this->flattenedattrs[$this->firstNameKey] : null;
        $XX = array_key_exists($this->lastNameKey, $this->flattenedattrs) ? $this->flattenedattrs[$this->lastNameKey] : null;
        $ul = array_key_exists($this->usernameAttribute, $this->flattenedattrs) ? $this->flattenedattrs[$this->usernameAttribute] : null;
        $this->userEmail = array_key_exists($this->emailAttribute, $this->flattenedattrs) ? $this->flattenedattrs[$this->emailAttribute] : $this->userEmail;
        $Y6 = isset($this->attrs[$this->groupNameKey]) ? $this->attrs[$this->groupNameKey] : null;
        $cb = isset($this->attrs[$this->groupNameKey]) ? $this->attrs[$this->groupNameKey] : null;
        if (is_array($Y6) && count($Y6) == 1) {
            goto G3;
        }
        if (is_array($Y6)) {
            goto CI;
        }
        goto RS;
        G3:
        $Y6 = $Y6[0];
        goto RS;
        CI:
        $Y6 = implode("\54", $Y6);
        RS:
        if (!$this->oauthUtility->isBlank($this->defaultRole)) {
            goto sN;
        }
        $this->defaultRole = OAuthConstants::DEFAULT_ROLE;
        sN:
        if (!$this->oauthUtility->isBlank($this->checkIfMatchBy)) {
            goto Jp;
        }
        $this->checkIfMatchBy = OAuthConstants::DEFAULT_MAP_BY;
        Jp:
        $KX = !empty($this->attrs[$this->billingcountryNameKey]) ? $this->attrs[$this->billingcountryNameKey] : null;
        $UR = !empty($this->attrs[$this->billingcityNameKey]) ? $this->attrs[$this->billingcityNameKey] : null;
        $tz = !empty($this->attrs[$this->billingphoneNameKey]) ? $this->attrs[$this->billingphoneNameKey] : null;
        $pU = !empty($this->attrs[$this->billingstreetAddressNameKey]) ? $this->attrs[$this->billingstreetAddressNameKey] : null;
        $ly = !empty($this->attrs[$this->billingmapStateNameKey]) ? $this->attrs[$this->billingmapStateNameKey] : null;
        $GK = !empty($this->attrs[$this->billingzipCodeNameKey]) ? $this->attrs[$this->billingzipCodeNameKey] : null;
        $eI = !empty($this->attrs[$this->billingCompanyNameKey]) ? $this->attrs[$this->billingCompanyNameKey] : null;
        $Mj = !empty($this->attrs[$this->shippingcountryNameKey]) ? $this->attrs[$this->shippingcountryNameKey] : null;
        $S6 = !empty($this->attrs[$this->shippingcityNameKey]) ? $this->attrs[$this->shippingcityNameKey] : null;
        $tA = !empty($this->attrs[$this->shippingphoneNameKey]) ? $this->attrs[$this->shippingphoneNameKey] : null;
        $z4 = !empty($this->attrs[$this->shippingstreetAddressNameKey]) ? $this->attrs[$this->shippingstreetAddressNameKey] : null;
        $do = !empty($this->attrs[$this->shippingmapStateNameKey]) ? $this->attrs[$this->shippingmapStateNameKey] : null;
        $DO = !empty($this->attrs[$this->shippingzipCodeNameKey]) ? $this->attrs[$this->shippingzipCodeNameKey] : null;
        $Yq = !empty($this->attrs[$this->shippingCompanyNameKey]) ? $this->attrs[$this->shippingCompanyNameKey] : null;
        $this->custom_attributes = $jq["\143\x75\x73\x74\157\x6d\137\141\x74\164\162\151\x62\165\x74\145\163"];
        $this->custom_tablename = $jq["\x63\x75\x73\164\x6f\155\x5f\x74\x61\142\154\x65\156\141\155\x65"];
        $this->updateRole = $jq["\165\x70\x64\x61\x74\145\x5f\x62\x61\x63\153\145\x6e\144\137\162\x6f\154\x65\163\137\x6f\x6e\137\x73\163\157"];
        $this->updateFrontendRole = $jq["\165\160\144\x61\x74\145\x5f\x66\162\x6f\156\164\145\x6e\x64\137\147\162\x6f\165\x70\163\x5f\157\156\137\x73\163\157"];
        $V8 = is_array($cb) ? $cb[0] : $cb;
        $this->oauthUtility->log_debug("\106\x69\162\163\164\x47\162\157\165\160\40\x66\x72\x6f\x6d\x20\111\x64\120\40\x28\151\146\x20\115\x75\x6c\164\151\160\154\x65\x29\x3a\40" . json_encode($V8));
        $Uz = null;
        $BK = null;
        if (!$KX) {
            goto Pl;
        }
        $Uz = $this->getCountryCodeBasedOnMapping($KX);
        Pl:
        if (!$Mj) {
            goto tt;
        }
        $BK = $this->getCountryCodeBasedOnMapping($Mj);
        tt:
        $Qm = $this->storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB);
        $Qm = rtrim($Qm, "\x2f\134");
        $w7 = $this->clientDetails["\155\x6f\x5f\157\141\165\x74\150\x5f\150\x65\x61\144\154\145\163\163\137\163\163\157"];
        if (!(isset($this->attrs["\162\x65\154\141\171\x53\x74\141\x74\145"]) && !str_contains($this->attrs["\162\145\154\x61\171\123\164\141\x74\x65"], $Qm) && !$w7)) {
            goto Bi;
        }
        $this->attrs["\162\x65\154\141\171\x53\x74\141\164\145"] = $Qm;
        Bi:
        $this->processUserAction($this->userEmail, $Xq, $XX, $ul, $this->defaultRole, $Y6, $this->checkIfMatchBy, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK);
    }
    public function getCountryCodeBasedOnMapping($wk)
    {
        $a5 = ["\x41\x66\x67\x68\141\x6e\x69\163\x74\x61\x6e" => "\101\106", "\303\x85\x6c\x61\156\144\40\x49\x73\154\x61\x6e\x64\x73" => "\101\130", "\x41\x6c\x62\141\156\x69\x61" => "\x41\114", "\101\x6c\147\x65\x72\151\141" => "\104\132", "\x41\x6d\145\162\151\x63\141\156\x20\123\x61\x6d\157\141" => "\x41\123", "\101\x6e\144\157\162\x72\x61" => "\x41\x44", "\101\x6e\147\x6f\x6c\x61" => "\101\117", "\101\x6e\x67\165\151\154\x6c\x61" => "\x41\111", "\x41\x6e\164\x61\x72\143\x74\151\143\x61" => "\101\121", "\101\x6e\x74\151\147\165\x61\40\141\156\x64\x20\102\141\162\142\165\x64\141" => "\101\x47", "\x41\x72\x67\145\156\x74\151\x6e\141" => "\x41\x52", "\101\162\155\145\x6e\151\141" => "\101\x4d", "\101\162\165\x62\141" => "\x41\x57", "\101\165\x73\164\x72\141\x6c\x69\141" => "\x41\x55", "\101\165\x73\164\162\x69\141" => "\x41\124", "\x41\172\x65\162\142\141\x69\152\x61\156" => "\101\x5a", "\102\141\x68\141\155\141\x73" => "\102\123", "\102\141\x68\162\x61\x69\x6e" => "\x42\110", "\x42\141\x6e\x67\154\141\x64\145\163\x68" => "\x42\104", "\x42\x61\162\142\141\x64\157\163" => "\x42\102", "\102\145\154\141\x72\x75\x73" => "\102\131", "\x42\x65\154\x67\151\x75\155" => "\102\105", "\x42\x65\154\151\x7a\x65" => "\x42\132", "\x42\x65\x6e\x69\x6e" => "\102\112", "\x42\x65\162\x6d\165\x64\x61" => "\x42\x4d", "\x42\x68\165\164\x61\156" => "\102\x54", "\102\x6f\x6c\x69\166\x69\141" => "\x42\117", "\x42\157\x73\156\x69\141\40\x61\156\144\40\x48\145\162\x7a\x65\147\x6f\x76\151\x6e\x61" => "\102\x41", "\102\157\x74\163\x77\141\x6e\141" => "\102\x57", "\102\x6f\x75\x76\x65\x74\x20\x49\163\154\141\x6e\x64" => "\102\x56", "\102\x72\141\x7a\151\154" => "\102\x52", "\x42\162\151\x74\151\x73\x68\40\x49\156\144\x69\141\x6e\x20\117\143\x65\141\156\40\124\x65\162\x72\151\x74\x6f\x72\x79" => "\x49\x4f", "\x42\x72\x69\x74\x69\163\x68\x20\x56\151\162\x67\151\x6e\x20\111\x73\154\x61\156\x64\x73" => "\126\x47", "\x42\x72\165\x6e\145\151" => "\102\x4e", "\x42\x75\154\147\141\162\x69\141" => "\102\107", "\x42\165\162\x6b\x69\156\141\x20\x46\141\163\x6f" => "\102\x46", "\102\x75\x72\x75\x6e\144\x69" => "\102\111", "\103\141\x6d\x62\157\x64\151\141" => "\x4b\x48", "\x43\141\155\x65\x72\157\157\x6e" => "\x43\x4d", "\103\141\156\141\x64\x61" => "\x43\x41", "\x43\141\x70\x65\40\x56\145\x72\x64\145" => "\x43\x56", "\103\141\162\151\x62\142\x65\x61\x6e\40\x4e\x65\164\150\x65\x72\154\x61\156\x64\163" => "\x42\121", "\103\x61\171\155\141\x6e\x20\111\x73\x6c\141\x6e\144\x73" => "\x4b\131", "\x43\x65\156\164\162\141\x6c\40\101\x66\x72\151\143\141\156\40\122\x65\x70\165\x62\x6c\151\143" => "\x43\x46", "\x43\x68\141\x64" => "\124\104", "\x43\150\x69\x6c\145" => "\x43\x4c", "\x43\150\x69\156\141" => "\103\x4e", "\103\x68\162\x69\163\x74\x6d\x61\x73\x20\111\163\154\141\156\x64" => "\x43\x58", "\x43\x6f\143\157\163\40\x5b\113\x65\145\x6c\151\x6e\x67\x5d\x20\111\163\154\141\x6e\x64\x73" => "\103\103", "\x43\157\154\x6f\x6d\142\151\x61" => "\x43\117", "\x43\x6f\x6d\x6f\x72\157\x73" => "\113\x4d", "\103\x6f\x6e\147\157\40\x2d\40\102\x72\141\172\172\141\166\151\x6c\x6c\x65" => "\103\x47", "\103\x6f\156\147\x6f\40\55\40\113\x69\x6e\163\x68\x61\163\141" => "\103\104", "\x43\157\x6f\x6b\x20\x49\x73\154\141\156\x64\163" => "\103\x4b", "\x43\x6f\163\x74\141\40\x52\x69\143\141" => "\103\x52", "\103\303\264\x74\x65\40\144\342\200\x99\x49\166\157\x69\x72\145" => "\103\111", "\x43\x72\157\x61\x74\151\141" => "\110\x52", "\x43\165\142\141" => "\x43\125", "\x43\x75\x72\141\303\xa7\141\x6f" => "\103\127", "\103\171\x70\x72\x75\163" => "\103\x59", "\103\x7a\x65\143\x68\40\x52\145\x70\x75\142\154\151\143" => "\103\132", "\x44\145\x6e\155\141\x72\153" => "\x44\113", "\104\152\x69\142\x6f\x75\x74\151" => "\104\112", "\x44\x6f\x6d\151\156\151\143\141" => "\x44\115", "\104\157\x6d\151\x6e\x69\143\x61\x6e\40\122\145\x70\x75\x62\x6c\151\143" => "\x44\117", "\105\143\x75\x61\144\x6f\162" => "\105\103", "\x45\147\171\x70\x74" => "\105\107", "\x45\154\40\x53\141\x6c\166\141\144\157\x72" => "\123\126", "\105\x71\165\141\x74\x6f\x72\x69\141\x6c\x20\107\x75\151\x6e\145\141" => "\107\x51", "\x45\x72\151\x74\162\145\x61" => "\105\122", "\105\163\x74\x6f\156\x69\x61" => "\105\105", "\x45\164\150\151\157\x70\151\x61" => "\105\124", "\106\x61\x6c\153\154\141\x6e\144\x20\x49\163\154\141\x6e\x64\x73" => "\x46\x4b", "\x46\141\162\x6f\145\x20\x49\x73\154\x61\156\x64\x73" => "\106\117", "\x46\x69\152\x69" => "\x46\112", "\x46\x69\x6e\x6c\141\156\x64" => "\x46\111", "\x46\x72\141\156\143\x65" => "\x46\x52", "\x46\162\145\x6e\x63\150\x20\107\165\x69\x61\x6e\x61" => "\x47\x46", "\x46\x72\x65\156\x63\x68\40\120\x6f\154\171\156\145\x73\151\141" => "\x50\106", "\x46\x72\145\156\143\150\x20\123\157\x75\164\x68\x65\x72\x6e\40\124\145\x72\x72\151\164\x6f\162\151\145\x73" => "\124\106", "\x47\141\x62\157\156" => "\x47\101", "\x47\141\x6d\142\151\x61" => "\x47\115", "\x47\x65\x6f\x72\147\151\141" => "\107\105", "\x47\x65\162\x6d\x61\156\x79" => "\104\105", "\x47\x68\141\x6e\141" => "\x47\110", "\107\x69\x62\162\x61\x6c\164\x61\x72" => "\107\x49", "\107\162\145\x65\143\145" => "\x47\x52", "\107\162\145\x65\x6e\x6c\141\156\144" => "\x47\114", "\x47\x72\x65\156\x61\x64\141" => "\x47\x44", "\x47\165\x61\144\145\154\x6f\x75\x70\x65" => "\107\120", "\x47\165\141\155" => "\107\x55", "\x47\x75\x61\x74\x65\x6d\x61\x6c\141" => "\x47\x54", "\x47\165\x65\x72\x6e\163\x65\x79" => "\107\x47", "\x47\165\151\156\x65\x61" => "\x47\x4e", "\107\165\x69\156\145\141\55\102\151\163\x73\x61\165" => "\107\x57", "\x47\165\171\x61\x6e\141" => "\107\131", "\x48\x61\x69\164\151" => "\110\x54", "\x48\145\141\162\x64\x20\x49\x73\154\x61\x6e\x64\40\141\156\144\40\115\143\104\x6f\156\x61\154\144\40\x49\x73\x6c\x61\x6e\x64\163" => "\x48\115", "\110\157\156\144\165\x72\x61\163" => "\110\116", "\x48\157\x6e\147\x20\x4b\157\x6e\x67\x20\x53\x41\122\40\103\150\151\x6e\x61" => "\x48\x4b", "\x48\165\156\147\x61\162\171" => "\x48\x55", "\111\x63\145\x6c\x61\156\144" => "\111\123", "\x49\156\144\x69\x61" => "\111\x4e", "\111\x6e\144\157\x6e\145\x73\151\141" => "\111\x44", "\111\162\x61\x6e" => "\111\x52", "\x49\x72\x61\161" => "\x49\121", "\x49\162\x65\x6c\141\156\144" => "\111\x45", "\111\x73\154\145\40\157\x66\40\x4d\141\x6e" => "\x49\115", "\111\163\x72\141\x65\154" => "\111\x4c", "\x49\164\141\154\x79" => "\111\124", "\112\141\155\141\x69\x63\141" => "\x4a\115", "\112\x61\x70\x61\x6e" => "\x4a\x50", "\112\x65\162\x73\x65\x79" => "\112\105", "\112\x6f\x72\144\x61\156" => "\112\117", "\x4b\141\172\x61\153\150\163\164\x61\156" => "\x4b\132", "\x4b\145\x6e\171\x61" => "\x4b\x45", "\x4b\x69\162\151\142\141\164\x69" => "\113\x49", "\x4b\x75\167\141\151\164" => "\113\x57", "\x4b\171\162\147\x79\172\163\164\x61\x6e" => "\x4b\107", "\x4c\141\157\x73" => "\114\101", "\114\x61\164\166\151\x61" => "\114\126", "\114\x65\142\141\x6e\157\156" => "\x4c\102", "\114\x65\163\157\x74\150\157" => "\x4c\x53", "\x4c\151\x62\145\162\151\141" => "\x4c\x52", "\x4c\x69\x62\171\x61" => "\114\131", "\114\151\x65\143\x68\164\145\156\x73\164\x65\151\x6e" => "\x4c\x49", "\x4c\151\164\150\165\x61\x6e\151\141" => "\114\x54", "\x4c\165\170\x65\155\x62\157\165\x72\147" => "\x4c\125", "\115\x61\143\x61\x75\x20\123\101\x52\x20\103\150\151\156\x61" => "\x4d\117", "\x4d\141\143\145\144\157\x6e\151\x61" => "\x4d\113", "\115\x61\x64\141\x67\x61\163\x63\x61\162" => "\x4d\107", "\x4d\x61\154\x61\167\x69" => "\115\127", "\115\x61\x6c\x61\171\x73\x69\x61" => "\115\x59", "\115\141\x6c\x64\x69\x76\145\x73" => "\x4d\126", "\x4d\x61\154\x69" => "\x4d\x4c", "\115\141\x6c\164\141" => "\x4d\124", "\115\x61\x72\x73\150\x61\x6c\x6c\40\x49\163\x6c\141\156\144\163" => "\x4d\x48", "\x4d\141\x72\x74\151\x6e\151\161\165\x65" => "\115\121", "\115\141\165\162\151\x74\x61\156\x69\141" => "\x4d\x52", "\115\141\165\x72\x69\x74\x69\x75\163" => "\x4d\x55", "\115\x61\x79\157\x74\164\x65" => "\131\124", "\x4d\145\170\x69\x63\157" => "\x4d\130", "\115\151\143\162\x6f\x6e\145\163\x69\141" => "\x46\115", "\115\x6f\154\x64\x6f\x76\141" => "\115\104", "\x4d\157\x6e\x61\143\157" => "\x4d\x43", "\x4d\x6f\x6e\147\x6f\154\151\141" => "\115\x4e", "\x4d\x6f\x6e\x74\x65\x6e\x65\147\x72\x6f" => "\x4d\x45", "\115\157\x6e\x74\163\x65\162\162\141\164" => "\115\123", "\115\157\162\x6f\143\x63\157" => "\x4d\101", "\115\157\172\x61\x6d\142\x69\x71\165\x65" => "\115\132", "\x4d\x79\x61\156\155\141\x72\x20\x5b\x42\x75\162\155\141\x5d" => "\x4d\x4d", "\x4e\141\155\x69\142\x69\x61" => "\116\101", "\116\141\x75\162\x75" => "\116\122", "\116\x65\160\x61\x6c" => "\116\x50", "\116\145\164\150\145\x72\x6c\141\156\x64\163" => "\x4e\114", "\x4e\145\x74\150\x65\162\154\141\x6e\144\x73\40\x41\156\164\151\x6c\x6c\x65\163" => "\101\x4e", "\116\145\x77\x20\103\x61\x6c\x65\144\157\156\151\x61" => "\116\103", "\x4e\x65\167\x20\132\x65\x61\x6c\x61\156\x64" => "\116\x5a", "\x4e\151\143\x61\162\141\x67\165\141" => "\x4e\x49", "\116\x69\x67\145\162" => "\x4e\105", "\116\151\147\x65\162\151\141" => "\116\x47", "\116\151\165\x65" => "\116\x55", "\116\157\x72\146\x6f\x6c\x6b\40\111\x73\154\141\156\x64" => "\116\106", "\x4e\157\x72\x74\x68\145\x72\156\40\115\141\x72\151\x61\x6e\141\40\111\x73\x6c\x61\x6e\x64\163" => "\x4d\120", "\116\157\x72\164\150\40\113\x6f\x72\145\x61" => "\x4b\120", "\x4e\157\162\167\x61\171" => "\x4e\117", "\117\x6d\x61\x6e" => "\x4f\x4d", "\120\x61\153\x69\x73\164\x61\156" => "\x50\x4b", "\x50\141\x6c\141\x75" => "\x50\127", "\120\141\x6c\x65\163\164\151\x6e\151\141\x6e\40\124\145\x72\x72\x69\164\x6f\x72\151\145\x73" => "\120\x53", "\120\141\x6e\x61\155\141" => "\120\101", "\120\141\160\165\x61\x20\116\x65\167\40\x47\165\151\156\x65\141" => "\x50\107", "\x50\141\x72\141\x67\x75\x61\x79" => "\x50\131", "\x50\145\162\x75" => "\x50\x45", "\x50\x68\x69\154\x69\160\160\x69\156\145\163" => "\x50\x48", "\120\x69\x74\143\141\151\x72\x6e\40\111\163\154\x61\156\144\163" => "\x50\116", "\120\157\154\x61\156\144" => "\120\x4c", "\x50\x6f\162\164\x75\x67\x61\x6c" => "\120\x54", "\121\x61\164\141\x72" => "\121\x41", "\122\303\xa9\165\x6e\151\x6f\x6e" => "\x52\105", "\122\x6f\x6d\x61\156\151\141" => "\x52\117", "\x52\x75\163\163\151\x61" => "\122\x55", "\122\x77\141\x6e\144\x61" => "\x52\x57", "\x53\141\151\156\x74\x20\102\x61\x72\164\150\303\xa9\154\x65\x6d\171" => "\x42\114", "\123\141\151\x6e\x74\40\x48\145\154\x65\x6e\141" => "\x53\110", "\x53\141\x69\156\x74\40\x4b\x69\164\x74\163\x20\x61\156\x64\x20\x4e\x65\x76\x69\x73" => "\113\x4e", "\x53\x61\151\156\164\40\114\165\x63\151\141" => "\x4c\103", "\123\x61\151\x6e\164\40\x4d\141\x72\164\x69\156" => "\115\106", "\123\141\151\x6e\x74\x20\x50\151\145\x72\x72\x65\x20\x61\x6e\x64\40\x4d\151\161\165\x65\154\x6f\156" => "\x50\115", "\123\141\151\156\164\x20\x56\x69\x6e\143\145\x6e\x74\40\141\156\144\x20\164\150\x65\x20\x47\x72\145\156\141\144\151\x6e\x65\163" => "\126\103", "\x53\x61\x6d\x6f\141" => "\127\123", "\123\141\156\40\115\141\x72\x69\156\157" => "\x53\x4d", "\123\303\243\157\x20\x54\157\155\303\251\x20\x61\156\x64\40\x50\162\xc3\255\156\x63\151\x70\x65" => "\123\x54", "\123\141\165\x64\151\x20\x41\162\141\x62\x69\x61" => "\x53\x41", "\x53\x65\156\x65\x67\x61\154" => "\x53\x4e", "\x53\145\x72\142\x69\x61" => "\x52\x53", "\x53\x65\171\143\150\x65\154\154\145\x73" => "\x53\x43", "\x53\151\145\x72\x72\x61\x20\114\x65\157\156\145" => "\123\114", "\x53\x69\x6e\x67\141\160\x6f\162\x65" => "\x53\107", "\123\x69\x6e\164\40\115\141\x61\162\164\145\156" => "\x53\130", "\x53\x6c\157\x76\x61\x6b\x69\141" => "\x53\113", "\123\x6c\x6f\166\x65\x6e\x69\x61" => "\123\x49", "\x53\157\x6c\x6f\x6d\x6f\156\40\111\163\x6c\x61\x6e\144\x73" => "\123\x42", "\123\x6f\155\141\154\151\141" => "\123\117", "\123\157\x75\164\x68\40\101\146\162\151\143\141" => "\x5a\x41", "\x53\157\165\164\x68\40\x47\145\157\162\147\151\x61\40\141\156\144\40\x74\x68\145\x20\x53\x6f\165\164\150\x20\x53\141\x6e\x64\167\x69\143\150\40\111\163\x6c\x61\x6e\x64\x73" => "\107\123", "\123\157\x75\x74\150\x20\113\157\162\x65\141" => "\x4b\x52", "\123\160\141\151\x6e" => "\x45\123", "\123\x72\x69\x20\114\141\156\x6b\141" => "\114\x4b", "\123\165\x64\141\156" => "\x53\x44", "\123\x75\x72\151\x6e\141\x6d\x65" => "\x53\x52", "\123\x76\x61\x6c\x62\x61\x72\x64\x20\141\x6e\x64\x20\112\141\156\40\115\x61\x79\x65\x6e" => "\123\112", "\x53\x77\x61\x7a\151\x6c\x61\156\x64" => "\x53\x5a", "\123\167\x65\144\145\156" => "\123\105", "\x53\x77\151\164\172\x65\x72\x6c\141\156\144" => "\x43\x48", "\x53\x79\162\151\x61" => "\x53\x59", "\124\141\x69\x77\x61\156\x2c\40\120\162\157\166\x69\156\x63\x65\x20\157\x66\x20\103\150\151\x6e\141" => "\x54\127", "\124\x61\152\151\x6b\x69\x73\x74\x61\x6e" => "\124\x4a", "\x54\141\x6e\172\x61\156\151\x61" => "\124\x5a", "\x54\x68\141\151\154\x61\x6e\x64" => "\124\x48", "\x54\x69\155\157\162\x2d\114\145\x73\x74\x65" => "\124\114", "\124\157\x67\x6f" => "\x54\x47", "\x54\157\153\145\x6c\x61\165" => "\x54\x4b", "\124\157\156\147\x61" => "\x54\x4f", "\x54\x72\x69\x6e\x69\144\x61\144\40\x61\x6e\x64\40\124\157\x62\141\147\157" => "\124\124", "\124\x75\156\x69\163\151\x61" => "\x54\116", "\x54\165\162\x6b\145\x79" => "\x54\122", "\124\x75\162\x6b\155\x65\156\151\x73\x74\x61\x6e" => "\124\115", "\x54\x75\162\x6b\x73\x20\x61\156\144\40\x43\x61\151\x63\157\163\x20\x49\163\x6c\x61\156\144\163" => "\124\x43", "\124\x75\x76\x61\154\x75" => "\124\x56", "\x55\147\141\x6e\144\x61" => "\125\x47", "\125\153\x72\141\x69\x6e\x65" => "\x55\x41", "\x55\x6e\151\164\145\x64\40\101\162\x61\x62\40\105\x6d\151\x72\141\x74\145\x73" => "\x41\105", "\x55\156\151\x74\x65\144\40\x4b\151\156\147\x64\157\x6d" => "\107\102", "\x55\x6e\151\x74\145\144\x20\123\x74\x61\164\145\x73" => "\125\x53", "\125\x72\165\x67\x75\141\171" => "\x55\131", "\125\x2e\123\x2e\40\x4f\x75\x74\x6c\171\x69\156\147\x20\111\163\154\141\156\x64\x73" => "\x55\x4d", "\125\x2e\123\x2e\x20\126\151\162\x67\x69\156\40\x49\x73\x6c\x61\156\x64\163" => "\126\111", "\125\x7a\142\145\153\151\163\164\141\x6e" => "\x55\132", "\x56\141\x6e\x75\141\164\x75" => "\126\x55", "\126\x61\x74\x69\143\x61\156\x20\x43\151\x74\x79" => "\126\x41", "\x56\x65\x6e\145\x7a\x75\x65\x6c\x61" => "\126\x45", "\126\151\x65\164\x6e\141\x6d" => "\x56\x4e", "\x57\x61\x6c\154\151\163\40\x61\x6e\x64\x20\x46\x75\164\165\x6e\x61" => "\x57\x46", "\127\x65\163\164\145\162\156\x20\x53\141\150\141\x72\141" => "\x45\x48", "\131\145\155\145\156" => "\x59\105", "\132\x61\x6d\x62\x69\x61" => "\132\115", "\x5a\151\155\x62\x61\142\x77\145" => "\x5a\127"];
        if (!(strlen($wk) <= 3)) {
            goto Yp;
        }
        return $wk;
        Yp:
        if (!isset($a5[$wk])) {
            goto v2;
        }
        $uO = $a5[$wk];
        return $uO;
        v2:
        return null;
    }
    private function processUserAction($lf, $Xq, $XX, $ul, $VA, $Y6, $jR, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK)
    {
        if (!$this->oauthUtility->isTrialExpired()) {
            goto xM;
        }
        $this->oauthUtility->log_debug("\120\x72\157\x63\x65\x73\x73\x55\x73\x65\x72\x41\143\x74\151\157\156\72\x20\x65\x78\145\143\165\164\x65\40\72\40\x59\157\x75\x72\40\144\x65\155\157\40\141\143\143\157\165\156\x74\40\150\x61\163\40\x65\x78\x70\151\162\145\144\56");
        print_r("\x59\157\165\x72\40\104\x65\155\x6f\40\x61\143\x63\x6f\x75\156\x74\x20\x68\x61\163\40\x65\170\x70\x69\x72\145\144\56\40\120\154\145\x61\x73\145\40\143\x6f\156\164\141\143\x74\x20\x6d\141\147\145\156\x74\157\163\165\x70\x70\157\x72\x74\100\x78\x65\143\165\162\151\146\x79\56\143\157\155");
        exit;
        xM:
        if ($jR == "\165\x73\145\x72\156\141\x6d\x65") {
            goto Xe;
        }
        $this->oauthUtility->log_debug("\120\162\157\143\145\x73\x73\x55\163\x65\162\101\x63\164\x69\157\156\72\40\160\x72\x6f\x63\145\x73\163\x55\x65\162\101\x63\164\151\x6f\x6e\x20\72\x3a\40\125\163\145\x72\40\105\x6d\141\151\154");
        $DH = false;
        $user = null;
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["\162\145\x6c\141\171\x53\164\x61\x74\x65"]);
        if (!$DH) {
            goto dg;
        }
        $this->oauthUtility->log_debug("\x50\162\x6f\x63\145\163\163\125\163\x65\x72\101\x63\164\x69\157\x6e\x3a\x20\111\x6e\x73\x69\x64\x65\x20\x74\150\145\x20\x61\x64\155\x69\156\x3d\164\162\165\x65");
        $DH = true;
        $user = $this->getAdminUserFromAttributes($lf);
        dg:
        if ($DH) {
            goto Qc;
        }
        $this->oauthUtility->log_debug("\165\x73\145\x72\x20\x6e\x6f\164\x20\x66\157\165\156\x64\x20\141\x73\x20\141\144\x6d\x69\156\56\x2e\40\163\145\141\162\x63\150\x69\x6e\147\40\151\156\40\x63\x75\x73\x74\157\155\145\x72\x73");
        $user = $this->getCustomerFromAttributes($lf);
        Qc:
        if (!$user) {
            goto kr;
        }
        if (!$DH) {
            goto EY;
        }
        $user = $this->getAdminUserFromAttributes($lf);
        $user = $this->updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6);
        goto Os;
        EY:
        $user = $this->updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6);
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "\143\150\145\x63\x6b\145\x64") === 0)) {
            goto yV;
        }
        $user = $this->updateCustom($user, $lf);
        yV:
        Os:
        goto Ue;
        kr:
        $this->oauthUtility->log_debug("\156\x6f\40\x75\x73\x65\x72\163\40\146\x6f\x75\156\x64\40\x69\156\40\143\x75\163\164\157\155\145\162\163\x20\x61\163\40\x77\x65\154\x6c\x20\141\x73\x20\151\x6e\40\141\144\x6d\x69\x6e");
        $this->oauthUtility->log_debug("\165\163\x65\162\x20\144\x6f\145\163\x20\x6e\157\x74\x20\145\x78\x69\x73\164");
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["\x72\x65\x6c\141\x79\123\x74\141\x74\145"]);
        if ($DH) {
            goto Km;
        }
        $a3 = $this->clientDetails["\155\x6f\137\157\141\165\x74\150\x5f\x61\165\164\157\x5f\143\x72\145\141\x74\x65\137\143\165\x73\164\x6f\155\145\162"];
        if ($a3) {
            goto L7;
        }
        $this->oauthUtility->log_debug("\x41\165\x74\x6f\x43\162\x65\141\x74\145\x43\x75\x73\164\x6f\155\x65\162\40\151\x73\40\x64\151\163\141\142\154\x65\144");
        $EN = "\125\163\145\162\40\144\x6f\x65\163\x6e\47\x74\40\x65\170\x69\x73\x74\x20\x61\x6e\x79\x77\x68\145\162\145\x2e\131\157\x75\40\x61\x72\145\40\x6e\x6f\x74\x20\141\154\154\x6f\x77\x65\x64\x20\164\157\x20\154\x6f\x67\151\x6e\x2e\40\x50\154\x65\x61\x73\x65\x20\x63\157\156\164\141\x63\x74\x20\171\x6f\x75\162\40\x61\x64\155\x69\156\x69\163\x74\162\x61\x74\x6f\x72\x2e";
        $this->showerrorMessage($EN);
        goto oP;
        L7:
        $this->oauthUtility->log_debug("\143\x72\x65\x61\x74\x69\x6e\147\40\156\145\x77\40\x75\x73\x65\162");
        $user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
        oP:
        goto G5;
        Km:
        $a3 = $this->clientDetails["\155\x6f\137\157\141\x75\x74\150\x5f\141\165\x74\x6f\137\x63\x72\145\141\x74\145\137\x61\x64\x6d\151\x6e"];
        if ($a3) {
            goto Fd;
        }
        $this->oauthUtility->log_debug("\101\165\164\157\x43\x72\145\141\164\x65\x41\144\155\x69\x6e\40\x69\x73\x20\144\151\x73\141\142\154\x65\x64");
        $EN = "\125\163\x65\x72\40\144\x6f\x65\x73\x6e\47\x74\40\145\x78\151\163\x74\40\x61\156\x79\167\x68\x65\162\x65\56\131\157\165\x20\x61\162\145\x20\156\157\x74\x20\x61\154\154\x6f\x77\145\144\40\x74\157\x20\x6c\x6f\x67\x69\156\56\x20\120\154\x65\x61\x73\145\x20\143\x6f\x6e\x74\x61\143\164\x20\x79\157\x75\162\40\x61\x64\x6d\x69\156\x69\163\164\162\x61\x74\x6f\x72\x2e";
        $this->oauthUtility->log_debug($ul . "\x20\x2d\x20\x55\163\145\162\40\x41\x75\164\x6f\x20\103\162\145\x61\x74\x69\157\156\x20\x69\x73\x20\x64\x69\x73\141\142\x6c\145\144\x20\x66\157\x72\40\156\145\x77\40\x41\x64\155\x69\x6e\x20\x75\x73\145\162\x2e\x20\122\x65\x64\151\162\145\143\x74\x69\156\x67\40\x74\157\x20\114\157\147\151\x6e\40\120\x61\x67\x65");
        return $this->getResponse()->setBody($EN);
        goto vW;
        Fd:
        $this->oauthUtility->log_debug("\143\162\x65\141\164\x69\156\147\40\156\x65\x77\40\165\x73\145\162");
        $user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
        vW:
        G5:
        Ue:
        if ($DH) {
            goto R_;
        }
        $this->oauthUtility->setSessionData("\143\x75\163\164\157\x6d\x65\x72\x5f\x70\157\163\164\137\154\x6f\147\x6f\x75\x74", 1);
        $this->customerLoginAction->setUser($user)->setRelayState($this->attrs["\x72\x65\154\x61\171\x53\x74\x61\x74\x65"])->execute();
        goto JI;
        R_:
        $this->oauthUtility->setAdminSessionData("\141\144\155\151\x6e\x5f\x70\x6f\x73\x74\x5f\x6c\x6f\x67\157\165\164", 1);
        $this->oauthUtility->log_debug("\146\x6c\x6f\167\x20\163\164\141\x72\x74\145\144\40\x66\162\157\155\x20\141\144\x6d\151\x6e\57\x62\x61\143\x6b\x65\156\x64");
        $this->redirectToBackendAndLogin($user->getUsername());
        JI:
        goto W7;
        Xe:
        $this->oauthUtility->log_debug("\x50\x72\157\x63\145\163\163\125\x73\x65\162\x41\x63\164\151\x6f\156\72\x20\x70\162\157\x63\x65\x73\x73\x55\145\162\x41\143\164\151\x6f\156\x20\72\x3a\40\x55\x73\x65\x72\156\141\155\145");
        $DH = false;
        $user = null;
        if (!empty($ul)) {
            goto I0;
        }
        print_r("\x55\x73\x65\x72\156\141\x6d\145\40\x6e\157\x74\40\162\x65\x63\x65\151\x76\145\x64");
        return;
        I0:
        if (!(strpos($ul, "\100") === false)) {
            goto jI;
        }
        $ul = $ul . "\x6d\x61\x67\x40\155\141\x67\x65\x6e\x74\157\165\x73\145\162\x2e\143\157\155";
        jI:
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["\162\145\154\141\171\123\164\141\164\x65"]);
        if (!$DH) {
            goto Cb;
        }
        $this->oauthUtility->log_debug("\120\x72\x6f\x63\145\163\x73\x55\x73\145\162\x41\143\164\x69\x6f\156\72\40\x49\x6e\x73\151\x64\145\x20\164\150\145\40\x61\144\155\151\x6e\x3d\x74\162\165\145");
        $user = $this->getAdminUserFromAttributes($lf);
        Cb:
        if ($DH) {
            goto OK;
        }
        $this->oauthUtility->log_debug("\165\163\145\162\40\x6e\157\x74\x20\146\x6f\165\156\x64\40\x61\x73\40\141\144\x6d\x69\156\x2e\x2e\40\163\145\x61\162\x63\150\x69\156\147\x20\x69\156\x20\143\x75\163\x74\x6f\x6d\x65\x72\x73");
        $DH = true;
        $user = $this->getCustomerFromAttributes($lf);
        OK:
        if (!$user) {
            goto WF;
        }
        if (!$DH) {
            goto nk;
        }
        $user = $this->getAdminUserFromAttributes($lf);
        $user = $this->updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6);
        goto YR;
        nk:
        $user = $this->updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6);
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "\143\150\x65\143\153\x65\144") === 0)) {
            goto OH;
        }
        $user = $this->updateCustom($user, $lf);
        OH:
        YR:
        goto s2;
        WF:
        $this->oauthUtility->log_debug("\x6e\157\x20\x75\163\x65\x72\163\x20\146\157\x75\x6e\x64\x20\x69\x6e\x20\143\165\x73\164\157\155\145\162\x73\40\x61\x73\40\x77\145\154\x6c\40\x61\163\x20\x69\156\40\x61\144\x6d\x69\x6e");
        $this->oauthUtility->log_debug("\165\x73\x65\x72\x20\144\157\145\163\40\x6e\x6f\164\40\145\x78\151\x73\x74");
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->attrs["\x72\x65\154\141\x79\123\164\x61\164\145"]);
        if ($DH) {
            goto hk;
        }
        $a3 = $this->clientDetails["\x6d\157\x5f\x6f\x61\x75\164\150\x5f\141\165\164\x6f\137\143\162\145\x61\x74\145\x5f\143\x75\163\x74\x6f\x6d\x65\x72"];
        $this->oauthUtility->log_debug("\141\x75\164\x6f\x63\162\x65\141\164\145\x63\165\x73\x74\157\155\145\x72\72\x20", $a3);
        if ($a3) {
            goto dB;
        }
        $this->oauthUtility->log_debug("\x41\165\164\x6f\103\x72\145\141\164\145\x43\x75\163\164\157\x6d\145\x72\40\151\163\40\144\151\163\x61\x62\x6c\145\144");
        $EN = "\125\163\145\x72\x20\144\157\x65\x73\x6e\47\164\40\145\x78\x69\x73\164\x20\x61\156\171\x77\x68\145\162\145\x2e\40\131\157\x75\40\141\162\145\40\156\x6f\164\40\x61\x6c\154\157\167\145\x64\40\x74\x6f\40\x6c\x6f\147\x69\x6e\56\x20\120\154\145\141\163\145\x20\x63\157\156\x74\141\143\x74\40\x79\157\165\162\40\141\144\155\x69\156\151\x73\x74\162\141\x74\157\x72\56";
        $this->showerrorMessage($EN);
        goto lq;
        dB:
        $this->oauthUtility->log_debug("\x63\x72\145\141\x74\151\x6e\147\x20\156\145\167\40\x75\x73\145\x72");
        $user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
        lq:
        goto Fh;
        hk:
        $a3 = $this->clientDetails["\155\x6f\x5f\x6f\141\x75\x74\150\x5f\x61\x75\x74\157\137\x63\162\145\141\x74\145\x5f\x61\x64\x6d\151\x6e"];
        if ($a3) {
            goto KQ;
        }
        $this->oauthUtility->log_debug("\x41\x75\164\157\x43\x72\145\141\164\x65\101\144\155\151\156\x20\151\x73\40\x64\x69\x73\x61\142\x6c\145\144");
        $EN = "\x55\163\145\x72\40\x64\x6f\145\163\x6e\47\x74\x20\x65\x78\151\x73\164\x20\x61\156\171\167\x68\x65\162\x65\56\x20\131\x6f\x75\x20\141\x72\145\40\156\x6f\164\x20\x61\154\x6c\x6f\x77\x65\x64\x20\x74\x6f\40\x6c\157\147\x69\156\x2e\x20\x50\154\x65\x61\x73\x65\x20\143\157\156\164\141\x63\164\x20\x79\157\x75\162\x20\x61\144\155\151\156\151\163\164\162\x61\x74\x6f\162\56";
        return $this->getResponse()->setBody($EN);
        goto CM;
        KQ:
        $this->oauthUtility->log_debug("\143\x72\x65\141\164\x69\x6e\x67\x20\156\145\167\40\x75\163\145\162");
        $user = $this->createNewUser($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
        CM:
        Fh:
        s2:
        if ($DH) {
            goto JN;
        }
        $this->oauthUtility->setSessionData("\143\165\163\164\x6f\x6d\x65\162\x5f\160\x6f\163\x74\137\x6c\157\147\x6f\165\164", 1);
        $this->customerLoginAction->setUser($user)->setRelayState($this->attrs["\162\145\154\141\171\123\164\x61\x74\x65"])->execute();
        goto Ew;
        JN:
        $this->oauthUtility->setAdminSessionData("\141\x64\x6d\151\x6e\137\x70\157\163\164\137\154\x6f\x67\x6f\x75\x74", 1);
        $this->oauthUtility->log_debug("\146\154\157\167\40\x73\x74\141\x72\164\145\x64\x20\146\162\x6f\x6d\x20\141\x64\155\x69\x6e\57\x62\x61\143\153\145\x6e\x64");
        $this->oauthUtility->log_debug("\102\145\x66\157\162\x65\40\122\x65\x64\151\162\x65\x63\x74\164\157\102\x61\143\x6b\145\156\144\101\x6e\x64\x4c\x6f\x67\x69\x6e\x20\147\145\x74\111\104" . $user->getId());
        $this->redirectToBackendAndLogin($user->getUsername());
        Ew:
        W7:
    }
    private function redirectToBackendAndLogin($ul)
    {
        $qu = "\x61\x64\155\x69\x6e\x68\164\155\154";
        $Ba = $ul;
        $this->_request->setPathInfo("\57\141\144\155\x69\156");
        $this->oauthUtility->log_debug("\x72\145\x64\x69\x72\x65\143\164\124\157\102\x61\x63\x6b\x65\156\144\x41\x6e\x64\x4c\157\x67\151\x6e\x3a\x20\165\163\x65\x72\72\x20" . $Ba);
        if ($this->_state->getAreaCode()) {
            goto Lv;
        }
        $this->_state->setAreaCode($qu);
        Lv:
        $this->_objectManager->configure($this->_configLoader->load($qu));
        $this->_response = $this->_objectManager->get("\115\x61\x67\x65\x6e\x74\157\134\x46\162\x61\x6d\x65\x77\x6f\x72\x6b\x5c\x41\x70\160\x5c\x52\x65\x73\x70\x6f\156\163\145\134\110\x74\164\x70");
        $user = $this->_objectManager->get("\115\x61\147\145\156\x74\x6f\134\x55\x73\x65\x72\x5c\x4d\157\144\145\154\x5c\x55\x73\145\162")->loadByUsername($Ba);
        $BT = $this->_objectManager->get("\115\x61\147\145\156\164\x6f\134\x42\141\x63\153\145\x6e\x64\x5c\115\157\144\145\x6c\x5c\101\165\164\x68\134\x53\145\163\x73\x69\x6f\156");
        $BT->setUser($user);
        $BT->processLogin();
        $this->oauthUtility->reinitconfig();
        if (!$BT->isLoggedIn()) {
            goto ve;
        }
        $this->oauthUtility->log_debug("\162\145\x64\x69\x72\x65\x63\x74\124\x6f\102\141\x63\153\145\156\x64\x41\156\x64\x4c\157\147\151\156\x3a\x20\x69\x73\114\x6f\x67\147\x65\144\111\x6e\72\40\164\x72\x75\x65");
        $gR = $this->_objectManager->get("\115\141\x67\145\156\164\x6f\x5c\106\x72\x61\x6d\x65\x77\x6f\x72\x6b\x5c\123\164\x64\154\x69\x62\x5c\x43\157\x6f\x6b\151\x65\115\141\x6e\x61\147\145\x72\x49\156\x74\x65\162\146\141\x63\x65");
        $um = $BT->getSessionId();
        if (!$um) {
            goto KY;
        }
        $this->oauthUtility->log_debug("\x72\145\x64\x69\x72\x65\x63\164\124\157\x42\x61\x63\x6b\x65\x6e\144\x41\x6e\x64\114\157\x67\151\156\x3a\40\143\x6f\x6f\153\x69\x65\126\x61\x6c\x75\x65\72\x20\164\x72\x75\x65");
        $QY = $this->_objectManager->get("\115\x61\147\145\x6e\x74\x6f\134\x42\x61\143\153\145\x6e\x64\x5c\115\157\144\145\x6c\134\x53\145\x73\163\151\157\156\x5c\x41\144\155\x69\x6e\x43\x6f\156\146\151\x67");
        $pF = str_replace("\141\x75\x74\x6f\x6c\x6f\x67\x69\156\56\160\150\x70", "\151\156\144\145\170\x2e\x70\x68\x70", $QY->getCookiePath());
        $zp = $this->_objectManager->get("\115\141\x67\145\156\164\x6f\x5c\x46\162\x61\155\145\167\157\x72\153\134\x53\x74\144\x6c\x69\x62\x5c\x43\157\157\153\x69\145\x5c\103\x6f\x6f\x6b\151\145\x4d\x65\164\141\144\141\x74\141\x46\141\143\x74\x6f\x72\171")->createPublicCookieMetadata()->setDuration(3600)->setPath($pF)->setDomain($QY->getCookieDomain())->setSecure($QY->getCookieSecure())->setHttpOnly($QY->getCookieHttpOnly());
        $gR->setPublicCookie($QY->getName(), $um, $zp);
        if (!class_exists("\115\141\147\145\x6e\164\157\134\x53\145\x63\165\x72\151\x74\x79\x5c\115\x6f\x64\145\x6c\134\101\x64\155\151\156\x53\145\x73\x73\151\x6f\156\x73\115\141\x6e\141\147\x65\162")) {
            goto qm;
        }
        $this->oauthUtility->log_debug("\x72\x65\x64\x69\162\x65\x63\164\124\157\102\x61\143\153\145\156\x64\x41\x6e\x64\114\157\147\151\156\x3a\x20\143\154\141\x73\163\x20\145\x78\151\163\x74\x20\x41\144\x6d\x69\156\x53\145\x73\163\151\157\x6e\163\115\x61\156\141\147\145\162\x3a\40\164\x72\x75\x65");
        $iJ = $this->_objectManager->get("\115\141\x67\145\156\x74\157\x5c\x53\145\x63\165\162\151\164\171\x5c\x4d\157\x64\x65\154\x5c\101\x64\155\151\x6e\123\x65\163\163\x69\x6f\156\x73\115\x61\x6e\141\x67\x65\x72");
        $iJ->processLogin();
        qm:
        KY:
        $Mx = $this->oauthUtility->getAdminUrl("\141\144\155\151\x6e\57\144\141\x73\150\x62\x6f\x61\162\144\x2f\x69\156\144\x65\x78");
        $this->userResource->recordLogin($user);
        $this->oauthUtility->log_debug("\x72\145\144\151\162\145\x63\x74\124\157\x42\141\143\x6b\145\156\x64\x41\156\x64\x4c\157\x67\x69\x6e\x3a\40\x66\x69\x6e\x61\x6c\125\162\154\72\x20" . $Mx);
        $this->getResponse()->setRedirect($Mx)->sendResponse();
        exit;
        ve:
        $this->userResource->recordLogin($user);
        $Mx = $this->oauthUtility->getAdminUrl("\x61\144\x6d\151\x6e\57\x64\141\163\x68\x62\x6f\x61\162\x64\57\x69\x6e\x64\145\x78");
        $this->oauthUtility->log_debug("\162\x65\144\x69\162\145\143\x74\x54\157\102\x61\143\153\x65\x6e\144\x41\156\144\x4c\157\x67\x69\x6e\x3a\x20\x66\151\156\141\154\125\x72\x6c\72\x20" . $Mx);
        $this->getResponse()->setRedirect($Mx)->sendResponse();
        exit;
    }
    private function generateEmail($ul)
    {
        $this->oauthUtility->log_debug("\120\162\x6f\x63\145\163\163\x55\x73\145\162\101\143\164\151\x6f\156\72\x20\147\x65\156\x65\x72\141\164\x65\x45\x6d\x61\x69\154");
        $tw = $this->oauthUtility->getBaseUrl();
        $tw = substr($tw, strpos($tw, "\x2f\x2f"), strlen($tw) - 1);
        return $ul . "\100" . $tw;
    }
    public function updateAdmin($lf, $Xq, $XX, $ul, $user, $DH, $VA, $Y6)
    {
        $uS = $user->getId();
        $user = $this->oauthUtility->getAdminUserById($uS);
        $De = $this->clientDetails["\157\x61\165\164\150\x5f\x61\144\155\151\156\x5f\x72\157\154\x65\137\155\141\160\160\x69\156\x67"];
        $py = $this->processRoles($VA, $DH, $De, $Y6);
        $this->oauthUtility->log_debug("\x53\145\x74\162\x6f\x6c\145", $py);
        if (!(empty($De) || is_null($Y6) || is_null($py))) {
            goto UI;
        }
        $this->oauthUtility->log_debug("\120\162\157\x63\x65\x73\x73\x55\163\x65\162\x41\x63\164\151\157\x6e\x3a\40\151\x6e\163\151\x64\145\40\145\155\160\x74\x79\40\x72\x6f\154\x65\155\141\x70\160\151\x67");
        $Mt = $this->clientDetails["\x64\145\146\141\165\154\164\x5f\162\157\x6c\145"];
        $j2 = $this->clientDetails["\144\x65\x66\141\165\x6c\164\x5f\x67\162\157\165\160"];
        $py = $DH ? $this->getRoleIdByName($Mt) : $this->getGroupIdByName($j2);
        UI:
        if (!(!$this->oauthUtility->isBlank($py) && isset($this->updateRole) && strcasecmp($this->updateRole, "\143\150\145\143\x6b\x65\144") === 0)) {
            goto qP;
        }
        $user->setRoleId($py);
        $this->oauthUtility->log_debug("\141\x73\163\x69\147\x6e\x69\156\x67\40\147\x72\x6f\x75\160\x20\164\157\40\156\x65\167\40\101\144\155\x69\x6e\x3a\40" . $py);
        $user->save();
        qP:
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "\x63\x68\x65\x63\153\x65\x64") === 0)) {
            goto Lo;
        }
        $E1 = explode("\x40", $lf);
        $ul = !$this->oauthUtility->isBlank($ul) ? $ul : $lf;
        $Xq = !$this->oauthUtility->isBlank($Xq) ? $Xq : $E1[0];
        $Xq = preg_replace("\57\133\136\101\x2d\132\x61\x2d\172\x30\55\71\x5c\55\x5d\57", '', $Xq);
        $XX = !$this->oauthUtility->isBlank($XX) ? $XX : $E1[1];
        $XX = preg_replace("\x2f\133\136\x41\55\132\x61\55\172\x30\x2d\71\134\55\x5d\57", '', $XX);
        $user->setFirstname($Xq);
        $user->setLastname($XX);
        $user->save();
        Lo:
        return $user;
    }
    private function createNewUser($lf, $Xq, $XX, $ul, $user, &$DH, $VA, $Y6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK)
    {
        $this->oauthUtility->log_debug("\120\162\157\143\x65\163\x73\125\163\145\162\x41\143\164\151\x6f\x6e\x3a\40\x63\x72\145\141\x74\x65\x4e\145\x77\x55\x73\145\x72");
        if (!$this->oauthUtility->check_plan(4)) {
            goto di;
        }
        $this->oauthUtility->flushCache();
        $this->oauthUtility->reinitConfig();
        if ($this->oauthUtility->getRemainingUsersCount()) {
            goto Ef;
        }
        $rJ = $this->oauthUtility->getStoreConfig(OAuthConstants::DEFAULT_TOKEN);
        $gM = (int) AESEncryption::decrypt_data($this->oauthUtility->getStoreConfig(OAuthConstants::MAGENTO_COUNTER), $rJ);
        $this->oauthUtility->setStoreConfig(OAuthConstants::MAGENTO_COUNTER, AESEncryption::encrypt_data($gM + 1, $rJ));
        $this->oauthUtility->flushCache();
        $this->oauthUtility->reinitConfig();
        goto ks;
        Ef:
        $this->oauthUtility->log_debug("\131\x6f\165\162\x20\101\x75\164\157\40\103\162\x65\141\164\145\x20\125\163\145\162\x20\114\x69\155\151\164\40\x66\157\162\x20\164\x68\145\40\x74\162\x69\141\x6c\40\x4d\151\156\x69\x6f\x72\x61\x6e\147\x65\40\x4d\x61\x67\x65\156\x74\157\x20\x4f\101\165\x74\x68\57\117\x70\x65\x6e\111\104\40\160\x6c\x75\x67\151\x6e\40\151\x73\40\145\x78\x63\x65\145\144\145\144\56\40\x50\x6c\145\x61\163\x65\40\125\x70\x67\x72\141\144\x65\x20\x74\157\x20\141\x6e\x79\40\157\x66\40\164\150\x65\40\x50\x72\145\155\151\x75\155\40\120\x6c\x61\156\40\164\157\40\x63\x6f\156\164\x69\156\x75\145\40\x74\150\x65\x20\x73\x65\162\166\151\x63\x65\x2e");
        print_r("\131\157\x75\x72\40\101\x75\164\x6f\x20\x43\x72\x65\x61\164\145\x20\x55\x73\x65\x72\x20\114\x69\155\x69\164\40\x66\x6f\162\40\x74\150\145\40\164\x72\x69\141\154\40\x4d\151\156\151\157\x72\141\x6e\x67\145\40\x4d\141\x67\x65\x6e\x74\x6f\40\117\x41\x75\164\x68\57\117\160\145\156\x49\x44\40\160\154\x75\147\151\156\x20\x69\x73\x20\x65\x78\143\x65\145\x64\x65\144\56\x20\x50\x6c\145\x61\x73\x65\40\x55\x70\147\x72\x61\144\x65\x20\164\157\x20\x61\x6e\x79\x20\x6f\146\40\x74\150\x65\40\120\x72\145\x6d\151\x75\155\x20\x50\x6c\141\x6e\40\x74\157\40\143\157\x6e\x74\x69\156\165\x65\40\164\x68\x65\x20\163\145\x72\166\151\143\x65\x2e");
        exit;
        ks:
        di:
        $this->oauthUtility->log_debug("\120\x72\157\143\145\x73\x73\125\x73\145\162\101\x63\x74\x69\157\156\72\x20\143\162\145\x61\x74\x65\116\x65\x77\125\163\x65\x72\x20\144\x65\146\x61\165\x6c\164\122\x6f\x6c\x65", $VA);
        $this->oauthUtility->log_debug("\120\x72\x6f\143\x65\163\x73\x55\163\x65\162\101\143\x74\151\157\x6e\x3a\40\143\162\145\x61\164\x65\116\x65\167\125\163\x65\x72\40\x67\x72\x6f\165\160\x6e\141\x6d\145", $Y6);
        $this->oauthUtility->log_debug("\120\x72\157\143\x65\163\x73\125\x73\x65\x72\x41\x63\x74\151\x6f\x6e\72\40\x63\162\145\x61\164\145\116\145\x77\x55\163\145\x72\40\x6c\x61\163\164\x6e\141\155\145", $XX);
        $Gs = $this->generatePassword(16);
        $E1 = explode("\x40", $lf);
        $ul = !$this->oauthUtility->isBlank($ul) ? $ul : $lf;
        $Xq = !$this->oauthUtility->isBlank($Xq) ? $Xq : $E1[0];
        $Xq = preg_replace("\57\133\x5e\x41\55\x5a\141\x2d\x7a\60\55\x39\134\55\x5d\57", '', $Xq);
        $XX = !$this->oauthUtility->isBlank($XX) ? $XX : $E1[1];
        $XX = preg_replace("\x2f\x5b\136\x41\55\132\141\55\172\x30\x2d\71\134\x2d\x5d\x2f", '', $XX);
        if ($DH) {
            goto u2;
        }
        $De = $this->clientDetails["\x6f\x61\x75\x74\150\x5f\143\x75\163\x74\157\x6d\145\162\137\x67\x72\157\165\160\137\x6d\x61\x70\160\151\x6e\147"];
        $this->oauthUtility->log_debug("\143\x72\x65\141\164\145\x4e\145\x77\125\x73\145\x72\50\x29\40\x3a\40\x67\162\157\x75\x70\x73\115\141\x70\x70\x65\144\40" . $De);
        goto vM;
        u2:
        $De = $this->clientDetails["\157\x61\165\164\150\137\141\144\155\x69\x6e\137\x72\157\x6c\145\137\155\x61\160\160\x69\156\147"];
        $this->oauthUtility->log_debug("\x63\162\x65\x61\164\x65\116\x65\x77\x55\163\x65\162\50\51\40\x3a\40\x72\157\x6c\x65\163\115\x61\160\160\x65\144\x20" . $De);
        vM:
        if (!(isset($this->dontCreateUserIfRoleNotMapped) && strcasecmp($this->dontCreateUserIfRoleNotMapped, "\143\x68\x65\143\x6b\x65\144") === 0)) {
            goto yS;
        }
        if ($this->isRoleMappingConfiguredForUser($De, $Y6)) {
            goto HZ;
        }
        $DY = "\x57\145\40\143\x61\x6e\156\157\164\x20\x6c\x6f\x67\151\x6e\40\x79\157\x75\x2e\x20\x50\154\145\141\163\145\x20\x63\157\x6e\164\x61\143\164\40\171\157\165\162\x20\x61\x64\x6d\x69\156\151\x73\164\162\141\164\157\x72";
        if ($DH) {
            goto TH;
        }
        $this->showerrorMessage($DY);
        goto uC;
        TH:
        print_r($DY);
        exit;
        uC:
        HZ:
        yS:
        $py = $this->processRoles($VA, $DH, $De, $Y6);
        $this->oauthUtility->log_debug("\123\145\164\x72\x6f\154\x65", $py);
        if (!(empty($De) || is_null($Y6) || is_null($py))) {
            goto Y0;
        }
        $this->oauthUtility->log_debug("\120\162\x6f\x63\x65\x73\x73\x55\x73\x65\162\x41\x63\x74\151\157\x6e\72\40\151\156\x73\151\144\145\x20\x65\x6d\x70\x74\x79\40\162\x6f\154\x65\x6d\141\x70\160\151\x67");
        $Mt = $this->clientDetails["\x64\x65\x66\x61\x75\154\x74\137\x72\x6f\x6c\x65"];
        $j2 = $this->clientDetails["\144\145\146\141\165\154\x74\137\147\162\x6f\x75\160"];
        $py = $DH ? $this->getRoleIdByName($Mt) : $this->getGroupIdByName($j2);
        Y0:
        $this->oauthUtility->log_debug("\x50\162\157\x63\145\x73\163\125\x73\x65\162\x41\x63\x74\151\x6f\156\72\x20\x72\157\x6c\145\x5f\155\141\160\160\151\x6e\x67\40", $De);
        if ($DH) {
            goto Mn;
        }
        $user = $this->createCustomer($ul, $lf, $Xq, $XX, $Gs, $py, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK);
        goto qd;
        Mn:
        $this->oauthUtility->log_debug("\123\145\x74\162\157\154\x65", $py);
        $user = $this->createAdminUser($ul, $lf, $Xq, $XX, $Gs, $py);
        qd:
        return $user;
    }
    private function isRoleMappingConfiguredForUser($De, $Y6)
    {
        if (!(empty($Y6) || empty($De))) {
            goto La;
        }
        return FALSE;
        La:
        $De = json_decode($De);
        foreach ($De as $qf => $Fb) {
            $cb = explode("\54", $Y6);
            $OC = explode("\73", $Fb);
            foreach ($OC as $nq) {
                foreach ($cb as $uo) {
                    if (!(trim($uo, "\x5b\42\x5d\x20") == trim($nq, "\133\42\x5d\x20"))) {
                        goto Yz;
                    }
                    return TRUE;
                    Yz:
                    pU:
                }
                AQ:
                Fj:
            }
            Aw:
            Bk:
        }
        oU:
    }
    private function updateUserAttributes($Xq, $XX, $VA, $ul, $user, &$DH, $Y6)
    {
        $this->oauthUtility->log_debug("\x50\x72\157\143\145\163\x73\125\163\145\x72\101\143\164\x69\x6f\156\72\40\165\160\144\x61\x74\145\125\x73\x65\x72\101\164\x74\x72\151\142\x75\164\x65\x73");
        $uS = $user->getId();
        if ($this->oauthUtility->isBlank($Xq)) {
            goto vf;
        }
        $this->oauthUtility->saveConfig(OAuthConstants::DB_FIRSTNAME, $Xq, $uS, $DH);
        vf:
        if ($this->oauthUtility->isBlank($XX)) {
            goto oI;
        }
        $this->oauthUtility->saveConfig(OAuthConstants::DB_LASTNAME, $XX, $uS, $DH);
        oI:
        if ($this->oauthUtility->isBlank($ul)) {
            goto gv;
        }
        $this->oauthUtility->saveConfig(OAuthConstants::USER_NAME, $ul, $uS, $DH);
        gv:
        $IC = $this->clientDetails["\x6f\141\165\x74\x68\x5f\141\144\x6d\151\156\x5f\x72\x6f\x6c\145\137\155\141\x70\160\x69\156\x67"];
        $kW = $this->clientDetails["\157\141\x75\164\x68\x5f\143\x75\163\164\x6f\x6d\145\162\137\147\x72\157\x75\x70\137\x6d\x61\x70\x70\151\156\x67"];
        $De = is_array($IC) && $DH ? $IC : array();
        $De = is_array($kW) && !$DH ? array_replace($De, $kW) : $De;
        $py = $this->processRoles($VA, $DH, $De, $Y6);
        if ($DH) {
            goto LV;
        }
        $user->setData("\x67\162\x6f\165\160\x5f\151\x64", $py);
        $user->save();
        LV:
    }
    private function createCustomer($ul, $wx, $Xq, $XX, $Gs, $G6, $pU, $ly, $GK, $tz, $UR, $Uz, $z4, $do, $DO, $tA, $S6, $BK)
    {
        $Xo = $this->oauthUtility->getSessionData(OAuthConstants::APP_NAME);
        $yx = $this->oauthUtility->getOAuthClientApps();
        $jq = null;
        foreach ($yx as $Rm) {
            if (!($Rm->getData()["\x61\x70\x70\x5f\x6e\x61\155\x65"] === $Xo)) {
                goto Hg;
            }
            $jq = $Rm->getData();
            Hg:
            ps:
        }
        gd:
        $this->oauthUtility->log_debug("\x50\x72\x6f\x63\145\163\x73\x55\x73\x65\162\101\x63\x74\151\157\x6e\x3a\x20\143\162\x65\x61\164\x65\x43\165\x73\164\157\155\x65\162");
        $this->oauthUtility->log_debug("\120\x72\157\143\x65\x73\163\x55\163\x65\162\x41\x63\164\151\x6f\x6e\72\x20\x72\x6f\154\145\137\141\163\x73\151\x67\x6e\x65\144", $G6);
        if (!(!isset($G6) || empty($G6))) {
            goto D2;
        }
        $G6 = 1;
        D2:
        $j1 = $this->storeManager->getWebsite()->getWebsiteId();
        $cO = $this->storeManager->getStore();
        $F6 = $cO->getStoreId();
        $KA = $this->customerFactory->create()->setWebsiteId($j1)->setEmail($wx)->setFirstname($Xq)->setLastname($XX)->setPassword($Gs)->setGroupId($G6);
        $yI = array_Keys((array) $this->attrs);
        $Tz = json_decode((string) $jq["\143\x75\163\164\157\x6d\137\x61\x74\x74\162\151\x62\165\x74\x65\163"]);
        $Wz = array_values((array) $Tz);
        $AF = array_intersect($yI, $Wz);
        foreach ($AF as $QI) {
            $CI = array_search($QI, (array) $Tz);
            $sK = $this->attrs[$QI];
            $KA->setData($CI, $sK);
            HK:
        }
        OV:
        $KA->save();
        $this->oauthUtility->log_debug("\141\x73\163\151\x67\156\x69\156\147\40\147\162\157\165\160\40\x74\x6f\40\156\x65\167\x20\x75\x73\145\x72\72\x20" . $G6);
        $yI = array_Keys((array) $this->attrs);
        $Tz = json_decode((string) $this->custom_attributes);
        $Wz = array_values((array) $Tz);
        $AF = array_intersect($yI, $Wz);
        $Vk = $this->custom_tablename;
        if ($Vk) {
            goto U0;
        }
        $Vk = "\x63\165\163\x74\157\x6d\145\x72\x5f\145\156\x74\151\x74\x79";
        U0:
        $this->oauthUtility->log_debug("\x20\x55\160\x64\141\164\x65\x20\x75\163\x65\x72\x27\163\x20\143\165\x73\x74\x6f\155\x20\141\x74\x74\x72\x69\142\165\164\x65\x73");
        $uS = $KA->getId();
        if (!($tz || $pU || $UR || $ly || $Uz || $GK)) {
            goto KL;
        }
        $im = $this->dataAddressFactory->create();
        $im->setFirstname($Xq);
        $im->setLastname($XX);
        if (!isset($tz)) {
            goto yk;
        }
        $im->setTelephone($tz);
        yk:
        if (!isset($pU)) {
            goto VX;
        }
        $im->setStreet($pU);
        VX:
        if (!isset($UR)) {
            goto Zi;
        }
        $im->setCity($UR);
        Zi:
        if (!isset($ly)) {
            goto fF;
        }
        $pz = $this->collectionFactory->create()->addRegionNameFilter($ly)->getFirstItem()->toArray();
        if (!isset($pz["\x72\145\x67\x69\x6f\x6e\137\x69\144"])) {
            goto Bj;
        }
        $im->setRegionId($pz["\x72\x65\x67\151\157\156\x5f\151\144"]);
        Bj:
        fF:
        if (!isset($Uz)) {
            goto Y4;
        }
        $im->setCountryId($Uz);
        Y4:
        if (!isset($GK)) {
            goto aD;
        }
        $im->setPostcode($GK);
        aD:
        $im->setIsDefaultBilling("\61");
        $im->setSaveInAddressBook("\61");
        $im->setCustomerId($KA->getId());
        try {
            $im->save();
            $KA = $im->getCustomer();
        } catch (\Exception $ib) {
            $this->oauthUtility->log_debug("\101\x6e\40\x65\x72\162\x6f\x72\x20\157\143\143\x75\162\162\145\x64\40\x77\x68\151\154\145\40\164\x72\x79\151\156\x67\x20\164\x6f\40\163\x65\164\x20\141\x64\x64\162\x65\x73\x73\72\40{$ib->getMessage()}");
        }
        KL:
        if (!($tA || $z4 || $S6 || $do || $BK || $DO)) {
            goto tx;
        }
        $im = $this->dataAddressFactory->create();
        $im->setFirstname($Xq);
        $im->setLastname($XX);
        if (!isset($tA)) {
            goto gT;
        }
        $im->setTelephone($tA);
        gT:
        if (!isset($z4)) {
            goto sj;
        }
        $im->setStreet($z4);
        sj:
        if (!isset($S6)) {
            goto Ks;
        }
        $im->setCity($S6);
        Ks:
        if (!isset($do)) {
            goto Zk;
        }
        $pz = $this->collectionFactory->create()->addRegionNameFilter($do)->getFirstItem()->toArray();
        if (!isset($pz["\x72\145\147\x69\x6f\156\137\x69\x64"])) {
            goto lf;
        }
        $im->setRegionId($pz["\162\145\x67\151\x6f\156\137\x69\144"]);
        lf:
        Zk:
        if (!isset($BK)) {
            goto P6;
        }
        $im->setCountryId($BK);
        P6:
        if (!isset($DO)) {
            goto zY;
        }
        $im->setPostcode($DO);
        zY:
        $im->setIsDefaultShipping("\x31");
        $im->setSaveInAddressBook("\61");
        $im->setCustomerId($KA->getId());
        try {
            $im->save();
            $KA = $im->getCustomer();
        } catch (\Exception $ib) {
            $this->oauthUtility->log_debug("\101\x6e\x20\145\162\x72\157\162\40\x6f\x63\x63\165\162\x72\145\144\40\x77\150\x69\x6c\145\x20\164\162\x79\151\x6e\x67\x20\x74\x6f\x20\163\x65\164\40\x61\144\144\162\145\x73\163\x3a\x20{$ib->getMessage()}");
        }
        tx:
        return $KA;
    }
    private function updateCustomAttributes(&$KA)
    {
        $a5 = ["\x41\x66\x67\150\141\x6e\151\x73\x74\x61\156" => "\101\106", "\xc3\205\154\141\x6e\x64\x20\x49\x73\x6c\x61\x6e\x64\163" => "\101\130", "\x41\x6c\x62\141\156\151\x61" => "\x41\x4c", "\101\x6c\147\x65\162\x69\141" => "\104\x5a", "\x41\x6d\x65\162\151\x63\x61\156\40\123\x61\x6d\x6f\141" => "\x41\x53", "\101\156\x64\x6f\162\162\141" => "\101\x44", "\101\156\147\x6f\x6c\141" => "\x41\117", "\x41\156\147\x75\151\154\154\x61" => "\x41\111", "\x41\x6e\x74\x61\162\143\164\151\x63\x61" => "\x41\x51", "\101\156\x74\151\147\165\x61\40\141\x6e\144\x20\102\141\162\142\x75\x64\x61" => "\101\x47", "\x41\162\x67\145\x6e\164\x69\156\141" => "\x41\x52", "\x41\162\x6d\x65\156\151\141" => "\101\x4d", "\x41\162\165\142\x61" => "\101\127", "\101\x75\x73\164\162\141\154\x69\141" => "\101\x55", "\101\x75\x73\x74\x72\151\x61" => "\x41\124", "\x41\x7a\145\162\142\x61\151\x6a\141\x6e" => "\101\132", "\x42\x61\150\x61\155\141\x73" => "\102\123", "\102\x61\150\162\141\x69\156" => "\102\x48", "\x42\141\x6e\x67\x6c\x61\144\145\x73\150" => "\x42\104", "\102\x61\x72\142\x61\x64\x6f\x73" => "\x42\x42", "\x42\x65\154\141\x72\x75\x73" => "\x42\x59", "\102\x65\154\x67\x69\165\x6d" => "\x42\105", "\x42\x65\154\151\x7a\x65" => "\x42\132", "\102\145\156\151\x6e" => "\102\112", "\102\x65\162\155\x75\x64\x61" => "\102\x4d", "\x42\150\x75\164\x61\x6e" => "\x42\x54", "\102\x6f\x6c\151\x76\151\x61" => "\x42\x4f", "\x42\x6f\x73\156\151\141\40\x61\x6e\144\x20\110\x65\x72\x7a\x65\x67\157\166\151\156\x61" => "\102\101", "\102\157\164\163\167\141\x6e\x61" => "\102\127", "\x42\x6f\165\166\x65\164\40\x49\x73\154\141\156\144" => "\x42\126", "\x42\x72\141\x7a\x69\x6c" => "\102\122", "\102\162\x69\164\x69\163\150\x20\111\156\144\151\141\156\x20\117\143\x65\141\156\40\124\145\x72\162\x69\164\157\162\171" => "\111\117", "\x42\x72\x69\164\x69\163\150\x20\126\151\x72\147\x69\156\40\x49\163\154\141\156\x64\163" => "\126\x47", "\x42\x72\165\x6e\x65\151" => "\102\116", "\x42\165\x6c\147\141\x72\x69\x61" => "\x42\x47", "\x42\165\x72\153\x69\156\x61\40\x46\x61\163\157" => "\x42\106", "\x42\165\162\x75\x6e\144\151" => "\x42\x49", "\103\141\x6d\142\x6f\144\151\x61" => "\x4b\x48", "\103\141\x6d\x65\162\x6f\157\x6e" => "\103\x4d", "\103\141\156\141\144\141" => "\103\101", "\x43\141\x70\x65\40\126\145\x72\x64\145" => "\103\x56", "\x43\x61\162\151\142\x62\145\141\x6e\x20\x4e\x65\x74\x68\145\x72\154\141\156\144\163" => "\102\x51", "\103\141\171\x6d\x61\x6e\x20\x49\163\x6c\141\156\144\163" => "\113\131", "\x43\145\x6e\164\162\141\154\40\101\x66\162\151\143\x61\156\x20\x52\145\160\165\x62\154\x69\143" => "\x43\x46", "\103\x68\141\144" => "\x54\x44", "\103\150\151\x6c\x65" => "\103\114", "\x43\x68\151\x6e\141" => "\x43\x4e", "\103\x68\x72\151\163\164\155\141\163\40\111\163\154\141\x6e\x64" => "\x43\x58", "\x43\x6f\143\x6f\163\x20\133\113\145\x65\x6c\151\156\x67\x5d\40\111\x73\154\x61\156\144\x73" => "\x43\103", "\103\157\154\157\x6d\142\x69\x61" => "\103\x4f", "\103\x6f\x6d\157\162\157\163" => "\x4b\x4d", "\x43\x6f\156\x67\157\x20\55\40\x42\x72\141\x7a\172\141\x76\151\x6c\154\x65" => "\x43\x47", "\103\x6f\156\147\x6f\x20\x2d\x20\113\151\156\x73\150\141\163\141" => "\103\104", "\103\x6f\x6f\153\40\x49\163\154\x61\156\x64\163" => "\103\x4b", "\103\157\163\164\141\40\122\x69\x63\x61" => "\103\122", "\x43\303\xb4\x74\x65\40\144\342\x80\x99\x49\166\x6f\151\162\145" => "\103\x49", "\103\162\157\x61\x74\151\x61" => "\110\x52", "\x43\x75\142\x61" => "\103\x55", "\103\165\x72\141\xc3\247\141\x6f" => "\103\x57", "\x43\171\x70\162\165\x73" => "\x43\131", "\x43\172\145\x63\150\40\122\145\160\165\142\154\151\143" => "\103\x5a", "\104\145\x6e\155\x61\x72\153" => "\104\x4b", "\104\x6a\x69\142\x6f\165\164\151" => "\104\x4a", "\x44\157\155\151\156\x69\143\141" => "\104\x4d", "\x44\157\155\x69\x6e\151\x63\141\156\x20\122\x65\160\x75\x62\154\x69\x63" => "\x44\x4f", "\x45\143\165\x61\144\157\162" => "\105\103", "\105\147\171\160\x74" => "\105\107", "\x45\154\x20\123\x61\154\166\x61\144\x6f\x72" => "\x53\x56", "\105\x71\165\141\164\157\162\151\x61\x6c\x20\107\x75\151\156\145\x61" => "\107\x51", "\105\162\x69\164\162\x65\141" => "\105\x52", "\105\x73\164\157\x6e\x69\141" => "\105\105", "\105\164\x68\151\157\x70\151\141" => "\x45\x54", "\106\x61\154\x6b\154\x61\x6e\144\40\111\x73\154\141\x6e\x64\x73" => "\x46\113", "\x46\141\162\157\x65\40\x49\163\154\141\x6e\x64\163" => "\106\x4f", "\106\x69\x6a\151" => "\106\x4a", "\x46\151\x6e\x6c\141\156\144" => "\106\111", "\x46\x72\x61\156\143\x65" => "\x46\x52", "\x46\162\145\156\143\150\40\x47\165\151\141\x6e\x61" => "\107\x46", "\x46\x72\145\x6e\143\x68\x20\120\157\154\x79\x6e\145\x73\151\141" => "\120\106", "\106\x72\145\156\143\x68\40\x53\157\165\x74\x68\145\162\x6e\x20\124\145\162\x72\x69\x74\157\162\151\x65\163" => "\124\106", "\x47\x61\x62\157\x6e" => "\x47\x41", "\107\x61\x6d\x62\151\141" => "\107\115", "\107\x65\x6f\x72\147\151\141" => "\x47\x45", "\107\x65\162\155\141\156\x79" => "\104\x45", "\x47\150\x61\156\141" => "\107\x48", "\x47\x69\142\x72\141\x6c\x74\x61\162" => "\x47\111", "\107\162\x65\x65\x63\145" => "\x47\122", "\x47\162\145\145\x6e\154\x61\x6e\x64" => "\x47\114", "\107\x72\x65\x6e\141\144\x61" => "\x47\x44", "\x47\165\141\x64\145\x6c\x6f\165\x70\x65" => "\x47\x50", "\107\x75\x61\x6d" => "\x47\125", "\x47\165\141\x74\x65\155\141\154\141" => "\x47\124", "\107\165\145\162\156\x73\x65\171" => "\x47\107", "\x47\165\151\x6e\145\141" => "\107\x4e", "\107\165\151\156\x65\x61\x2d\102\151\163\163\141\165" => "\107\x57", "\107\x75\x79\141\x6e\141" => "\107\131", "\x48\141\x69\164\151" => "\x48\124", "\x48\x65\141\x72\144\x20\x49\x73\154\141\156\144\40\141\156\x64\40\x4d\143\104\x6f\156\x61\154\x64\40\111\x73\154\x61\156\144\163" => "\110\x4d", "\110\x6f\156\144\165\162\x61\x73" => "\110\116", "\x48\x6f\x6e\147\40\113\x6f\156\147\x20\x53\x41\x52\x20\x43\x68\151\x6e\141" => "\110\x4b", "\110\165\x6e\x67\141\162\171" => "\x48\125", "\111\143\x65\x6c\x61\x6e\144" => "\x49\x53", "\111\156\144\x69\141" => "\x49\x4e", "\x49\x6e\x64\x6f\x6e\x65\x73\x69\141" => "\x49\104", "\x49\x72\141\x6e" => "\x49\122", "\x49\x72\141\x71" => "\111\x51", "\111\x72\145\154\x61\x6e\x64" => "\x49\x45", "\x49\x73\154\x65\x20\157\146\40\x4d\141\156" => "\x49\x4d", "\111\x73\162\x61\145\154" => "\111\114", "\111\x74\141\x6c\x79" => "\111\x54", "\x4a\x61\x6d\x61\151\x63\x61" => "\x4a\x4d", "\x4a\141\160\141\x6e" => "\112\x50", "\112\145\x72\x73\x65\171" => "\112\x45", "\x4a\157\162\x64\141\156" => "\112\117", "\113\141\x7a\141\153\150\x73\x74\141\156" => "\x4b\132", "\x4b\145\156\171\x61" => "\113\105", "\113\151\162\x69\x62\141\x74\151" => "\113\111", "\x4b\165\167\141\x69\164" => "\113\127", "\x4b\x79\162\x67\171\172\163\164\x61\x6e" => "\x4b\107", "\114\141\157\163" => "\x4c\101", "\x4c\141\x74\x76\x69\x61" => "\114\x56", "\114\145\x62\141\x6e\157\156" => "\114\102", "\114\x65\163\157\x74\150\157" => "\114\x53", "\x4c\x69\x62\145\162\x69\x61" => "\114\x52", "\114\x69\142\x79\141" => "\x4c\131", "\x4c\151\x65\143\150\x74\145\x6e\163\x74\145\x69\x6e" => "\114\x49", "\114\151\164\150\165\141\156\x69\x61" => "\114\124", "\x4c\x75\170\145\155\x62\x6f\165\x72\147" => "\114\x55", "\x4d\141\x63\141\165\40\123\101\x52\x20\103\x68\151\156\141" => "\x4d\117", "\x4d\141\143\x65\144\157\156\151\141" => "\115\x4b", "\115\141\x64\141\x67\141\163\143\x61\x72" => "\115\x47", "\115\141\154\x61\x77\151" => "\x4d\127", "\115\141\x6c\x61\171\x73\x69\141" => "\115\x59", "\115\141\x6c\x64\151\x76\x65\163" => "\x4d\x56", "\115\x61\154\151" => "\x4d\x4c", "\x4d\x61\x6c\164\x61" => "\x4d\124", "\x4d\141\x72\x73\x68\x61\154\x6c\x20\x49\163\154\x61\156\144\163" => "\x4d\x48", "\115\141\162\164\151\x6e\151\x71\x75\x65" => "\x4d\x51", "\115\x61\x75\x72\151\164\x61\156\x69\141" => "\115\122", "\x4d\141\165\x72\x69\x74\151\x75\163" => "\x4d\125", "\115\x61\x79\x6f\x74\x74\x65" => "\x59\x54", "\x4d\145\x78\151\143\157" => "\x4d\x58", "\115\151\x63\162\x6f\x6e\145\163\x69\141" => "\106\115", "\x4d\157\154\x64\x6f\166\x61" => "\115\104", "\115\x6f\156\x61\x63\x6f" => "\x4d\x43", "\115\157\156\147\157\x6c\151\x61" => "\x4d\x4e", "\115\157\156\164\145\x6e\x65\147\162\x6f" => "\x4d\x45", "\x4d\x6f\156\164\163\x65\162\x72\141\x74" => "\x4d\123", "\115\157\162\157\x63\143\x6f" => "\x4d\x41", "\115\157\x7a\x61\x6d\142\x69\161\x75\145" => "\x4d\x5a", "\x4d\171\141\x6e\155\141\162\x20\133\x42\165\162\155\141\135" => "\115\x4d", "\116\141\155\151\x62\151\x61" => "\116\x41", "\116\x61\165\162\x75" => "\116\x52", "\x4e\x65\160\141\154" => "\x4e\x50", "\x4e\x65\x74\150\145\x72\154\141\x6e\x64\x73" => "\116\114", "\x4e\145\164\150\145\162\x6c\x61\156\x64\x73\x20\x41\156\164\x69\x6c\x6c\x65\x73" => "\101\116", "\x4e\145\x77\x20\x43\141\x6c\145\x64\157\x6e\x69\x61" => "\116\x43", "\116\x65\167\x20\x5a\145\141\154\x61\x6e\144" => "\x4e\x5a", "\x4e\151\143\141\162\141\147\x75\x61" => "\116\111", "\116\151\x67\x65\162" => "\x4e\x45", "\116\151\x67\145\162\x69\x61" => "\116\107", "\x4e\151\165\145" => "\x4e\125", "\116\157\162\146\x6f\x6c\x6b\40\111\163\x6c\141\x6e\x64" => "\116\x46", "\116\157\162\x74\x68\x65\162\156\40\x4d\x61\x72\151\x61\156\x61\40\111\163\x6c\141\156\x64\x73" => "\x4d\120", "\116\x6f\162\164\150\40\113\x6f\162\x65\x61" => "\x4b\x50", "\x4e\x6f\x72\x77\141\x79" => "\116\117", "\x4f\x6d\x61\x6e" => "\x4f\115", "\x50\x61\x6b\151\x73\164\141\156" => "\120\x4b", "\x50\x61\154\141\165" => "\120\x57", "\x50\x61\x6c\x65\163\164\151\156\x69\x61\x6e\40\x54\145\x72\162\x69\164\157\162\151\x65\x73" => "\120\x53", "\x50\x61\x6e\141\x6d\x61" => "\x50\101", "\120\141\x70\165\141\x20\116\145\x77\40\107\165\x69\156\x65\141" => "\120\x47", "\x50\x61\x72\141\147\165\141\171" => "\x50\131", "\120\x65\162\x75" => "\120\105", "\x50\x68\x69\154\151\x70\160\151\156\145\x73" => "\x50\x48", "\120\x69\x74\143\x61\x69\x72\156\40\x49\163\154\x61\x6e\144\x73" => "\x50\x4e", "\120\157\154\x61\x6e\x64" => "\120\x4c", "\x50\x6f\162\x74\x75\147\141\154" => "\x50\x54", "\x51\x61\x74\x61\x72" => "\x51\101", "\x52\xc3\251\x75\x6e\x69\x6f\156" => "\x52\x45", "\x52\157\x6d\141\x6e\151\141" => "\122\117", "\122\x75\163\163\151\141" => "\122\x55", "\x52\167\141\x6e\144\141" => "\x52\x57", "\123\x61\x69\x6e\164\40\x42\x61\x72\164\x68\xc3\xa9\154\145\x6d\x79" => "\x42\114", "\x53\141\151\156\x74\x20\x48\145\x6c\145\156\141" => "\x53\x48", "\123\x61\x69\156\164\x20\113\x69\164\164\x73\x20\x61\156\144\x20\x4e\x65\x76\x69\163" => "\x4b\116", "\x53\x61\151\156\x74\40\x4c\x75\143\x69\x61" => "\x4c\103", "\x53\x61\151\x6e\164\40\x4d\x61\x72\x74\151\156" => "\115\x46", "\x53\141\151\x6e\x74\40\120\151\x65\162\162\x65\40\141\156\144\40\x4d\x69\161\165\145\154\x6f\156" => "\120\115", "\x53\x61\x69\x6e\x74\x20\126\x69\x6e\x63\145\156\x74\40\141\x6e\x64\x20\164\150\145\40\x47\x72\x65\x6e\x61\144\151\x6e\x65\x73" => "\x56\x43", "\x53\x61\155\x6f\141" => "\127\123", "\123\x61\x6e\40\115\141\x72\x69\156\x6f" => "\123\x4d", "\123\303\xa3\x6f\40\x54\x6f\155\303\xa9\x20\x61\156\144\40\x50\x72\xc3\255\x6e\x63\x69\x70\x65" => "\123\124", "\123\x61\165\x64\151\40\x41\162\x61\142\151\x61" => "\x53\101", "\x53\x65\156\145\x67\x61\154" => "\x53\116", "\x53\145\162\142\151\x61" => "\x52\x53", "\123\145\x79\x63\x68\145\154\x6c\x65\163" => "\x53\103", "\x53\x69\145\x72\x72\141\x20\x4c\145\x6f\x6e\x65" => "\123\114", "\x53\151\x6e\x67\x61\160\157\162\145" => "\123\107", "\x53\151\156\x74\x20\x4d\141\141\x72\164\145\x6e" => "\123\130", "\x53\154\157\166\141\x6b\x69\x61" => "\x53\x4b", "\x53\154\157\166\145\156\x69\141" => "\x53\111", "\x53\157\154\157\155\157\x6e\40\111\163\154\141\x6e\144\163" => "\123\x42", "\123\x6f\155\x61\154\x69\141" => "\x53\x4f", "\x53\x6f\x75\x74\x68\x20\101\x66\x72\x69\143\x61" => "\x5a\x41", "\x53\x6f\165\x74\x68\40\x47\x65\x6f\162\147\x69\x61\40\x61\156\x64\x20\164\150\x65\40\123\x6f\x75\x74\150\x20\x53\141\x6e\144\167\151\x63\x68\x20\x49\x73\154\141\x6e\144\163" => "\107\x53", "\x53\157\165\164\x68\40\x4b\157\x72\145\x61" => "\x4b\x52", "\123\160\x61\x69\156" => "\105\x53", "\x53\162\x69\x20\114\141\x6e\153\x61" => "\x4c\113", "\123\x75\144\141\156" => "\123\x44", "\x53\165\162\x69\x6e\x61\x6d\x65" => "\x53\122", "\x53\166\141\154\x62\141\x72\144\x20\x61\x6e\144\x20\x4a\141\x6e\x20\115\x61\171\x65\x6e" => "\x53\112", "\x53\x77\x61\172\x69\x6c\141\x6e\144" => "\x53\132", "\123\167\x65\144\145\156" => "\123\105", "\x53\167\x69\x74\x7a\x65\x72\154\x61\156\x64" => "\103\x48", "\x53\x79\162\151\x61" => "\123\x59", "\124\x61\151\167\141\156\x2c\x20\120\x72\x6f\x76\x69\x6e\143\145\x20\157\x66\x20\x43\150\151\x6e\141" => "\124\x57", "\x54\x61\x6a\151\x6b\151\163\164\x61\156" => "\x54\112", "\124\141\x6e\172\141\x6e\151\x61" => "\x54\132", "\x54\x68\141\x69\x6c\141\x6e\144" => "\x54\110", "\x54\x69\x6d\157\162\55\x4c\145\163\x74\x65" => "\x54\x4c", "\x54\157\x67\x6f" => "\x54\x47", "\124\x6f\x6b\145\x6c\141\165" => "\124\113", "\x54\157\156\x67\141" => "\124\x4f", "\124\162\151\156\151\x64\x61\x64\x20\141\x6e\x64\40\x54\157\142\141\147\x6f" => "\x54\x54", "\124\165\x6e\x69\x73\151\x61" => "\x54\x4e", "\x54\165\162\x6b\145\171" => "\x54\122", "\124\x75\x72\153\x6d\x65\x6e\151\x73\x74\141\x6e" => "\124\115", "\124\x75\x72\153\x73\x20\x61\156\144\40\x43\x61\x69\x63\x6f\163\40\x49\163\x6c\x61\156\144\163" => "\x54\103", "\124\x75\x76\x61\154\x75" => "\x54\x56", "\125\147\141\156\144\x61" => "\125\107", "\125\153\162\x61\x69\x6e\145" => "\125\x41", "\125\x6e\x69\164\145\144\40\101\162\x61\x62\40\105\x6d\x69\x72\141\164\145\163" => "\101\105", "\125\156\x69\x74\x65\x64\x20\x4b\x69\x6e\x67\144\x6f\155" => "\x47\x42", "\x55\156\151\x74\x65\144\40\x53\x74\x61\x74\145\x73" => "\x55\x53", "\x55\x72\x75\x67\165\x61\171" => "\125\x59", "\125\x2e\123\56\40\117\x75\x74\x6c\171\151\x6e\x67\x20\111\x73\x6c\141\156\x64\x73" => "\125\x4d", "\125\x2e\123\56\x20\126\x69\x72\x67\x69\x6e\x20\x49\163\154\x61\156\144\x73" => "\126\111", "\125\x7a\142\145\153\x69\x73\164\141\156" => "\125\x5a", "\x56\141\156\x75\141\x74\165" => "\x56\x55", "\x56\x61\164\x69\143\141\x6e\40\x43\x69\164\171" => "\x56\x41", "\126\x65\x6e\145\x7a\165\x65\154\x61" => "\126\x45", "\126\x69\x65\x74\156\141\155" => "\126\x4e", "\x57\x61\154\154\151\x73\x20\141\x6e\x64\x20\x46\165\164\x75\x6e\x61" => "\x57\x46", "\x57\x65\163\164\x65\162\156\x20\x53\141\150\141\x72\x61" => "\105\110", "\x59\145\x6d\145\156" => "\x59\105", "\x5a\141\x6d\x62\151\141" => "\132\115", "\132\151\155\142\x61\142\x77\145" => "\x5a\127"];
        $PK = '';
        $EY[] = [];
        $c8[] = [];
        $UH = '';
        $uO = '';
        $Oh = '';
        if (!array_key_exists("\x73\150\x69\x70\160\151\x6e\147\x5f\141\x64\x64\x72\x65\x73\x73", $this->attrs)) {
            goto Sk;
        }
        $PK = $this->attrs["\x73\150\151\x70\x70\x69\156\147\x5f\x61\144\x64\162\x65\163\x73"]["\x70\x68\x6f\x6e\145"];
        $EY[] = htmlspecialchars($this->formatStreetAddress($this->attrs["\163\x68\151\x70\160\151\x6e\x67\x5f\141\144\x64\162\x65\x73\x73"]["\141\x64\144\162\145\163\163"]["\x73\164\x72\145\145\164\x5f\x61\x64\144\x72\145\x73\x73"]));
        if (!$this->attrs["\x73\150\x69\160\160\x69\156\147\137\141\x64\x64\162\145\163\163"]["\x61\x64\144\x72\x65\x73\x73"]["\162\145\x67\151\x6f\x6e"]) {
            goto YY;
        }
        $EY[] = $this->attrs["\163\x68\x69\x70\x70\151\156\147\137\x61\x64\x64\162\x65\x73\163"]["\x61\x64\x64\162\x65\163\163"]["\x72\145\x67\x69\x6f\x6e"];
        YY:
        $UH = $this->attrs["\163\150\x69\160\x70\151\156\147\137\x61\144\144\162\145\x73\x73"]["\x61\144\144\x72\145\163\163"]["\x70\157\x73\x74\x61\x6c\137\x63\157\x64\x65"];
        $uO = $a5[$this->attrs["\x73\x68\151\x70\x70\x69\x6e\147\x5f\141\x64\x64\162\145\x73\x73"]["\141\x64\x64\162\145\x73\163"]["\x63\x6f\165\x6e\164\x72\x79"]];
        $Oh = $this->attrs["\x73\150\151\x70\x70\151\156\x67\137\x61\144\x64\x72\x65\x73\x73"]["\141\x64\x64\x72\145\x73\163"]["\x6c\157\x63\x61\x6c\x69\164\171"];
        Sk:
        $ZR = '';
        if (!$this->oauthUtility->isBlank($PK)) {
            goto xH;
        }
        $PK = "\x2b\x31";
        xH:
        $this->createOrUpdateAddress($KA, $KA->getFirstname(), $KA->getLastname(), $PK, $EY, $ZR, $Oh, $uO, $UH, "\x73\x68\x69\x70\x70\x69\x6e\147");
        if (!array_key_exists("\141\x64\144\x72\145\163\x73", $this->attrs)) {
            goto rv;
        }
        $c8[] = htmlspecialchars($this->formatStreetAddress($this->attrs["\x61\x64\144\x72\145\x73\x73"]["\163\164\162\145\x65\x74\137\x61\x64\144\162\145\163\163"]));
        if (!$this->attrs["\141\144\144\x72\x65\163\x73"]["\x72\x65\147\x69\x6f\x6e"]) {
            goto VR;
        }
        $c8[] = $this->attrs["\141\x64\144\x72\145\x73\163"]["\x72\x65\147\151\157\x6e"];
        VR:
        $UH = $this->attrs["\x61\144\144\162\145\163\x73"]["\x70\157\x73\x74\141\154\x5f\143\x6f\x64\145"];
        $uO = $a5[$this->attrs["\x61\x64\144\162\x65\x73\163"]["\x63\x6f\x75\156\x74\162\x79"]];
        $Oh = $this->attrs["\141\x64\144\162\x65\x73\x73"]["\154\157\143\x61\x6c\151\x74\x79"];
        rv:
        $ZR = '';
        if (!$this->oauthUtility->isBlank($PK)) {
            goto z2;
        }
        $PK = "\53\x31";
        z2:
        $this->createOrUpdateAddress($KA, $KA->getFirstname(), $KA->getLastname(), $PK, $c8, $ZR, $Oh, $uO, $UH, "\142\151\154\x6c\x69\x6e\147");
    }
    private function formatStreetAddress($PD)
    {
        $PD = preg_replace("\x2f\xd\12\xd\12\174\xd\15\174\12\xa\57", "\54", $PD);
        $PD = preg_replace("\x2f\15\xa\x7c\15\x7c\xa\57", "\x2c", $PD);
        return $PD;
    }
    private function createOrUpdateAddress(&$KA, $Xq, $XX, $PK, $EY, $ZR, $Oh, $uO, $UH, $Fs)
    {
        if (!$this->addressValidationCheck($EY, $UH, $uO)) {
            goto cS;
        }
        $im = $this->dataAddressFactory->create();
        if ($Fs == "\x62\x69\x6c\154\x69\x6e\147" && $KA->getDefaultBilling()) {
            goto e6;
        }
        if ($Fs == "\x73\150\151\160\160\151\156\147" && $KA->getDefaultShipping()) {
            goto wV;
        }
        if (!($Fs == "\x62\157\x74\x68" && $KA->getDefaultShipping())) {
            goto ob;
        }
        $im->load($KA->getDefaultShipping());
        ob:
        goto yY;
        wV:
        $im->load($KA->getDefaultShipping());
        yY:
        goto o5;
        e6:
        $im->load($KA->getDefaultBilling());
        o5:
        $im->setFirstname($Xq);
        $im->setLastname($XX);
        $im->setTelephone($PK);
        $im->setStreet($EY);
        $im->setCity($Oh);
        $im->setCountryId($uO);
        $im->setPostcode($UH);
        $im->setRegionId($ZR);
        $Nl = $Fs == "\142\x69\x6c\x6c\x69\156\147" || $Fs == "\142\157\x74\150";
        $oR = $Fs == "\x73\150\151\x70\x70\151\x6e\147" || $Fs == "\x62\x6f\164\150";
        $im->setIsDefaultShipping($oR);
        $im->setIsDefaultBilling($Nl);
        $im->setCustomerId($KA->getId());
        try {
            $im->save();
            $KA = $im->getCustomer();
        } catch (\Exception $ib) {
            die("\101\x6e\x20\x65\x72\x72\x6f\162\40\x6f\x63\x63\x75\162\162\x65\x64\x20\x77\150\151\154\145\40\164\162\x79\151\x6e\x67\x20\x74\157\40\163\x65\164\40\x61\144\144\162\x65\163\163\72\x20{$ib->getMessage()}");
        }
        cS:
    }
    private function addressValidationCheck($EY, $UH, $uO)
    {
        return !$this->oauthUtility->isBlank($EY) && !$this->oauthUtility->isBlank($UH) && !$this->oauthUtility->isBlank($uO);
    }
    private function createAdminUser($ul, $wx, $Xq, $XX, $Gs, $G6)
    {
        $this->oauthUtility->log_debug("\x50\162\157\x63\145\x73\163\x55\163\x65\162\101\143\x74\151\x6f\156\72\40\143\x72\x65\141\164\145\x41\x64\x6d\151\x6e\x55\x73\x65\162");
        if (!($G6 === "\60" || $G6 == null)) {
            goto UP;
        }
        $G6 = "\61";
        UP:
        if (!(strlen($ul) >= 40)) {
            goto Zm;
        }
        $ul = substr($ul, 0, 40);
        Zm:
        $WK = ["\x75\x73\x65\x72\x6e\x61\155\x65" => $ul, "\146\x69\162\163\x74\156\141\x6d\x65" => $Xq, "\154\141\163\x74\156\x61\155\145" => $XX, "\x65\155\141\151\154" => $wx, "\x70\141\163\163\167\x6f\x72\x64" => $Gs, "\151\x6e\164\x65\162\146\x61\143\145\137\154\157\143\141\154\x65" => "\145\x6e\137\x55\x53", "\151\163\137\141\x63\164\x69\x76\x65" => 1];
        $DL = $G6;
        $user = $this->userFactory->create();
        $user->setData($WK);
        $user->setRoleId($G6);
        $this->oauthUtility->log_debug("\x61\x73\163\x69\147\156\151\x6e\147\40\x67\x72\x6f\165\160\x20\164\x6f\40\156\145\167\x20\x41\144\155\151\x6e\x3a\40" . $G6);
        $user->save();
        return $user;
    }
    private function processRoles($VA, $DH, $De, $Y6)
    {
        if ($DH) {
            goto Qa;
        }
        $VA = $this->clientDetails["\x64\145\146\x61\165\x6c\164\137\x67\162\x6f\165\x70"];
        goto iZ;
        Qa:
        $VA = $this->clientDetails["\x64\x65\146\141\x75\154\164\x5f\x72\157\x6c\x65"];
        iZ:
        $this->oauthUtility->log_debug("\x64\x65\x66\x61\165\x6c\x74\40\x52\157\154\145\x3a\x20" . $VA);
        if (!$De) {
            goto V4;
        }
        $De = json_decode($De);
        V4:
        $cg = null;
        if (!(empty($Y6) || empty($De))) {
            goto II;
        }
        return null;
        II:
        foreach ($De as $qf => $Fb) {
            $cb = explode("\x2c", $Y6);
            $OC = explode("\x3b", $Fb);
            foreach ($OC as $nq) {
                foreach ($cb as $uo) {
                    if (!(trim($uo, "\x5b\x22\x5d\40") == trim($nq, "\133\x22\x5d\40"))) {
                        goto Fe;
                    }
                    $cg = $qf;
                    return $cg;
                    Fe:
                    zj:
                }
                eq:
                vd:
            }
            RW:
            b2:
        }
        Nl:
        if ($DH) {
            goto vJ;
        }
        return $this->getGroupIdByName($VA);
        goto kd;
        vJ:
        return $this->getRoleIdByName($VA);
        kd:
    }
    private function getAdminUserFromAttributes($lf)
    {
        $OT = false;
        $yf = $this->adminUserModel->getResource()->getConnection();
        $fm = $yf->select()->from($this->adminUserModel->getResource()->getMainTable())->where("\145\x6d\x61\x69\154\x3d\72\x65\x6d\141\x69\154");
        $nV = ["\145\155\x61\x69\x6c" => $lf];
        $OT = $yf->fetchRow($fm, $nV);
        $OT = is_array($OT) ? $this->adminUserModel->loadByUsername($OT["\x75\163\145\162\156\141\x6d\145"]) : $OT;
        return $OT;
    }
    private function processDefaultRole($DH, $VA)
    {
        $this->oauthUtility->log_debug("\120\x72\157\x63\x65\163\163\x55\163\x65\x72\101\x63\164\151\x6f\156\72\x20\160\162\157\x63\145\163\163\x44\145\x66\141\165\154\164\122\157\x6c\145\163");
        if (!is_null($VA)) {
            goto QW;
        }
        return;
        QW:
        $cb = $this->userGroupModel->toOptionArray();
        $qg = $this->adminRoleModel->toOptionArray();
        $GX = '';
        if ($DH) {
            goto Xn;
        }
        foreach ($cb as $uo) {
            $DH = $VA == $uo["\x6c\141\x62\x65\x6c"] ? false : true;
            if ($DH) {
                goto oW;
            }
            $GX = $uo["\166\141\x6c\x75\x65"];
            goto ec;
            oW:
            ub:
        }
        ec:
        goto h2;
        Xn:
        foreach ($qg as $LT) {
            $DH = $VA == $LT["\154\x61\142\145\x6c"] ? true : false;
            if (!$DH) {
                goto N2;
            }
            $GX = $LT["\166\141\154\x75\x65"];
            goto ho;
            N2:
            Hy:
        }
        ho:
        h2:
        $this->oauthUtility->log_debug("\x50\x72\x6f\x63\x65\x73\163\x55\x73\x65\162\x41\143\x74\x69\x6f\156\72\40\160\162\157\143\145\x73\163\104\145\x66\x61\165\x6c\164\x52\157\154\145\163" . $GX);
        return $GX;
    }
    private function getRoleIdByName($ri)
    {
        $VV = $this->adminRoleModel->addFieldToFilter("\162\157\154\145\x5f\164\171\160\x65", "\x47");
        $qg = $VV->toOptionArray();
        foreach ($qg as $LT) {
            if (!($ri == $LT["\x6c\x61\142\145\x6c"])) {
                goto zP;
            }
            $this->oauthUtility->log_debug("\147\x65\x74\122\157\x6c\x65\x49\144\x42\171\116\141\155\x65\x28\51\72\40\162\145\x74\165\162\156\x69\x6e\147\40\x72\157\154\x65\111\144\72\x20" . $LT["\x76\141\x6c\x75\x65"] . "\40\146\157\x72\x20\162\157\x6c\x65\x3a\40" . $LT["\x6c\x61\142\x65\x6c"]);
            return $LT["\166\141\154\165\x65"];
            zP:
            Iz:
        }
        G4:
        $this->oauthUtility->log_debug("\147\145\164\107\162\157\165\x70\x49\144\x42\x79\x4e\x61\155\x65\x28\51\72\x20\123\x6f\x6d\145\x74\x68\x69\x6e\147\40\167\x65\x6e\x74\40\x77\162\x6f\x6e\147\56\40\104\145\146\141\165\154\x74\40\x52\157\154\x65\111\144\x20\143\141\156\x6e\x6f\x74\x20\142\x65\x20\x46\157\x75\x6e\144\72\x61\163\x73\x69\x67\156\151\x6e\x67\40\x41\x64\155\x69\156\x69\163\164\x72\x61\x74\x6f\162\40\x72\157\154\x65\x20");
        return 1;
    }
    private function getGroupIdByName($Y6)
    {
        $cb = $this->userGroupModel->toOptionArray();
        foreach ($cb as $uo) {
            if (!($Y6 == $uo["\x6c\x61\x62\145\154"])) {
                goto x4;
            }
            $this->oauthUtility->log_debug("\x67\145\x74\107\162\x6f\165\x70\x49\x64\102\x79\x4e\x61\x6d\x65\50\x29\x3a\40\162\145\164\x75\x72\x6e\151\x6e\x67\x20\x67\162\157\x75\160\111\x64\x3a\40" . $uo["\x76\x61\154\x75\145"] . "\x20\x66\x6f\162\40\162\x6f\154\x65\72\40" . $uo["\154\x61\x62\x65\x6c"]);
            return $uo["\x76\141\154\165\145"];
            x4:
            Xb:
        }
        N0:
        $this->oauthUtility->log_debug("\147\145\164\107\162\157\x75\160\111\x64\102\x79\116\141\x6d\x65\x28\x29\x3a\x20\x53\157\x6d\145\164\150\151\156\x67\x20\167\x65\x6e\x74\x20\x77\x72\157\x6e\x67\x2e\x20\x44\145\x66\x61\165\154\x74\40\x47\162\157\165\160\111\x64\40\143\x61\156\x6e\x6f\x74\40\142\145\x20\106\x6f\x75\156\144\x3a\141\163\x73\151\x6e\x69\156\x67\x20\x67\145\x6e\x65\162\x61\154\40\x72\157\154\145\40");
        return 1;
    }
    private function getCustomerFromAttributes($lf)
    {
        $this->oauthUtility->log_debug("\120\162\x6f\143\x65\x73\x73\125\x73\145\x72\101\143\x74\x69\157\x6e\x3a\40\x67\145\164\x43\165\x73\164\x6f\155\101\164\x74\162\151\x62\x75\x74\x65\x73");
        $this->customerModel->setWebsiteId($this->storeManager->getStore()->getWebsiteId());
        $KA = $this->customerModel->loadByEmail($lf);
        return !is_null($KA->getId()) ? $KA : false;
    }
    public function setAttrs($jl)
    {
        $this->attrs = $jl;
        return $this;
    }
    public function setFlattenedAttrs($jh)
    {
        $this->flattenedattrs = $jh;
        return $this;
    }
    public function setUserEmail($fi)
    {
        $this->userEmail = $fi;
        return $this;
    }
    public function updateCustomer($lf, $Xq, $XX, $ul, $pU, $ly, $GK, $tz, $eI, $UR, $Uz, $z4, $do, $DO, $tA, $Yq, $S6, $BK, $DH, $VA, $Y6)
    {
        $E1 = explode("\100", $lf);
        $this->oauthUtility->log_debug("\x70\162\157\x63\x65\x73\163\125\x73\145\x72\101\143\x74\151\x6f\156\x3a\40\165\x70\144\x61\164\x65\x43\x75\163\164\x6f\x6d\x65\x72");
        if (!($Xq === null || empty($Xq))) {
            goto Kk;
        }
        $Xq = $E1[0];
        $Xq = preg_replace("\x2f\x5b\x5e\101\55\132\x61\55\x7a\x30\55\x39\134\55\135\57", '', $Xq);
        Kk:
        if (!($XX === null || empty($XX))) {
            goto pv;
        }
        $XX = $E1[1];
        $XX = preg_replace("\x2f\x5b\136\101\55\132\x61\55\x7a\x30\x2d\x39\134\x2d\x5d\57", '', $XX);
        pv:
        $De = $this->clientDetails["\157\x61\x75\164\x68\x5f\x63\165\163\x74\x6f\155\145\162\x5f\x67\x72\157\x75\x70\137\x6d\x61\160\160\151\x6e\147"];
        $py = $this->processRoles($VA, $DH, $De, $Y6);
        $this->oauthUtility->log_debug("\123\x65\164\162\157\x6c\145" . $py);
        if (!(empty($De) || is_null($Y6) || is_null($py))) {
            goto DF;
        }
        $this->oauthUtility->log_debug("\120\162\x6f\143\145\163\163\125\163\x65\x72\101\x63\x74\x69\157\156\x3a\x20\151\156\163\x69\144\x65\40\145\155\160\x74\x79\x20\162\157\x6c\x65\x6d\141\160\160\151\x67");
        $Mt = $this->clientDetails["\144\145\146\141\x75\x6c\x74\x5f\162\157\x6c\145"];
        $j2 = $this->clientDetails["\144\145\x66\141\x75\154\164\x5f\147\x72\x6f\x75\x70"];
        $py = $DH ? $this->getRoleIdByName($Mt) : $this->getGroupIdByName($j2);
        DF:
        $cO = $this->storeManager->getStore();
        $j1 = $this->storeManager->getStore()->getWebsiteId();
        $KA = $this->customerFactory->create();
        $KA->setWebsiteId($j1)->loadByEmail($lf);
        if (!(!$this->oauthUtility->isBlank($py) && isset($this->updateFrontendRole) && strcasecmp($this->updateFrontendRole, "\143\150\x65\143\x6b\145\144") === 0)) {
            goto eO;
        }
        $KA->setWebsiteId($j1)->setStore($cO)->setGroupId($py)->setForceConfirmed(true)->save();
        eO:
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "\x63\150\145\143\153\145\x64") === 0)) {
            goto Bp;
        }
        $KA->setWebsiteId($j1)->setStore($cO)->setFirstname($Xq)->setLastname($XX)->setEmail($lf)->setForceConfirmed(true)->save();
        if (!($tz || $pU || $UR || $ly || $Uz || $GK || $eI)) {
            goto aV;
        }
        $Vw = null;
        $MB = $KA->getDefaultBilling();
        if (!isset($MB)) {
            goto Ye;
        }
        $Vw = $this->_addressFactory->create()->load($MB);
        Ye:
        if (is_null($MB)) {
            goto te;
        }
        $Vw->setFirstname($Xq);
        $Vw->setLastname($XX);
        $this->oauthUtility->log_debug("\x20\145\x78\x69\164\151\156\x67\x20\165\x70\x64\x61\x74\x65\125\x73\145\x72\101\164\x74\x72\x69\142\x75\x74\x65\163\72\40\160\150\157\156\x65");
        if (!isset($tz)) {
            goto iT;
        }
        $Vw->setTelephone($tz);
        iT:
        if (!isset($pU)) {
            goto Lt;
        }
        $Vw->setStreet($pU);
        Lt:
        if (!isset($UR)) {
            goto zK;
        }
        $Vw->setCity($UR);
        zK:
        if (!isset($ly)) {
            goto pa;
        }
        $pz = $this->collectionFactory->create()->addRegionNameFilter($ly)->getFirstItem()->toArray();
        if (!isset($pz["\x72\x65\x67\x69\x6f\x6e\x5f\x69\144"])) {
            goto ZR;
        }
        $Vw->setRegionId($pz["\162\145\147\x69\157\156\x5f\x69\144"]);
        ZR:
        pa:
        if (!isset($Uz)) {
            goto v8;
        }
        $Vw->setCountryId($Uz);
        v8:
        if (!isset($eI)) {
            goto cY;
        }
        $Vw->setCompany($eI);
        cY:
        if (!isset($GK)) {
            goto ba;
        }
        $Vw->setPostcode($GK);
        ba:
        $Vw->save();
        goto KO;
        te:
        $im = $this->dataAddressFactory->create();
        $im->setFirstname($Xq);
        $im->setLastname($XX);
        if (!isset($tz)) {
            goto XA;
        }
        $im->setTelephone($tz);
        XA:
        if (!isset($pU)) {
            goto Ma;
        }
        $im->setStreet($pU);
        Ma:
        if (!isset($UR)) {
            goto kj;
        }
        $im->setCity($UR);
        kj:
        if (!isset($Uz)) {
            goto O9;
        }
        $im->setCountryId($Uz);
        O9:
        if (!isset($eI)) {
            goto VP;
        }
        $im->setCompany($eI);
        VP:
        if (!isset($ly)) {
            goto tD;
        }
        $pz = $this->collectionFactory->create()->addRegionNameFilter($ly)->getFirstItem()->toArray();
        if (!isset($pz["\x72\x65\x67\x69\157\x6e\x5f\151\144"])) {
            goto OA;
        }
        $im->setRegionId($pz["\162\145\147\151\x6f\156\x5f\x69\144"]);
        OA:
        tD:
        if (!isset($GK)) {
            goto kU;
        }
        $im->setPostcode($GK);
        kU:
        $im->setIsDefaultBilling("\x31");
        $im->setSaveInAddressBook("\61");
        $im->setCustomerId($KA->getId());
        try {
            $im->save();
            $KA = $im->getCustomer();
        } catch (\Exception $ib) {
            $this->oauthUtility->log_debug("\x41\x6e\x20\145\162\162\157\162\40\x6f\143\x63\165\x72\x72\x65\x64\x20\167\x68\151\x6c\x65\40\164\x72\171\151\156\147\x20\x74\x6f\x20\x73\145\x74\40\141\x64\144\162\x65\x73\x73\72\x20{$ib->getMessage()}");
        }
        KO:
        aV:
        if (!($tA || $z4 || $S6 || $do || $BK || $DO || $Yq)) {
            goto o3;
        }
        $JZ = $KA->getDefaultShipping();
        $Ix = $this->_addressFactory->create()->load($JZ);
        if (is_null($JZ)) {
            goto q9;
        }
        $Ix->setFirstname($Xq);
        $Ix->setLastname($XX);
        $this->oauthUtility->log_debug("\x20\x65\x78\x69\x74\x69\156\147\40\165\160\x64\141\x74\145\x55\x73\x65\x72\101\164\x74\x72\x69\x62\165\164\145\163\72\x20\x70\150\157\x6e\x65");
        if (!isset($tA)) {
            goto E5;
        }
        $Ix->setTelephone($tA);
        E5:
        if (!isset($z4)) {
            goto kN;
        }
        $Ix->setStreet($z4);
        kN:
        if (!isset($S6)) {
            goto pZ;
        }
        $Ix->setCity($S6);
        pZ:
        if (!isset($do)) {
            goto zl;
        }
        $pz = $this->collectionFactory->create()->addRegionNameFilter($do)->getFirstItem()->toArray();
        if (!isset($pz["\162\x65\147\x69\x6f\x6e\x5f\151\x64"])) {
            goto la;
        }
        $Ix->setRegionId($pz["\162\145\147\x69\x6f\x6e\137\151\x64"]);
        la:
        zl:
        if (!isset($BK)) {
            goto Gg;
        }
        $Ix->setCountryId($BK);
        Gg:
        if (!isset($Yq)) {
            goto NS;
        }
        $Ix->setCompany($Yq);
        NS:
        if (!isset($DO)) {
            goto I6;
        }
        $Ix->setPostcode($DO);
        I6:
        $Ix->save();
        goto hd;
        q9:
        $im = $this->dataAddressFactory->create();
        $im->setFirstname($Xq);
        $im->setLastname($XX);
        if (!isset($tA)) {
            goto zw;
        }
        $im->setTelephone($tA);
        zw:
        if (!isset($z4)) {
            goto Bc;
        }
        $im->setStreet($z4);
        Bc:
        if (!isset($S6)) {
            goto uF;
        }
        $im->setCity($S6);
        uF:
        if (!isset($do)) {
            goto h_;
        }
        $pz = $this->collectionFactory->create()->addRegionNameFilter($do)->getFirstItem()->toArray();
        if (!isset($pz["\x72\145\x67\x69\157\x6e\137\151\144"])) {
            goto B9;
        }
        $im->setRegionId($pz["\x72\x65\x67\x69\157\x6e\x5f\x69\x64"]);
        B9:
        h_:
        if (!isset($BK)) {
            goto v0;
        }
        $im->setCountryId($BK);
        v0:
        if (!isset($Yq)) {
            goto Eg;
        }
        $im->setCompany($Yq);
        Eg:
        if (!isset($DO)) {
            goto gZ;
        }
        $im->setPostcode($DO);
        gZ:
        $im->setIsDefaultShipping("\61");
        $im->setSaveInAddressBook("\x31");
        $im->setCustomerId($KA->getId());
        try {
            $im->save();
            $KA = $im->getCustomer();
        } catch (\Exception $ib) {
            $this->oauthUtility->log_debug("\x41\x6e\x20\145\x72\162\x6f\x72\x20\x6f\x63\143\165\x72\x72\x65\x64\40\167\x68\x69\x6c\x65\x20\x74\x72\171\151\156\x67\40\x74\157\40\163\x65\164\x20\x61\144\x64\x72\x65\163\163\72\40{$ib->getMessage()}");
        }
        hd:
        o3:
        Bp:
        return $KA;
    }
    public function generatePassword($kd = 16)
    {
        $ye = \Magento\Framework\Math\Random::CHARS_LOWERS . \Magento\Framework\Math\Random::CHARS_UPPERS . \Magento\Framework\Math\Random::CHARS_DIGITS . "\x23\44\45\46\52\56\x3b\72\50\51\x40\41";
        $mU = $this->randomUtility->getRandomString($kd, $ye);
        return $mU;
    }
    public function showerrorMessage($DY)
    {
        $this->oauthUtility->log_debug("\120\162\157\143\145\x73\x73\40\x55\163\145\x72\x20\x41\x63\164\x69\x6f\x6e\x3a\x20\122\x65\144\x69\162\x65\143\164\x69\156\x67\x20\x74\x6f\40\145\162\x72\x6f\x72\x20\160\141\147\x65\72\40\145\x72\162\157\x72\x20\x6d\x65\x73\163\x61\x67\x65\x20\72\40" . $DY);
        $this->messageManager->addErrorMessage($DY);
        $Fm = $this->oauthUtility->getStoreConfig(OAuthConstants::AUTO_REDIRECT);
        $Li = $this->oauthUtility->getStoreConfig(OAuthConstants::ALL_PAGE_AUTO_REDIRECT);
        if ($Li) {
            goto LI;
        }
        if ($Fm) {
            goto vA;
        }
        $mn = $this->oauthUtility->getBaseUrl() . "\x63\165\x73\x74\157\x6d\x65\162\57\x61\x63\x63\x6f\x75\x6e\164\x2f\154\x6f\147\x69\156";
        goto yp;
        LI:
        print_r($DY);
        exit;
        goto yp;
        vA:
        $mn = $this->oauthUtility->getSessionData("\x65\x72\x72\x6f\x72\137\162\x65\x64\151\162\x65\x63\164\137\165\x72\x6c");
        yp:
        $this->getResponse()->setRedirect($mn)->sendResponse();
        exit;
    }
    public function updateCustom($user, $lf)
    {
        $Xo = $this->oauthUtility->getSessionData(OAuthConstants::APP_NAME);
        $yx = $this->oauthUtility->getOAuthClientApps();
        $jq = null;
        foreach ($yx as $Rm) {
            if (!($Rm->getData()["\141\x70\160\x5f\156\141\155\145"] === $Xo)) {
                goto d1;
            }
            $jq = $Rm->getData();
            d1:
            wR:
        }
        Cv:
        if (!(isset($this->updateAttribute) && strcasecmp($this->updateAttribute, "\143\x68\145\x63\153\x65\144") === 0)) {
            goto nM;
        }
        $this->oauthUtility->log_debug("\40\x49\x6e\40\165\x70\x64\x61\164\145\103\x75\163\164\157\155\101\164\164\x72\x69\142\x75\x74\145\40\x66\165\x6e\x63\164\151\x6f\156");
        $uS = $user->getId();
        $this->oauthUtility->log_debug("\x75\163\145\x72\40\151\x64" . $uS);
        $DH = is_a($user, "\x5c\x4d\141\147\145\x6e\164\x6f\134\x55\x73\x65\x72\134\x4d\x6f\144\145\154\134\x55\x73\x65\162") ? TRUE : FALSE;
        $yI = array_Keys((array) $this->attrs);
        $this->oauthUtility->log_debug("\141\x74\x74\162\151\142\165\x74\145\163\x20\x6b\145\x79\163\40", $yI);
        $Tz = json_decode((string) $jq["\143\x75\163\164\157\155\137\141\x74\x74\162\151\142\x75\x74\x65\163"]);
        $Wz = array_values((array) $Tz);
        foreach ((array) $Tz as $ls => $wk) {
            $M_ = $this->eavConfig->getEntityType("\143\x75\163\164\157\155\x65\x72")->getId();
            $Q5 = $this->eavConfig->getAttribute($M_, $ls);
            if ($Q5 && $Q5->getId()) {
                goto Rx;
            }
            $this->oauthUtility->log_debug("{$ls}\40\x63\x75\x73\164\x6f\x6d\x20\x61\x74\164\162\x69\x62\x75\164\145\x20\156\x6f\164\x20\160\162\x65\x73\x65\156\164");
            Rx:
            eX:
        }
        AZ:
        $AF = array_intersect($yI, $Wz);
        $this->oauthUtility->log_debug("\40\x55\160\x64\141\x74\145\40\165\163\x65\162\47\x73\40\x63\165\x73\x74\157\x6d\40\x61\x74\x74\x72\151\142\x75\x74\x65\x73");
        foreach ($AF as $QI) {
            $CI = array_search($QI, (array) $Tz);
            $sK = $this->attrs[$QI];
            $this->oauthUtility->log_debug("\143\x75\x73\164\157\155\x20\141\x74\x74\x72\x69\142\x75\164\x65\40\75\40{$CI}\40\x61\x6e\144\x20\x63\165\163\x74\157\x6d\x20\x76\x61\x6c\x75\145\40\75\x20{$sK}\40");
            $KA = $this->customerFactory->create();
            $j1 = $this->storeManager->getWebsite()->getWebsiteId();
            $KA->setWebsiteId($j1);
            $KA->loadByEmail($lf);
            $KA->setData($CI, $sK);
            $KA->save();
            B3:
        }
        eC:
        nM:
        return $user;
    }
}

Function Calls

None

Variables

None

Stats

MD5 2c41a60fd44e5ffecce07d607bcbfa46
Eval Count 0
Decode Time 140 ms