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

Signing you up...

Thank you for signing up!

PHP Decode

namespace MoSfSyncSalesforce; use MoSfSyncSalesforce\API\Salesforce; use MoSfSyncSal..

Decoded Output download

<?   
namespace MoSfSyncSalesforce; 
 
use MoSfSyncSalesforce\API\Salesforce; 
use MoSfSyncSalesforce\Services\Utils; 
use MoSfSyncSalesforce\Services\DBUtils; 
use MoSfSyncSalesforce\Helper\Instance; 
use MoSfSyncSalesforce\Customer; 
use MoSfSyncSalesforce\Handler\AccountSetupHandler; 
use MoSfSyncSalesforce\Handler\AjaxHandler; 
use MoSfSyncSalesforce\Handler\AuthorizationHandler; 
use MoSfSyncSalesforce\Handler\ScheduledSyncHandler; 
use MoSfSyncSalesforce\Handler\Object_Sync_Sf_WordPress; 
use MoSfSyncSalesforce\Handler\TaskHandler; 
use MoSfSyncSalesforce\Services\AuditDB; 
use MoSfSyncSalesforce\Handler\WorkflowIntegration_SF_to_WP; 
use MoSfSyncSalesforce\Helper\view\PaidMemberShipProIntegration; 
use MoSfSyncSalesforce\Helper\view\UserOnDemandSync; 
define("MOSF_DIRC", __DIR__); 
include_once __DIR__ . "/Helper/view/View.php"; 
include_once __DIR__ . "/Helper/view/Troubleshoot.php"; 
include_once __DIR__ . "/Helper/view/PluginGuide.php"; 
require "FeedbackForm.php"; 
require_once __DIR__ . "/vendor/autoload.php"; 
include_once __DIR__ . "/Helper/view/templates/UserOnDemandSync.php"; 
class MoSfSync 
{ 
    private static $instance; 
    private $pmpro; 
    use Instance; 
    public static function instance() 
    { 
        if (isset(self::$instance)) { 
            goto JS; 
        } 
        $oX = __CLASS__; 
        self::$instance = new $oX(); 
        self::$instance->mo_sf_sync_loadhooks(); 
        JS: 
        return self::$instance; 
    } 
    private function mo_sf_sync_loadhooks() 
    { 
        register_activation_hook(__FILE__, array($this, "mo_sf_sync_plugin_init")); 
        add_action("admin_menu", [$this, "mo_sf_sync_menu"]); 
        add_action("wp_ajax_mo_sf_sync_ajax_submit", [$this, "mo_sf_sync_ajax_submit_handler"]); 
        add_action("init", [$this, "mo_sf_sync_handle_auth_code"]); 
        add_action("admin_footer", array($this, "mo_sf_sync_feedback_request")); 
        add_action("admin_init", [$this, "mo_sf_sync_save"]); 
        add_action("edit_user_profile", array($this, "show_salesforce_user_fields"), 10, 1); 
        add_action("show_user_profile", array($this, "show_salesforce_user_fields"), 10, 1); 
        $w2 = ScheduledSyncHandler::instance(); 
        add_action("mo_sf_sync_scheduled_sync", array($w2, "mo_sf_sync_scheduled_sync")); 
        $cu = Utils::mo_sf_sync_get_settings("mo_sf_sync_provision"); 
        if (!isset($cu["automatic_user_update"])) { 
            goto AH; 
        } 
        $this->mo_sf_sync_user_profile_management_hooks(); 
        AH: 
        if (!isset($cu["automatic_post_update"])) { 
            goto xV; 
        } 
        $this->mo_sf_sync_automatic_post_sync_hooks(); 
        xV: 
        if (!file_exists(plugin_dir_path(__FILE__) . "Helper/view/PaidMemberShipProIntegration.php")) { 
            goto SC; 
        } 
        if (!Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto Wq; 
        } 
        add_action("pmpro_added_order", array($this, "pmpro_orders_created"), 1); 
        add_action("pmpro_updated_order", array($this, "pmpro_orders_updated"), 1); 
        add_action("pmpro_delete_order", array($this, "pmpro_orders_delete"), 10, 2); 
        Wq: 
        SC: 
        register_deactivation_hook(__FILE__, array($this, "mo_sf_sync_update_status")); 
    } 
    public function mo_sf_sync_update_status() 
    { 
        Customer::mo_sf_sync_update_key_status(); 
    } 
    public function mo_sf_sync_automatic_post_sync_hooks() 
    { 
        if (!Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto dJ; 
        } 
        add_action("save_post", array($this, "mo_sf_sync_post_updated"), 100, 3); 
        dJ: 
    } 
    public function mo_sf_sync_user_profile_management_hooks() 
    { 
        if (!Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto y8; 
        } 
        add_action("profile_update", array($this, "mo_sf_sync_update_salesforce"), 10, 1); 
        y8: 
    } 
    public function pmpro_orders_created($u0) 
    { 
        PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_create($u0); 
    } 
    public function pmpro_orders_updated($u0) 
    { 
        PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_update($u0); 
    } 
    public function pmpro_orders_delete($wg, $u0) 
    { 
        PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_delete($wg, $u0); 
    } 
    public function show_salesforce_user_fields($user) 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto Ao; 
        } 
        return; 
        Ao: 
        $RZ = UserOnDemandSync::instance(); 
        $RZ->mo_sf_sync_manual_actions($user->ID); 
        return; 
    } 
    public function mo_sf_widget_manage() 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto vi; 
        } 
        return; 
        vi: 
        $w2 = TaskHandler::instance(); 
        wp_add_dashboard_widget("mo_Sf_Sync_audit_widget", "miniOrange Object Data Sync for Salesforce", array($w2, "mo_sf_sync_widget_content")); 
    } 
    public function mo_sf_sync_plugin_init() 
    { 
        $X4 = new DBUtils(); 
        $X4->mo_sf_sync_create_mapping_table(); 
        $this->mo_sf_sync_audit_log(); 
    } 
    public function mo_sf_sync_audit_log() 
    { 
        $lt = AuditDB::instance(); 
        $lt->mo_sf_sync_create_audit_log_table(); 
    } 
    public function mo_sf_sync_save() 
    { 
        $X4 = new DBUtils(); 
        if (!isset($_POST["mo_sf_sync_delete"])) { 
            goto ay; 
        } 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto U3; 
        } 
        return; 
        U3: 
        $X4->mo_sf_sync_delete_object_mapping_using_mapping_label($_POST["mo_sf_sync_delete"]); 
        ay: 
        if (!(isset($_POST["tab"]) && $_POST["tab"] == "account_setup")) { 
            goto at; 
        } 
        $w2 = AccountSetupHandler::instance(); 
        $w2->mo_sf_sync_save_settings(); 
        at: 
        if (isset($_POST["option"])) { 
            goto Tc; 
        } 
        return; 
        Tc: 
        $BF = sanitize_text_field($_POST["option"]); 
        switch ($BF) { 
            case "mo_sf_sync_advanced_reports": 
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
                    goto Tn; 
                } 
                return; 
                Tn: 
                $lt = AuditDB::instance(); 
                $lt->mo_sf_sync_save_advance_search_settings(); 
                goto k1; 
            case "mo_sf_sync_reset": 
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
                    goto RR; 
                } 
                return; 
                RR: 
                Utils::mo_sf_sync_reset_plugin(); 
                goto k1; 
            case "mo_sf_sync_client_object": 
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
                    goto Wc; 
                } 
                return; 
                Wc: 
                $w2 = AjaxHandler::instance(); 
                $eq = $w2->mo_sf_sync_process_raw_mapping_data($_POST); 
                $w2->mo_sf_sync_save_processed_data($eq); 
                goto k1; 
            case "mo_sf_sync_reset_transient": 
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
                    goto E5; 
                } 
                return; 
                E5: 
                delete_transient("mo_sf_sync_queue_data"); 
                goto k1; 
            case "mo_sf_generate_access_key": 
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
                    goto A7; 
                } 
                return; 
                A7: 
                if (!(isset($_POST["mapping_label"]) && !empty($_POST["mapping_label"]))) { 
                    goto y1; 
                } 
                $X4->mo_sf_sync_change_access_key($_POST["mapping_label"]); 
                y1: 
                goto k1; 
            case "mo_sf_sync_feedback": 
                $pY = sanitize_text_field($_POST["miniorange_feedback_submit"]); 
                $Lg = sanitize_text_field($_POST["query_mail"]); 
                $Ha = "Plugin Deactivated"; 
                if ($pY == "Send") { 
                    goto bP; 
                } 
                $Ha .= ", Feedback: Skipped"; 
                goto IV; 
                bP: 
                $yA = sanitize_text_field($_POST["rate"]); 
                $Zp = sanitize_text_field($_POST["query_feedback"]); 
                $rc = isset($_POST["get_reply"]) ? "yes" : "no"; 
                $Ha .= ", [Reply:" . $rc . "], Feedback: " . $Zp . ", [Rating: " . $yA . "]"; 
                IV: 
                $vs = new Customer(); 
                $oY = $vs->mo_sf_sync_send_email_alert($Lg, '', $Ha); 
                deactivate_plugins(__FILE__); 
                wp_redirect("plugins.php"); 
                goto k1; 
        } 
        wz: 
        k1: 
    } 
    public function mo_sf_sync_feedback_request() 
    { 
        mo_sf_sync_display_feedback_form(); 
    } 
    public function mo_sf_sync_update_salesforce($A0) 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto mU; 
        } 
        return; 
        mU: 
        $RZ = UserOnDemandSync::instance(); 
        if (!(array_key_exists("mo_sf_sync_assign_id", $_POST) && !empty($_POST["mo_sf_sync_assign_id"]))) { 
            goto vq; 
        } 
        return; 
        vq: 
        if (!(array_key_exists("mo_sf_sync_action", $_REQUEST) && !empty($_REQUEST["mo_sf_sync_action"]))) { 
            goto pX; 
        } 
        $RZ->mo_sf_sync_manual_actions($A0, $_REQUEST); 
        return; 
        pX: 
        $w2 = AjaxHandler::instance(); 
        $oY = $w2->mo_sf_sync_push_to_salesforce($A0, "user"); 
    } 
    public function mo_sf_sync_post_updated($wg, $S5, $Qp) 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto g8; 
        } 
        return; 
        g8: 
        $Bi = array("shop_order"); 
        $K4 = get_post_status($wg); 
        $PO = get_post_type($wg); 
        if (!($K4 === "publish" || in_array($PO, $Bi))) { 
            goto W1; 
        } 
        $PO = get_post_type($wg); 
        $X4 = new DBUtils(); 
        $aq = $X4->mo_sf_sync_get_all_wp_to_sf_mappings(); 
        $CZ = false; 
        foreach ($aq as $rK) { 
            if (!($rK->wordpress_object === $PO)) { 
                goto vr; 
            } 
            $CZ = true; 
            goto YU; 
            vr: 
            Ks: 
        } 
        YU: 
        if (!$CZ) { 
            goto nM; 
        } 
        $w2 = AjaxHandler::instance(); 
        $oY = $w2->mo_sf_sync_push_to_salesforce($wg, $PO); 
        nM: 
        W1: 
    } 
    public function mo_sf_sync_postmeta_updated($Pz, $wg, $gL, $MT) 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto Gq; 
        } 
        return; 
        Gq: 
        $Bi = array("shop_order"); 
        $K4 = get_post_status($wg); 
        $PO = get_post_type($wg); 
        if (!($K4 === "publish" || in_array($PO, $Bi))) { 
            goto X4; 
        } 
        $PO = get_post_type($wg); 
        $X4 = new DBUtils(); 
        $aq = $X4->mo_sf_sync_get_all_wp_to_sf_mappings(); 
        $CZ = false; 
        foreach ($aq as $rK) { 
            if (!($rK->wordpress_object === $PO)) { 
                goto f5; 
            } 
            $CZ = true; 
            goto i4; 
            f5: 
            wZ: 
        } 
        i4: 
        if (!$CZ) { 
            goto Fa; 
        } 
        $w2 = AjaxHandler::instance(); 
        $oY = $w2->mo_sf_sync_push_to_salesforce($wg, $PO); 
        Fa: 
        X4: 
    } 
    public function mo_sf_sync_register_salesforce($pT, $Uj, $Ai) 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto k2; 
        } 
        return; 
        k2: 
        $J0 = Salesforce::instance(); 
        $Yy = Utils::mo_sf_sync_get_settings("mo_sf_sync_User"); 
        $AC = []; 
        foreach ($Yy as $rK) { 
            $Mv = $rK["name"]; 
            $nY = $rK["value"]; 
            if (!empty($nY)) { 
                goto RG; 
            } 
            goto Rz; 
            RG: 
            if (strpos($Mv, "custom_") !== false) { 
                goto uh; 
            } 
            if (empty($pT[$Mv])) { 
                goto gc; 
            } 
            $AC[$nY] = $pT[$Mv]; 
            gc: 
            goto Tk; 
            uh: 
            $Mv = substr($Mv, 7); 
            $AC[$Mv] = $nY; 
            Tk: 
            Rz: 
        } 
        xI: 
        $oY = $J0->mo_sf_sync_create_record("User", $AC); 
        $xZ = ''; 
        if (isset($oY["id"])) { 
            goto n6; 
        } 
        if (!(is_array($oY) && count($oY) && isset($oY[0]["errorCode"]) && $oY[0]["errorCode"] == "DUPLICATE_USERNAME")) { 
            goto BX; 
        } 
        $oY = $J0->mo_sf_sync_get_record("Username", $AC["Username"], "User"); 
        $xZ = $oY["records"][0]["Id"]; 
        $AC["IsActive"] = "true"; 
        $oY = $J0->mo_sf_sync_update_record($xZ, "User", $AC); 
        BX: 
        goto sA; 
        n6: 
        $xZ = $oY["id"]; 
        sA: 
        $OO = Utils::mo_sf_sync_get_settings("mo_sf_sync_provision"); 
        $FT = $_POST["pass1"] ?? $_POST[$OO["password_field"]] ?? $pT[$OO["password_field"]] ?? ''; 
        if (empty($FT)) { 
            goto D2; 
        } 
        if (!(!empty($xZ) && isset($OO["password_sync"]))) { 
            goto io; 
        } 
        $oY = $J0->mo_sf_sync_password_sync($xZ, $FT); 
        io: 
        D2: 
        $oY = $J0->mo_sf_sync_update_record($xZ, "User", array("IsActive" => "false")); 
    } 
    public function mo_sf_sync_activate_salesforce($Ai, $FT, $yb) 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto T7; 
        } 
        return; 
        T7: 
        $J0 = Salesforce::instance(); 
        $xZ = get_user_meta($Ai, "salesforce_User_ID", true); 
        $oY = $J0->mo_sf_sync_update_record($xZ, "User", array("IsActive" => "true")); 
    } 
    public function mo_sf_sync_menu() 
    { 
        add_menu_page("MiniOrange Salesforce sync" . __("Configure WP Salesforce Object Sync", "mo_sf_sync"), "Object Data Sync For Salesforce", "administrator", "mo_sf_sync", [$this, "mo_sf_sync_display"], plugin_dir_url(__FILE__) . "images/miniorange.png"); 
        add_action("admin_enqueue_scripts", [$this, "mo_sf_sync_settings_scripts"]); 
        add_action("admin_enqueue_scripts", [$this, "mo_sf_sync_settings_style"]); 
        add_submenu_page("mo_sf_sync", "Troubleshoot", "Troubleshoot", "administrator", "troubleshoot", [$this, "mo_sf_sync_troubleshoot"]); 
        add_submenu_page("mo_sf_sync", "Configuration Guide", "Configuration Guide", "administrator", "plugin_guide", [$this, "mo_sf_sync_plugin_guide"]); 
    } 
    public static function mo_sf_sync_display() 
    { 
        mo_sf_sync_display_view(); 
    } 
    public static function mo_sf_sync_troubleshoot() 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto hD; 
        } 
        mo_sf_sync_display_view(); 
        goto Cr; 
        hD: 
        mo_sf_sync_display_trouble_shoot(); 
        Cr: 
    } 
    public static function mo_sf_sync_plugin_guide() 
    { 
        mo_sf_sync_display_plugin_guide(); 
    } 
    public function mo_sf_sync_settings_scripts($Wu) 
    { 
        if (!($Wu != "toplevel_page_mo_sf_sync" && $Wu != "object-data-sync-for-salesforce_page_troubleshoot" && $Wu != "user-edit.php")) { 
            goto QG; 
        } 
        return; 
        QG: 
        wp_enqueue_script("jquery", plugins_url("/Helper/view/includes/js/jquery-3.6.0.min.js", __FILE__)); 
        wp_enqueue_script("selectwoo.js", plugins_url("/Helper/view/includes/js/vendor/selectwoo.min.js", __FILE__), ["jquery"]); 
        wp_enqueue_script("mo_sf_sync_save_settings_ajax", plugins_url("/Helper/view/includes/js/mo_sf_sync_settings.js", __FILE__), ["jquery", "selectwoo.js"]); 
        wp_enqueue_script("mo_sf_sync_profile_tab_ajax", plugins_url("/Helper/view/includes/js/edit_tab.js", __FILE__), ["jquery", "selectwoo.js", "mo_sf_sync_save_settings_ajax"]); 
        wp_localize_script("mo_sf_sync_save_settings_ajax", "ajax_object_sf", array("ajax_url_sf" => admin_url("/admin-ajax.php"))); 
        wp_enqueue_script("mo_sf_sync_datatable_script", plugins_url("Helper/view/includes/js/jquery.dataTables.min.js", __FILE__), array("jquery")); 
    } 
    public function mo_sf_sync_settings_style($Wu) 
    { 
        if (!($Wu != "toplevel_page_mo_sf_sync" && $Wu != "object-data-sync-for-salesforce_page_troubleshoot" && $Wu != "object-data-sync-for-salesforce_page_plugin_guide")) { 
            goto Jl; 
        } 
        return; 
        Jl: 
        $lv = plugins_url("/Helper/view/includes/css/mo_sf_sync_settings.css", __FILE__); 
        wp_enqueue_style("selectwoo.css", plugins_url("/Helper/view/includes/css/vendor/selectwoo.min.css", __FILE__), array()); 
        wp_enqueue_style("mo_sf_sync_css", $lv, array("selectwoo.css")); 
        wp_enqueue_style("mo_sf_sync_datatable_style", plugins_url("Helper/view/includes/css/jquery.dataTables.min.css", __FILE__)); 
    } 
    public function mo_sf_sync_delete_salesforce($Ai) 
    { 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto bk; 
        } 
        return; 
        bk: 
        $m4 = Utils::mo_sf_sync_get_settings("mo_sf_sync_objects"); 
        $xZ = get_user_meta($Ai, "salesforce_" . $m4 . "_ID", true); 
        if (!$xZ) { 
            goto br; 
        } 
        $J0 = Salesforce::instance(); 
        $oY = $J0->mo_sf_sync_delete_record($m4, $xZ); 
        $oY = $J0->mo_sf_sync_update_record($xZ, "User", array("IsActive" => "false")); 
        br: 
    } 
    public function mo_sf_sync_ajax_submit_handler() 
    { 
        $w2 = AjaxHandler::instance(); 
        $w2->mo_sf_sync_set_settings(); 
    } 
    public function mo_sf_sync_handle_auth_code() 
    { 
        $SE = array(); 
        $hJ = array_push($SE, $_REQUEST); 
        if (isset($_REQUEST["method"]) && $_REQUEST["method"] == "soap") { 
            goto Bm; 
        } 
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) { 
            goto Pb; 
        } 
        return; 
        Pb: 
        $w2 = AuthorizationHandler::instance(); 
        $w2->mo_sf_sync_handle_code(); 
        goto DS; 
        Bm: 
        AuditDB::instance()->mo_sf_sync_add_log("sf_to_wp", "test_sf_xml", site_url(), "logs", $_REQUEST, "sf sent soap", "main 385"); 
        $w2 = new WorkflowIntegration_SF_to_WP(); 
        $w2->mo_sf_sync_xml_parser($_REQUEST); 
        DS: 
    } 
} 
MoSfSync::instance(); ?>

