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 ${"\x47L\x4f\x42A\x4c\x53"}["\x6ew\x6fsy\x6e\x63\x6b\x77"]="\x66\x65\x74c\x68";${"\x..

Decoded Output download

<?php ${"GLOBALS"}["nwosynckw"]="fetch";${"GLOBALS"}["vbtnnwvpnbp"]="contactId";${"GLOBALS"}["kgifhuyfkpd"]="start";${"GLOBALS"}["hqvihscl"]="invoiceItems";${"GLOBALS"}["mrsugkpknsx"]="invoice";${"GLOBALS"}["dguhlythvyr"]="actionId";${"GLOBALS"}["rhidspdk"]="end";${"GLOBALS"}["ptycstnvqo"]="k2";${"GLOBALS"}["vinxylyuo"]="pattern";${"GLOBALS"}["tgkzozklj"]="orders";${"GLOBALS"}["moblynrxv"]="invoices";${"GLOBALS"}["otccvunng"]="v";${"GLOBALS"}["ywlvyghf"]="array";${"GLOBALS"}["dlmtlo"]="invoiceId";${"GLOBALS"}["swxikdf"]="limit";${"GLOBALS"}["pmihjpo"]="on";${"GLOBALS"}["ofvghppdj"]="fields";${"GLOBALS"}["fricladfdkq"]="k";${"GLOBALS"}["mtwbcrdxii"]="item";${"GLOBALS"}["wpsjplj"]="productItem";${"GLOBALS"}["euwllnar"]="email";${"GLOBALS"}["uitlthijpw"]="sortable_array";${"GLOBALS"}["hvsjidpubueo"]="paymentId";${"GLOBALS"}["wdlzipudupz"]="payment";${"GLOBALS"}["dyyrthiiwo"]="query";${"GLOBALS"}["tlksmxmhxes"]="order";${"GLOBALS"}["wklwvqc"]="table";${"GLOBALS"}["ejwsmqb"]="end_ts";${"GLOBALS"}["lgolnhol"]="productId";${"GLOBALS"}["mrhnbhgkspgi"]="orderItem";${"GLOBALS"}["yngwntp"]="payments";${"GLOBALS"}["ntdymj"]="start_ts";${"GLOBALS"}["vwvchfo"]="diff";${"GLOBALS"}["errmlxvyu"]="customFieldValue";${"GLOBALS"}["nmwsir"]="updateData";${"GLOBALS"}["vikswljw"]="invoicePayment";${"GLOBALS"}["qqxxqeulhgd"]="customFieldName";${"GLOBALS"}["mdkejndhvvb"]="id";${"GLOBALS"}["flkmqun"]="v2";${"GLOBALS"}["qwsbuqllrwk"]="blnOne";${"GLOBALS"}["bmtcvblcfz"]="retVal";${"GLOBALS"}["cdiqoaru"]="items";class AutomationClinicAPI{public$app=null;const CONTACT="-1";const DAYS_MILLIS=86400;function __construct(){$this->app=new AutomationClinicSDK;if($this->app->cfgCon("connectionName")===FALSE){die("connection failed!<br/>");}}public function authenticate($contactId,$email){$lgtvzyikygto="items";${$lgtvzyikygto}=$this->find("Contact",array("Id"=>${${"GLOBALS"}["vbtnnwvpnbp"]}),array("Email","FirstName","LastName"),1);if(!empty(${${"GLOBALS"}["cdiqoaru"]})&&is_array(${${"GLOBALS"}["cdiqoaru"]})){${"GLOBALS"}["fidmplocyv"]="items";foreach(${${"GLOBALS"}["fidmplocyv"]} as${${"GLOBALS"}["mtwbcrdxii"]}){$eogqdweihx="email";if((${${"GLOBALS"}["mtwbcrdxii"]}["Email"])==${$eogqdweihx}){${"GLOBALS"}["zwucvdweu"]="item";return${${"GLOBALS"}["zwucvdweu"]};}}}return FALSE;}public function getContact($id,$fields){${"GLOBALS"}["wnleiktpumgp"]="fields";${"GLOBALS"}["jtjmwupu"]="id";return$this->app->loadCon(${${"GLOBALS"}["jtjmwupu"]},${${"GLOBALS"}["wnleiktpumgp"]});}public function find($table,$namevalue,$returnfields,$records=1000,$page=0){${"GLOBALS"}["ehugwllniz"]="returnfields";$sbrwdlsh="records";$xfyyamynku="namevalue";$pqxqnisazjvk="page";return$this->app->dsQuery(${${"GLOBALS"}["wklwvqc"]},${$sbrwdlsh},${$pqxqnisazjvk},${$xfyyamynku},${${"GLOBALS"}["ehugwllniz"]});}public function CustomerIdsByEmail($email){return$this->find("Contact",array("Email"=>${${"GLOBALS"}["euwllnar"]}),array("Id"),1000);}public function CustomerInfoByEmail($email,$customFieldName,$blnOne=false){${"GLOBALS"}["scrvwxl"]="fetch";${"GLOBALS"}["bvvnpbhr"]="fetch";$svgbrjswshdd="email";${${"GLOBALS"}["bvvnpbhr"]}=1000;if(${${"GLOBALS"}["qwsbuqllrwk"]}===true)${${"GLOBALS"}["scrvwxl"]}=1;$ouypfvoh="items";${$ouypfvoh}=$this->find("Contact",array("Email"=>${$svgbrjswshdd}),array("Id",${${"GLOBALS"}["qqxxqeulhgd"]}),${${"GLOBALS"}["nwosynckw"]});if(${${"GLOBALS"}["qwsbuqllrwk"]}===true)return${${"GLOBALS"}["cdiqoaru"]}[0];return${${"GLOBALS"}["cdiqoaru"]};}public function CustomerInfoByContactId($id,$customFieldName){${"GLOBALS"}["kuotfsthq"]="customFieldName";$hygyovqptow="id";${${"GLOBALS"}["cdiqoaru"]}=$this->find("Contact",array("Id"=>${$hygyovqptow}),array(${${"GLOBALS"}["kuotfsthq"]}),1);return${${"GLOBALS"}["cdiqoaru"]}[0];}public function CustomerInfoArrayByContactId($id,$fields){${"GLOBALS"}["cpoeoiwrq"]="items";${${"GLOBALS"}["cpoeoiwrq"]}=$this->find("Contact",array("Id"=>${${"GLOBALS"}["mdkejndhvvb"]}),${${"GLOBALS"}["ofvghppdj"]},1);return${${"GLOBALS"}["cdiqoaru"]}[0];}public function getCustomerDigitalTags($contactId,$pattern){${${"GLOBALS"}["bmtcvblcfz"]}=array();$bxizig="item";${"GLOBALS"}["cbaxpwtwqyn"]="contactId";$ibzfjh="items";${$ibzfjh}=$this->find("ContactGroupAssign",array("Contact.Id"=>${${"GLOBALS"}["cbaxpwtwqyn"]},"ContactGroup"=>"%".${${"GLOBALS"}["vinxylyuo"]}."%"),array("ContactGroup"),1000);foreach(${${"GLOBALS"}["cdiqoaru"]} as${$bxizig}){$kihreappl="item";${"GLOBALS"}["ordztos"]="item";if(!empty(${$kihreappl})&&!in_array(${${"GLOBALS"}["ordztos"]}["ContactGroup"],${${"GLOBALS"}["bmtcvblcfz"]})){${"GLOBALS"}["pbwmkb"]="retVal";${${"GLOBALS"}["pbwmkb"]}[]=${${"GLOBALS"}["mtwbcrdxii"]}["ContactGroup"];}}return${${"GLOBALS"}["bmtcvblcfz"]};}public function getContactFieldsFromAPI(){${"GLOBALS"}["onizxss"]="query";${"GLOBALS"}["kxanlm"]="rets";${"GLOBALS"}["sumtfrjr"]="rets";${${"GLOBALS"}["sumtfrjr"]}=array("Name");${${"GLOBALS"}["dyyrthiiwo"]}=array("FormId"=>self::CONTACT);return$this->app->dsQuery("DataFormField",1000,0,${${"GLOBALS"}["onizxss"]},${${"GLOBALS"}["kxanlm"]});}public function doExecuteActionSet($contactId,$actionId){$zjbbdpfg="contactId";$this->app->runAS((int)${$zjbbdpfg},(int)${${"GLOBALS"}["dguhlythvyr"]});}public function addTag($contactId,$tagId){$fvybvvrohdoc="contactId";$xiainsv="tagId";$this->app->grpAssign((int)${$fvybvvrohdoc},(int)${$xiainsv});}public function addFollowUpSequence($contactId,$followUpSequenceId){$bisppcpl="followUpSequenceId";$this->app->campAssign((int)${${"GLOBALS"}["vbtnnwvpnbp"]},(int)${$bisppcpl});}public function getInvoiceByContactId($contactId){${"GLOBALS"}["mlzwtq"]="contactId";${"GLOBALS"}["imeiqlh"]="invoices";${${"GLOBALS"}["moblynrxv"]}=$this->app->dsQuery("Invoice",1000,0,array("ContactId"=>${${"GLOBALS"}["mlzwtq"]}),array("Id","DateCreated","ProductSold","JobId"));return${${"GLOBALS"}["imeiqlh"]};}public function getInvoiceByJobId($jobId){$fnrzlh="invoices";$yojssfy="jobId";${${"GLOBALS"}["moblynrxv"]}=$this->app->dsQuery("Invoice",1000,0,array("JobId"=>${$yojssfy}),array("Id","DateCreated","ProductSold","JobId"));return${$fnrzlh};}public function getInvoiceItemByInvoiceId($invoiceId){$fwbbnmagike="invoiceItems";${$fwbbnmagike}=$this->app->dsQuery("InvoiceItem",1000,0,array("InvoiceId"=>${${"GLOBALS"}["dlmtlo"]}),array("OrderItemId","DateCreated"));return${${"GLOBALS"}["hqvihscl"]};}public function getOrderItem($orderItemId){$ekpdbyrwt="orderItemId";${${"GLOBALS"}["mrhnbhgkspgi"]}=$this->app->dsQuery("OrderItem",1000,0,array("Id"=>${$ekpdbyrwt}),array("OrderId","ProductId","ItemName"));return${${"GLOBALS"}["mrhnbhgkspgi"]};}public function getOrderItemByOrderId($orderId){$obymekbqfmt="orderId";${${"GLOBALS"}["mrhnbhgkspgi"]}=$this->app->dsQuery("OrderItem",1000,0,array("OrderId"=>${$obymekbqfmt}),array("Id","OrderId","ProductId","ItemName","ItemType"));return${${"GLOBALS"}["mrhnbhgkspgi"]};}public function getOrderByContactId($contactId,$limit=1000){$fojbhpdgq="orders";${$fojbhpdgq}=$this->app->dsQuery("Job",${${"GLOBALS"}["swxikdf"]},0,array("ContactId"=>${${"GLOBALS"}["vbtnnwvpnbp"]}),array("Id","ProductId","DateCreated","OrderType","OrderStatus"));return${${"GLOBALS"}["tgkzozklj"]};}public function getProduct($productId){${${"GLOBALS"}["wpsjplj"]}=$this->app->dsQuery("Product",1,0,array("Id"=>${${"GLOBALS"}["lgolnhol"]}),array("ProductName","Sku","ProductPrice"));return${${"GLOBALS"}["wpsjplj"]};}public function getPaymentsByContactId($contactId){${"GLOBALS"}["yknbjo"]="payments";${${"GLOBALS"}["yknbjo"]}=$this->app->dsQuery("Payment",1000,0,array("ContactId"=>${${"GLOBALS"}["vbtnnwvpnbp"]}),array("PayAmt","PayDate","InvoiceId","PayType"));return${${"GLOBALS"}["yngwntp"]};}public function getPaymentsByPaymentId($paymentId){$bkwpbfggvui="payments";$nuppspd="payments";${$bkwpbfggvui}=$this->app->dsQuery("Payment",1000,0,array("Id"=>${${"GLOBALS"}["hvsjidpubueo"]}),array("PayAmt","PayDate","PayType"));return${$nuppspd}[0];}public function getPaymentsByInvoiceId($invoiceId){${"GLOBALS"}["ytnvnxm"]="invoiceId";${${"GLOBALS"}["yngwntp"]}=$this->app->dsQuery("InvoicePayment",1000,0,array("InvoiceId"=>${${"GLOBALS"}["ytnvnxm"]}),array("Amt","PayDate","PayStatus","PaymentId"));return${${"GLOBALS"}["yngwntp"]};}public function isOrderPaid($jobId){$qffwozu="jobId";${"GLOBALS"}["ycyqcbvdlk"]="invoices";${"GLOBALS"}["jmuhptdnynns"]="invoice";${${"GLOBALS"}["moblynrxv"]}=$this->getInvoiceByJobId(${$qffwozu});foreach(${${"GLOBALS"}["ycyqcbvdlk"]} as${${"GLOBALS"}["jmuhptdnynns"]}){if($this->isInvoicePaid(${${"GLOBALS"}["mrsugkpknsx"]}["Id"])){return true;}}return false;}public function isInvoicePaid($invoiceId){$xqlxwvxwpk="invoicePayments";${"GLOBALS"}["gysszxbbps"]="invoiceId";${$xqlxwvxwpk}=$this->getPaymentsByInvoiceId(${${"GLOBALS"}["gysszxbbps"]});${"GLOBALS"}["uymwwxgqe"]="invoicePayments";foreach(${${"GLOBALS"}["uymwwxgqe"]} as${${"GLOBALS"}["vikswljw"]}){${"GLOBALS"}["vsmindwts"]="payment";$zfjgrci="payment";${$zfjgrci}=$this->getPaymentsByPaymentId(${${"GLOBALS"}["vikswljw"]}["PaymentId"]);if($this->is_valid_payment(${${"GLOBALS"}["vsmindwts"]})&&(float)${${"GLOBALS"}["wdlzipudupz"]}["PayAmt"]>0){return true;}}return false;}public function is_valid_payment($payment){switch(strtolower(${${"GLOBALS"}["wdlzipudupz"]}["PayType"])){case"adjustment":case"refund":case"credit":case"charge back":case"write-off":return false;break;default:return true;}}public function dateDiff($start,$end){${"GLOBALS"}["vomrykd"]="start_ts";${"GLOBALS"}["woythkict"]="end_ts";${${"GLOBALS"}["ntdymj"]}=strtotime(${${"GLOBALS"}["kgifhuyfkpd"]});${${"GLOBALS"}["woythkict"]}=strtotime(${${"GLOBALS"}["rhidspdk"]});return self::milliDiff(${${"GLOBALS"}["vomrykd"]},${${"GLOBALS"}["ejwsmqb"]});}public static function milliDiff($start,$end){${"GLOBALS"}["zekpfecukgqg"]="diff";${"GLOBALS"}["rswsxerek"]="start";$epqttym="end";${${"GLOBALS"}["zekpfecukgqg"]}=${$epqttym}-${${"GLOBALS"}["rswsxerek"]};return round(${${"GLOBALS"}["vwvchfo"]}/self::DAYS_MILLIS);}public function array_sort($array,$on,$order='SORT_DESC'){$mumisvbcej="new_array";${$mumisvbcej}=array();${${"GLOBALS"}["uitlthijpw"]}=array();${"GLOBALS"}["ibiynqoo"]="new_array";if(count(${${"GLOBALS"}["ywlvyghf"]})>0){${"GLOBALS"}["jwoqietpbb"]="v";${"GLOBALS"}["xcdxqvrb"]="sortable_array";${"GLOBALS"}["fwkmynq"]="k";foreach(${${"GLOBALS"}["ywlvyghf"]} as${${"GLOBALS"}["fricladfdkq"]}=>${${"GLOBALS"}["jwoqietpbb"]}){${"GLOBALS"}["gxklnyi"]="v";if(is_array(${${"GLOBALS"}["gxklnyi"]})){$bbfeczm="v";$naucpsmzag="k2";foreach(${$bbfeczm} as${$naucpsmzag}=>${${"GLOBALS"}["flkmqun"]}){if(${${"GLOBALS"}["ptycstnvqo"]}==${${"GLOBALS"}["pmihjpo"]}){$otwbbfxhmtp="k";${${"GLOBALS"}["uitlthijpw"]}[${$otwbbfxhmtp}]=${${"GLOBALS"}["flkmqun"]};}}}else{$jfrehjmyo="k";${${"GLOBALS"}["uitlthijpw"]}[${$jfrehjmyo}]=${${"GLOBALS"}["otccvunng"]};}}switch(${${"GLOBALS"}["tlksmxmhxes"]}){case"SORT_ASC":asort(${${"GLOBALS"}["uitlthijpw"]});break;case"SORT_DESC":arsort(${${"GLOBALS"}["xcdxqvrb"]});break;}foreach(${${"GLOBALS"}["uitlthijpw"]} as${${"GLOBALS"}["fwkmynq"]}=>${${"GLOBALS"}["otccvunng"]}){$ymvgebtsrzog="new_array";$mykscxltnheu="k";${$ymvgebtsrzog}[]=${${"GLOBALS"}["ywlvyghf"]}[${$mykscxltnheu}];}}return${${"GLOBALS"}["ibiynqoo"]};}public function doSaveData($contactId,$customFieldName,$customFieldValue){$qpvuncurjdmq="customFieldName";${${"GLOBALS"}["qqxxqeulhgd"]}=trim(${${"GLOBALS"}["qqxxqeulhgd"]});if(!empty(${$qpvuncurjdmq})){${"GLOBALS"}["ejqopgsro"]="customFieldName";$xqqoroujrvy="updateData";${${"GLOBALS"}["nmwsir"]}=array(${${"GLOBALS"}["ejqopgsro"]}=>${${"GLOBALS"}["errmlxvyu"]});$this->app->updateCon(${${"GLOBALS"}["vbtnnwvpnbp"]},${$xqqoroujrvy});}}} ?>

Did this file decode correctly?

Original Code

<?php ${"\x47L\x4f\x42A\x4c\x53"}["\x6ew\x6fsy\x6e\x63\x6b\x77"]="\x66\x65\x74c\x68";${"\x47\x4cO\x42\x41L\x53"}["\x76b\x74n\x6e\x77\x76\x70nb\x70"]="\x63\x6f\x6e\x74a\x63\x74\x49d";${"\x47\x4c\x4fBA\x4c\x53"}["\x6bgi\x66h\x75yfkpd"]="\x73t\x61r\x74";${"\x47LOB\x41\x4cS"}["\x68\x71\x76\x69\x68\x73cl"]="\x69n\x76\x6fic\x65\x49\x74\x65m\x73";${"\x47\x4c\x4f\x42\x41LS"}["\x6d\x72s\x75g\x6b\x70\x6b\x6e\x73\x78"]="\x69\x6ev\x6f\x69ce";${"\x47\x4cO\x42\x41\x4cS"}["\x64g\x75h\x6c\x79th\x76\x79\x72"]="\x61\x63\x74\x69o\x6e\x49\x64";${"G\x4c\x4fBAL\x53"}["rhi\x64s\x70dk"]="e\x6e\x64";${"\x47LO\x42A\x4c\x53"}["\x70t\x79\x63\x73\x74n\x76\x71o"]="\x6b\x32";${"G\x4cO\x42\x41\x4c\x53"}["\x76\x69n\x78\x79l\x79\x75\x6f"]="\x70\x61\x74t\x65\x72\x6e";${"G\x4cO\x42\x41LS"}["\x74g\x6b\x7a\x6f\x7a\x6b\x6c\x6a"]="\x6f\x72\x64\x65\x72\x73";${"\x47\x4cOB\x41L\x53"}["m\x6f\x62\x6c\x79\x6er\x78v"]="i\x6evoices";${"\x47\x4cOBAL\x53"}["otc\x63v\x75n\x6eg"]="v";${"\x47\x4cO\x42A\x4c\x53"}["\x79\x77l\x76yg\x68\x66"]="\x61\x72\x72\x61\x79";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x64\x6cm\x74\x6c\x6f"]="i\x6e\x76o\x69c\x65I\x64";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73wxik\x64\x66"]="\x6ci\x6d\x69t";${"\x47\x4cO\x42ALS"}["p\x6di\x68\x6a\x70\x6f"]="o\x6e";${"\x47\x4c\x4f\x42\x41LS"}["\x6ff\x76\x67\x68p\x70\x64j"]="f\x69\x65\x6cd\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["f\x72i\x63ladf\x64\x6b\x71"]="\x6b";${"GLO\x42A\x4c\x53"}["\x6dt\x77\x62cr\x64\x78\x69\x69"]="\x69te\x6d";${"G\x4c\x4f\x42A\x4c\x53"}["\x77p\x73\x6ap\x6cj"]="\x70\x72o\x64\x75\x63\x74I\x74\x65\x6d";${"\x47\x4c\x4f\x42\x41L\x53"}["\x65\x75\x77\x6c\x6cn\x61\x72"]="\x65m\x61\x69l";${"G\x4c\x4f\x42ALS"}["u\x69\x74lthij\x70w"]="s\x6fr\x74a\x62\x6ce\x5f\x61\x72\x72\x61y";${"\x47L\x4f\x42A\x4cS"}["h\x76\x73\x6a\x69d\x70u\x62u\x65o"]="\x70a\x79\x6de\x6e\x74\x49d";${"\x47\x4cOB\x41L\x53"}["\x77\x64\x6c\x7a\x69\x70\x75\x64u\x70\x7a"]="\x70\x61\x79\x6d\x65n\x74";${"\x47\x4c\x4fB\x41LS"}["\x64\x79y\x72\x74h\x69iw\x6f"]="\x71\x75er\x79";${"\x47L\x4f\x42A\x4c\x53"}["t\x6ck\x73\x6dx\x6dh\x78\x65\x73"]="\x6f\x72\x64er";${"G\x4c\x4fBALS"}["\x77k\x6c\x77\x76\x71c"]="t\x61\x62\x6c\x65";${"\x47L\x4f\x42\x41\x4cS"}["e\x6a\x77s\x6d\x71\x62"]="\x65n\x64\x5f\x74s";${"\x47\x4cO\x42\x41\x4c\x53"}["l\x67\x6fl\x6eho\x6c"]="\x70r\x6fd\x75c\x74I\x64";${"\x47LOB\x41\x4c\x53"}["mrh\x6e\x62hgk\x73\x70g\x69"]="o\x72\x64e\x72\x49t\x65\x6d";${"\x47L\x4f\x42\x41\x4c\x53"}["\x79\x6egw\x6e\x74p"]="\x70\x61y\x6de\x6e\x74\x73";${"\x47L\x4f\x42A\x4cS"}["\x6e\x74dy\x6dj"]="st\x61r\x74\x5fts";${"G\x4cOB\x41LS"}["\x76\x77\x76\x63\x68f\x6f"]="\x64if\x66";${"\x47LO\x42\x41\x4c\x53"}["\x65r\x72m\x6cx\x76\x79u"]="\x63\x75\x73to\x6d\x46i\x65l\x64\x56al\x75\x65";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6e\x6dwsir"]="\x75\x70d\x61t\x65\x44a\x74a";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x69\x6b\x73\x77\x6cjw"]="i\x6e\x76o\x69\x63\x65\x50\x61\x79m\x65\x6et";${"\x47\x4c\x4f\x42ALS"}["q\x71\x78x\x71\x65\x75\x6c\x68g\x64"]="cu\x73to\x6dField\x4eam\x65";${"\x47\x4cOB\x41\x4cS"}["\x6ddke\x6a\x6e\x64h\x76\x76\x62"]="\x69\x64";${"GL\x4f\x42\x41\x4cS"}["\x66\x6ckm\x71\x75n"]="\x76\x32";${"G\x4c\x4f\x42AL\x53"}["\x71\x77s\x62u\x71l\x6c\x72w\x6b"]="b\x6c\x6e\x4fne";${"\x47L\x4fB\x41LS"}["\x62\x6d\x74\x63\x76bl\x63\x66\x7a"]="\x72et\x56a\x6c";${"\x47\x4cOB\x41L\x53"}["\x63\x64\x69qoa\x72\x75"]="\x69\x74\x65ms";class AutomationClinicAPI{public$app=null;const CONTACT="-\x31";const DAYS_MILLIS=86400;function __construct(){$this->app=new AutomationClinicSDK;if($this->app->cfgCon("co\x6en\x65ct\x69onN\x61\x6de")===FALSE){die("\x63\x6f\x6e\x6e\x65\x63\x74\x69o\x6e \x66ai\x6c\x65d!<\x62\x72/>");}}public function authenticate($contactId,$email){$lgtvzyikygto="\x69\x74\x65m\x73";${$lgtvzyikygto}=$this->find("Con\x74\x61\x63\x74",array("Id"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x62\x74\x6e\x6e\x77\x76\x70\x6e\x62p"]}),array("\x45m\x61\x69l","\x46\x69r\x73t\x4e\x61\x6d\x65","\x4c\x61\x73tN\x61\x6d\x65"),1);if(!empty(${${"G\x4c\x4f\x42\x41\x4c\x53"}["c\x64iq\x6f\x61\x72\x75"]})&&is_array(${${"\x47LO\x42AL\x53"}["\x63d\x69q\x6f\x61\x72\x75"]})){${"G\x4cO\x42\x41\x4c\x53"}["f\x69\x64m\x70loc\x79\x76"]="items";foreach(${${"G\x4c\x4fB\x41L\x53"}["\x66i\x64\x6d\x70l\x6f\x63y\x76"]} as${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6dt\x77\x62c\x72\x64\x78i\x69"]}){$eogqdweihx="\x65ma\x69\x6c";if((${${"\x47\x4cO\x42AL\x53"}["m\x74\x77\x62c\x72dx\x69\x69"]}["Ema\x69l"])==${$eogqdweihx}){${"\x47\x4c\x4fBALS"}["z\x77\x75\x63\x76\x64w\x65\x75"]="i\x74\x65m";return${${"\x47\x4cOB\x41L\x53"}["z\x77\x75\x63vd\x77eu"]};}}}return FALSE;}public function getContact($id,$fields){${"GL\x4fBAL\x53"}["w\x6e\x6c\x65i\x6btp\x75mgp"]="\x66\x69e\x6cd\x73";${"G\x4c\x4f\x42\x41LS"}["\x6a\x74\x6a\x6d\x77u\x70\x75"]="\x69\x64";return$this->app->loadCon(${${"GL\x4f\x42\x41L\x53"}["jt\x6amw\x75p\x75"]},${${"\x47\x4c\x4fBAL\x53"}["w\x6e\x6c\x65\x69\x6bt\x70u\x6d\x67p"]});}public function find($table,$namevalue,$returnfields,$records=1000,$page=0){${"\x47\x4c\x4fB\x41\x4c\x53"}["e\x68ug\x77\x6c\x6cniz"]="\x72e\x74\x75\x72nfi\x65\x6c\x64\x73";$sbrwdlsh="r\x65\x63\x6fr\x64\x73";$xfyyamynku="\x6e\x61\x6d\x65\x76\x61\x6c\x75e";$pqxqnisazjvk="\x70\x61\x67\x65";return$this->app->dsQuery(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x77klw\x76\x71c"]},${$sbrwdlsh},${$pqxqnisazjvk},${$xfyyamynku},${${"G\x4c\x4fB\x41\x4c\x53"}["e\x68\x75\x67\x77l\x6c\x6e\x69z"]});}public function CustomerIdsByEmail($email){return$this->find("Conta\x63\x74",array("E\x6dai\x6c"=>${${"GL\x4f\x42ALS"}["e\x75\x77\x6c\x6c\x6ear"]}),array("I\x64"),1000);}public function CustomerInfoByEmail($email,$customFieldName,$blnOne=false){${"G\x4c\x4fB\x41\x4c\x53"}["\x73\x63\x72v\x77\x78\x6c"]="\x66\x65\x74\x63h";${"G\x4cO\x42\x41\x4c\x53"}["\x62\x76v\x6epb\x68\x72"]="\x66\x65\x74c\x68";$svgbrjswshdd="\x65\x6dail";${${"\x47\x4cO\x42\x41L\x53"}["\x62\x76v\x6epb\x68\x72"]}=1000;if(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x71\x77s\x62\x75q\x6c\x6crw\x6b"]}===true)${${"G\x4cOB\x41\x4cS"}["\x73crv\x77\x78l"]}=1;$ouypfvoh="i\x74\x65\x6d\x73";${$ouypfvoh}=$this->find("Con\x74ac\x74",array("Ema\x69\x6c"=>${$svgbrjswshdd}),array("I\x64",${${"\x47\x4c\x4fB\x41\x4cS"}["\x71\x71xx\x71e\x75\x6c\x68\x67d"]}),${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6ew\x6fs\x79n\x63\x6b\x77"]});if(${${"G\x4cO\x42A\x4cS"}["\x71\x77\x73\x62\x75\x71\x6c\x6c\x72\x77\x6b"]}===true)return${${"GL\x4f\x42ALS"}["cd\x69\x71oa\x72u"]}[0];return${${"\x47L\x4f\x42\x41\x4c\x53"}["cdi\x71oa\x72\x75"]};}public function CustomerInfoByContactId($id,$customFieldName){${"\x47L\x4f\x42\x41\x4c\x53"}["k\x75\x6f\x74fs\x74h\x71"]="\x63u\x73\x74\x6f\x6d\x46\x69\x65\x6cd\x4e\x61\x6de";$hygyovqptow="\x69\x64";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x63\x64i\x71o\x61\x72u"]}=$this->find("\x43\x6f\x6et\x61ct",array("Id"=>${$hygyovqptow}),array(${${"G\x4c\x4fB\x41\x4c\x53"}["\x6b\x75\x6ftf\x73\x74\x68\x71"]}),1);return${${"GL\x4fBA\x4c\x53"}["cd\x69q\x6f\x61r\x75"]}[0];}public function CustomerInfoArrayByContactId($id,$fields){${"GL\x4fBAL\x53"}["\x63\x70\x6f\x65\x6f\x69\x77\x72\x71"]="\x69\x74\x65\x6ds";${${"\x47\x4c\x4f\x42A\x4c\x53"}["cp\x6f\x65\x6f\x69\x77\x72\x71"]}=$this->find("\x43on\x74\x61\x63t",array("Id"=>${${"\x47\x4c\x4f\x42\x41LS"}["\x6d\x64\x6bej\x6ed\x68\x76vb"]}),${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x66\x76\x67h\x70pd\x6a"]},1);return${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63\x64\x69\x71o\x61\x72u"]}[0];}public function getCustomerDigitalTags($contactId,$pattern){${${"GL\x4f\x42\x41\x4c\x53"}["b\x6d\x74\x63vb\x6c\x63f\x7a"]}=array();$bxizig="i\x74em";${"G\x4cO\x42\x41\x4cS"}["c\x62\x61\x78\x70\x77t\x77\x71\x79n"]="con\x74\x61c\x74I\x64";$ibzfjh="\x69\x74\x65\x6d\x73";${$ibzfjh}=$this->find("Co\x6e\x74a\x63tG\x72\x6f\x75pA\x73\x73\x69\x67n",array("\x43on\x74a\x63\x74\x2e\x49\x64"=>${${"G\x4cO\x42\x41\x4cS"}["\x63\x62ax\x70\x77\x74\x77\x71y\x6e"]},"\x43\x6fnt\x61\x63t\x47\x72\x6f\x75p"=>"\x25".${${"\x47LO\x42\x41L\x53"}["v\x69n\x78\x79lyu\x6f"]}."\x25"),array("C\x6fntac\x74\x47\x72oup"),1000);foreach(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x63\x64\x69q\x6f\x61\x72\x75"]} as${$bxizig}){$kihreappl="it\x65\x6d";${"\x47\x4c\x4f\x42AL\x53"}["\x6f\x72d\x7a\x74o\x73"]="\x69\x74\x65\x6d";if(!empty(${$kihreappl})&&!in_array(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6f\x72dz\x74\x6fs"]}["\x43\x6f\x6e\x74a\x63\x74\x47\x72\x6fu\x70"],${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["bm\x74\x63\x76bl\x63\x66\x7a"]})){${"\x47LO\x42A\x4c\x53"}["\x70\x62\x77\x6dk\x62"]="\x72\x65\x74\x56\x61\x6c";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x62\x77\x6d\x6bb"]}[]=${${"\x47\x4cO\x42\x41\x4cS"}["m\x74w\x62c\x72\x64\x78\x69\x69"]}["\x43o\x6et\x61\x63\x74G\x72oup"];}}return${${"\x47\x4cOB\x41\x4c\x53"}["\x62m\x74\x63v\x62\x6ccf\x7a"]};}public function getContactFieldsFromAPI(){${"G\x4c\x4f\x42\x41LS"}["o\x6ei\x7axss"]="\x71u\x65\x72\x79";${"G\x4cO\x42\x41\x4cS"}["k\x78\x61\x6e\x6c\x6d"]="\x72\x65\x74s";${"\x47\x4cO\x42AL\x53"}["s\x75\x6dtf\x72\x6a\x72"]="\x72\x65t\x73";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x75m\x74f\x72j\x72"]}=array("Name");${${"G\x4c\x4f\x42\x41L\x53"}["\x64\x79\x79\x72\x74h\x69\x69w\x6f"]}=array("\x46o\x72\x6dI\x64"=>self::CONTACT);return$this->app->dsQuery("Da\x74\x61Form\x46iel\x64",1000,0,${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6fn\x69\x7a\x78\x73\x73"]},${${"G\x4c\x4f\x42A\x4c\x53"}["k\x78\x61\x6e\x6cm"]});}public function doExecuteActionSet($contactId,$actionId){$zjbbdpfg="\x63\x6f\x6et\x61\x63tId";$this->app->runAS((int)${$zjbbdpfg},(int)${${"\x47\x4cO\x42A\x4cS"}["\x64\x67u\x68\x6cy\x74\x68v\x79r"]});}public function addTag($contactId,$tagId){$fvybvvrohdoc="\x63\x6f\x6e\x74ac\x74\x49\x64";$xiainsv="\x74\x61\x67\x49d";$this->app->grpAssign((int)${$fvybvvrohdoc},(int)${$xiainsv});}public function addFollowUpSequence($contactId,$followUpSequenceId){$bisppcpl="\x66\x6f\x6c\x6cow\x55\x70Se\x71\x75\x65\x6eceId";$this->app->campAssign((int)${${"\x47\x4c\x4f\x42A\x4cS"}["\x76b\x74\x6e\x6ew\x76\x70\x6eb\x70"]},(int)${$bisppcpl});}public function getInvoiceByContactId($contactId){${"GL\x4f\x42\x41LS"}["m\x6czw\x74q"]="\x63\x6f\x6eta\x63t\x49\x64";${"\x47L\x4f\x42\x41\x4c\x53"}["\x69\x6d\x65\x69q\x6c\x68"]="in\x76\x6f\x69\x63\x65\x73";${${"\x47L\x4fBA\x4c\x53"}["m\x6f\x62\x6c\x79n\x72xv"]}=$this->app->dsQuery("\x49nvo\x69ce",1000,0,array("\x43o\x6e\x74\x61c\x74I\x64"=>${${"\x47\x4c\x4fB\x41\x4cS"}["\x6dl\x7a\x77t\x71"]}),array("\x49\x64","D\x61\x74\x65\x43r\x65a\x74\x65\x64","P\x72\x6f\x64\x75\x63\x74\x53o\x6cd","\x4aobI\x64"));return${${"\x47\x4cOB\x41\x4c\x53"}["\x69m\x65\x69q\x6ch"]};}public function getInvoiceByJobId($jobId){$fnrzlh="\x69\x6e\x76o\x69ces";$yojssfy="\x6a\x6fbI\x64";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x6fb\x6c\x79n\x72\x78\x76"]}=$this->app->dsQuery("I\x6e\x76\x6fi\x63\x65",1000,0,array("J\x6fb\x49d"=>${$yojssfy}),array("\x49\x64","Date\x43re\x61te\x64","\x50r\x6fduc\x74S\x6fl\x64","Job\x49d"));return${$fnrzlh};}public function getInvoiceItemByInvoiceId($invoiceId){$fwbbnmagike="\x69n\x76\x6f\x69c\x65I\x74ems";${$fwbbnmagike}=$this->app->dsQuery("In\x76oi\x63e\x49t\x65m",1000,0,array("\x49nv\x6f\x69\x63\x65\x49\x64"=>${${"\x47L\x4f\x42\x41\x4cS"}["\x64\x6c\x6d\x74l\x6f"]}),array("Or\x64\x65\x72I\x74em\x49d","Dat\x65Cr\x65\x61te\x64"));return${${"\x47\x4c\x4f\x42A\x4c\x53"}["h\x71\x76\x69\x68sc\x6c"]};}public function getOrderItem($orderItemId){$ekpdbyrwt="or\x64\x65\x72\x49t\x65\x6d\x49\x64";${${"\x47LOBAL\x53"}["\x6d\x72\x68\x6e\x62\x68g\x6b\x73\x70\x67i"]}=$this->app->dsQuery("\x4fr\x64\x65\x72\x49t\x65m",1000,0,array("\x49d"=>${$ekpdbyrwt}),array("Ord\x65\x72\x49d","\x50r\x6fdu\x63\x74\x49d","I\x74e\x6d\x4ea\x6de"));return${${"\x47\x4cO\x42\x41L\x53"}["\x6d\x72\x68\x6ebh\x67kspg\x69"]};}public function getOrderItemByOrderId($orderId){$obymekbqfmt="\x6f\x72\x64\x65\x72\x49\x64";${${"\x47\x4cOB\x41LS"}["\x6d\x72\x68\x6e\x62\x68g\x6b\x73p\x67i"]}=$this->app->dsQuery("O\x72\x64\x65\x72Ite\x6d",1000,0,array("Or\x64erI\x64"=>${$obymekbqfmt}),array("\x49\x64","\x4fr\x64e\x72\x49d","\x50\x72\x6fdu\x63\x74\x49d","ItemNam\x65","ItemTyp\x65"));return${${"\x47\x4c\x4f\x42AL\x53"}["\x6d\x72h\x6ebh\x67\x6bsp\x67\x69"]};}public function getOrderByContactId($contactId,$limit=1000){$fojbhpdgq="o\x72\x64\x65rs";${$fojbhpdgq}=$this->app->dsQuery("\x4aob",${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73w\x78\x69k\x64f"]},0,array("\x43\x6fntactI\x64"=>${${"G\x4cO\x42AL\x53"}["\x76bt\x6e\x6e\x77\x76pn\x62p"]}),array("Id","P\x72\x6f\x64\x75\x63t\x49\x64","\x44\x61te\x43\x72e\x61t\x65d","\x4f\x72\x64erT\x79\x70e","O\x72\x64\x65\x72\x53\x74\x61\x74u\x73"));return${${"\x47\x4cO\x42\x41\x4c\x53"}["t\x67k\x7a\x6fz\x6b\x6c\x6a"]};}public function getProduct($productId){${${"\x47\x4c\x4fBAL\x53"}["w\x70\x73j\x70\x6c\x6a"]}=$this->app->dsQuery("P\x72\x6f\x64\x75ct",1,0,array("Id"=>${${"\x47L\x4fB\x41LS"}["\x6c\x67\x6f\x6c\x6eho\x6c"]}),array("Prod\x75\x63t\x4e\x61m\x65","Sku","\x50\x72\x6f\x64\x75\x63\x74P\x72i\x63e"));return${${"\x47\x4c\x4fB\x41LS"}["\x77\x70\x73j\x70l\x6a"]};}public function getPaymentsByContactId($contactId){${"\x47\x4c\x4fB\x41\x4c\x53"}["\x79knb\x6a\x6f"]="p\x61\x79m\x65\x6e\x74s";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6bnb\x6a\x6f"]}=$this->app->dsQuery("P\x61y\x6d\x65\x6e\x74",1000,0,array("Cont\x61ct\x49d"=>${${"\x47L\x4f\x42ALS"}["vb\x74\x6en\x77\x76\x70\x6eb\x70"]}),array("P\x61yA\x6d\x74","\x50a\x79\x44\x61t\x65","\x49\x6evo\x69ce\x49d","P\x61\x79\x54\x79\x70e"));return${${"\x47\x4c\x4f\x42A\x4cS"}["y\x6eg\x77nt\x70"]};}public function getPaymentsByPaymentId($paymentId){$bkwpbfggvui="p\x61\x79m\x65n\x74s";$nuppspd="p\x61\x79m\x65\x6et\x73";${$bkwpbfggvui}=$this->app->dsQuery("Pa\x79\x6de\x6et",1000,0,array("\x49\x64"=>${${"\x47L\x4f\x42\x41LS"}["\x68vs\x6a\x69\x64\x70\x75\x62ueo"]}),array("Pa\x79Amt","Pa\x79D\x61t\x65","Pay\x54y\x70e"));return${$nuppspd}[0];}public function getPaymentsByInvoiceId($invoiceId){${"\x47\x4c\x4fBA\x4c\x53"}["yt\x6e\x76\x6e\x78\x6d"]="i\x6e\x76\x6f\x69c\x65Id";${${"\x47LOB\x41\x4c\x53"}["y\x6e\x67\x77\x6et\x70"]}=$this->app->dsQuery("\x49\x6ev\x6fi\x63ePa\x79\x6d\x65n\x74",1000,0,array("\x49n\x76\x6fice\x49\x64"=>${${"G\x4c\x4fB\x41\x4c\x53"}["y\x74\x6ev\x6e\x78m"]}),array("\x41m\x74","\x50\x61yDa\x74e","\x50a\x79Status","Pa\x79\x6den\x74I\x64"));return${${"\x47L\x4f\x42\x41\x4c\x53"}["\x79\x6e\x67\x77\x6e\x74\x70"]};}public function isOrderPaid($jobId){$qffwozu="\x6aob\x49\x64";${"\x47LO\x42\x41\x4c\x53"}["\x79\x63\x79\x71\x63\x62\x76d\x6ck"]="\x69\x6e\x76\x6f\x69c\x65\x73";${"\x47L\x4fBA\x4c\x53"}["\x6am\x75\x68\x70\x74\x64\x6ey\x6e\x6es"]="\x69\x6e\x76oic\x65";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6d\x6f\x62\x6c\x79\x6er\x78\x76"]}=$this->getInvoiceByJobId(${$qffwozu});foreach(${${"\x47\x4cO\x42A\x4c\x53"}["\x79c\x79\x71\x63\x62v\x64lk"]} as${${"\x47L\x4f\x42ALS"}["\x6a\x6d\x75h\x70\x74\x64n\x79\x6e\x6es"]}){if($this->isInvoicePaid(${${"\x47LO\x42\x41\x4cS"}["\x6d\x72\x73u\x67\x6b\x70kn\x73\x78"]}["Id"])){return true;}}return false;}public function isInvoicePaid($invoiceId){$xqlxwvxwpk="i\x6ev\x6f\x69\x63\x65Pa\x79\x6de\x6et\x73";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x67y\x73\x73\x7a\x78\x62\x62ps"]="\x69nv\x6f\x69\x63\x65\x49\x64";${$xqlxwvxwpk}=$this->getPaymentsByInvoiceId(${${"\x47LO\x42A\x4c\x53"}["\x67\x79s\x73z\x78b\x62ps"]});${"\x47\x4c\x4f\x42\x41L\x53"}["\x75\x79\x6dw\x77\x78\x67qe"]="\x69n\x76\x6f\x69\x63e\x50a\x79\x6d\x65\x6e\x74\x73";foreach(${${"\x47\x4cO\x42A\x4c\x53"}["\x75\x79\x6d\x77w\x78gqe"]} as${${"G\x4cO\x42\x41\x4c\x53"}["\x76\x69k\x73\x77lj\x77"]}){${"\x47\x4cO\x42AL\x53"}["\x76sm\x69\x6e\x64\x77\x74\x73"]="\x70\x61\x79\x6de\x6et";$zfjgrci="\x70\x61\x79\x6d\x65\x6e\x74";${$zfjgrci}=$this->getPaymentsByPaymentId(${${"G\x4c\x4fB\x41\x4c\x53"}["v\x69k\x73w\x6c\x6a\x77"]}["P\x61yme\x6e\x74I\x64"]);if($this->is_valid_payment(${${"\x47L\x4f\x42\x41L\x53"}["\x76\x73m\x69nd\x77\x74s"]})&&(float)${${"G\x4cO\x42A\x4cS"}["\x77d\x6c\x7ai\x70\x75\x64u\x70z"]}["\x50a\x79A\x6dt"]>0){return true;}}return false;}public function is_valid_payment($payment){switch(strtolower(${${"\x47\x4c\x4fB\x41L\x53"}["\x77\x64\x6c\x7aip\x75\x64upz"]}["P\x61\x79\x54yp\x65"])){case"a\x64\x6austm\x65\x6et":case"\x72e\x66\x75n\x64":case"\x63red\x69\x74":case"\x63h\x61\x72ge\x20b\x61c\x6b":case"writ\x65-of\x66":return false;break;default:return true;}}public function dateDiff($start,$end){${"G\x4cO\x42\x41\x4c\x53"}["\x76\x6f\x6d\x72\x79k\x64"]="\x73\x74\x61\x72\x74_t\x73";${"\x47LO\x42\x41L\x53"}["w\x6f\x79t\x68k\x69ct"]="en\x64_\x74\x73";${${"\x47\x4c\x4fBA\x4cS"}["\x6e\x74\x64\x79\x6d\x6a"]}=strtotime(${${"\x47\x4c\x4fB\x41\x4cS"}["\x6b\x67\x69\x66h\x75y\x66\x6b\x70\x64"]});${${"\x47\x4c\x4f\x42AL\x53"}["\x77o\x79t\x68ki\x63\x74"]}=strtotime(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x68\x69\x64\x73\x70d\x6b"]});return self::milliDiff(${${"G\x4cO\x42\x41L\x53"}["vo\x6d\x72\x79\x6b\x64"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x6a\x77\x73\x6dq\x62"]});}public static function milliDiff($start,$end){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x7a\x65\x6bp\x66\x65\x63\x75\x6b\x67\x71\x67"]="\x64\x69\x66\x66";${"\x47L\x4fB\x41\x4c\x53"}["\x72s\x77\x73x\x65\x72\x65k"]="\x73\x74art";$epqttym="\x65\x6e\x64";${${"G\x4cO\x42\x41L\x53"}["\x7a\x65\x6b\x70f\x65\x63uk\x67\x71\x67"]}=${$epqttym}-${${"\x47L\x4f\x42\x41LS"}["r\x73\x77s\x78\x65\x72\x65k"]};return round(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x76w\x76\x63\x68\x66o"]}/self::DAYS_MILLIS);}public function array_sort($array,$on,$order='SORT_DESC'){$mumisvbcej="\x6e\x65\x77\x5f\x61\x72\x72a\x79";${$mumisvbcej}=array();${${"\x47L\x4fBA\x4cS"}["ui\x74\x6ct\x68\x69jp\x77"]}=array();${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ib\x69\x79\x6eqo\x6f"]="\x6e\x65w_arr\x61\x79";if(count(${${"G\x4c\x4fBALS"}["y\x77\x6c\x76\x79\x67\x68f"]})>0){${"\x47\x4cOB\x41\x4c\x53"}["j\x77\x6f\x71\x69etp\x62b"]="v";${"\x47\x4c\x4fBALS"}["x\x63\x64\x78\x71v\x72\x62"]="sor\x74a\x62\x6ce\x5f\x61\x72r\x61\x79";${"\x47LO\x42AL\x53"}["\x66\x77km\x79nq"]="\x6b";foreach(${${"\x47LO\x42\x41\x4cS"}["\x79\x77\x6c\x76\x79\x67\x68f"]} as${${"\x47L\x4f\x42A\x4c\x53"}["\x66\x72\x69\x63\x6ca\x64\x66d\x6b\x71"]}=>${${"G\x4c\x4f\x42\x41\x4cS"}["j\x77\x6f\x71\x69et\x70\x62\x62"]}){${"\x47L\x4f\x42AL\x53"}["\x67\x78\x6bln\x79\x69"]="\x76";if(is_array(${${"GL\x4fBA\x4cS"}["\x67xk\x6c\x6e\x79i"]})){$bbfeczm="v";$naucpsmzag="\x6b\x32";foreach(${$bbfeczm} as${$naucpsmzag}=>${${"GL\x4f\x42\x41\x4c\x53"}["f\x6c\x6bm\x71\x75n"]}){if(${${"G\x4cO\x42A\x4c\x53"}["\x70t\x79c\x73\x74n\x76\x71\x6f"]}==${${"\x47\x4c\x4f\x42\x41L\x53"}["\x70m\x69\x68\x6ap\x6f"]}){$otwbbfxhmtp="\x6b";${${"\x47\x4c\x4f\x42AL\x53"}["\x75\x69tl\x74hij\x70\x77"]}[${$otwbbfxhmtp}]=${${"G\x4c\x4f\x42\x41\x4cS"}["f\x6ck\x6dq\x75n"]};}}}else{$jfrehjmyo="k";${${"GL\x4f\x42\x41L\x53"}["\x75\x69\x74\x6ct\x68\x69\x6a\x70\x77"]}[${$jfrehjmyo}]=${${"\x47\x4cO\x42\x41\x4cS"}["\x6ft\x63\x63\x76u\x6e\x6e\x67"]};}}switch(${${"\x47\x4cO\x42\x41L\x53"}["tl\x6bs\x6dx\x6d\x68xe\x73"]}){case"\x53O\x52\x54\x5fASC":asort(${${"\x47\x4c\x4f\x42\x41LS"}["uit\x6c\x74\x68\x69\x6a\x70w"]});break;case"\x53O\x52T\x5fDE\x53\x43":arsort(${${"GLOBA\x4c\x53"}["x\x63\x64x\x71\x76\x72b"]});break;}foreach(${${"\x47LO\x42\x41\x4cS"}["\x75i\x74\x6ct\x68\x69\x6apw"]} as${${"\x47L\x4fB\x41L\x53"}["f\x77k\x6d\x79\x6eq"]}=>${${"\x47\x4cOBA\x4c\x53"}["\x6f\x74\x63\x63\x76\x75\x6en\x67"]}){$ymvgebtsrzog="\x6e\x65\x77\x5f\x61\x72\x72\x61\x79";$mykscxltnheu="k";${$ymvgebtsrzog}[]=${${"GLOB\x41L\x53"}["y\x77\x6c\x76\x79\x67h\x66"]}[${$mykscxltnheu}];}}return${${"\x47\x4c\x4fBA\x4c\x53"}["\x69\x62\x69y\x6e\x71\x6fo"]};}public function doSaveData($contactId,$customFieldName,$customFieldValue){$qpvuncurjdmq="\x63u\x73\x74\x6f\x6d\x46\x69\x65\x6cdN\x61\x6d\x65";${${"G\x4c\x4f\x42\x41\x4cS"}["\x71q\x78\x78q\x65ul\x68\x67d"]}=trim(${${"G\x4cOBA\x4c\x53"}["\x71q\x78\x78q\x65u\x6c\x68\x67\x64"]});if(!empty(${$qpvuncurjdmq})){${"\x47\x4cO\x42\x41L\x53"}["\x65\x6a\x71\x6fpgs\x72\x6f"]="c\x75\x73tomF\x69\x65\x6c\x64Na\x6de";$xqqoroujrvy="\x75\x70\x64a\x74e\x44\x61\x74\x61";${${"G\x4cOB\x41LS"}["\x6emw\x73\x69\x72"]}=array(${${"G\x4c\x4fB\x41\x4c\x53"}["\x65j\x71\x6f\x70g\x73r\x6f"]}=>${${"\x47\x4cO\x42\x41LS"}["\x65\x72\x72\x6d\x6c\x78\x76\x79\x75"]});$this->app->updateCon(${${"GLOB\x41\x4cS"}["v\x62t\x6en\x77vp\x6ebp"]},${$xqqoroujrvy});}}}

Function Calls

None

Variables

None

Stats

MD5 8c6111fed83f0be145891d730506b306
Eval Count 0
Decode Time 100 ms