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 /** * Plugin Name: Object Data Sync For Salesforce Premium * Plugin URI: http:/..
Decoded Output download
<?php
/**
* Plugin Name: Object Data Sync For Salesforce Premium
* Plugin URI: http://miniorange.com
* Description: Object Data Sync For Salesforce Plugin synchronizes WordPress users with selected object/record in Salesforce and keeps Salesforce object/record in sync with the WordPress.
* Version: 11.0.2
* Author: miniOrange
* License: GPL2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
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;
use MoSfSyncSalesforce\Integrations\IntegrationHooks;
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 be;
}
$vL = __CLASS__;
self::$instance = new $vL();
self::$instance->mo_sf_sync_loadhooks();
be:
return self::$instance;
}
private function mo_sf_sync_loadhooks()
{
register_activation_hook(__FILE__, array($this, "mo_sf_sync_plugin_init"));
add_action("admin_menu", array($this, "mo_sf_sync_menu"));
add_action("wp_ajax_mo_sf_sync_ajax_submit", array($this, "mo_sf_sync_ajax_submit_handler"));
add_action("init", array($this, "mo_sf_sync_handle_auth_code"));
add_action("admin_footer", array($this, "mo_sf_sync_feedback_request"));
add_action("admin_init", array($this, "mo_sf_sync_save"));
$CT = ScheduledSyncHandler::instance();
add_action("mo_sf_sync_scheduled_sync", array($CT, "mo_sf_sync_scheduled_sync"));
add_action("mo_sf_sync_one_time_sync", array($CT, "mo_sf_sync_one_time_sync"), 10, 2);
add_action("mo_sf_sync_start_multiple_crons", array($CT, "mo_sf_sync_start_multiple_crons"), 10, 2);
$oD = Utils::mo_sf_sync_get_site_specific_settings("mo_sf_sync_provision");
if (isset($oD["automatic_user_update"])) {
goto Z4;
}
$this->mo_sf_sync_ondemand_manual();
goto M5;
Z4:
$this->mo_sf_sync_user_profile_management_hooks();
M5:
if (!isset($oD["automatic_post_update"])) {
goto pK;
}
$this->mo_sf_sync_automatic_post_sync_hooks();
pK:
if (!file_exists(plugin_dir_path(__FILE__) . "Helper/view/PaidMemberShipProIntegration.php")) {
goto pE;
}
if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto Tb;
}
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);
Tb:
pE:
register_deactivation_hook(__FILE__, array($this, "mo_sf_sync_update_status"));
$Co = new IntegrationHooks();
$Co->mo_sf_sync_load_all_integration_hooks();
}
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 aU;
}
add_action("post_updated", array($this, "mo_sf_sync_post_updated"), 9, 3);
aU:
}
public function mo_sf_sync_user_profile_management_hooks()
{
if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto lY;
}
if (!array_key_exists("mo_sf_sync_manual_action", $_REQUEST)) {
goto ZA;
}
$this->mo_sf_sync_ondemand_manual();
return;
ZA:
add_action("user_register", array($this, "mo_sf_sync_update_salesforce"), 10, 2);
add_action("profile_update", array($this, "mo_sf_sync_update_salesforce"), 10, 1);
add_action("show_user_profile", array($this, "show_salesforce_user_fields"), 10, 1);
add_action("edit_user_profile", array($this, "show_salesforce_user_fields"), 10, 1);
lY:
}
public function mo_sf_sync_ondemand_manual()
{
if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto Ft;
}
add_action("show_user_profile", array($this, "mo_sf_sync_manual_push_to_salesforce"), 10, 1);
add_action("edit_user_profile", array($this, "mo_sf_sync_manual_push_to_salesforce"), 10, 1);
Ft:
}
public function pmpro_orders_created($ux)
{
PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_create($ux);
}
public function pmpro_orders_updated($ux)
{
PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_update($ux);
}
public function pmpro_orders_delete($vv, $ux)
{
PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_delete($vv, $ux);
}
public function show_salesforce_user_fields($user)
{
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto i7;
}
return;
i7:
$mQ = UserOnDemandSync::instance();
$mQ->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 WM;
}
return;
WM:
$CT = TaskHandler::instance();
wp_add_dashboard_widget("mo_Sf_Sync_audit_widget", "miniOrange Object Data Sync for Salesforce", array($CT, "mo_sf_sync_widget_content"));
}
public function mo_sf_sync_plugin_init()
{
$fX = new DBUtils();
$fX->mo_sf_sync_create_mapping_table();
$this->mo_sf_sync_audit_log();
}
public function mo_sf_sync_audit_log()
{
$EC = AuditDB::instance();
$EC->mo_sf_sync_create_audit_log_table();
}
public function mo_sf_sync_save()
{
$fX = new DBUtils();
if (!isset($_POST["mo_sf_sync_delete"])) {
goto fq;
}
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto wG;
}
return;
wG:
$fX->mo_sf_sync_delete_object_mapping_using_mapping_label($_POST["mo_sf_sync_delete"]);
fq:
if (!(isset($_POST["tab"]) && $_POST["tab"] == "account_setup")) {
goto Xv;
}
$CT = AccountSetupHandler::instance();
$CT->mo_sf_sync_save_settings();
Xv:
if (isset($_POST["option"])) {
goto NC;
}
return;
NC:
$nO = sanitize_text_field($_POST["option"]);
switch ($nO) {
case "mo_sf_sync_advanced_reports":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto cb;
}
return;
cb:
$EC = AuditDB::instance();
$EC->mo_sf_sync_save_advance_search_settings();
goto NY;
case "mo_sf_sync_reset":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto tF;
}
return;
tF:
Utils::mo_sf_sync_reset_plugin();
goto NY;
case "mo_sf_sync_truncate_audit_logs":
if (check_admin_referer("mo_sf_sync_truncate_audit_logs")) {
goto n0;
}
goto NY;
n0:
$EC = AuditDB::instance();
$EC->mo_sf_sync_clear_all_logs();
goto NY;
case "mo_sf_sync_client_config_option":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto fL;
}
return;
fL:
AjaxHandler::instance()->mo_sf_sync_save_config_object($_POST);
goto NY;
case "mo_sf_sync_client_object":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto gu;
}
return;
gu:
$CT = AjaxHandler::instance();
$RY = $CT->mo_sf_sync_process_raw_mapping_data($_POST);
$CT->mo_sf_sync_save_processed_data($RY);
goto NY;
case "mo_sf_generate_access_key":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto lH;
}
return;
lH:
if (!(isset($_POST["mapping_label"]) && !empty($_POST["mapping_label"]))) {
goto Ic;
}
$fX->mo_sf_sync_change_access_key($_POST["mapping_label"]);
Ic:
goto NY;
case "mo_sf_sync_feedback":
$pj = sanitize_text_field($_POST["miniorange_feedback_submit"]);
$mH = sanitize_text_field($_POST["query_mail"]);
$Do = "Plugin Deactivated";
if ($pj == "Send") {
goto sL;
}
$Do .= ", Feedback: Skipped";
goto F9;
sL:
$Po = sanitize_text_field($_POST["rate"]);
$Zq = sanitize_text_field($_POST["query_feedback"]);
$ch = isset($_POST["get_reply"]) ? "yes" : "no";
$Do .= ", [Reply:" . $ch . "], Feedback: " . $Zq . ", [Rating: " . $Po . "]";
F9:
$yx = new Customer();
$FQ = $yx->mo_sf_sync_send_email_alert($mH, '', $Do);
deactivate_plugins(__FILE__);
wp_redirect("plugins.php");
goto NY;
}
le:
NY:
}
public function mo_sf_sync_feedback_request()
{
mo_sf_sync_display_feedback_form();
}
public function mo_sf_sync_update_salesforce($Us)
{
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto Lf;
}
return;
Lf:
if (!(array_key_exists("mo_sf_sync_assign_id", $_POST) && !empty($_POST["mo_sf_sync_assign_id"]))) {
goto jN;
}
return;
jN:
if (!isset(Utils::mo_sf_sync_get_site_specific_settings("mo_sf_sync_provision")["automatic_user_update"])) {
goto TJ;
}
$CT = AjaxHandler::instance();
$FQ = $CT->mo_sf_sync_push_to_salesforce($Us, "user");
TJ:
}
public function mo_sf_sync_manual_push_to_salesforce($Us)
{
$mQ = UserOnDemandSync::instance();
if (array_key_exists("mo_sf_sync_manual_action", $_REQUEST) && !empty($_REQUEST["mo_sf_sync_manual_action"])) {
goto Aw;
}
$mQ->mo_sf_sync_manual_actions($Us->ID);
goto OV;
Aw:
$gQ = array();
$gQ["mo_sf_sync_manual_action"] = $_REQUEST["mo_sf_sync_manual_action"];
$gQ["manual_actions_salesforce_id"] = $_REQUEST["manual_actions_salesforce_id"];
$gQ["manual_actions_mapping_label"] = $_REQUEST["manual_actions_mapping_label"];
$mQ->mo_sf_sync_manual_actions($Us->ID, $gQ);
$_SERVER["REQUEST_URI"] = remove_query_arg(array("mo_sf_sync_manual_action", "manual_actions_salesforce_id", "manual_actions_mapping_label"), $_SERVER["REQUEST_URI"]);
return;
OV:
}
public function mo_sf_sync_post_updated($vv, $Yh, $o1)
{
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto ng;
}
return;
ng:
$aE = array("shop_order");
$W7 = get_post_status($vv);
$dR = get_post_type($vv);
if (!($W7 === "publish" || in_array($dR, $aE))) {
goto NT;
}
$dR = get_post_type($vv);
$fX = new DBUtils();
$z_ = $fX->mo_sf_sync_get_all_wp_to_sf_mappings();
$IQ = false;
foreach ($z_ as $NF) {
if (!($NF->wordpress_object === $dR)) {
goto eM;
}
$IQ = true;
goto dv;
eM:
wE:
}
dv:
if (!$IQ) {
goto a3;
}
$CT = AjaxHandler::instance();
$FQ = $CT->mo_sf_sync_push_to_salesforce($vv, $dR);
a3:
NT:
}
public function mo_sf_sync_register_salesforce($NB, $sU, $nc)
{
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto dj;
}
return;
dj:
$vi = Salesforce::instance();
$wF = Utils::mo_sf_sync_get_settings("mo_sf_sync_User");
$JG = [];
foreach ($wF as $NF) {
$Ac = $NF["name"];
$mT = $NF["value"];
if (!empty($mT)) {
goto QN;
}
goto cZ;
QN:
if (strpos($Ac, "custom_") !== false) {
goto oa;
}
if (empty($NB[$Ac])) {
goto dE;
}
$JG[$mT] = $NB[$Ac];
dE:
goto b4;
oa:
$Ac = substr($Ac, 7);
$JG[$Ac] = $mT;
b4:
cZ:
}
UY:
$FQ = $vi->mo_sf_sync_create_record("User", $JG);
$O8 = '';
if (isset($FQ["id"])) {
goto QZ;
}
if (!(is_array($FQ) && count($FQ) && isset($FQ[0]["errorCode"]) && $FQ[0]["errorCode"] == "DUPLICATE_USERNAME")) {
goto jG;
}
$FQ = $vi->mo_sf_sync_get_record("Username", $JG["Username"], "User");
$O8 = $FQ["records"][0]["Id"];
$JG["IsActive"] = "true";
$FQ = $vi->mo_sf_sync_update_record($O8, "User", $JG);
jG:
goto So;
QZ:
$O8 = $FQ["id"];
So:
$ko = Utils::mo_sf_sync_get_site_specific_settings("mo_sf_sync_provision");
$Ei = $_POST["pass1"] ?? $_POST[$ko["password_field"]] ?? $NB[$ko["password_field"]] ?? '';
if (empty($Ei)) {
goto Wu;
}
if (!(!empty($O8) && isset($ko["password_sync"]))) {
goto Rw;
}
$FQ = $vi->mo_sf_sync_password_sync($O8, $Ei);
Rw:
Wu:
$FQ = $vi->mo_sf_sync_update_record($O8, "User", array("IsActive" => "false"));
}
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_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"]);
add_action("admin_enqueue_scripts", [$this, "mo_sf_sync_settings_scripts"]);
add_action("admin_enqueue_scripts", [$this, "mo_sf_sync_settings_style"]);
}
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 dC;
}
mo_sf_sync_display_view();
goto e3;
dC:
mo_sf_sync_display_trouble_shoot();
e3:
}
public static function mo_sf_sync_plugin_guide()
{
mo_sf_sync_display_plugin_guide();
}
public function mo_sf_sync_settings_scripts($G1)
{
if (!($G1 != "toplevel_page_mo_sf_sync" && $G1 != "object-data-sync-for-salesforce_page_troubleshoot" && $G1 != "user-edit.php")) {
goto pO;
}
return;
pO:
wp_enqueue_script("jquery");
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($G1)
{
if (!($G1 != "toplevel_page_mo_sf_sync" && $G1 != "object-data-sync-for-salesforce_page_troubleshoot" && $G1 != "object-data-sync-for-salesforce_page_plugin_guide")) {
goto k3;
}
return;
k3:
$WB = 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", $WB, 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_ajax_submit_handler()
{
$CT = AjaxHandler::instance();
$CT->mo_sf_sync_set_settings();
}
public function mo_sf_sync_handle_auth_code()
{
if (isset($_REQUEST["method"]) && $_REQUEST["method"] == "soap") {
goto H6;
}
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto uP;
}
return;
uP:
$CT = AuthorizationHandler::instance();
$CT->mo_sf_sync_handle_code();
goto Qk;
H6:
remove_action("post_updated", array($this, "mo_sf_sync_post_updated"), 9);
remove_action("profile_update", array($this, "mo_sf_sync_update_salesforce"), 10);
$CT = new WorkflowIntegration_SF_to_WP();
$CT->mo_sf_sync_xml_parser($_REQUEST);
Qk:
}
}
MoSfSync::instance(); ?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: Object Data Sync For Salesforce Premium
* Plugin URI: http://miniorange.com
* Description: Object Data Sync For Salesforce Plugin synchronizes WordPress users with selected object/record in Salesforce and keeps Salesforce object/record in sync with the WordPress.
* Version: 11.0.2
* Author: miniOrange
* License: GPL2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
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;
use MoSfSyncSalesforce\Integrations\IntegrationHooks;
define("\115\117\x53\x46\x5f\104\111\x52\103", __DIR__);
include_once __DIR__ . "\57\x48\145\x6c\x70\145\162\x2f\166\x69\145\167\57\126\x69\x65\x77\x2e\x70\x68\x70";
include_once __DIR__ . "\57\110\x65\x6c\160\x65\162\x2f\166\151\x65\167\57\x54\x72\157\165\142\154\145\x73\150\157\157\164\56\x70\150\x70";
include_once __DIR__ . "\57\110\x65\154\160\x65\162\57\166\151\x65\x77\x2f\x50\x6c\x75\x67\x69\156\x47\165\151\x64\145\x2e\x70\150\x70";
require "\106\145\x65\x64\x62\141\x63\153\x46\x6f\x72\155\x2e\160\x68\160";
require_once __DIR__ . "\57\166\x65\x6e\x64\x6f\162\x2f\141\x75\164\x6f\x6c\157\x61\144\56\160\150\160";
include_once __DIR__ . "\x2f\110\x65\x6c\160\x65\x72\x2f\166\x69\145\167\57\x74\145\155\160\154\x61\164\x65\x73\x2f\x55\x73\x65\x72\117\156\104\x65\155\x61\156\x64\123\171\x6e\x63\x2e\160\150\160";
class MoSfSync
{
private static $instance;
private $pmpro;
use Instance;
public static function instance()
{
if (isset(self::$instance)) {
goto be;
}
$vL = __CLASS__;
self::$instance = new $vL();
self::$instance->mo_sf_sync_loadhooks();
be:
return self::$instance;
}
private function mo_sf_sync_loadhooks()
{
register_activation_hook(__FILE__, array($this, "\x6d\157\x5f\x73\146\137\163\x79\156\x63\x5f\x70\x6c\x75\x67\151\156\x5f\x69\x6e\x69\164"));
add_action("\141\144\155\151\156\137\155\145\x6e\165", array($this, "\x6d\157\x5f\x73\x66\x5f\x73\x79\x6e\x63\x5f\x6d\145\156\x75"));
add_action("\167\160\137\x61\x6a\x61\x78\137\155\157\137\x73\x66\137\163\171\x6e\143\x5f\141\152\141\x78\x5f\x73\x75\142\x6d\151\x74", array($this, "\x6d\157\x5f\x73\146\x5f\x73\171\156\143\137\141\152\x61\x78\x5f\163\x75\x62\x6d\151\164\137\150\141\x6e\144\154\145\x72"));
add_action("\x69\x6e\x69\164", array($this, "\x6d\x6f\137\x73\x66\137\163\x79\156\x63\137\150\x61\156\x64\x6c\x65\137\141\x75\x74\150\137\143\157\x64\145"));
add_action("\141\144\155\x69\x6e\x5f\x66\157\157\164\145\162", array($this, "\x6d\x6f\137\x73\146\x5f\x73\x79\156\x63\x5f\146\x65\145\x64\142\x61\143\x6b\x5f\x72\145\x71\x75\145\163\164"));
add_action("\141\144\155\x69\x6e\x5f\x69\x6e\151\164", array($this, "\155\x6f\137\x73\x66\x5f\163\171\x6e\143\137\163\x61\x76\145"));
$CT = ScheduledSyncHandler::instance();
add_action("\x6d\x6f\x5f\163\x66\137\x73\x79\x6e\143\137\x73\x63\x68\145\144\x75\x6c\x65\144\x5f\163\x79\x6e\x63", array($CT, "\155\x6f\x5f\163\x66\x5f\x73\x79\x6e\x63\137\163\143\x68\145\144\x75\x6c\145\144\137\163\171\x6e\143"));
add_action("\x6d\157\x5f\x73\x66\x5f\x73\171\156\143\137\x6f\156\145\x5f\164\x69\x6d\x65\x5f\163\x79\x6e\143", array($CT, "\155\x6f\x5f\163\x66\x5f\163\x79\156\x63\x5f\x6f\156\x65\x5f\x74\151\155\x65\x5f\163\171\156\143"), 10, 2);
add_action("\155\157\x5f\163\146\x5f\163\x79\x6e\143\x5f\163\x74\141\x72\164\137\155\x75\154\x74\x69\x70\x6c\x65\x5f\143\162\157\x6e\x73", array($CT, "\x6d\x6f\x5f\x73\146\137\x73\171\x6e\x63\137\x73\x74\x61\x72\x74\x5f\x6d\165\154\164\151\160\154\x65\137\143\162\x6f\x6e\163"), 10, 2);
$oD = Utils::mo_sf_sync_get_site_specific_settings("\155\157\x5f\x73\146\x5f\x73\x79\x6e\x63\x5f\160\162\157\166\151\163\x69\x6f\x6e");
if (isset($oD["\x61\165\x74\x6f\155\141\164\x69\x63\137\x75\163\145\x72\137\x75\160\x64\141\164\145"])) {
goto Z4;
}
$this->mo_sf_sync_ondemand_manual();
goto M5;
Z4:
$this->mo_sf_sync_user_profile_management_hooks();
M5:
if (!isset($oD["\x61\x75\164\157\x6d\141\164\x69\x63\137\x70\x6f\163\164\x5f\x75\160\x64\x61\x74\x65"])) {
goto pK;
}
$this->mo_sf_sync_automatic_post_sync_hooks();
pK:
if (!file_exists(plugin_dir_path(__FILE__) . "\x48\145\154\160\145\x72\x2f\166\151\x65\167\57\120\141\x69\144\x4d\145\x6d\142\145\x72\x53\x68\x69\160\120\162\157\111\x6e\164\145\147\x72\x61\164\151\x6f\156\56\160\150\160")) {
goto pE;
}
if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto Tb;
}
add_action("\160\155\x70\x72\x6f\x5f\x61\144\x64\145\144\137\157\162\x64\x65\162", array($this, "\160\x6d\160\x72\x6f\137\157\x72\144\x65\162\163\x5f\143\x72\x65\x61\x74\145\144"), 1);
add_action("\x70\x6d\160\x72\157\x5f\165\160\144\141\x74\x65\144\137\x6f\x72\x64\x65\162", array($this, "\160\155\160\162\157\x5f\157\162\x64\145\x72\x73\137\165\x70\x64\x61\x74\145\144"), 1);
add_action("\160\155\x70\x72\157\137\x64\x65\154\145\x74\x65\x5f\x6f\x72\144\x65\x72", array($this, "\160\x6d\x70\x72\157\x5f\x6f\162\x64\145\162\163\x5f\x64\x65\154\x65\x74\x65"), 10, 2);
Tb:
pE:
register_deactivation_hook(__FILE__, array($this, "\x6d\x6f\x5f\163\x66\x5f\x73\x79\156\x63\137\x75\160\144\141\164\x65\x5f\x73\164\x61\164\165\163"));
$Co = new IntegrationHooks();
$Co->mo_sf_sync_load_all_integration_hooks();
}
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 aU;
}
add_action("\160\157\163\x74\137\x75\x70\144\141\164\x65\x64", array($this, "\155\157\137\163\x66\137\x73\x79\156\x63\137\160\157\x73\x74\x5f\165\x70\x64\x61\x74\145\144"), 9, 3);
aU:
}
public function mo_sf_sync_user_profile_management_hooks()
{
if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto lY;
}
if (!array_key_exists("\155\x6f\137\163\x66\x5f\x73\x79\x6e\143\137\155\141\x6e\x75\141\x6c\x5f\141\143\164\151\157\x6e", $_REQUEST)) {
goto ZA;
}
$this->mo_sf_sync_ondemand_manual();
return;
ZA:
add_action("\165\x73\x65\x72\x5f\162\145\147\x69\x73\x74\145\x72", array($this, "\x6d\x6f\x5f\163\x66\137\163\x79\156\x63\137\x75\x70\144\x61\x74\145\x5f\163\141\154\x65\x73\146\157\x72\x63\145"), 10, 2);
add_action("\x70\x72\x6f\146\151\154\x65\137\x75\x70\144\x61\x74\145", array($this, "\x6d\157\x5f\x73\x66\137\x73\171\x6e\143\137\x75\160\x64\141\164\145\x5f\x73\141\154\x65\x73\x66\157\162\143\x65"), 10, 1);
add_action("\x73\150\157\x77\137\x75\163\x65\162\137\x70\x72\157\146\151\154\145", array($this, "\x73\x68\157\167\x5f\163\x61\154\x65\163\x66\x6f\x72\143\145\137\x75\163\x65\x72\x5f\146\151\145\154\x64\163"), 10, 1);
add_action("\x65\x64\151\x74\x5f\x75\163\145\162\137\x70\162\x6f\x66\151\x6c\x65", array($this, "\x73\x68\x6f\x77\137\x73\141\x6c\145\x73\x66\x6f\162\143\145\x5f\x75\163\145\162\137\x66\x69\145\x6c\144\163"), 10, 1);
lY:
}
public function mo_sf_sync_ondemand_manual()
{
if (!Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto Ft;
}
add_action("\x73\150\x6f\167\137\x75\x73\x65\x72\x5f\x70\162\157\x66\151\x6c\145", array($this, "\x6d\x6f\137\x73\x66\x5f\163\171\x6e\143\x5f\x6d\141\156\165\x61\154\137\x70\x75\163\150\137\x74\x6f\137\163\x61\154\x65\163\146\157\162\143\145"), 10, 1);
add_action("\x65\144\x69\164\x5f\x75\163\x65\162\137\160\162\x6f\x66\151\x6c\x65", array($this, "\155\x6f\137\163\146\x5f\x73\x79\156\143\x5f\155\141\x6e\165\141\x6c\x5f\160\x75\x73\150\137\x74\157\137\x73\x61\154\145\x73\146\157\x72\x63\145"), 10, 1);
Ft:
}
public function pmpro_orders_created($ux)
{
PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_create($ux);
}
public function pmpro_orders_updated($ux)
{
PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_update($ux);
}
public function pmpro_orders_delete($vv, $ux)
{
PaidMemberShipProIntegration::mo_sf_sync_pmpro_order_delete($vv, $ux);
}
public function show_salesforce_user_fields($user)
{
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto i7;
}
return;
i7:
$mQ = UserOnDemandSync::instance();
$mQ->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 WM;
}
return;
WM:
$CT = TaskHandler::instance();
wp_add_dashboard_widget("\x6d\x6f\x5f\123\146\137\x53\171\156\143\137\141\x75\x64\x69\x74\137\x77\x69\x64\x67\145\164", "\x6d\151\156\151\x4f\x72\x61\156\x67\x65\x20\x4f\x62\152\x65\x63\x74\x20\104\141\164\x61\x20\123\171\x6e\x63\x20\146\x6f\162\40\x53\141\154\x65\x73\x66\x6f\162\143\145", array($CT, "\x6d\157\x5f\163\146\x5f\163\171\156\x63\137\167\151\144\147\145\164\x5f\143\157\156\x74\145\x6e\164"));
}
public function mo_sf_sync_plugin_init()
{
$fX = new DBUtils();
$fX->mo_sf_sync_create_mapping_table();
$this->mo_sf_sync_audit_log();
}
public function mo_sf_sync_audit_log()
{
$EC = AuditDB::instance();
$EC->mo_sf_sync_create_audit_log_table();
}
public function mo_sf_sync_save()
{
$fX = new DBUtils();
if (!isset($_POST["\155\157\137\163\x66\137\163\x79\156\x63\137\144\145\154\x65\x74\x65"])) {
goto fq;
}
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto wG;
}
return;
wG:
$fX->mo_sf_sync_delete_object_mapping_using_mapping_label($_POST["\155\x6f\137\x73\146\137\163\171\156\143\137\x64\145\154\x65\164\145"]);
fq:
if (!(isset($_POST["\164\x61\142"]) && $_POST["\164\x61\142"] == "\141\143\x63\x6f\165\x6e\x74\137\163\145\164\165\160")) {
goto Xv;
}
$CT = AccountSetupHandler::instance();
$CT->mo_sf_sync_save_settings();
Xv:
if (isset($_POST["\157\x70\x74\151\157\x6e"])) {
goto NC;
}
return;
NC:
$nO = sanitize_text_field($_POST["\x6f\160\x74\151\157\156"]);
switch ($nO) {
case "\155\157\137\x73\146\137\163\171\156\x63\x5f\x61\144\x76\141\156\143\x65\x64\x5f\162\x65\160\x6f\162\164\163":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto cb;
}
return;
cb:
$EC = AuditDB::instance();
$EC->mo_sf_sync_save_advance_search_settings();
goto NY;
case "\x6d\157\137\x73\x66\137\163\171\156\x63\137\x72\x65\163\x65\164":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto tF;
}
return;
tF:
Utils::mo_sf_sync_reset_plugin();
goto NY;
case "\155\157\x5f\163\146\x5f\x73\x79\156\x63\137\164\162\x75\156\x63\141\x74\x65\137\x61\x75\x64\151\164\x5f\154\157\x67\x73":
if (check_admin_referer("\155\x6f\137\163\x66\x5f\x73\x79\x6e\x63\x5f\x74\162\165\x6e\x63\x61\164\x65\x5f\x61\165\x64\151\164\x5f\154\x6f\x67\x73")) {
goto n0;
}
goto NY;
n0:
$EC = AuditDB::instance();
$EC->mo_sf_sync_clear_all_logs();
goto NY;
case "\155\157\x5f\x73\146\x5f\163\x79\156\143\x5f\143\154\x69\x65\x6e\x74\x5f\x63\x6f\x6e\x66\x69\x67\137\157\160\164\x69\157\156":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto fL;
}
return;
fL:
AjaxHandler::instance()->mo_sf_sync_save_config_object($_POST);
goto NY;
case "\155\157\137\163\146\x5f\x73\x79\x6e\x63\x5f\143\x6c\151\145\156\164\x5f\x6f\x62\152\x65\x63\x74":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto gu;
}
return;
gu:
$CT = AjaxHandler::instance();
$RY = $CT->mo_sf_sync_process_raw_mapping_data($_POST);
$CT->mo_sf_sync_save_processed_data($RY);
goto NY;
case "\155\x6f\137\x73\146\x5f\x67\x65\x6e\145\162\x61\x74\145\x5f\141\x63\x63\145\163\x73\x5f\153\x65\171":
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto lH;
}
return;
lH:
if (!(isset($_POST["\155\x61\x70\160\151\156\147\x5f\x6c\141\142\x65\x6c"]) && !empty($_POST["\155\141\160\x70\151\156\x67\x5f\x6c\141\142\145\154"]))) {
goto Ic;
}
$fX->mo_sf_sync_change_access_key($_POST["\x6d\141\160\160\151\156\147\x5f\154\x61\x62\145\x6c"]);
Ic:
goto NY;
case "\155\157\137\x73\x66\137\163\x79\156\143\x5f\x66\145\145\x64\x62\x61\x63\x6b":
$pj = sanitize_text_field($_POST["\x6d\151\156\151\x6f\x72\141\x6e\x67\145\137\x66\145\145\x64\x62\x61\143\x6b\x5f\163\165\142\x6d\x69\164"]);
$mH = sanitize_text_field($_POST["\161\165\x65\162\171\137\155\x61\x69\154"]);
$Do = "\120\154\165\x67\151\x6e\40\x44\x65\x61\x63\164\151\166\141\x74\x65\144";
if ($pj == "\x53\x65\x6e\144") {
goto sL;
}
$Do .= "\54\x20\106\145\x65\x64\x62\x61\143\153\72\40\x53\x6b\x69\x70\160\145\144";
goto F9;
sL:
$Po = sanitize_text_field($_POST["\x72\141\x74\x65"]);
$Zq = sanitize_text_field($_POST["\161\165\145\x72\171\137\146\145\x65\144\142\x61\143\153"]);
$ch = isset($_POST["\x67\x65\x74\x5f\x72\145\x70\x6c\x79"]) ? "\x79\145\x73" : "\156\157";
$Do .= "\x2c\x20\133\122\x65\160\154\x79\x3a" . $ch . "\x5d\54\40\x46\145\x65\144\142\141\x63\x6b\x3a\x20" . $Zq . "\x2c\40\133\x52\x61\164\x69\x6e\147\72\x20" . $Po . "\135";
F9:
$yx = new Customer();
$FQ = $yx->mo_sf_sync_send_email_alert($mH, '', $Do);
deactivate_plugins(__FILE__);
wp_redirect("\160\x6c\x75\147\151\156\x73\x2e\160\x68\160");
goto NY;
}
le:
NY:
}
public function mo_sf_sync_feedback_request()
{
mo_sf_sync_display_feedback_form();
}
public function mo_sf_sync_update_salesforce($Us)
{
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto Lf;
}
return;
Lf:
if (!(array_key_exists("\x6d\x6f\137\x73\146\x5f\x73\x79\x6e\143\137\141\163\163\151\147\x6e\x5f\x69\144", $_POST) && !empty($_POST["\155\x6f\x5f\163\x66\137\x73\171\156\143\x5f\141\x73\x73\x69\147\156\x5f\151\144"]))) {
goto jN;
}
return;
jN:
if (!isset(Utils::mo_sf_sync_get_site_specific_settings("\x6d\x6f\x5f\163\x66\x5f\x73\x79\156\x63\137\x70\x72\157\x76\x69\163\151\157\x6e")["\141\165\x74\x6f\x6d\141\164\x69\x63\137\x75\x73\145\162\x5f\165\160\x64\x61\x74\x65"])) {
goto TJ;
}
$CT = AjaxHandler::instance();
$FQ = $CT->mo_sf_sync_push_to_salesforce($Us, "\165\x73\x65\x72");
TJ:
}
public function mo_sf_sync_manual_push_to_salesforce($Us)
{
$mQ = UserOnDemandSync::instance();
if (array_key_exists("\x6d\x6f\x5f\163\146\x5f\163\171\x6e\x63\x5f\155\141\156\x75\x61\x6c\137\x61\143\164\x69\157\x6e", $_REQUEST) && !empty($_REQUEST["\155\x6f\137\163\x66\137\163\171\156\143\x5f\155\x61\x6e\165\x61\x6c\137\141\x63\x74\x69\x6f\156"])) {
goto Aw;
}
$mQ->mo_sf_sync_manual_actions($Us->ID);
goto OV;
Aw:
$gQ = array();
$gQ["\155\x6f\137\x73\x66\x5f\x73\171\156\143\x5f\x6d\141\156\165\141\x6c\137\141\x63\x74\x69\x6f\156"] = $_REQUEST["\155\157\x5f\163\146\x5f\x73\x79\x6e\143\x5f\155\141\x6e\165\x61\154\x5f\x61\143\164\x69\157\x6e"];
$gQ["\x6d\x61\156\165\x61\x6c\x5f\141\143\x74\151\x6f\x6e\x73\x5f\163\x61\154\145\163\146\157\162\143\x65\x5f\151\x64"] = $_REQUEST["\x6d\141\156\165\x61\x6c\137\x61\143\x74\151\157\x6e\x73\x5f\163\x61\154\x65\163\146\157\162\x63\x65\137\x69\x64"];
$gQ["\155\141\x6e\x75\141\154\137\x61\x63\x74\151\x6f\x6e\x73\137\x6d\141\160\x70\x69\156\147\x5f\154\141\142\x65\154"] = $_REQUEST["\x6d\x61\156\x75\x61\x6c\137\x61\x63\164\151\x6f\156\163\137\155\x61\x70\160\151\156\147\137\x6c\x61\x62\145\x6c"];
$mQ->mo_sf_sync_manual_actions($Us->ID, $gQ);
$_SERVER["\x52\x45\x51\125\105\123\124\x5f\x55\x52\x49"] = remove_query_arg(array("\x6d\x6f\137\x73\x66\137\163\171\156\x63\137\x6d\141\156\165\x61\x6c\137\141\x63\x74\x69\157\x6e", "\x6d\x61\156\165\141\x6c\x5f\x61\x63\164\151\157\x6e\163\137\x73\x61\x6c\145\163\146\157\162\143\145\x5f\x69\144", "\x6d\x61\156\165\x61\x6c\137\x61\x63\164\x69\x6f\x6e\x73\x5f\155\x61\x70\160\151\x6e\147\x5f\x6c\141\142\x65\154"), $_SERVER["\x52\105\121\125\x45\123\124\x5f\125\x52\x49"]);
return;
OV:
}
public function mo_sf_sync_post_updated($vv, $Yh, $o1)
{
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto ng;
}
return;
ng:
$aE = array("\163\150\157\160\137\157\x72\144\x65\162");
$W7 = get_post_status($vv);
$dR = get_post_type($vv);
if (!($W7 === "\x70\x75\x62\154\x69\163\150" || in_array($dR, $aE))) {
goto NT;
}
$dR = get_post_type($vv);
$fX = new DBUtils();
$z_ = $fX->mo_sf_sync_get_all_wp_to_sf_mappings();
$IQ = false;
foreach ($z_ as $NF) {
if (!($NF->wordpress_object === $dR)) {
goto eM;
}
$IQ = true;
goto dv;
eM:
wE:
}
dv:
if (!$IQ) {
goto a3;
}
$CT = AjaxHandler::instance();
$FQ = $CT->mo_sf_sync_push_to_salesforce($vv, $dR);
a3:
NT:
}
public function mo_sf_sync_register_salesforce($NB, $sU, $nc)
{
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto dj;
}
return;
dj:
$vi = Salesforce::instance();
$wF = Utils::mo_sf_sync_get_settings("\155\x6f\x5f\x73\x66\137\163\171\x6e\x63\137\125\x73\x65\162");
$JG = [];
foreach ($wF as $NF) {
$Ac = $NF["\x6e\141\155\145"];
$mT = $NF["\x76\141\154\165\145"];
if (!empty($mT)) {
goto QN;
}
goto cZ;
QN:
if (strpos($Ac, "\143\x75\163\x74\x6f\155\137") !== false) {
goto oa;
}
if (empty($NB[$Ac])) {
goto dE;
}
$JG[$mT] = $NB[$Ac];
dE:
goto b4;
oa:
$Ac = substr($Ac, 7);
$JG[$Ac] = $mT;
b4:
cZ:
}
UY:
$FQ = $vi->mo_sf_sync_create_record("\125\x73\x65\x72", $JG);
$O8 = '';
if (isset($FQ["\151\x64"])) {
goto QZ;
}
if (!(is_array($FQ) && count($FQ) && isset($FQ[0]["\x65\162\162\x6f\162\103\157\144\x65"]) && $FQ[0]["\145\x72\x72\157\x72\103\157\x64\x65"] == "\x44\x55\x50\x4c\111\103\x41\x54\x45\x5f\125\x53\x45\x52\x4e\x41\115\105")) {
goto jG;
}
$FQ = $vi->mo_sf_sync_get_record("\125\x73\145\x72\156\x61\x6d\145", $JG["\x55\x73\145\x72\156\141\x6d\145"], "\x55\163\145\162");
$O8 = $FQ["\x72\145\x63\x6f\x72\x64\x73"][0]["\111\x64"];
$JG["\111\163\101\143\164\151\x76\145"] = "\x74\x72\165\x65";
$FQ = $vi->mo_sf_sync_update_record($O8, "\x55\x73\x65\x72", $JG);
jG:
goto So;
QZ:
$O8 = $FQ["\151\144"];
So:
$ko = Utils::mo_sf_sync_get_site_specific_settings("\x6d\157\x5f\163\x66\137\x73\x79\x6e\x63\137\x70\162\x6f\x76\x69\x73\x69\x6f\156");
$Ei = $_POST["\x70\x61\x73\163\x31"] ?? $_POST[$ko["\160\141\163\x73\x77\x6f\162\x64\x5f\146\x69\x65\x6c\144"]] ?? $NB[$ko["\160\141\x73\163\x77\x6f\x72\144\x5f\x66\151\x65\154\x64"]] ?? '';
if (empty($Ei)) {
goto Wu;
}
if (!(!empty($O8) && isset($ko["\160\141\163\163\x77\157\x72\144\x5f\163\x79\x6e\143"]))) {
goto Rw;
}
$FQ = $vi->mo_sf_sync_password_sync($O8, $Ei);
Rw:
Wu:
$FQ = $vi->mo_sf_sync_update_record($O8, "\x55\163\x65\x72", array("\x49\163\101\143\164\151\166\x65" => "\146\141\x6c\163\145"));
}
public function mo_sf_sync_menu()
{
add_menu_page("\x4d\x69\156\151\x4f\162\141\x6e\x67\x65\x20\123\x61\154\145\x73\x66\x6f\x72\x63\145\40\163\x79\156\143" . __("\x43\x6f\x6e\x66\x69\147\x75\162\145\x20\127\x50\40\123\141\x6c\145\x73\x66\x6f\162\143\x65\x20\x4f\x62\152\x65\143\x74\40\123\171\x6e\x63", "\155\x6f\x5f\x73\146\x5f\163\171\x6e\x63"), "\117\x62\x6a\145\143\x74\x20\x44\141\x74\x61\x20\123\x79\x6e\143\40\106\157\x72\40\123\141\154\x65\163\x66\x6f\162\143\145", "\141\x64\155\x69\156\x69\x73\164\162\x61\x74\157\x72", "\155\x6f\x5f\x73\x66\x5f\163\x79\156\x63", [$this, "\x6d\x6f\x5f\163\x66\x5f\x73\171\x6e\143\x5f\144\x69\163\x70\x6c\x61\x79"], plugin_dir_url(__FILE__) . "\x69\155\141\x67\145\163\x2f\155\151\x6e\151\157\x72\141\156\x67\145\x2e\160\x6e\x67");
add_submenu_page("\x6d\157\137\x73\x66\x5f\x73\171\156\x63", "\124\162\x6f\165\142\x6c\x65\x73\150\x6f\157\x74", "\124\162\x6f\x75\142\x6c\x65\163\150\x6f\x6f\164", "\x61\144\155\x69\156\151\163\x74\x72\141\x74\157\x72", "\164\x72\157\x75\142\x6c\145\x73\150\x6f\x6f\x74", [$this, "\155\x6f\x5f\x73\146\x5f\163\x79\x6e\143\137\x74\162\x6f\165\x62\x6c\x65\163\x68\x6f\x6f\x74"]);
add_submenu_page("\x6d\157\x5f\x73\146\x5f\x73\x79\x6e\143", "\103\x6f\x6e\x66\x69\x67\x75\x72\141\x74\151\x6f\156\40\x47\x75\x69\x64\x65", "\103\x6f\156\x66\151\147\165\x72\x61\x74\151\157\156\40\x47\165\151\x64\145", "\141\144\155\151\x6e\x69\x73\x74\x72\x61\x74\157\162", "\x70\154\165\147\x69\156\x5f\147\165\x69\144\x65", [$this, "\155\157\x5f\x73\146\137\x73\x79\156\143\137\x70\x6c\x75\x67\x69\x6e\x5f\147\x75\x69\x64\x65"]);
add_action("\141\144\x6d\151\156\x5f\145\156\161\165\145\x75\145\x5f\163\143\162\x69\x70\x74\163", [$this, "\155\157\137\x73\146\x5f\x73\x79\x6e\143\137\x73\x65\x74\164\151\156\x67\163\137\x73\x63\x72\x69\x70\164\x73"]);
add_action("\141\x64\x6d\x69\156\137\x65\x6e\x71\x75\145\x75\x65\x5f\x73\x63\x72\151\x70\164\x73", [$this, "\x6d\157\137\x73\146\x5f\x73\171\156\x63\x5f\163\x65\164\164\151\156\147\x73\137\163\164\x79\154\145"]);
}
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 dC;
}
mo_sf_sync_display_view();
goto e3;
dC:
mo_sf_sync_display_trouble_shoot();
e3:
}
public static function mo_sf_sync_plugin_guide()
{
mo_sf_sync_display_plugin_guide();
}
public function mo_sf_sync_settings_scripts($G1)
{
if (!($G1 != "\164\x6f\x70\154\145\166\x65\x6c\x5f\160\141\147\x65\x5f\155\157\137\163\146\x5f\x73\171\156\x63" && $G1 != "\x6f\142\152\x65\x63\164\55\144\x61\x74\x61\55\163\x79\x6e\143\x2d\146\x6f\162\x2d\163\x61\x6c\145\163\146\x6f\162\143\x65\x5f\x70\x61\x67\x65\137\x74\162\x6f\x75\142\x6c\145\163\x68\157\x6f\x74" && $G1 != "\x75\163\x65\162\55\145\x64\x69\x74\x2e\x70\x68\160")) {
goto pO;
}
return;
pO:
wp_enqueue_script("\152\x71\165\145\162\x79");
wp_enqueue_script("\163\x65\x6c\145\x63\x74\167\x6f\x6f\x2e\152\163", plugins_url("\57\x48\145\x6c\x70\145\x72\x2f\x76\151\145\x77\x2f\x69\156\x63\x6c\x75\144\x65\x73\57\152\163\x2f\166\x65\156\x64\157\x72\57\163\x65\x6c\145\x63\164\167\x6f\157\x2e\155\151\x6e\x2e\152\x73", __FILE__), ["\x6a\x71\165\145\x72\171"]);
wp_enqueue_script("\155\x6f\137\163\146\x5f\163\171\156\143\137\x73\x61\x76\x65\x5f\x73\x65\164\x74\151\156\x67\x73\x5f\x61\x6a\x61\x78", plugins_url("\x2f\110\x65\154\160\x65\162\x2f\x76\151\145\167\x2f\151\156\143\154\165\x64\145\x73\57\x6a\x73\x2f\155\x6f\137\x73\x66\137\x73\171\x6e\x63\137\163\x65\164\164\151\x6e\x67\163\x2e\x6a\x73", __FILE__), ["\152\x71\x75\145\162\x79", "\x73\145\154\x65\x63\164\167\157\157\56\152\x73"]);
wp_enqueue_script("\x6d\157\137\163\x66\137\x73\x79\x6e\x63\137\x70\x72\x6f\x66\x69\154\x65\x5f\x74\x61\x62\x5f\x61\x6a\x61\x78", plugins_url("\x2f\x48\145\x6c\160\x65\x72\57\x76\x69\145\167\57\151\x6e\x63\x6c\x75\x64\145\x73\57\x6a\x73\57\145\144\x69\164\137\x74\141\x62\56\152\163", __FILE__), ["\x6a\x71\x75\x65\x72\171", "\163\145\154\145\x63\164\167\157\157\56\x6a\163", "\155\157\x5f\x73\x66\x5f\x73\171\x6e\x63\137\x73\141\166\x65\x5f\x73\145\x74\x74\151\x6e\147\163\137\141\152\x61\170"]);
wp_localize_script("\x6d\157\137\163\x66\x5f\x73\x79\x6e\x63\137\x73\x61\166\x65\137\163\x65\164\164\x69\x6e\x67\163\x5f\x61\x6a\141\170", "\141\x6a\141\x78\x5f\157\x62\152\145\143\164\x5f\163\x66", array("\x61\x6a\x61\x78\x5f\x75\162\x6c\137\x73\146" => admin_url("\57\141\x64\x6d\151\x6e\55\x61\x6a\141\170\x2e\160\x68\160")));
wp_enqueue_script("\x6d\x6f\137\163\146\x5f\163\171\x6e\x63\137\144\x61\164\x61\x74\x61\142\154\145\137\163\x63\x72\x69\160\164", plugins_url("\110\145\154\160\145\162\57\x76\151\145\x77\x2f\x69\156\143\x6c\165\x64\x65\x73\x2f\x6a\x73\x2f\x6a\x71\x75\145\162\x79\56\144\141\164\x61\x54\141\142\x6c\145\x73\56\155\x69\x6e\x2e\x6a\x73", __FILE__), array("\152\x71\x75\145\162\171"));
}
public function mo_sf_sync_settings_style($G1)
{
if (!($G1 != "\x74\157\x70\154\145\x76\x65\154\137\160\141\x67\145\x5f\x6d\x6f\137\163\x66\x5f\163\171\x6e\x63" && $G1 != "\157\142\x6a\145\143\164\55\144\x61\164\x61\x2d\x73\x79\x6e\143\55\146\x6f\x72\55\163\x61\x6c\145\x73\146\157\x72\143\x65\137\160\x61\147\145\137\x74\x72\x6f\165\x62\154\x65\x73\150\x6f\157\x74" && $G1 != "\x6f\x62\x6a\x65\143\x74\55\144\x61\164\141\55\163\x79\156\x63\x2d\146\157\x72\55\x73\141\154\x65\x73\x66\157\162\143\x65\x5f\160\x61\x67\145\x5f\x70\154\x75\x67\151\x6e\x5f\x67\x75\x69\144\x65")) {
goto k3;
}
return;
k3:
$WB = plugins_url("\x2f\x48\x65\154\160\x65\162\57\166\151\145\x77\x2f\151\x6e\x63\x6c\x75\x64\x65\x73\x2f\143\163\x73\x2f\155\157\137\x73\x66\137\x73\171\x6e\x63\x5f\x73\x65\164\x74\x69\x6e\x67\x73\x2e\143\x73\x73", __FILE__);
wp_enqueue_style("\163\x65\x6c\x65\143\164\167\x6f\x6f\56\x63\163\x73", plugins_url("\57\x48\x65\x6c\x70\145\162\57\x76\151\145\167\57\x69\x6e\143\x6c\165\x64\145\x73\57\x63\x73\163\x2f\x76\145\x6e\x64\x6f\x72\57\x73\x65\154\145\143\x74\x77\x6f\157\56\155\151\156\x2e\x63\x73\163", __FILE__), array());
wp_enqueue_style("\155\157\137\163\x66\137\163\x79\x6e\x63\x5f\143\163\163", $WB, array("\163\145\x6c\x65\x63\x74\167\157\157\x2e\x63\163\x73"));
wp_enqueue_style("\155\x6f\137\x73\146\x5f\163\x79\156\143\x5f\144\141\164\141\164\141\x62\154\145\x5f\x73\164\x79\154\x65", plugins_url("\x48\x65\x6c\x70\145\x72\x2f\166\151\145\x77\x2f\x69\156\143\154\x75\144\x65\x73\x2f\143\x73\x73\57\x6a\161\x75\x65\162\x79\x2e\144\x61\x74\x61\x54\141\x62\x6c\x65\x73\x2e\155\151\x6e\x2e\x63\163\163", __FILE__));
}
public function mo_sf_sync_ajax_submit_handler()
{
$CT = AjaxHandler::instance();
$CT->mo_sf_sync_set_settings();
}
public function mo_sf_sync_handle_auth_code()
{
if (isset($_REQUEST["\155\x65\x74\x68\x6f\x64"]) && $_REQUEST["\155\145\164\150\157\144"] == "\x73\157\x61\160") {
goto H6;
}
if (Customer::mo_sf_sync_is_customer_license_key_verified()) {
goto uP;
}
return;
uP:
$CT = AuthorizationHandler::instance();
$CT->mo_sf_sync_handle_code();
goto Qk;
H6:
remove_action("\160\157\163\164\137\165\x70\x64\141\x74\x65\x64", array($this, "\x6d\157\x5f\163\x66\x5f\163\171\x6e\x63\137\x70\x6f\x73\x74\137\x75\x70\144\x61\164\145\x64"), 9);
remove_action("\160\162\157\146\151\154\x65\137\165\x70\144\141\164\x65", array($this, "\155\157\137\163\146\137\x73\x79\x6e\x63\x5f\165\x70\x64\x61\x74\145\137\x73\x61\154\x65\163\x66\x6f\x72\x63\x65"), 10);
$CT = new WorkflowIntegration_SF_to_WP();
$CT->mo_sf_sync_xml_parser($_REQUEST);
Qk:
}
}
MoSfSync::instance();
Function Calls
None |
Stats
MD5 | 185008ca3c2fca874951f8fc3c3e701d |
Eval Count | 0 |
Decode Time | 66 ms |