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 moApiIntegrator\API; use moApiIntegrator\Wrapper\pluginConstants; ..

Decoded Output download

<?php 
 
 
namespace moApiIntegrator\API; 
 
use moApiIntegrator\Wrapper\pluginConstants; 
use moApiIntegrator\Wrapper\sharepointWrapper; 
use moApiIntegrator\Wrapper\wpWrapper; 
use PO; 
class azure 
{ 
    private $config; 
    private $handler; 
    private static $obj; 
    private $scope = "https://graph.microsoft.com/.default"; 
    private $access_token; 
    private $opt = array(); 
    private $args = array(); 
    private $endpoints = array(); 
    private function __construct($Oi, $L2) 
    { 
        $this->config = $Oi; 
        $this->opt = $L2; 
        $this->handler = Authorization::getController(); 
    } 
    public static function getClient($Oi, $L2 = array()) 
    { 
        self::$obj = new azure($Oi, $L2); 
        self::$obj->setEndpoints(); 
        return self::$obj; 
    } 
    private function setEndpoints() 
    { 
        $this->endpoints["authorize"] = "https://login.microsoftonline.com/" . $this->config["tenant_id"] . "/oauth2/v2.0/authorize"; 
        $this->endpoints["token"] = "https://login.microsoftonline.com/" . $this->config["tenant_id"] . "/oauth2/v2.0/token"; 
        $this->endpoints["sharepoint_token"] = "https://accounts.accesscontrol.windows.net/" . $this->config["tenant_id"] . "/tokens/OAuth/2"; 
        $this->endpoints["users"] = "https://graph.microsoft.com/beta/users/"; 
        $this->endpoints["delta_user"] = "https://graph.microsoft.com/beta/users/delta?$deltaToken=latest"; 
        if (!isset($this->config["admin_url"])) { 
            goto ED; 
        } 
        $this->endpoints["sharepoint_user"] = "https://" . wpWrapper::mo_api_sps_get_domain_from_url($this->config["admin_url"]) . "/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v="; 
        ED: 
        $this->endpoints["groups"] = "https://graph.microsoft.com/beta/groups/"; 
        if (isset($this->config["spo_id"]) && !empty($this->config["spo_id"])) { 
            goto Q3; 
        } 
        $zg = wpWrapper::mo_api_get_option(pluginConstants::provisioning_config) ?? ''; 
        $du = $zg["mo_api_user_query_params"] ?? ''; 
        $this->endpoints["servicePrincipal"] = $this->endpoints["users"] . "?$select=id&$count=true" . (empty($du) ? '' : $du); 
        goto Sj; 
        Q3: 
        $this->endpoints["servicePrincipal"] = "https://graph.microsoft.com/beta/servicePrincipals/" . $this->config["spo_id"] . "/appRoleAssignedTo?$select=principalId,principalType"; 
        Sj: 
    } 
    public function setScope($pV) 
    { 
        $this->scope = $pV; 
    } 
    public function mo_get_all_groups() 
    { 
        $Nk = $this->endpoints["groups"] . "?$select=id,displayName"; 
        $this->access_token = $this->mo_api_get_new_access_token(); 
        $Qv = ["Authorization" => "Bearer " . $this->access_token]; 
        return $this->handler->mo_azos_get_request($Nk, $this->args); 
    } 
    public function mo_api_fetch_latest_delta() 
    { 
        return $this->handler->mo_azos_get_request($this->endpoints["delta_user"], $this->args); 
    } 
    public function mo_api_fetch_users_using_access_token($uT = null) 
    { 
        if (isset($this->endpoints["servicePrincipal"])) { 
            goto T6; 
        } 
        wp_die("Error occurred: servicePrincipal ID is not provided"); 
        return null; 
        T6: 
        $this->args["ConsistencyLevel"] = "eventual"; 
        $oA = $this->endpoints["servicePrincipal"]; 
        if ($uT) { 
            goto T_; 
        } 
        if (!isset($this->opt["request_rate"])) { 
            goto Ue; 
        } 
        $oA .= "&$top=" . $this->opt["request_rate"]; 
        Ue: 
        goto bH; 
        T_: 
        $oA .= "&$top=" . $uT; 
        bH: 
        return $this->handler->mo_azos_get_request($oA, $this->args); 
    } 
    public function create_user_in_app($mh, $dm, $VR = "false") 
    { 
        error_log("creating..."); 
        $this->access_token = sanitize_text_field($this->handler->mo_azos_get_access_token_using_client_credentials($this->endpoints, $this->config, $this->scope)); 
        if (!$this->access_token) { 
            goto YJ; 
        } 
        return $this->create_user_using_access_token($mh, $dm, $VR); 
        goto r8; 
        YJ: 
        wp_die(esc_html("Access token is missing from the response. Please try again later.")); 
        r8: 
    } 
    private function create_user_using_access_token($mh, $dm, $VR = "false") 
    { 
        $Kq = get_user_meta($mh, "mo_api_azure_id", true); 
        if (empty($Kq)) { 
            goto ex; 
        } 
        return $this->update_user_in_app($mh); 
        ex: 
        $P3 = $dm["user_login"]; 
        $P3 = str_replace(" ", '', $P3); 
        $lH = $dm["user_email"]; 
        if (!empty($lH)) { 
            goto bJ; 
        } 
        $lH = $P3 . "@" . $this->config["tenant_name"]; 
        bJ: 
        if (!is_email($P3)) { 
            goto Fo; 
        } 
        $lH = $dm["user_login"]; 
        $P3 = explode("@", $P3)[0]; 
        Fo: 
        $ce = "{
\xa             "passwordProfile" : {
\xa             "password": "" . $dm["user_pass"] . "",
             "forceChangePasswordNextSignIn": " . $VR . "\xd
             },
             "accountEnabled":true,\xd\xa             "mailNickname": "" . $P3 . "",
\xa            "passwordPolicies": "DisablePasswordExpiration"
        }"; 
        $ce = json_decode($ce, true); 
        $ce["mail"] = $lH; 
        $ce["displayName"] = $P3; 
        if (!(isset($dm["first_name"]) && !empty($dm["first_name"]))) { 
            goto y_; 
        } 
        $ce["givenName"] = $dm["first_name"]; 
        y_: 
        if (!(isset($dm["last_name"]) && !empty($dm["last_name"]))) { 
            goto g2; 
        } 
        $ce["surname"] = $dm["last_name"]; 
        g2: 
        $ce["userPrincipalName"] = $P3 . "@" . $this->config["tenant_name"]; 
        $Qv = ["Authorization" => "Bearer " . $this->access_token, "Content-Type" => "application/json"]; 
        $KU = json_encode($ce); 
        $Vx = $this->handler->mo_azos_post_request($this->endpoints["users"], $Qv, $KU); 
        if (!isset($Vx["error"])) { 
            goto b3; 
        } 
        return $Vx; 
        b3: 
        if (!(is_array($Vx) && array_key_exists("id", $Vx))) { 
            goto R7; 
        } 
        update_user_meta($mh, "mo_api_azure_id", $Vx["id"]); 
        return true; 
        R7: 
    } 
    public function update_user_in_app($mh) 
    { 
        error_log("updating..."); 
        $this->access_token = sanitize_text_field($this->handler->mo_azos_get_access_token_using_client_credentials($this->endpoints, $this->config, $this->scope)); 
        if (!$this->access_token) { 
            goto kR; 
        } 
        return $this->update_user_using_access_token($mh); 
        goto cz; 
        kR: 
        wp_die(esc_html("Access token is missing from the response. Please try again later.")); 
        cz: 
    } 
    private function update_user_using_access_token($mh) 
    { 
        $dm = get_user_by("ID", $mh); 
        $dm = $dm->to_array(); 
        $ce = array(); 
        $ce["mail"] = $dm["user_email"]; 
        $ce["displayName"] = $dm["display_name"] ?? $dm["user_email"]; 
        $oF = get_user_meta($dm["ID"], "first_name", true); 
        if (empty($oF)) { 
            goto bv; 
        } 
        $ce["givenName"] = $oF; 
        bv: 
        $cu = get_user_meta($dm["ID"], "last_name", true); 
        if (empty($cu)) { 
            goto qa; 
        } 
        $ce["surname"] = $cu; 
        qa: 
        $Kq = get_user_meta($dm["ID"], "mo_api_azure_id", true); 
        $Qv = ["Authorization" => "Bearer " . $this->access_token, "Content-Type" => "application/json"]; 
        $KU = json_encode($ce); 
        $Vx = $this->handler->mo_azos_patch_request($this->endpoints["users"] . $Kq, $Qv, $KU); 
        if (!isset($Vx["error"])) { 
            goto z0; 
        } 
        return $Vx; 
        z0: 
        return true; 
    } 
    public function mo_azos_get_group_members($XX, $uT = null) 
    { 
        $yK = "https://graph.microsoft.com/beta/groups/" . $XX . "/members?$select=id"; 
        if (!isset($this->opt["request_rate"])) { 
            goto jX; 
        } 
        if ($uT) { 
            goto NJ; 
        } 
        if (!isset($this->opt["request_rate"])) { 
            goto e6; 
        } 
        $yK = $yK . "&$top=" . $this->opt["request_rate"]; 
        e6: 
        goto gU; 
        NJ: 
        $yK = $yK . "&$top=" . $uT; 
        gU: 
        jX: 
        return $this->handler->mo_azos_get_request($yK, $this->args); 
    } 
    public function mo_azos_get_specific_user_detail($nE) 
    { 
        $Qt = $this->endpoints["users"] . $nE; 
        $qj = wpWrapper::mo_api_get_option(pluginConstants::isEnable_fetch_custom_security_attr); 
        $u8 = wpWrapper::mo_api_get_option(pluginConstants::isEnable_fetch_manager_details); 
        $r3 = wpWrapper::mo_api_get_option(pluginConstants::isEnable_sharepoint_attr_mapping); 
        $this->access_token = $this->mo_api_get_new_access_token(); 
        $this->args = ["Authorization" => "Bearer " . $this->access_token]; 
        $vd = $this->handler->mo_azos_get_request($Qt, $this->args); 
        if (empty($qj)) { 
            goto K2; 
        } 
        $gm = $this->handler->mo_azos_get_request($Qt . "?$select=customSecurityAttributes", $this->args); 
        if (!(!is_null($gm) && isset($gm["customSecurityAttributes"]))) { 
            goto Bz; 
        } 
        $gm = $gm["customSecurityAttributes"]; 
        $dO = []; 
        foreach ($gm as $U9 => $gt) { 
            foreach ($gt as $j3 => $zx) { 
                if (str_contains($j3, "@odata.type")) { 
                    goto eM; 
                } 
                $dO[$U9 . "__" . $j3] = $zx; 
                eM: 
                t5: 
            } 
            Ra: 
            IJ: 
        } 
        O_: 
        $vd = array_merge($vd, $dO); 
        Bz: 
        K2: 
        if (!(!is_array($vd) || count($vd) <= 0)) { 
            goto nK; 
        } 
        nK: 
        if (empty($u8)) { 
            goto gg; 
        } 
        $vd["manager"] = $this->mo_azos_get_manager_data($nE); 
        gg: 
        if (!($r3 == "on" && isset($vd["userPrincipalName"]))) { 
            goto RV; 
        } 
        $jp = wpWrapper::mo_api_get_option(pluginConstants::sharepoint_config); 
        $a2 = azure::getClient($jp); 
        $HC = $a2->mo_azos_get_sharepoint_specific_user_details($vd["userPrincipalName"]); 
        if (!(!empty($HC) && is_array($HC))) { 
            goto wR; 
        } 
        $HC = sharepointWrapper::mo_azos_array_get_sharepoint_user_profile($HC); 
        $vd = array_merge($vd, $HC); 
        wR: 
        RV: 
        return $vd; 
    } 
    public function mo_azos_get_sharepoint_specific_user_details($nE) 
    { 
        $Qt = $this->endpoints["sharepoint_user"] . "'i:0%23.f|membership|" . $nE . "'"; 
        $this->access_token = $this->mo_api_sps_get_new_access_token(); 
        $cp = ["Authorization" => "Bearer " . $this->access_token, "Accept" => "application/json; odata=verbose"]; 
        $user = $this->handler->mo_azos_get_request($Qt, $cp); 
        return $user; 
    } 
    public function mo_azos_get_manager_data($nE) 
    { 
        $tu = $this->endpoints["users"] . $nE . "/manager"; 
        $tx = $this->handler->mo_azos_get_request($tu, $this->args); 
        if (!(!is_array($tx) || count($tx) <= 0 || isset($tx["error"]))) { 
            goto dn; 
        } 
        dn: 
        return $tx; 
    } 
    public function mo_api_get_next_page($Z3) 
    { 
        return $this->handler->mo_azos_get_request($Z3, $this->args); 
    } 
    public function mo_api_get_next_delta_page($sW) 
    { 
        return $this->handler->mo_azos_get_request($sW, $this->args); 
    } 
    public function mo_api_get_new_access_token() 
    { 
        $j_ = $this->handler->mo_azos_get_access_token_using_client_credentials($this->endpoints, $this->config, $this->scope); 
        if (isset($j_["error"])) { 
            goto cy; 
        } 
        $this->access_token = $j_; 
        $this->args = ["Authorization" => "Bearer " . $j_]; 
        return $j_; 
        cy: 
        return false; 
    } 
    public function mo_api_sps_get_new_access_token() 
    { 
        $j_ = $this->handler->mo_sps_get_access_token_using_client_credentials($this->endpoints, $this->config); 
        if (isset($j_["error"])) { 
            goto w6; 
        } 
        $this->access_token = $j_; 
        $this->args = ["Authorization" => "Bearer " . $j_]; 
        return $j_; 
        w6: 
        return false; 
    } 
    public function sync_test_user($nE) 
    { 
        $qj = wpWrapper::mo_api_get_option(pluginConstants::isEnable_fetch_custom_security_attr); 
        $Is = wpWrapper::mo_api_get_option(pluginConstants::sharepoint_testConfigAttributeNames); 
        $u8 = wpWrapper::mo_api_get_option(pluginConstants::isEnable_fetch_manager_details); 
        $r3 = wpWrapper::mo_api_get_option(pluginConstants::isEnable_sharepoint_attr_mapping); 
        $this->access_token = $this->mo_api_get_new_access_token(); 
        $cp = ["Authorization" => "Bearer " . $this->access_token]; 
        $user = $this->handler->mo_azos_get_request($this->endpoints["users"] . $nE, $cp); 
        if (empty($qj)) { 
            goto q0; 
        } 
        $gm = $this->handler->mo_azos_get_request($this->endpoints["users"] . $nE . "?$select=customSecurityAttributes", $this->args); 
        if (!(!is_null($gm) && isset($gm["customSecurityAttributes"]))) { 
            goto fy; 
        } 
        $gm = $gm["customSecurityAttributes"]; 
        $dO = []; 
        foreach ($gm as $U9 => $gt) { 
            foreach ($gt as $j3 => $zx) { 
                if (str_contains($j3, "@odata.type")) { 
                    goto Dc; 
                } 
                $dO[$U9 . "__" . $j3] = $zx; 
                Dc: 
                FP: 
            } 
            Wu: 
            Bb: 
        } 
        fT: 
        $user = array_merge($user, $dO); 
        fy: 
        q0: 
        if (!($r3 == "on" && isset($user["userPrincipalName"]))) { 
            goto FJ; 
        } 
        $jp = wpWrapper::mo_api_get_option(pluginConstants::sharepoint_config); 
        $a2 = azure::getClient($jp); 
        $HC = $a2->mo_azos_get_sharepoint_specific_user_details($user["userPrincipalName"]); 
        if (!(!empty($HC) && is_array($HC))) { 
            goto YY; 
        } 
        $HC = sharepointWrapper::mo_azos_array_get_sharepoint_user_profile($HC); 
        $user = array_merge($user, $HC); 
        YY: 
        FJ: 
        if (!(!is_array($user) || count($user) <= 0)) { 
            goto Lk; 
        } 
        wp_die(esc_html("Unknown error occurred. Please try again later.")); 
        Lk: 
        if (empty($u8)) { 
            goto SZ; 
        } 
        $user["manager"] = $this->mo_azos_get_manager_data($nE); 
        SZ: 
        if (empty($user)) { 
            goto i3; 
        } 
        $ez = wpWrapper::getWrapper(); 
        $IL = $ez->mo_azos_array_flatten_attributes($user); 
        $rY = wpWrapper::mo_api_get_option(pluginConstants::basic_map); 
        $ik = wpWrapper::mo_api_get_option(pluginConstants::advanced_map); 
        $Is = wpWrapper::mo_api_get_option(pluginConstants::sharepoint_advanced_map); 
        $pp = wpWrapper::mo_api_get_option(pluginConstants::profile_pic_map); 
        $qN = maybe_unserialize(get_option("mo_api_grp_role_mapping")); 
        $SQ = maybe_unserialize(get_option("mo_api_user_taxonomy_mapping")); 
        $Kr = maybe_unserialize(get_option("mo_api_user_fields_mapping")); 
        $g1 = ["basic_mapping" => $rY, "adv_mapping" => $ik, "sharepoint_mapping" => $Is, "profile_mapping" => $pp, "bp_field_mapping" => $Kr, "taxanomy_mapping" => $SQ, "role_mapping" => $qN]; 
        $DM = $ez->mo_api_do_basic_mapping($IL, $g1, $user); 
        return $DM; 
        i3: 
        return false; 
    } 
    public function get_profile_pic($rv) 
    { 
        $this->access_token = $this->mo_api_get_new_access_token(); 
        $cp = ["Authorization" => "Bearer " . $this->access_token]; 
        $Vx = $this->handler->mo_azos_get_request_for_media($this->endpoints["users"] . $rv . "/photo/$value", $cp); 
        return $Vx; 
    } 
    public function check_if_user_is_group_member($n3) 
    { 
        $this->access_token = $this->mo_api_get_new_access_token(); 
        $cp = ["Authorization" => "Bearer " . $this->access_token]; 
        $Vx = $this->handler->mo_azos_get_request($this->endpoints["users"] . $n3 . "/memberOf/microsoft.graph.group?$select=id", $cp); 
        return $Vx; 
    } 
    public function check_if_user_present_in_ad($P3, $nE, $h_) 
    { 
        $this->access_token = $this->mo_api_get_new_access_token(); 
        $cp = ["Authorization" => "Bearer " . $this->access_token]; 
        if (!empty($nE)) { 
            goto sT; 
        } 
        $nE = $P3; 
        sT: 
        $Vx = $this->handler->mo_azos_get_request($this->endpoints["users"] . "?select=id&$filter=userPrincipalName eq \'" . $nE . "\' or mail eq \'" . $nE . "\'", $cp); 
        $N2 = isset($Vx["value"]) && !empty($Vx["value"]) && sizeof($Vx["value"][0]) != 0; 
        if ($N2) { 
            goto I_; 
        } 
        $Vx = $this->handler->mo_azos_get_request($this->endpoints["users"] . "?$select=id&$filter=identities/any(c:c/issuerAssignedId eq \'" . $nE . "\' and c/issuer eq \'" . $h_ . "\')", $cp); 
        $N2 = isset($Vx["value"]) && !empty($Vx["value"]) && sizeof($Vx["value"][0]) != 0; 
        I_: 
        $zg = wpWrapper::mo_api_get_option(pluginConstants::provisioning_config); 
        if (!isset($zg["mo_api_group_id_to_sync"])) { 
            goto WV; 
        } 
        $Ws = explode("|", $zg["mo_api_group_id_to_sync"]); 
        if (!$N2) { 
            goto JP; 
        } 
        $bW = $this->check_if_user_is_group_member(urlencode($nE)); 
        if (!isset($bW["value"])) { 
            goto Yr; 
        } 
        $bW = $bW["value"]; 
        $bW = array_map(function ($kH) { 
            return $kH["id"]; 
        }, $bW); 
        $N2 = false; 
        foreach ($Ws as $zE) { 
            if (!in_array($zE, $bW)) { 
                goto YS; 
            } 
            $N2 = true; 
            goto GC; 
            YS: 
            wV: 
        } 
        GC: 
        Yr: 
        JP: 
        WV: 
        if (!$N2) { 
            goto kO; 
        } 
        return true; 
        kO: 
        return false; 
    } 
    public function setMaxResults($Wq) 
    { 
        $this->opt["request_rate"] = $Wq; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace moApiIntegrator\API;

use moApiIntegrator\Wrapper\pluginConstants;
use moApiIntegrator\Wrapper\sharepointWrapper;
use moApiIntegrator\Wrapper\wpWrapper;
use PO;
class azure
{
    private $config;
    private $handler;
    private static $obj;
    private $scope = "\x68\x74\164\x70\163\72\57\x2f\147\162\x61\x70\x68\x2e\155\x69\x63\162\157\163\157\146\164\x2e\143\x6f\x6d\x2f\56\144\145\146\141\x75\x6c\x74";
    private $access_token;
    private $opt = array();
    private $args = array();
    private $endpoints = array();
    private function __construct($Oi, $L2)
    {
        $this->config = $Oi;
        $this->opt = $L2;
        $this->handler = Authorization::getController();
    }
    public static function getClient($Oi, $L2 = array())
    {
        self::$obj = new azure($Oi, $L2);
        self::$obj->setEndpoints();
        return self::$obj;
    }
    private function setEndpoints()
    {
        $this->endpoints["\x61\x75\x74\150\157\x72\x69\172\145"] = "\150\x74\x74\160\x73\72\57\x2f\154\x6f\147\x69\156\x2e\155\151\x63\162\157\163\157\x66\164\x6f\156\x6c\151\156\145\56\143\157\155\57" . $this->config["\164\145\x6e\x61\156\x74\137\x69\x64"] . "\x2f\x6f\x61\165\164\x68\x32\x2f\166\x32\56\x30\x2f\141\x75\x74\150\x6f\x72\x69\x7a\145";
        $this->endpoints["\x74\x6f\x6b\145\156"] = "\x68\164\164\160\163\72\x2f\x2f\154\x6f\x67\x69\x6e\56\155\x69\143\162\x6f\x73\157\146\x74\157\x6e\x6c\151\x6e\x65\x2e\143\157\x6d\x2f" . $this->config["\x74\x65\x6e\141\x6e\164\137\151\x64"] . "\x2f\157\x61\165\x74\x68\x32\x2f\166\x32\x2e\60\x2f\164\157\153\x65\156";
        $this->endpoints["\163\150\x61\x72\145\160\157\151\156\164\x5f\x74\157\x6b\x65\x6e"] = "\150\x74\164\160\x73\72\x2f\57\141\143\x63\x6f\165\x6e\x74\163\x2e\x61\x63\x63\x65\x73\163\143\x6f\156\164\x72\157\154\56\x77\x69\x6e\144\x6f\167\163\56\x6e\145\164\x2f" . $this->config["\164\145\156\x61\x6e\x74\137\151\x64"] . "\x2f\x74\x6f\153\145\156\163\57\117\101\x75\164\150\x2f\62";
        $this->endpoints["\x75\163\x65\162\163"] = "\x68\x74\x74\160\x73\x3a\x2f\57\x67\x72\141\160\x68\x2e\x6d\151\143\x72\x6f\163\x6f\146\x74\x2e\143\157\x6d\x2f\142\x65\x74\x61\57\165\163\145\162\x73\x2f";
        $this->endpoints["\144\145\x6c\164\141\137\165\163\x65\162"] = "\150\164\164\x70\163\72\57\57\147\162\x61\160\150\56\x6d\x69\143\162\157\x73\157\146\x74\x2e\x63\157\155\x2f\x62\x65\164\141\x2f\x75\163\145\x72\163\x2f\x64\145\154\164\141\77\44\144\145\x6c\164\x61\124\157\x6b\145\156\75\154\x61\164\145\163\164";
        if (!isset($this->config["\141\x64\x6d\x69\x6e\x5f\165\162\154"])) {
            goto ED;
        }
        $this->endpoints["\163\150\x61\x72\x65\x70\157\151\156\x74\x5f\x75\x73\145\162"] = "\150\x74\x74\160\163\x3a\57\57" . wpWrapper::mo_api_sps_get_domain_from_url($this->config["\141\x64\155\151\156\x5f\x75\162\x6c"]) . "\x2f\x5f\x61\x70\151\x2f\123\x50\x2e\125\163\x65\162\120\x72\x6f\x66\x69\x6c\x65\x73\x2e\x50\x65\x6f\x70\154\x65\115\x61\156\x61\x67\x65\x72\57\107\145\164\120\x72\x6f\160\x65\x72\x74\x69\145\x73\106\157\162\x28\x61\x63\x63\157\165\156\164\116\141\x6d\145\75\100\166\x29\x3f\x40\x76\x3d";
        ED:
        $this->endpoints["\147\162\x6f\x75\x70\x73"] = "\x68\x74\164\160\163\x3a\x2f\x2f\147\x72\x61\160\x68\56\155\151\x63\x72\x6f\163\x6f\x66\164\x2e\143\x6f\155\x2f\142\x65\164\141\x2f\147\162\157\165\x70\163\x2f";
        if (isset($this->config["\x73\x70\x6f\x5f\x69\144"]) && !empty($this->config["\x73\160\x6f\137\x69\x64"])) {
            goto Q3;
        }
        $zg = wpWrapper::mo_api_get_option(pluginConstants::provisioning_config) ?? '';
        $du = $zg["\155\157\x5f\141\x70\x69\137\165\x73\x65\x72\x5f\161\165\x65\162\171\x5f\160\x61\162\x61\155\163"] ?? '';
        $this->endpoints["\x73\x65\x72\166\151\x63\145\x50\162\x69\x6e\x63\x69\160\141\x6c"] = $this->endpoints["\165\163\x65\162\x73"] . "\77\x24\163\145\x6c\145\143\x74\75\151\144\46\x24\x63\157\165\x6e\164\x3d\164\x72\x75\x65" . (empty($du) ? '' : $du);
        goto Sj;
        Q3:
        $this->endpoints["\163\x65\x72\x76\x69\x63\145\120\162\x69\x6e\143\151\160\141\154"] = "\x68\x74\164\160\x73\x3a\57\x2f\x67\162\141\160\x68\56\155\x69\x63\162\157\163\157\x66\x74\x2e\x63\x6f\x6d\x2f\x62\x65\164\141\x2f\x73\145\162\x76\151\x63\145\x50\162\x69\x6e\x63\x69\x70\x61\x6c\x73\x2f" . $this->config["\x73\160\157\137\x69\144"] . "\57\x61\x70\160\x52\x6f\154\145\101\x73\x73\151\147\156\x65\144\124\157\x3f\44\163\x65\x6c\x65\x63\x74\x3d\160\162\x69\156\x63\151\160\x61\x6c\x49\x64\x2c\160\162\x69\x6e\x63\x69\160\x61\x6c\124\171\160\x65";
        Sj:
    }
    public function setScope($pV)
    {
        $this->scope = $pV;
    }
    public function mo_get_all_groups()
    {
        $Nk = $this->endpoints["\147\162\x6f\165\160\x73"] . "\x3f\x24\x73\145\x6c\145\143\164\75\151\144\x2c\144\151\163\x70\154\x61\x79\116\x61\x6d\x65";
        $this->access_token = $this->mo_api_get_new_access_token();
        $Qv = ["\101\x75\164\x68\157\x72\151\172\141\164\x69\x6f\156" => "\102\x65\141\x72\145\162\x20" . $this->access_token];
        return $this->handler->mo_azos_get_request($Nk, $this->args);
    }
    public function mo_api_fetch_latest_delta()
    {
        return $this->handler->mo_azos_get_request($this->endpoints["\144\x65\x6c\x74\x61\137\x75\163\x65\162"], $this->args);
    }
    public function mo_api_fetch_users_using_access_token($uT = null)
    {
        if (isset($this->endpoints["\x73\145\x72\166\151\143\145\x50\x72\151\x6e\x63\x69\160\x61\154"])) {
            goto T6;
        }
        wp_die("\105\162\162\x6f\162\40\x6f\x63\143\165\162\162\145\144\x3a\40\163\145\x72\x76\151\143\x65\120\x72\151\x6e\x63\151\x70\141\154\x20\x49\104\40\151\163\x20\156\157\164\40\x70\x72\157\x76\x69\144\145\x64");
        return null;
        T6:
        $this->args["\103\x6f\x6e\163\151\x73\x74\x65\x6e\143\171\114\145\166\x65\x6c"] = "\145\166\x65\156\164\165\x61\x6c";
        $oA = $this->endpoints["\x73\x65\162\166\x69\x63\x65\120\162\x69\x6e\x63\151\x70\x61\x6c"];
        if ($uT) {
            goto T_;
        }
        if (!isset($this->opt["\162\145\x71\x75\145\163\x74\137\162\x61\164\145"])) {
            goto Ue;
        }
        $oA .= "\46\44\x74\x6f\x70\x3d" . $this->opt["\x72\145\161\x75\x65\163\x74\x5f\162\x61\164\145"];
        Ue:
        goto bH;
        T_:
        $oA .= "\46\x24\164\x6f\160\x3d" . $uT;
        bH:
        return $this->handler->mo_azos_get_request($oA, $this->args);
    }
    public function create_user_in_app($mh, $dm, $VR = "\146\x61\x6c\x73\x65")
    {
        error_log("\x63\162\145\141\x74\151\156\x67\56\x2e\x2e");
        $this->access_token = sanitize_text_field($this->handler->mo_azos_get_access_token_using_client_credentials($this->endpoints, $this->config, $this->scope));
        if (!$this->access_token) {
            goto YJ;
        }
        return $this->create_user_using_access_token($mh, $dm, $VR);
        goto r8;
        YJ:
        wp_die(esc_html("\x41\x63\143\145\163\x73\40\164\157\x6b\145\x6e\40\151\x73\40\155\151\163\163\151\x6e\147\x20\x66\162\157\x6d\40\164\150\x65\x20\x72\145\x73\160\x6f\156\x73\145\x2e\40\120\x6c\x65\141\163\x65\40\164\x72\171\40\141\x67\141\151\156\40\x6c\141\x74\x65\x72\56"));
        r8:
    }
    private function create_user_using_access_token($mh, $dm, $VR = "\146\x61\x6c\163\145")
    {
        $Kq = get_user_meta($mh, "\x6d\x6f\137\x61\160\151\137\141\x7a\x75\162\145\137\151\144", true);
        if (empty($Kq)) {
            goto ex;
        }
        return $this->update_user_in_app($mh);
        ex:
        $P3 = $dm["\165\163\145\162\137\154\x6f\147\x69\x6e"];
        $P3 = str_replace("\x20", '', $P3);
        $lH = $dm["\x75\x73\x65\162\137\x65\x6d\x61\x69\x6c"];
        if (!empty($lH)) {
            goto bJ;
        }
        $lH = $P3 . "\x40" . $this->config["\x74\x65\x6e\141\156\164\137\156\141\x6d\145"];
        bJ:
        if (!is_email($P3)) {
            goto Fo;
        }
        $lH = $dm["\165\x73\145\162\x5f\154\x6f\147\x69\x6e"];
        $P3 = explode("\x40", $P3)[0];
        Fo:
        $ce = "\173\15\xa\40\x20\x20\40\40\x20\40\40\40\x20\40\x20\40\42\x70\x61\163\x73\x77\x6f\x72\x64\120\162\157\146\151\154\x65\x22\40\x3a\x20\x7b\15\xa\40\40\x20\40\40\40\x20\40\40\x20\x20\40\40\x22\160\141\x73\x73\x77\x6f\x72\144\42\x3a\40\x22" . $dm["\x75\x73\145\162\137\160\x61\x73\163"] . "\x22\54\15\12\40\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\40\42\x66\x6f\x72\x63\145\103\150\x61\156\x67\x65\120\x61\x73\163\167\x6f\162\144\x4e\145\170\164\123\151\x67\156\x49\156\x22\x3a\x20" . $VR . "\xd\12\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\40\x7d\54\15\12\40\40\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\42\141\143\143\157\x75\x6e\164\105\156\141\142\154\145\x64\42\72\164\162\x75\x65\54\xd\xa\x20\x20\40\x20\40\40\40\x20\40\x20\40\x20\x20\42\x6d\x61\151\154\x4e\151\143\x6b\156\x61\155\x65\x22\72\x20\42" . $P3 . "\42\54\15\xa\40\x20\40\x20\40\40\x20\40\40\40\x20\x20\42\160\141\x73\163\167\x6f\x72\x64\120\157\x6c\x69\143\151\x65\163\42\72\40\42\104\151\x73\x61\x62\x6c\145\120\x61\x73\163\x77\157\162\144\x45\170\160\151\162\x61\164\151\157\x6e\x22\15\12\40\40\40\40\x20\40\40\40\x7d";
        $ce = json_decode($ce, true);
        $ce["\155\141\x69\x6c"] = $lH;
        $ce["\144\151\163\160\x6c\141\x79\x4e\141\x6d\145"] = $P3;
        if (!(isset($dm["\x66\151\x72\x73\x74\x5f\x6e\141\155\x65"]) && !empty($dm["\x66\151\162\163\x74\x5f\156\141\155\145"]))) {
            goto y_;
        }
        $ce["\x67\151\166\145\156\x4e\x61\x6d\145"] = $dm["\146\151\162\x73\x74\x5f\x6e\x61\155\145"];
        y_:
        if (!(isset($dm["\x6c\x61\163\164\137\x6e\141\155\x65"]) && !empty($dm["\154\141\x73\x74\x5f\x6e\x61\155\145"]))) {
            goto g2;
        }
        $ce["\163\x75\162\x6e\x61\x6d\x65"] = $dm["\154\141\x73\x74\137\156\x61\x6d\x65"];
        g2:
        $ce["\x75\x73\x65\162\120\162\151\x6e\x63\151\x70\141\x6c\x4e\x61\x6d\145"] = $P3 . "\100" . $this->config["\164\145\156\141\156\164\137\156\x61\x6d\x65"];
        $Qv = ["\x41\165\x74\150\x6f\162\151\x7a\x61\164\x69\157\156" => "\102\145\x61\162\x65\162\40" . $this->access_token, "\103\x6f\x6e\x74\x65\156\x74\55\124\171\160\145" => "\x61\x70\160\154\151\x63\141\164\151\x6f\156\x2f\x6a\163\x6f\x6e"];
        $KU = json_encode($ce);
        $Vx = $this->handler->mo_azos_post_request($this->endpoints["\x75\x73\145\x72\163"], $Qv, $KU);
        if (!isset($Vx["\x65\162\162\x6f\162"])) {
            goto b3;
        }
        return $Vx;
        b3:
        if (!(is_array($Vx) && array_key_exists("\x69\x64", $Vx))) {
            goto R7;
        }
        update_user_meta($mh, "\155\x6f\x5f\141\160\x69\x5f\141\172\x75\162\145\137\151\x64", $Vx["\151\x64"]);
        return true;
        R7:
    }
    public function update_user_in_app($mh)
    {
        error_log("\165\x70\x64\x61\164\x69\x6e\x67\x2e\56\56");
        $this->access_token = sanitize_text_field($this->handler->mo_azos_get_access_token_using_client_credentials($this->endpoints, $this->config, $this->scope));
        if (!$this->access_token) {
            goto kR;
        }
        return $this->update_user_using_access_token($mh);
        goto cz;
        kR:
        wp_die(esc_html("\x41\143\143\145\x73\163\x20\x74\157\153\x65\x6e\40\151\163\x20\x6d\x69\x73\x73\151\156\147\x20\x66\x72\157\x6d\x20\164\x68\145\40\x72\x65\163\x70\x6f\x6e\163\x65\x2e\x20\120\154\145\x61\x73\x65\x20\164\162\x79\40\141\x67\141\151\156\40\x6c\x61\x74\x65\x72\x2e"));
        cz:
    }
    private function update_user_using_access_token($mh)
    {
        $dm = get_user_by("\111\x44", $mh);
        $dm = $dm->to_array();
        $ce = array();
        $ce["\x6d\x61\x69\154"] = $dm["\x75\163\145\x72\137\145\x6d\141\x69\154"];
        $ce["\144\x69\x73\x70\154\141\x79\x4e\141\x6d\145"] = $dm["\144\x69\x73\160\x6c\141\171\137\x6e\141\155\x65"] ?? $dm["\165\x73\x65\162\137\x65\x6d\x61\151\154"];
        $oF = get_user_meta($dm["\111\x44"], "\146\x69\162\163\164\137\156\141\x6d\145", true);
        if (empty($oF)) {
            goto bv;
        }
        $ce["\147\x69\x76\145\x6e\116\x61\155\x65"] = $oF;
        bv:
        $cu = get_user_meta($dm["\x49\x44"], "\x6c\141\163\x74\137\156\x61\155\145", true);
        if (empty($cu)) {
            goto qa;
        }
        $ce["\163\x75\162\156\x61\x6d\x65"] = $cu;
        qa:
        $Kq = get_user_meta($dm["\x49\x44"], "\x6d\x6f\x5f\x61\160\x69\x5f\141\x7a\x75\x72\x65\x5f\x69\144", true);
        $Qv = ["\x41\x75\164\150\157\x72\151\172\141\x74\151\x6f\x6e" => "\x42\145\141\162\145\x72\40" . $this->access_token, "\103\x6f\156\164\x65\156\164\55\x54\171\x70\145" => "\x61\160\160\154\151\x63\x61\x74\x69\x6f\x6e\x2f\152\x73\x6f\x6e"];
        $KU = json_encode($ce);
        $Vx = $this->handler->mo_azos_patch_request($this->endpoints["\165\163\x65\x72\x73"] . $Kq, $Qv, $KU);
        if (!isset($Vx["\145\162\x72\157\x72"])) {
            goto z0;
        }
        return $Vx;
        z0:
        return true;
    }
    public function mo_azos_get_group_members($XX, $uT = null)
    {
        $yK = "\x68\164\164\160\x73\72\57\x2f\147\162\141\160\x68\x2e\x6d\x69\x63\162\157\x73\x6f\146\164\56\x63\157\155\x2f\142\x65\x74\141\57\147\x72\x6f\x75\x70\163\57" . $XX . "\x2f\155\x65\x6d\142\145\x72\163\77\44\163\145\154\145\143\164\75\x69\x64";
        if (!isset($this->opt["\162\145\x71\165\x65\x73\x74\x5f\162\141\x74\x65"])) {
            goto jX;
        }
        if ($uT) {
            goto NJ;
        }
        if (!isset($this->opt["\162\x65\x71\x75\145\163\164\x5f\162\x61\x74\145"])) {
            goto e6;
        }
        $yK = $yK . "\x26\x24\164\x6f\x70\x3d" . $this->opt["\162\145\x71\x75\x65\x73\164\137\x72\141\x74\145"];
        e6:
        goto gU;
        NJ:
        $yK = $yK . "\x26\x24\164\157\x70\75" . $uT;
        gU:
        jX:
        return $this->handler->mo_azos_get_request($yK, $this->args);
    }
    public function mo_azos_get_specific_user_detail($nE)
    {
        $Qt = $this->endpoints["\x75\x73\145\x72\x73"] . $nE;
        $qj = wpWrapper::mo_api_get_option(pluginConstants::isEnable_fetch_custom_security_attr);
        $u8 = wpWrapper::mo_api_get_option(pluginConstants::isEnable_fetch_manager_details);
        $r3 = wpWrapper::mo_api_get_option(pluginConstants::isEnable_sharepoint_attr_mapping);
        $this->access_token = $this->mo_api_get_new_access_token();
        $this->args = ["\101\x75\164\x68\x6f\x72\151\x7a\x61\x74\151\x6f\x6e" => "\x42\145\x61\162\145\162\x20" . $this->access_token];
        $vd = $this->handler->mo_azos_get_request($Qt, $this->args);
        if (empty($qj)) {
            goto K2;
        }
        $gm = $this->handler->mo_azos_get_request($Qt . "\x3f\44\x73\145\x6c\145\x63\x74\x3d\143\165\163\164\x6f\155\123\x65\143\165\162\x69\x74\171\101\164\x74\x72\x69\x62\165\164\145\x73", $this->args);
        if (!(!is_null($gm) && isset($gm["\x63\x75\x73\x74\157\155\x53\x65\x63\165\162\151\x74\171\x41\164\164\x72\x69\142\165\x74\145\x73"]))) {
            goto Bz;
        }
        $gm = $gm["\143\165\x73\x74\157\x6d\123\x65\x63\x75\162\151\x74\x79\x41\164\164\162\x69\x62\x75\164\x65\x73"];
        $dO = [];
        foreach ($gm as $U9 => $gt) {
            foreach ($gt as $j3 => $zx) {
                if (str_contains($j3, "\x40\x6f\144\x61\164\141\56\x74\171\160\x65")) {
                    goto eM;
                }
                $dO[$U9 . "\x5f\x5f" . $j3] = $zx;
                eM:
                t5:
            }
            Ra:
            IJ:
        }
        O_:
        $vd = array_merge($vd, $dO);
        Bz:
        K2:
        if (!(!is_array($vd) || count($vd) <= 0)) {
            goto nK;
        }
        nK:
        if (empty($u8)) {
            goto gg;
        }
        $vd["\x6d\x61\156\x61\147\145\162"] = $this->mo_azos_get_manager_data($nE);
        gg:
        if (!($r3 == "\157\156" && isset($vd["\165\x73\x65\162\120\x72\x69\x6e\143\151\x70\141\x6c\x4e\x61\155\x65"]))) {
            goto RV;
        }
        $jp = wpWrapper::mo_api_get_option(pluginConstants::sharepoint_config);
        $a2 = azure::getClient($jp);
        $HC = $a2->mo_azos_get_sharepoint_specific_user_details($vd["\165\163\x65\x72\x50\x72\x69\x6e\x63\151\x70\141\x6c\116\x61\x6d\145"]);
        if (!(!empty($HC) && is_array($HC))) {
            goto wR;
        }
        $HC = sharepointWrapper::mo_azos_array_get_sharepoint_user_profile($HC);
        $vd = array_merge($vd, $HC);
        wR:
        RV:
        return $vd;
    }
    public function mo_azos_get_sharepoint_specific_user_details($nE)
    {
        $Qt = $this->endpoints["\163\x68\141\x72\x65\160\157\151\156\164\x5f\x75\163\145\x72"] . "\47\151\x3a\60\x25\62\63\56\146\x7c\155\x65\155\142\145\x72\163\150\x69\x70\x7c" . $nE . "\x27";
        $this->access_token = $this->mo_api_sps_get_new_access_token();
        $cp = ["\101\x75\164\x68\x6f\162\151\172\x61\164\x69\157\156" => "\102\145\141\x72\x65\162\x20" . $this->access_token, "\101\x63\143\x65\x70\x74" => "\141\x70\x70\154\151\x63\141\164\151\157\x6e\57\x6a\x73\x6f\156\73\40\x6f\x64\x61\164\x61\x3d\x76\145\162\x62\x6f\x73\145"];
        $user = $this->handler->mo_azos_get_request($Qt, $cp);
        return $user;
    }
    public function mo_azos_get_manager_data($nE)
    {
        $tu = $this->endpoints["\165\x73\x65\162\163"] . $nE . "\57\x6d\x61\x6e\141\x67\145\162";
        $tx = $this->handler->mo_azos_get_request($tu, $this->args);
        if (!(!is_array($tx) || count($tx) <= 0 || isset($tx["\145\162\x72\x6f\162"]))) {
            goto dn;
        }
        dn:
        return $tx;
    }
    public function mo_api_get_next_page($Z3)
    {
        return $this->handler->mo_azos_get_request($Z3, $this->args);
    }
    public function mo_api_get_next_delta_page($sW)
    {
        return $this->handler->mo_azos_get_request($sW, $this->args);
    }
    public function mo_api_get_new_access_token()
    {
        $j_ = $this->handler->mo_azos_get_access_token_using_client_credentials($this->endpoints, $this->config, $this->scope);
        if (isset($j_["\145\x72\x72\x6f\x72"])) {
            goto cy;
        }
        $this->access_token = $j_;
        $this->args = ["\x41\165\164\x68\x6f\x72\x69\172\141\x74\x69\157\x6e" => "\102\145\x61\x72\x65\x72\40" . $j_];
        return $j_;
        cy:
        return false;
    }
    public function mo_api_sps_get_new_access_token()
    {
        $j_ = $this->handler->mo_sps_get_access_token_using_client_credentials($this->endpoints, $this->config);
        if (isset($j_["\145\162\x72\157\162"])) {
            goto w6;
        }
        $this->access_token = $j_;
        $this->args = ["\x41\165\164\150\157\x72\151\x7a\x61\164\151\x6f\156" => "\102\145\x61\x72\145\162\40" . $j_];
        return $j_;
        w6:
        return false;
    }
    public function sync_test_user($nE)
    {
        $qj = wpWrapper::mo_api_get_option(pluginConstants::isEnable_fetch_custom_security_attr);
        $Is = wpWrapper::mo_api_get_option(pluginConstants::sharepoint_testConfigAttributeNames);
        $u8 = wpWrapper::mo_api_get_option(pluginConstants::isEnable_fetch_manager_details);
        $r3 = wpWrapper::mo_api_get_option(pluginConstants::isEnable_sharepoint_attr_mapping);
        $this->access_token = $this->mo_api_get_new_access_token();
        $cp = ["\101\165\164\x68\157\162\151\172\141\164\x69\x6f\x6e" => "\x42\145\x61\x72\145\162\40" . $this->access_token];
        $user = $this->handler->mo_azos_get_request($this->endpoints["\165\x73\145\x72\163"] . $nE, $cp);
        if (empty($qj)) {
            goto q0;
        }
        $gm = $this->handler->mo_azos_get_request($this->endpoints["\x75\x73\145\162\x73"] . $nE . "\x3f\44\x73\145\x6c\x65\143\164\x3d\143\x75\163\164\157\x6d\123\145\143\x75\x72\x69\x74\171\101\x74\164\x72\x69\142\x75\164\x65\163", $this->args);
        if (!(!is_null($gm) && isset($gm["\x63\x75\163\x74\x6f\x6d\x53\x65\x63\165\x72\x69\164\x79\101\x74\x74\x72\151\142\x75\164\145\163"]))) {
            goto fy;
        }
        $gm = $gm["\143\x75\163\x74\x6f\x6d\x53\x65\x63\x75\162\151\x74\171\101\x74\x74\x72\x69\x62\x75\164\x65\x73"];
        $dO = [];
        foreach ($gm as $U9 => $gt) {
            foreach ($gt as $j3 => $zx) {
                if (str_contains($j3, "\x40\157\144\x61\164\141\56\x74\x79\x70\x65")) {
                    goto Dc;
                }
                $dO[$U9 . "\x5f\x5f" . $j3] = $zx;
                Dc:
                FP:
            }
            Wu:
            Bb:
        }
        fT:
        $user = array_merge($user, $dO);
        fy:
        q0:
        if (!($r3 == "\157\156" && isset($user["\x75\163\145\x72\120\162\151\156\x63\x69\x70\141\154\x4e\x61\x6d\145"]))) {
            goto FJ;
        }
        $jp = wpWrapper::mo_api_get_option(pluginConstants::sharepoint_config);
        $a2 = azure::getClient($jp);
        $HC = $a2->mo_azos_get_sharepoint_specific_user_details($user["\165\x73\145\162\120\x72\151\x6e\x63\151\160\141\x6c\x4e\141\155\145"]);
        if (!(!empty($HC) && is_array($HC))) {
            goto YY;
        }
        $HC = sharepointWrapper::mo_azos_array_get_sharepoint_user_profile($HC);
        $user = array_merge($user, $HC);
        YY:
        FJ:
        if (!(!is_array($user) || count($user) <= 0)) {
            goto Lk;
        }
        wp_die(esc_html("\x55\156\153\x6e\x6f\167\156\x20\145\162\162\x6f\162\x20\x6f\143\143\165\162\162\x65\x64\x2e\x20\x50\x6c\145\x61\x73\x65\x20\x74\x72\171\x20\x61\x67\141\x69\156\40\154\141\x74\145\x72\56"));
        Lk:
        if (empty($u8)) {
            goto SZ;
        }
        $user["\155\141\x6e\141\x67\x65\162"] = $this->mo_azos_get_manager_data($nE);
        SZ:
        if (empty($user)) {
            goto i3;
        }
        $ez = wpWrapper::getWrapper();
        $IL = $ez->mo_azos_array_flatten_attributes($user);
        $rY = wpWrapper::mo_api_get_option(pluginConstants::basic_map);
        $ik = wpWrapper::mo_api_get_option(pluginConstants::advanced_map);
        $Is = wpWrapper::mo_api_get_option(pluginConstants::sharepoint_advanced_map);
        $pp = wpWrapper::mo_api_get_option(pluginConstants::profile_pic_map);
        $qN = maybe_unserialize(get_option("\155\157\137\141\x70\x69\137\x67\x72\160\137\x72\x6f\x6c\145\x5f\x6d\x61\x70\x70\151\156\147"));
        $SQ = maybe_unserialize(get_option("\x6d\x6f\137\141\x70\x69\x5f\165\163\x65\162\x5f\164\141\170\157\156\x6f\x6d\171\x5f\x6d\141\160\160\x69\x6e\x67"));
        $Kr = maybe_unserialize(get_option("\x6d\x6f\x5f\x61\x70\151\x5f\165\x73\145\x72\x5f\146\151\x65\x6c\x64\x73\137\x6d\141\x70\160\x69\156\x67"));
        $g1 = ["\x62\x61\x73\151\x63\137\155\141\x70\160\151\x6e\x67" => $rY, "\141\x64\x76\x5f\x6d\x61\x70\x70\x69\156\x67" => $ik, "\x73\150\141\x72\x65\x70\157\151\156\x74\137\155\x61\x70\160\151\x6e\x67" => $Is, "\x70\x72\x6f\x66\x69\x6c\145\x5f\x6d\141\160\160\151\156\x67" => $pp, "\142\160\137\x66\151\145\154\x64\137\155\x61\x70\160\x69\156\x67" => $Kr, "\x74\141\x78\141\x6e\x6f\x6d\x79\x5f\x6d\141\160\x70\x69\x6e\147" => $SQ, "\x72\x6f\154\x65\x5f\155\141\x70\160\151\156\147" => $qN];
        $DM = $ez->mo_api_do_basic_mapping($IL, $g1, $user);
        return $DM;
        i3:
        return false;
    }
    public function get_profile_pic($rv)
    {
        $this->access_token = $this->mo_api_get_new_access_token();
        $cp = ["\101\x75\x74\x68\x6f\x72\x69\x7a\141\164\151\x6f\x6e" => "\x42\x65\141\x72\x65\162\40" . $this->access_token];
        $Vx = $this->handler->mo_azos_get_request_for_media($this->endpoints["\x75\163\145\162\x73"] . $rv . "\x2f\x70\150\x6f\x74\x6f\57\x24\166\141\154\x75\x65", $cp);
        return $Vx;
    }
    public function check_if_user_is_group_member($n3)
    {
        $this->access_token = $this->mo_api_get_new_access_token();
        $cp = ["\101\x75\164\x68\x6f\x72\151\172\141\x74\x69\157\156" => "\x42\145\141\162\x65\x72\x20" . $this->access_token];
        $Vx = $this->handler->mo_azos_get_request($this->endpoints["\x75\163\145\162\x73"] . $n3 . "\57\x6d\145\x6d\142\x65\162\x4f\x66\57\155\151\143\162\157\x73\x6f\146\164\56\147\x72\x61\x70\150\x2e\147\162\x6f\165\160\77\44\163\145\x6c\x65\143\x74\x3d\x69\144", $cp);
        return $Vx;
    }
    public function check_if_user_present_in_ad($P3, $nE, $h_)
    {
        $this->access_token = $this->mo_api_get_new_access_token();
        $cp = ["\x41\x75\x74\150\x6f\162\x69\x7a\141\x74\151\x6f\x6e" => "\x42\145\x61\162\145\x72\40" . $this->access_token];
        if (!empty($nE)) {
            goto sT;
        }
        $nE = $P3;
        sT:
        $Vx = $this->handler->mo_azos_get_request($this->endpoints["\165\x73\145\x72\x73"] . "\77\x73\145\154\x65\x63\x74\75\151\x64\46\x24\x66\151\x6c\164\x65\162\x3d\165\163\145\162\x50\x72\151\x6e\x63\x69\x70\x61\154\116\141\155\145\40\x65\161\x20\134\47" . $nE . "\x5c\x27\x20\157\x72\x20\x6d\x61\151\154\x20\x65\x71\40\x5c\47" . $nE . "\134\x27", $cp);
        $N2 = isset($Vx["\x76\x61\154\x75\145"]) && !empty($Vx["\x76\x61\x6c\165\145"]) && sizeof($Vx["\166\141\x6c\x75\145"][0]) != 0;
        if ($N2) {
            goto I_;
        }
        $Vx = $this->handler->mo_azos_get_request($this->endpoints["\165\x73\x65\x72\x73"] . "\77\x24\x73\145\154\x65\x63\164\75\151\144\x26\44\x66\151\x6c\164\x65\x72\x3d\x69\x64\145\156\164\151\164\151\x65\x73\57\x61\156\171\50\143\72\x63\x2f\x69\163\163\165\145\162\101\163\x73\x69\147\x6e\145\144\111\x64\40\145\161\40\x5c\x27" . $nE . "\x5c\x27\x20\141\x6e\144\40\x63\57\151\163\163\x75\145\x72\x20\145\x71\40\x5c\47" . $h_ . "\x5c\47\51", $cp);
        $N2 = isset($Vx["\166\x61\154\x75\145"]) && !empty($Vx["\x76\141\x6c\x75\145"]) && sizeof($Vx["\x76\x61\154\x75\x65"][0]) != 0;
        I_:
        $zg = wpWrapper::mo_api_get_option(pluginConstants::provisioning_config);
        if (!isset($zg["\155\157\137\x61\x70\x69\x5f\x67\x72\x6f\165\x70\137\x69\144\137\164\x6f\x5f\x73\171\x6e\x63"])) {
            goto WV;
        }
        $Ws = explode("\174", $zg["\155\157\137\141\160\151\x5f\147\162\x6f\165\160\137\151\144\137\x74\x6f\137\163\171\x6e\143"]);
        if (!$N2) {
            goto JP;
        }
        $bW = $this->check_if_user_is_group_member(urlencode($nE));
        if (!isset($bW["\x76\x61\x6c\x75\x65"])) {
            goto Yr;
        }
        $bW = $bW["\x76\x61\x6c\x75\x65"];
        $bW = array_map(function ($kH) {
            return $kH["\x69\x64"];
        }, $bW);
        $N2 = false;
        foreach ($Ws as $zE) {
            if (!in_array($zE, $bW)) {
                goto YS;
            }
            $N2 = true;
            goto GC;
            YS:
            wV:
        }
        GC:
        Yr:
        JP:
        WV:
        if (!$N2) {
            goto kO;
        }
        return true;
        kO:
        return false;
    }
    public function setMaxResults($Wq)
    {
        $this->opt["\x72\x65\x71\165\x65\163\164\137\162\x61\x74\145"] = $Wq;
    }
}

Function Calls

None

Variables

None

Stats

MD5 194949c387a966ba4bc653194d61303c
Eval Count 0
Decode Time 71 ms