Did this file decode correctly?

Original Code


namespace MoSfSyncSalesforce;

use MoSfSyncSalesforce\API\Salesforce;
use MoSfSyncSalesforce\Services\Utils;
use MoSfSyncSalesforce\Services\DBUtils;
use MoSfSyncSalesforce\Helper\Instance;
use MoSfSyncSalesforce\Customer;
use MoSfSyncSalesforce\Handler\AccountSetupHandler;
use MoSfSyncSalesforce\Handler\AjaxHandler;
use MoSfSyncSalesforce\Handler\AuthorizationHandler;
use MoSfSyncSalesforce\Handler\ScheduledSyncHandler;
use MoSfSyncSalesforce\Handler\Object_Sync_Sf_WordPress;
use MoSfSyncSalesforce\Handler\TaskHandler;
use MoSfSyncSalesforce\Services\AuditDB;
use MoSfSyncSalesforce\Handler\WorkflowIntegration_SF_to_WP;
use MoSfSyncSalesforce\Helper\view\PaidMemberShipProIntegration;
use MoSfSyncSalesforce\Helper\view\UserOnDemandSync;
define("\x4d\x4f\123\x46\x5f\x44\111\122\103", __DIR__);
include_once __DIR__ . "\57\110\x65\154\160\145\162\x2f\x76\151\x65\167\57\x56\151\x65\167\56\160\150\160";
include_once __DIR__ . "\57\110\145\154\160\145\162\57\166\151\145\167\57\x54\x72\157\x75\x62\x6c\145\163\x68\x6f\x6f\x74\56\160\150\160";
include_once __DIR__ . "\57\110\x65\154\x70\x65\162\57\166\151\x65\x77\57\120\154\165\x67\x69\156\x47\x75\151\x64\x65\x2e\x70\150\x70";
require "\x46\x65\145\x64\142\x61\143\x6b\x46\157\x72\155\56\160\x68\160";
require_once __DIR__ . "\57\x76\x65\156\x64\157\162\57\141\165\x74\157\154\x6f\x61\144\x2e\160\150\x70";
include_once __DIR__ . "\57\x48\145\x6c\160\145\162\57\x76\x69\x65\x77\57\164\145\x6d\160\x6c\141\164\145\163\x2f\125\x73\145\162\117\x6e\x44\x65\155\141\x6e\144\x53\x79\156\143\56\x70\150\x70";
class MoSfSync
{
    private static $instance;
    private $pmpro;
    use Instance;
    public static function instance()
    {
        if (isset(self::$instance)) {
            goto JS;
        }
        $oX = __CLASS__;
        self::$instance = new $oX();
        self::$instance->mo_sf_sync_loadhooks();
        JS:
        return self::$instance;
    }
    private function mo_sf_sync_loadhooks()
    {
        register_activation_hook(__FILE__, array($this, "\155\157\x5f\x73\x66\137\x73\x79\x6e\x63\137\160\x6c\165\147\151\156\137\x69\x6e\151\x74"));
        add_action("\x61\x64\x6d\x69\156\x5f\x6d\145\156\x75", [$this, "\155\157\137\x73\146\x5f\x73\171\156\143\x5f\x6d\145\x6e\x75"]);
        add_action("\x77\x70\137\x61\x6a\x61\170\x5f\155\157\x5f\163\146\137\x73\x79\x6e\x63\x5f\141\x6a\141\x78\x5f\163\x75\142\x6d\x69\164", [$this, "\155\157\137\x73\146\x5f\163\171\x6e\143\137\x61\x6a\141\170\137\x73\165\x62\x6d\151\x74\137\150\x61\156\x64\x6c\145\162"]);
        add_action("\x69\156\x69\164", [$this, "\x6d\157\137\x73\x66\x5f\163\x79\156\143\137\x68\x61\156\x64\x6c\x65\x5f\141\x75\x74\150\137\143\x6f\144\x65"]);
        add_action("\x61\144\x6d\x69\x6e\137\x66\157\x6f\164\145\x72", array($this, "\x6d\157\x5f\163\x66\x5f\x73\171\x6e\x63\x5f\146\x65\x65\x64\142\141\x63\153\x5f\162\x65\161\165\x65\163\164"));
        add_action("\141\x64\x6d\x69\x6e\137\151\156\x69\x74", [$this, "\x6d\157\x5f\x73\146\x5f\x73\x79\x6e\143\x5f\163\141\166\x65"]);
        add_action("\145\144\151\x74\x5f\165\x73\145\162\137\x70\162\157\x66\151\154\145", array($this, "\x73\150\x6f\x77\x5f\x73\141\x6c\x65\163\x66\x6f\x72\143\x65\x5f\x75\x73\x65\x72\137\x66\151\145\x6c\x64\x73"), 10, 1);
        add_action("\x73\150\157\x77\x5f\x75\163\145\x72\x5f\x70\162\157\146\x69\154\x65", array($this, "\163\x68\157\167\x5f\x73\141\154\145\x73\146\157\162\143\145\x5f\x75\163\x65\162\137\x66\x69\x65\x6c\144\163"), 10, 1);
        $w2 = ScheduledSyncHandler::instance();
        add_action("\155\157\x5f\163\146\x5f\x73\x79\x6e\x63\137\x73\x63\x68\145\144\165\x6c\145\144\x5f\x73\x79\x6e\x63", array($w2, "\155\157\x5f\163\x66\137\x73\x79\156\x63\x5f\163\143\x68\x65\144\165\x6c\145\x64\137\163\171\156\x63"));
        $cu = Utils::mo_sf_sync_get_settings("\x6d\x6f\137\x73\146\x5f\x73\x79\156\x63\x5f\x70\162\x6f\166\151\x73\151\157\x6e");
        if (!isset($cu["\x61\x75\164\157\x6d\141\164\151\x63\137\165\163\145\x72\137\165\x70\x64\x61\x74\x65"])) {
            goto AH;
        }
        $this->mo_sf_sync_user_profile_management_hooks();
        AH:
        if (!isset($cu["\141\165\x74\x6f\x6d\141\164\151\143\137\x70\x6f\x73\x74\x5f\x75\160\144\141\164\x65"])) {
            goto xV;
        }
        $this->mo_sf_sync_automatic_post_sync_hooks();
        xV:
        if (!file_exists(plugin_dir_path(__FILE__) . "\110\145\154\x70\145\x72\57\166\x69\145\167\x2f\x50\x61\x69\144\115\x65\155\x62\145\162\123\150\151\x70\120\162\157\x49\x6e\164\x65\147\162\x61\x74\151\x6f\156\x2e\x70\150\x70")) {
            goto SC;
        }
        if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto Wq;
        }
        add_action("\x70\x6d\x70\162\157\x5f\141\x64\144\145\144\x5f\x6f\x72\144\145\x72", array($this, "\160\155\x70\x72\157\137\157\x72\x64\x65\x72\x73\137\143\162\145\x61\x74\145\x64"), 1);
        add_action("\160\155\160\162\157\137\x75\x70\144\141\x74\145\144\137\157\162\x64\x65\162", array($this, "\x70\155\160\x72\x6f\137\x6f\x72\144\145\x72\163\137\x75\160\144\141\x74\x65\144"), 1);
        add_action("\160\x6d\x70\162\157\x5f\x64\x65\x6c\145\164\x65\137\157\162\144\x65\162", array($this, "\160\155\x70\162\x6f\x5f\157\162\x64\145\162\x73\x5f\144\145\x6c\x65\x74\145"), 10, 2);
        Wq:
        SC:
        register_deactivation_hook(__FILE__, array($this, "\x6d\157\137\163\146\137\163\171\156\143\137\x75\160\x64\141\164\145\137\x73\x74\x61\x74\x75\x73"));
    }
    public function mo_sf_sync_update_status()
    {
        Customer::mo_sf_sync_update_key_status();
    }
    public function mo_sf_sync_automatic_post_sync_hooks()
    {
        if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto dJ;
        }
        add_action("\163\141\166\x65\137\x70\x6f\x73\164", array($this, "\155\157\x5f\163\146\137\163\x79\156\143\x5f\160\157\x73\x74\137\x75\x70\x64\141\164\x65\144"), 100, 3);
        dJ:
    }
    public function mo_sf_sync_user_profile_management_hooks()
    {
        if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto y8;
        }
        add_action("\x70\162\157\146\x69\154\145\x5f\165\x70\144\141\164\x65", array($this, "\155\x6f\137\163\146\137\163\x79\156\143\137\x75\160\144\x61\x74\145\x5f\x73\x61\x6c\145\x73\x66\x6f\x72\143\x65"), 10, 1);
        y8:
    }
    public function pmpro_orders_created($u0)
    {
        PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_create($u0);
    }
    public function pmpro_orders_updated($u0)
    {
        PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_update($u0);
    }
    public function pmpro_orders_delete($wg, $u0)
    {
        PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_delete($wg, $u0);
    }
    public function show_salesforce_user_fields($user)
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto Ao;
        }
        return;
        Ao:
        $RZ = UserOnDemandSync::instance();
        $RZ->mo_sf_sync_manual_actions($user->ID);
        return;
    }
    public function mo_sf_widget_manage()
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto vi;
        }
        return;
        vi:
        $w2 = TaskHandler::instance();
        wp_add_dashboard_widget("\x6d\157\137\x53\146\137\123\x79\x6e\143\137\141\x75\144\151\164\137\x77\x69\144\147\x65\x74", "\155\x69\156\x69\117\x72\x61\x6e\147\145\40\x4f\x62\x6a\145\143\164\40\104\x61\164\x61\40\x53\x79\x6e\143\x20\146\x6f\x72\40\x53\x61\x6c\x65\x73\x66\x6f\x72\143\145", array($w2, "\155\157\x5f\x73\x66\x5f\163\x79\156\x63\137\167\151\x64\x67\x65\x74\137\x63\x6f\x6e\x74\145\156\164"));
    }
    public function mo_sf_sync_plugin_init()
    {
        $X4 = new DBUtils();
        $X4->mo_sf_sync_create_mapping_table();
        $this->mo_sf_sync_audit_log();
    }
    public function mo_sf_sync_audit_log()
    {
        $lt = AuditDB::instance();
        $lt->mo_sf_sync_create_audit_log_table();
    }
    public function mo_sf_sync_save()
    {
        $X4 = new DBUtils();
        if (!isset($_POST["\155\157\137\x73\x66\137\x73\x79\x6e\x63\x5f\144\145\x6c\x65\x74\145"])) {
            goto ay;
        }
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto U3;
        }
        return;
        U3:
        $X4->mo_sf_sync_delete_object_mapping_using_mapping_label($_POST["\155\157\137\x73\146\137\163\171\x6e\143\x5f\144\x65\x6c\x65\x74\x65"]);
        ay:
        if (!(isset($_POST["\164\x61\142"]) && $_POST["\164\141\142"] == "\x61\143\x63\x6f\x75\x6e\164\x5f\x73\x65\x74\x75\160")) {
            goto at;
        }
        $w2 = AccountSetupHandler::instance();
        $w2->mo_sf_sync_save_settings();
        at:
        if (isset($_POST["\157\x70\x74\x69\x6f\156"])) {
            goto Tc;
        }
        return;
        Tc:
        $BF = sanitize_text_field($_POST["\x6f\160\164\x69\x6f\x6e"]);
        switch ($BF) {
            case "\x6d\x6f\x5f\x73\146\x5f\x73\x79\156\x63\x5f\141\x64\x76\x61\x6e\x63\145\144\137\162\x65\160\157\x72\x74\163":
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
                    goto Tn;
                }
                return;
                Tn:
                $lt = AuditDB::instance();
                $lt->mo_sf_sync_save_advance_search_settings();
                goto k1;
            case "\x6d\x6f\137\x73\x66\x5f\163\171\156\143\x5f\x72\145\163\x65\164":
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
                    goto RR;
                }
                return;
                RR:
                Utils::mo_sf_sync_reset_plugin();
                goto k1;
            case "\x6d\x6f\137\x73\146\x5f\163\171\x6e\x63\x5f\143\x6c\151\x65\156\x74\x5f\157\142\152\145\x63\164":
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
                    goto Wc;
                }
                return;
                Wc:
                $w2 = AjaxHandler::instance();
                $eq = $w2->mo_sf_sync_process_raw_mapping_data($_POST);
                $w2->mo_sf_sync_save_processed_data($eq);
                goto k1;
            case "\155\x6f\x5f\x73\146\137\163\171\x6e\x63\137\x72\x65\163\145\164\x5f\164\162\141\156\x73\x69\145\x6e\x74":
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
                    goto E5;
                }
                return;
                E5:
                delete_transient("\x6d\x6f\x5f\x73\x66\x5f\163\171\x6e\x63\137\x71\x75\145\x75\x65\137\x64\141\x74\x61");
                goto k1;
            case "\x6d\x6f\x5f\163\146\137\x67\145\156\x65\162\141\x74\x65\137\141\x63\x63\x65\163\x73\x5f\x6b\x65\x79":
                if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
                    goto A7;
                }
                return;
                A7:
                if (!(isset($_POST["\x6d\x61\160\160\x69\x6e\x67\x5f\154\141\142\145\154"]) && !empty($_POST["\x6d\141\x70\160\x69\x6e\x67\137\154\x61\x62\x65\154"]))) {
                    goto y1;
                }
                $X4->mo_sf_sync_change_access_key($_POST["\x6d\141\160\160\151\156\x67\x5f\154\141\x62\145\154"]);
                y1:
                goto k1;
            case "\x6d\x6f\x5f\163\x66\137\163\x79\156\143\137\146\x65\145\144\x62\141\x63\x6b":
                $pY = sanitize_text_field($_POST["\155\x69\x6e\151\x6f\162\141\x6e\x67\145\137\146\x65\x65\144\142\141\x63\x6b\x5f\x73\165\142\155\x69\x74"]);
                $Lg = sanitize_text_field($_POST["\161\x75\145\x72\171\x5f\x6d\x61\151\x6c"]);
                $Ha = "\x50\x6c\165\x67\x69\x6e\x20\x44\145\x61\x63\x74\151\x76\x61\164\145\x64";
                if ($pY == "\x53\x65\x6e\144") {
                    goto bP;
                }
                $Ha .= "\x2c\x20\106\x65\145\x64\x62\141\143\x6b\x3a\40\123\153\151\160\x70\x65\144";
                goto IV;
                bP:
                $yA = sanitize_text_field($_POST["\162\141\x74\x65"]);
                $Zp = sanitize_text_field($_POST["\x71\x75\145\x72\x79\137\146\145\x65\x64\x62\x61\143\x6b"]);
                $rc = isset($_POST["\147\145\164\137\162\145\160\x6c\171"]) ? "\x79\145\x73" : "\156\157";
                $Ha .= "\54\x20\133\x52\x65\x70\154\171\72" . $rc . "\x5d\54\x20\106\x65\x65\144\142\141\143\153\x3a\x20" . $Zp . "\x2c\x20\133\122\x61\x74\151\x6e\147\x3a\x20" . $yA . "\135";
                IV:
                $vs = new Customer();
                $oY = $vs->mo_sf_sync_send_email_alert($Lg, '', $Ha);
                deactivate_plugins(__FILE__);
                wp_redirect("\160\154\165\x67\x69\x6e\163\x2e\160\150\x70");
                goto k1;
        }
        wz:
        k1:
    }
    public function mo_sf_sync_feedback_request()
    {
        mo_sf_sync_display_feedback_form();
    }
    public function mo_sf_sync_update_salesforce($A0)
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto mU;
        }
        return;
        mU:
        $RZ = UserOnDemandSync::instance();
        if (!(array_key_exists("\x6d\x6f\x5f\163\x66\137\x73\x79\x6e\x63\137\141\163\x73\151\147\x6e\x5f\x69\144", $_POST) && !empty($_POST["\155\157\x5f\163\x66\137\163\x79\156\143\x5f\x61\x73\x73\151\x67\156\137\x69\x64"]))) {
            goto vq;
        }
        return;
        vq:
        if (!(array_key_exists("\155\157\x5f\x73\146\x5f\163\171\x6e\143\x5f\141\x63\164\151\157\x6e", $_REQUEST) && !empty($_REQUEST["\155\157\137\163\146\137\163\171\156\143\x5f\141\143\164\151\157\x6e"]))) {
            goto pX;
        }
        $RZ->mo_sf_sync_manual_actions($A0, $_REQUEST);
        return;
        pX:
        $w2 = AjaxHandler::instance();
        $oY = $w2->mo_sf_sync_push_to_salesforce($A0, "\165\163\145\x72");
    }
    public function mo_sf_sync_post_updated($wg, $S5, $Qp)
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto g8;
        }
        return;
        g8:
        $Bi = array("\163\x68\157\160\137\x6f\162\x64\145\162");
        $K4 = get_post_status($wg);
        $PO = get_post_type($wg);
        if (!($K4 === "\160\x75\142\154\x69\x73\x68" || in_array($PO, $Bi))) {
            goto W1;
        }
        $PO = get_post_type($wg);
        $X4 = new DBUtils();
        $aq = $X4->mo_sf_sync_get_all_wp_to_sf_mappings();
        $CZ = false;
        foreach ($aq as $rK) {
            if (!($rK->wordpress_object === $PO)) {
                goto vr;
            }
            $CZ = true;
            goto YU;
            vr:
            Ks:
        }
        YU:
        if (!$CZ) {
            goto nM;
        }
        $w2 = AjaxHandler::instance();
        $oY = $w2->mo_sf_sync_push_to_salesforce($wg, $PO);
        nM:
        W1:
    }
    public function mo_sf_sync_postmeta_updated($Pz, $wg, $gL, $MT)
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto Gq;
        }
        return;
        Gq:
        $Bi = array("\163\x68\157\x70\137\157\x72\x64\145\162");
        $K4 = get_post_status($wg);
        $PO = get_post_type($wg);
        if (!($K4 === "\x70\x75\142\154\151\163\x68" || in_array($PO, $Bi))) {
            goto X4;
        }
        $PO = get_post_type($wg);
        $X4 = new DBUtils();
        $aq = $X4->mo_sf_sync_get_all_wp_to_sf_mappings();
        $CZ = false;
        foreach ($aq as $rK) {
            if (!($rK->wordpress_object === $PO)) {
                goto f5;
            }
            $CZ = true;
            goto i4;
            f5:
            wZ:
        }
        i4:
        if (!$CZ) {
            goto Fa;
        }
        $w2 = AjaxHandler::instance();
        $oY = $w2->mo_sf_sync_push_to_salesforce($wg, $PO);
        Fa:
        X4:
    }
    public function mo_sf_sync_register_salesforce($pT, $Uj, $Ai)
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto k2;
        }
        return;
        k2:
        $J0 = Salesforce::instance();
        $Yy = Utils::mo_sf_sync_get_settings("\155\157\x5f\x73\x66\137\163\171\x6e\143\x5f\125\x73\x65\x72");
        $AC = [];
        foreach ($Yy as $rK) {
            $Mv = $rK["\x6e\141\155\145"];
            $nY = $rK["\x76\x61\154\165\145"];
            if (!empty($nY)) {
                goto RG;
            }
            goto Rz;
            RG:
            if (strpos($Mv, "\x63\165\163\x74\157\155\x5f") !== false) {
                goto uh;
            }
            if (empty($pT[$Mv])) {
                goto gc;
            }
            $AC[$nY] = $pT[$Mv];
            gc:
            goto Tk;
            uh:
            $Mv = substr($Mv, 7);
            $AC[$Mv] = $nY;
            Tk:
            Rz:
        }
        xI:
        $oY = $J0->mo_sf_sync_create_record("\x55\x73\145\162", $AC);
        $xZ = '';
        if (isset($oY["\151\144"])) {
            goto n6;
        }
        if (!(is_array($oY) && count($oY) && isset($oY[0]["\145\x72\162\x6f\162\103\157\144\x65"]) && $oY[0]["\x65\162\162\157\x72\x43\x6f\x64\x65"] == "\x44\x55\120\x4c\111\x43\101\124\105\x5f\x55\x53\x45\x52\116\101\x4d\x45")) {
            goto BX;
        }
        $oY = $J0->mo_sf_sync_get_record("\125\163\145\162\x6e\141\155\145", $AC["\x55\x73\x65\162\x6e\x61\155\145"], "\125\163\145\x72");
        $xZ = $oY["\x72\x65\143\x6f\162\x64\x73"][0]["\x49\144"];
        $AC["\x49\x73\101\x63\164\x69\166\x65"] = "\x74\x72\x75\145";
        $oY = $J0->mo_sf_sync_update_record($xZ, "\x55\x73\x65\162", $AC);
        BX:
        goto sA;
        n6:
        $xZ = $oY["\151\x64"];
        sA:
        $OO = Utils::mo_sf_sync_get_settings("\155\x6f\x5f\x73\x66\137\163\171\x6e\143\x5f\160\x72\157\x76\151\x73\151\x6f\x6e");
        $FT = $_POST["\160\141\x73\163\x31"] ?? $_POST[$OO["\160\141\x73\x73\x77\x6f\x72\144\x5f\x66\151\x65\x6c\x64"]] ?? $pT[$OO["\160\x61\163\163\167\x6f\x72\144\137\x66\151\145\x6c\144"]] ?? '';
        if (empty($FT)) {
            goto D2;
        }
        if (!(!empty($xZ) && isset($OO["\160\141\163\x73\167\x6f\x72\144\137\x73\x79\156\143"]))) {
            goto io;
        }
        $oY = $J0->mo_sf_sync_password_sync($xZ, $FT);
        io:
        D2:
        $oY = $J0->mo_sf_sync_update_record($xZ, "\x55\163\x65\162", array("\111\x73\x41\143\164\151\166\x65" => "\x66\x61\x6c\x73\145"));
    }
    public function mo_sf_sync_activate_salesforce($Ai, $FT, $yb)
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto T7;
        }
        return;
        T7:
        $J0 = Salesforce::instance();
        $xZ = get_user_meta($Ai, "\163\x61\x6c\x65\163\x66\157\162\143\x65\x5f\125\163\145\162\137\111\x44", true);
        $oY = $J0->mo_sf_sync_update_record($xZ, "\x55\x73\145\162", array("\111\163\101\x63\x74\x69\166\145" => "\164\x72\x75\145"));
    }
    public function mo_sf_sync_menu()
    {
        add_menu_page("\115\151\156\151\x4f\162\x61\156\x67\145\40\x53\x61\x6c\145\x73\146\x6f\x72\143\145\40\x73\171\156\x63" . __("\x43\157\156\146\x69\147\x75\x72\145\x20\127\x50\40\123\x61\154\145\x73\x66\157\x72\x63\145\40\117\142\152\145\143\164\40\123\171\156\x63", "\x6d\157\137\x73\146\x5f\163\171\x6e\x63"), "\x4f\x62\152\x65\x63\x74\40\104\141\164\141\40\x53\x79\x6e\143\x20\x46\x6f\162\40\123\x61\154\145\163\146\x6f\162\x63\x65", "\x61\144\x6d\x69\x6e\151\x73\x74\x72\x61\164\x6f\x72", "\x6d\157\137\x73\146\137\x73\171\156\143", [$this, "\x6d\x6f\137\x73\x66\137\x73\171\x6e\143\137\x64\151\163\160\x6c\x61\171"], plugin_dir_url(__FILE__) . "\151\x6d\x61\x67\145\163\x2f\x6d\151\156\x69\x6f\162\x61\156\x67\x65\x2e\160\x6e\x67");
        add_action("\141\x64\155\x69\156\x5f\x65\x6e\161\x75\x65\x75\x65\x5f\x73\x63\x72\x69\160\164\163", [$this, "\155\157\137\x73\x66\137\x73\x79\156\x63\x5f\x73\x65\x74\164\x69\x6e\147\163\x5f\163\143\x72\x69\160\164\163"]);
        add_action("\x61\144\155\151\156\137\145\156\x71\165\x65\x75\x65\x5f\x73\143\x72\x69\x70\164\x73", [$this, "\x6d\157\x5f\163\146\137\163\x79\x6e\143\137\x73\x65\164\x74\151\x6e\x67\163\x5f\163\x74\x79\x6c\x65"]);
        add_submenu_page("\155\157\x5f\x73\146\137\163\171\156\143", "\x54\162\157\165\142\154\145\x73\x68\x6f\x6f\164", "\124\162\x6f\165\x62\154\x65\x73\x68\x6f\x6f\x74", "\x61\x64\x6d\151\x6e\x69\163\x74\162\141\x74\x6f\x72", "\164\162\157\165\142\x6c\x65\163\150\157\x6f\x74", [$this, "\155\157\x5f\x73\146\137\163\x79\156\143\137\x74\162\157\165\x62\154\145\x73\x68\x6f\157\164"]);
        add_submenu_page("\155\157\137\x73\146\x5f\163\x79\156\143", "\103\x6f\x6e\x66\151\x67\x75\162\141\x74\151\x6f\156\x20\x47\165\x69\x64\145", "\103\x6f\156\x66\x69\147\x75\x72\141\164\151\x6f\156\x20\x47\165\x69\144\145", "\x61\x64\x6d\x69\x6e\151\163\164\162\x61\x74\157\162", "\x70\x6c\165\x67\x69\156\x5f\147\165\151\x64\x65", [$this, "\155\x6f\x5f\163\146\137\x73\x79\156\143\x5f\x70\x6c\165\x67\x69\156\x5f\x67\x75\x69\144\x65"]);
    }
    public static function mo_sf_sync_display()
    {
        mo_sf_sync_display_view();
    }
    public static function mo_sf_sync_troubleshoot()
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto hD;
        }
        mo_sf_sync_display_view();
        goto Cr;
        hD:
        mo_sf_sync_display_trouble_shoot();
        Cr:
    }
    public static function mo_sf_sync_plugin_guide()
    {
        mo_sf_sync_display_plugin_guide();
    }
    public function mo_sf_sync_settings_scripts($Wu)
    {
        if (!($Wu != "\x74\x6f\160\x6c\x65\x76\145\x6c\137\160\141\x67\x65\x5f\155\157\137\163\x66\x5f\x73\x79\156\143" && $Wu != "\157\142\152\x65\143\x74\x2d\x64\141\164\141\x2d\163\171\156\143\x2d\146\x6f\x72\x2d\x73\x61\154\145\163\146\157\162\x63\145\137\x70\141\x67\145\x5f\164\162\x6f\165\x62\x6c\x65\x73\x68\x6f\x6f\x74" && $Wu != "\x75\x73\x65\162\55\x65\x64\151\x74\x2e\x70\x68\160")) {
            goto QG;
        }
        return;
        QG:
        wp_enqueue_script("\152\161\x75\x65\x72\171", plugins_url("\57\110\x65\x6c\x70\145\x72\x2f\x76\x69\145\x77\x2f\x69\156\x63\x6c\165\x64\145\x73\x2f\152\x73\57\152\161\x75\145\x72\x79\55\x33\56\66\x2e\x30\x2e\155\x69\156\x2e\x6a\x73", __FILE__));
        wp_enqueue_script("\163\145\x6c\145\x63\164\x77\x6f\157\56\152\x73", plugins_url("\x2f\110\x65\154\160\145\x72\x2f\x76\151\145\x77\57\151\156\x63\x6c\165\144\x65\x73\x2f\x6a\x73\x2f\x76\x65\x6e\144\157\162\57\x73\x65\x6c\145\x63\x74\167\157\157\56\x6d\151\156\56\x6a\x73", __FILE__), ["\x6a\x71\165\x65\x72\x79"]);
        wp_enqueue_script("\155\x6f\137\163\x66\137\x73\171\x6e\x63\137\163\141\x76\x65\x5f\163\x65\164\164\x69\156\x67\x73\x5f\x61\x6a\141\170", plugins_url("\57\x48\145\x6c\x70\x65\162\57\166\151\x65\x77\x2f\x69\156\x63\x6c\x75\x64\145\x73\57\152\163\57\155\x6f\137\163\x66\137\x73\x79\156\x63\x5f\163\145\x74\x74\151\156\x67\163\56\152\163", __FILE__), ["\x6a\161\x75\x65\162\x79", "\163\145\154\145\143\164\x77\x6f\x6f\56\x6a\x73"]);
        wp_enqueue_script("\155\157\x5f\163\x66\x5f\163\x79\x6e\x63\x5f\x70\162\x6f\x66\151\x6c\x65\137\164\x61\142\x5f\141\x6a\x61\x78", plugins_url("\57\110\x65\x6c\x70\x65\162\57\166\151\x65\167\x2f\151\x6e\143\x6c\165\x64\145\x73\57\x6a\163\x2f\x65\144\x69\164\x5f\164\x61\142\x2e\x6a\163", __FILE__), ["\152\161\x75\x65\162\171", "\163\145\x6c\x65\143\164\x77\157\x6f\x2e\152\163", "\x6d\157\x5f\163\x66\x5f\x73\x79\156\143\137\163\x61\x76\145\x5f\163\x65\x74\164\x69\x6e\x67\163\137\141\x6a\x61\170"]);
        wp_localize_script("\x6d\x6f\x5f\x73\146\137\163\x79\x6e\x63\x5f\163\x61\x76\145\137\x73\145\x74\x74\151\x6e\x67\163\x5f\x61\x6a\141\170", "\x61\x6a\141\170\x5f\157\142\152\145\143\164\x5f\x73\146", array("\141\152\x61\170\137\x75\x72\x6c\x5f\163\x66" => admin_url("\x2f\x61\x64\x6d\x69\156\55\141\x6a\x61\x78\56\x70\150\x70")));
        wp_enqueue_script("\155\157\x5f\163\146\137\x73\171\x6e\143\x5f\x64\x61\164\x61\164\141\142\154\x65\137\x73\143\162\151\160\164", plugins_url("\x48\x65\x6c\x70\145\x72\57\166\151\145\x77\x2f\x69\156\x63\154\165\x64\x65\163\x2f\x6a\163\x2f\152\161\165\145\x72\171\56\144\141\x74\x61\124\x61\x62\x6c\145\163\56\x6d\151\x6e\x2e\152\x73", __FILE__), array("\152\x71\x75\x65\x72\171"));
    }
    public function mo_sf_sync_settings_style($Wu)
    {
        if (!($Wu != "\164\157\x70\154\x65\166\x65\154\137\x70\141\147\x65\x5f\155\x6f\x5f\163\x66\137\163\x79\156\x63" && $Wu != "\x6f\142\x6a\x65\x63\x74\x2d\x64\141\x74\x61\x2d\163\x79\156\143\x2d\x66\157\162\55\x73\141\154\x65\x73\146\x6f\x72\x63\x65\137\160\x61\147\145\137\164\162\157\165\x62\x6c\x65\x73\x68\x6f\x6f\164" && $Wu != "\x6f\x62\152\145\x63\164\x2d\x64\x61\x74\x61\55\163\x79\x6e\143\x2d\146\x6f\162\x2d\163\x61\x6c\145\x73\x66\157\x72\x63\x65\137\160\x61\147\145\x5f\160\x6c\x75\x67\x69\x6e\137\147\x75\x69\x64\x65")) {
            goto Jl;
        }
        return;
        Jl:
        $lv = plugins_url("\x2f\x48\x65\x6c\160\145\x72\x2f\x76\151\x65\167\x2f\x69\x6e\143\154\165\144\145\163\x2f\x63\x73\163\57\155\157\x5f\x73\x66\137\163\x79\x6e\x63\137\x73\145\x74\164\151\x6e\147\163\x2e\x63\x73\x73", __FILE__);
        wp_enqueue_style("\163\x65\154\145\x63\164\x77\x6f\x6f\56\143\x73\x73", plugins_url("\57\110\x65\154\x70\145\x72\57\166\x69\145\x77\57\x69\x6e\143\x6c\165\144\x65\x73\57\143\163\163\57\x76\x65\x6e\144\x6f\162\57\163\145\154\145\143\164\x77\x6f\157\56\155\151\x6e\56\x63\163\163", __FILE__), array());
        wp_enqueue_style("\x6d\x6f\x5f\x73\x66\x5f\x73\171\x6e\143\x5f\x63\x73\163", $lv, array("\163\x65\x6c\145\x63\164\x77\x6f\157\x2e\143\x73\x73"));
        wp_enqueue_style("\155\x6f\x5f\x73\x66\137\163\x79\156\143\x5f\144\141\164\141\164\x61\x62\154\145\x5f\x73\x74\x79\154\145", plugins_url("\x48\x65\154\160\145\x72\x2f\x76\x69\145\167\57\151\156\x63\x6c\x75\x64\x65\x73\57\143\x73\x73\57\152\161\x75\x65\162\171\56\144\x61\x74\141\124\x61\142\154\145\x73\56\x6d\151\156\56\143\163\x73", __FILE__));
    }
    public function mo_sf_sync_delete_salesforce($Ai)
    {
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto bk;
        }
        return;
        bk:
        $m4 = Utils::mo_sf_sync_get_settings("\155\x6f\137\x73\146\137\163\171\156\x63\137\x6f\142\x6a\145\143\164\163");
        $xZ = get_user_meta($Ai, "\163\141\154\x65\163\146\157\x72\143\145\137" . $m4 . "\137\111\x44", true);
        if (!$xZ) {
            goto br;
        }
        $J0 = Salesforce::instance();
        $oY = $J0->mo_sf_sync_delete_record($m4, $xZ);
        $oY = $J0->mo_sf_sync_update_record($xZ, "\x55\163\x65\x72", array("\111\163\101\x63\164\151\166\x65" => "\x66\x61\x6c\x73\x65"));
        br:
    }
    public function mo_sf_sync_ajax_submit_handler()
    {
        $w2 = AjaxHandler::instance();
        $w2->mo_sf_sync_set_settings();
    }
    public function mo_sf_sync_handle_auth_code()
    {
        $SE = array();
        $hJ = array_push($SE, $_REQUEST);
        if (isset($_REQUEST["\x6d\145\164\150\157\x64"]) && $_REQUEST["\155\145\x74\x68\x6f\x64"] == "\x73\157\141\x70") {
            goto Bm;
        }
        if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
            goto Pb;
        }
        return;
        Pb:
        $w2 = AuthorizationHandler::instance();
        $w2->mo_sf_sync_handle_code();
        goto DS;
        Bm:
        AuditDB::instance()->mo_sf_sync_add_log("\163\x66\x5f\164\157\137\x77\160", "\x74\x65\x73\x74\137\163\x66\137\x78\x6d\x6c", site_url(), "\x6c\x6f\147\163", $_REQUEST, "\x73\x66\40\x73\x65\x6e\164\40\x73\x6f\x61\x70", "\x6d\x61\151\156\40\x33\70\x35");
        $w2 = new WorkflowIntegration_SF_to_WP();
        $w2->mo_sf_sync_xml_parser($_REQUEST);
        DS:
    }
}
MoSfSync::instance();

Function Calls

None

Variables

None

Stats

MD5 cbe35378c56b78cc399206d4eb1af797
Eval Count 0
Decode Time 53 ms