Built motion from commit 0c27b27.|1.0.11
[motion.git] / server / config / integrations / salesforce.js
index 506d296..41dfdef 100644 (file)
@@ -1 +1 @@
-var _0x4a62=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x73\x66\x6F\x72\x63\x65","\x6D\x6F\x6D\x65\x6E\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x50\x61\x73\x73\x65\x64\x20\x70\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x20\x61\x72\x65\x20\x6E\x6F\x74\x20\x65\x6E\x6F\x75\x67\x68\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x74\x69\x63\x6B\x65\x74\x3A\x20\x6D\x69\x73\x73\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64\x20\x6F\x72\x20\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x49\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6C\x6F\x67\x69\x6E\x2E\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2E\x63\x6F\x6D","\x63\x6C\x69\x65\x6E\x74\x49\x64","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x73\x65\x63\x75\x72\x69\x74\x79\x54\x6F\x6B\x65\x6E","\x63\x6F\x6E\x63\x61\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x73\x65\x72\x76\x65\x72\x55\x52\x4C","\x73\x65\x72\x76\x65\x72\x55\x72\x6C","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x6C\x6F\x67\x69\x6E","\x71\x75\x65\x75\x65","\x6E\x61\x6D\x65","\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x6F\x72\x6D\x61\x74","\x66\x69\x6E\x64\x4F\x6E\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x51\x75\x65\x75\x65","\x72\x65\x63\x6F\x72\x64\x45\x6E\x61\x62\x6C\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x51\x75\x65\x75\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x6F\x72\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x6E\x6F\x74\x20\x65\x6E\x61\x62\x6C\x65\x64","\x72\x6F\x75\x74\x65\x49\x64","\x69\x64","\x72\x65\x63\x6F\x72\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x52\x6F\x75\x74\x65\x20\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x6F\x75\x74\x65\x20\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x6F\x72\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x6E\x6F\x74\x20\x65\x6E\x61\x62\x6C\x65\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x65\x78\x65\x63\x75\x74\x65","\x55\x73\x65\x72","\x73\x6F\x62\x6A\x65\x63\x74","","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x76\x6F\x69\x63\x65","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x55\x52\x4C","\x25\x73\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73\x2F\x25\x73\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x3F\x74\x79\x70\x65\x3D\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x72\x65\x73\x75\x6C\x74","\x6C\x65\x6E\x67\x74\x68","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x61\x67\x65\x6E\x74","\x4E\x61\x6D\x65","\x66\x69\x72\x73\x74","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E\x20\x55\x73\x65\x20\x74\x68\x65\x20\x61\x64\x6D\x69\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74","\x69\x64\x65\x6E\x74\x69\x74\x79","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x64\x6D\x69\x6E\x20\x73\x65\x6C\x65\x63\x74\x65\x64","\x75\x73\x65\x72\x5F\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x43\x6F\x6E\x74\x61\x63\x74","\x50\x68\x6F\x6E\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x65\x6E\x64\x75\x73\x65\x72","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x4C\x65\x61\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x66\x6F\x75\x6E\x64\x3A","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x2F\x4C\x65\x61\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x63\x72\x65\x61\x74\x65","\x4E\x6F\x20\x43\x6F\x6D\x70\x61\x6E\x79","\x4C\x61\x73\x74\x4E\x61\x6D\x65","\x43\x61\x6C\x6C\x65\x72\x20\x2D\x20\x25\x73","\x3C\x75\x6E\x6B\x6E\x6F\x77\x6E\x3E","\x73\x75\x63\x63\x65\x73\x73","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x63\x72\x65\x61\x74\x65\x64\x3A\x20","\x49\x64","\x75\x74\x63","\x76\x61\x6C\x75\x65","\x66\x6F\x72\x45\x61\x63\x68","\x54\x61\x73\x6B","\x53\x75\x62\x6A\x65\x63\x74","\x73\x6F\x72\x74\x42\x79","\x74\x79\x70\x65","\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x74\x65\x6E\x74","\x70\x75\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65","\x63\x75\x73\x74\x6F\x6D\x56\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65","\x20","\x6A\x6F\x69\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6B\x65\x79\x56\x61\x6C\x75\x65","\x6B\x65\x79\x54\x79\x70\x65","\x25\x73\x3A\x20\x25\x73","\x6B\x65\x79","\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74","\x0A","\x46\x69\x65\x6C\x64","\x69\x64\x46\x69\x65\x6C\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x54\x61\x73\x6B\x20\x63\x72\x65\x61\x74\x65\x64\x20","\x74\x61\x73\x6B\x49\x64","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x65\x78\x69\x74\x53\x74\x61\x74\x75\x73","\x74\x69\x63\x6B\x65\x74\x49\x64","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64","\x75\x72\x6C","\x25\x73\x2F\x25\x73\x2F\x65","\x69\x6E\x73\x74\x61\x6E\x63\x65\x55\x72\x6C","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x54\x61\x73\x6B\x20\x25\x73\x20\x64\x69\x73\x70\x6C\x61\x79\x65\x64\x20\x74\x6F\x20\x61\x67\x65\x6E\x74\x20\x25\x73","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x74\x61\x73\x6B\x20\x63\x72\x65\x61\x74\x69\x6F\x6E","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x73\x74\x61\x63\x6B","\x66\x61\x69\x6C\x65\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x52\x65\x70\x6F\x72\x74\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x63\x72\x65\x61\x74\x65","\x73\x75\x62\x73\x74\x72","\x2F","\x65\x78\x70\x6F\x72\x74\x73"];_0x4a62[0];var _=require(_0x4a62[1]);var util=require(_0x4a62[2]);var jsforce=require(_0x4a62[3]);var moment=require(_0x4a62[4]);var SalesforceIntegration=require(_0x4a62[6])[_0x4a62[5]];var SalesforceConfiguration=require(_0x4a62[6])[_0x4a62[7]];var ReportIntegration=require(_0x4a62[6])[_0x4a62[8]];var VoiceQueue=require(_0x4a62[6])[_0x4a62[9]];var VoiceExtension=require(_0x4a62[6])[_0x4a62[10]];function Salesforce(){console[_0x4a62[12]](_0x4a62[11])}Salesforce[_0x4a62[14]][_0x4a62[13]]= function(_0xfb39xb,_0xfb39xc,_0xfb39xd,_0xfb39xe,_0xfb39xf,_0xfb39x10){var _0xfb39x11={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined};if(!_0xfb39xb||  !_0xfb39xc){console[_0x4a62[16]](_0x4a62[15]);return};SalesforceConfiguration[_0x4a62[19]]({where:{id:_0xfb39xc,AccountId:_0xfb39xb},include:[{all:true,include:[{all:true}]}]})[_0x4a62[18]](handleEntityNotFound())[_0x4a62[18]](handleConnection(_0xfb39x11))[_0x4a62[18]](searchQueue(_0xfb39xf))[_0x4a62[18]](handleQueueRecordings(_0xfb39x11,_0xfb39xf))[_0x4a62[18]](searchRoute(_0xfb39xf))[_0x4a62[18]](handleOutboundRecordings(_0xfb39x11,_0xfb39xf))[_0x4a62[18]](searchAgent(_0xfb39x11,_0xfb39xd,_0xfb39xf))[_0x4a62[18]](handleAgent(_0xfb39x11,_0xfb39xd,_0xfb39xf))[_0x4a62[18]](searchAdmin(_0xfb39x11))[_0x4a62[18]](handleAdmin(_0xfb39x11))[_0x4a62[18]](searchContact(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xe))[_0x4a62[18]](handleContact(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xe))[_0x4a62[18]](searchLead(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xe))[_0x4a62[18]](handleLead(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xe))[_0x4a62[18]](leadCreation(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xe))[_0x4a62[18]](handleLeadCreation(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xe))[_0x4a62[18]](taskCreation(_0xfb39x11,_0xfb39xf,_0xfb39x10))[_0x4a62[18]](handleTaskDisplay(_0xfb39x11))[_0x4a62[18]](handleReportIntegration(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xb))[_0x4a62[18]](handleEnd(_0xfb39x11))[_0x4a62[17]](handleError(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xb))};function handleEntityNotFound(){return function(_0xfb39x13){if(!_0xfb39x13){return null};return _0xfb39x13}}function handleConnection(_0xfb39x11){return function(_0xfb39x15){_0xfb39x11[_0x4a62[20]]=  new jsforce.Connection({oauth2:{loginUrl:_0xfb39x15[_0x4a62[22]][_0x4a62[21]]?_0xfb39x15[_0x4a62[22]][_0x4a62[21]]:_0x4a62[23],clientId:_0xfb39x15[_0x4a62[22]][_0x4a62[24]],clientSecret:_0xfb39x15[_0x4a62[22]][_0x4a62[25]]}});var _0xfb39x16=_0xfb39x15[_0x4a62[22]][_0x4a62[28]][_0x4a62[27]](_0xfb39x15[_0x4a62[22]][_0x4a62[26]]);_0xfb39x11[_0x4a62[29]]= _0xfb39x15;_0xfb39x11[_0x4a62[30]]= _0xfb39x15[_0x4a62[22]][_0x4a62[31]];return _0xfb39x11[_0x4a62[20]][_0x4a62[33]](_0xfb39x15[_0x4a62[22]][_0x4a62[32]],_0xfb39x16)}}function searchQueue(_0xfb39xf){return function(){if(_0xfb39xf[_0x4a62[34]]){return VoiceQueue[_0x4a62[37]]({where:{name:_0xfb39xf[_0x4a62[34]]},attributes:[_0x4a62[35],_0x4a62[36]]})}else {return}}}function handleQueueRecordings(_0xfb39x11,_0xfb39xf){return function(_0xfb39x19){if(_0xfb39xf[_0x4a62[34]]){if(_0xfb39x19&& _0xfb39x19[_0x4a62[36]]){console[_0x4a62[12]](_0x4a62[38],_0xfb39x19[_0x4a62[35]]);_0xfb39x11[_0x4a62[39]]= true}else {_0xfb39x11[_0x4a62[39]]= false;console[_0x4a62[12]](_0x4a62[40])}};return}}function searchRoute(_0xfb39xf){return function(){if(_0xfb39xf[_0x4a62[41]]){return VoiceExtension[_0x4a62[37]]({where:{id:_0xfb39xf[_0x4a62[41]]},attributes:[_0x4a62[42],_0x4a62[43]]})}else {return}}}function handleOutboundRecordings(_0xfb39x11,_0xfb39xf){return function(_0xfb39x1c){if(_0xfb39xf[_0x4a62[41]]){if(_0xfb39x1c&& _0xfb39x1c[_0x4a62[43]]){console[_0x4a62[12]](_0x4a62[44],_0xfb39x1c[_0x4a62[42]]);_0xfb39x11[_0x4a62[39]]= true}else {_0xfb39x11[_0x4a62[39]]= false;console[_0x4a62[12]](_0x4a62[45])}};return}}function searchAgent(_0xfb39x11,_0xfb39xd,_0xfb39xf){return function(){console[_0x4a62[12]](_0x4a62[46],getValueFromPropertyName(_0xfb39xf,getAgentSearchPropertyFromChannel(_0xfb39xd)));return _0xfb39x11[_0x4a62[20]][_0x4a62[49]](_0x4a62[48])[_0x4a62[19]]({Name:getValueFromPropertyName(_0xfb39xf,getAgentSearchPropertyFromChannel(_0xfb39xd))},{Id:1,Username:1,Name:1})[_0x4a62[47]]()}}function getAgentSearchPropertyFromChannel(_0xfb39xd){var _0xfb39x1f=_0x4a62[50];if(_0xfb39xd){switch(_0xfb39xd){case _0x4a62[52]:_0xfb39x1f= _0x4a62[51];break;default:_0xfb39x1f= _0x4a62[51];console[_0x4a62[16]](_0x4a62[53],_0xfb39xd)}};return _0xfb39x1f}function getValueFromPropertyName(_0xfb39xf,_0xfb39x1f,_0xfb39x11){if(_0xfb39x1f=== _0x4a62[54]){if(_0xfb39x11&& _0xfb39x11[_0x4a62[39]]&& _0xfb39x11[_0x4a62[30]]){return util[_0x4a62[57]](_0x4a62[55],stripTrailingSlash(_0xfb39x11[_0x4a62[30]]),_0xfb39xf[_0x4a62[56]])}else {return null}}else {return _[_0x4a62[58]](_0xfb39xf,_0xfb39x1f)}}function handleAgent(_0xfb39x11,_0xfb39xd,_0xfb39x22){return function(_0xfb39xf){if(_0xfb39xf[_0x4a62[59]]> 0){console[_0x4a62[12]](_0x4a62[60],getValueFromPropertyName(_0xfb39x22,getAgentSearchPropertyFromChannel(_0xfb39xd)));_0xfb39x11[_0x4a62[61]]= getMatchObject(_0xfb39xf,_0x4a62[62],getValueFromPropertyName(_0xfb39x22,getAgentSearchPropertyFromChannel(_0xfb39xd)));return _0xfb39x11[_0x4a62[61]]};return}}function getMatchObject(_0xfb39x24,_0xfb39x1f,_0xfb39x25){var _0xfb39x26=_[_0x4a62[19]](_0xfb39x24,{property:_0xfb39x25});if(_0xfb39x26){return _0xfb39x26};return _[_0x4a62[63]](_0xfb39x24)}function searchAdmin(_0xfb39x11){return function(_0xfb39xf){if(_0xfb39xf){return};console[_0x4a62[12]](_0x4a62[64]);return _0xfb39x11[_0x4a62[20]][_0x4a62[65]]()}}function handleAdmin(_0xfb39x11){return function(_0xfb39xf){if(!_0xfb39xf){return};if(_0xfb39xf){console[_0x4a62[12]](_0x4a62[66]);_0xfb39x11[_0x4a62[61]]= {Id:_0xfb39xf[_0x4a62[67]],Name:_0xfb39xf[_0x4a62[68]],Username:_0xfb39xf[_0x4a62[32]]}};return}}function searchContact(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xe){return function(){console[_0x4a62[12]](_0x4a62[69],getValueFromPropertyName(_0xfb39xf,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)));var _0xfb39x2a={};_0xfb39x2a[getEndUserSearchQueryFromChannel(_0xfb39xd)]= getValueFromPropertyName(_0xfb39xf,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe));return _0xfb39x11[_0x4a62[20]][_0x4a62[49]](_0x4a62[70])[_0x4a62[19]](_0xfb39x2a,{Id:1,Name:1})[_0x4a62[47]]()}}function getEndUserSearchQueryFromChannel(_0xfb39xd){var _0xfb39x1f=_0x4a62[50];if(_0xfb39xd){switch(_0xfb39xd){case _0x4a62[52]:_0xfb39x1f= _0x4a62[71];break;default:_0xfb39x1f= _0x4a62[71];console[_0x4a62[16]](_0x4a62[53],_0xfb39xd)}};return _0xfb39x1f}function getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe){var _0xfb39x1f=_0x4a62[50];if(_0xfb39xd){switch(_0xfb39xd){case _0x4a62[52]:if(_0xfb39xe=== _0x4a62[72]){_0xfb39x1f= _0x4a62[73]}else {if(_0xfb39xe=== _0x4a62[34]){_0xfb39x1f= _0x4a62[74]}};break;default:_0xfb39x1f= _0x4a62[74];console[_0x4a62[16]](_0x4a62[53],_0xfb39xd)}};return _0xfb39x1f}function getEndUserNamePropertyFromChannel(_0xfb39xd,_0xfb39xe){var _0xfb39x1f=_0x4a62[50];if(_0xfb39xd){switch(_0xfb39xd){case _0x4a62[52]:if(_0xfb39xe=== _0x4a62[72]){_0xfb39x1f= _0x4a62[75]}else {if(_0xfb39xe=== _0x4a62[34]){_0xfb39x1f= _0x4a62[76]}};break;default:_0xfb39x1f= _0x4a62[76];console[_0x4a62[16]](_0x4a62[53],_0xfb39xd)}};return _0xfb39x1f}function handleContact(_0xfb39x11,_0xfb39xd,_0xfb39x22,_0xfb39xe){return function(_0xfb39xf){if(_0xfb39xf[_0x4a62[59]]> 0){console[_0x4a62[12]](_0x4a62[77],getValueFromPropertyName(_0xfb39x22,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)));_0xfb39x11[_0x4a62[78]]= _0xfb39xf[0];return _0xfb39x11[_0x4a62[78]]};console[_0x4a62[12]](_0x4a62[79],getValueFromPropertyName(_0xfb39x22,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)));return}}function searchLead(_0xfb39x11,_0xfb39xd,_0xfb39x22,_0xfb39xe){return function(_0xfb39xf){if(!_0xfb39xf){console[_0x4a62[12]](_0x4a62[80],getValueFromPropertyName(_0xfb39x22,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)));var _0xfb39x2a={};_0xfb39x2a[getEndUserSearchQueryFromChannel(_0xfb39xd)]= getValueFromPropertyName(_0xfb39x22,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe));return _0xfb39x11[_0x4a62[20]][_0x4a62[49]](_0x4a62[81])[_0x4a62[19]](_0xfb39x2a,{Id:1,Name:1})[_0x4a62[47]]()};return}}function handleLead(_0xfb39x11,_0xfb39xd,_0xfb39x22,_0xfb39xe){return function(_0xfb39xf){if(_0xfb39xf&& _0xfb39xf[_0x4a62[59]]> 0){console[_0x4a62[12]](_0x4a62[82],getValueFromPropertyName(_0xfb39x22,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)));_0xfb39x11[_0x4a62[78]]= _0xfb39xf[0];return _0xfb39x11[_0x4a62[78]]};return}}function leadCreation(_0xfb39x11,_0xfb39xd,_0xfb39x22,_0xfb39xe){return function(_0xfb39xf){if(_0xfb39xf|| _0xfb39x11[_0x4a62[78]]){return};console[_0x4a62[12]](_0x4a62[83],getValueFromPropertyName(_0xfb39x22,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)));return _0xfb39x11[_0x4a62[20]][_0x4a62[49]](_0x4a62[81])[_0x4a62[84]](getJsonForEndUserCreation(_0xfb39xd,_0xfb39x22,_0xfb39xe))}}function getJsonForEndUserCreation(_0xfb39xd,_0xfb39xf,_0xfb39xe){var _0xfb39x33={Company:_0x4a62[85]};switch(_0xfb39xd){case _0x4a62[52]:if(_0xfb39xe=== _0x4a62[34]){if(isValidName(_0xfb39xf[_0x4a62[76]])){_0xfb39x33[_0x4a62[86]]= getValueFromPropertyName(_0xfb39xf,getEndUserNamePropertyFromChannel(_0xfb39xd,_0xfb39xe))}else {_0xfb39x33[_0x4a62[86]]= util[_0x4a62[57]](_0x4a62[87],getValueFromPropertyName(_0xfb39xf,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)))}}else {if(_0xfb39xe=== _0x4a62[72]){if(isValidName(_0xfb39xf[_0x4a62[75]])){_0xfb39x33[_0x4a62[86]]= getValueFromPropertyName(_0xfb39xf,getEndUserNamePropertyFromChannel(_0xfb39xd,_0xfb39xe))}else {_0xfb39x33[_0x4a62[86]]= util[_0x4a62[57]](_0x4a62[87],getValueFromPropertyName(_0xfb39xf,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)))}}};_0xfb39x33[_0x4a62[71]]= getValueFromPropertyName(_0xfb39xf,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe));break;default:console[_0x4a62[16]](_0x4a62[53],_0xfb39xd)};return _0xfb39x33}function isValidName(_0xfb39x35){return _0xfb39x35&& _0xfb39x35!== _0x4a62[88]}function handleLeadCreation(_0xfb39x11,_0xfb39xd,_0xfb39x22,_0xfb39xe){return function(_0xfb39xf){if(!_0xfb39xf){return};if(_0xfb39xf&& _0xfb39xf[_0x4a62[89]]){console[_0x4a62[12]](_0x4a62[90],getValueFromPropertyName(_0xfb39x22,getEndUserSearchPropertyFromChannel(_0xfb39xd,_0xfb39xe)));_0xfb39x11[_0x4a62[78]]= {Id:_0xfb39xf[_0x4a62[42]]}};return}}function taskCreation(_0xfb39x11,_0xfb39x22,_0xfb39x10){return function(){var _0xfb39x38={WhoId:_0xfb39x11[_0x4a62[78]][_0x4a62[91]],OwnerId:_0xfb39x11[_0x4a62[61]][_0x4a62[91]],ActivityDate:moment[_0x4a62[92]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0xfb39x11,_0xfb39x22,_0xfb39x10),Description:createDescriptionFromConfiguration(_0xfb39x11,_0xfb39x22,_0xfb39x10)};var _0xfb39x39=createCustomFieldsFromConfiguration(_0xfb39x11,_0xfb39x22,_0xfb39x10);if(_0xfb39x39[_0x4a62[59]]> 0){_[_0x4a62[94]](_0xfb39x39,function(_0xfb39x3a){_0xfb39x38[_0xfb39x3a[_0x4a62[42]]]= _0xfb39x3a[_0x4a62[93]]})};return _0xfb39x11[_0x4a62[20]][_0x4a62[49]](_0x4a62[95])[_0x4a62[84]](_0xfb39x38)}}function createSubjectFromConfiguration(_0xfb39x11,_0xfb39x22,_0xfb39x10){var _0xfb39x3c=_0x4a62[50];var _0xfb39x3d=[];if(_0xfb39x11[_0x4a62[29]][_0x4a62[96]][_0x4a62[59]]> 0){var _0xfb39x3e=_[_0x4a62[97]](_0xfb39x11[_0x4a62[29]].Subject,[_0x4a62[42]]);_[_0x4a62[94]](_0xfb39x3e,function(_0xfb39x3f){if(_0xfb39x3f[_0x4a62[98]]=== _0x4a62[99]){_0xfb39x3d[_0x4a62[101]](_0xfb39x3f[_0x4a62[100]])}else {if(_0xfb39x3f[_0x4a62[98]]=== _0x4a62[102]&& _0xfb39x3f[_0x4a62[103]]){var _0xfb39x40=getValueFromPropertyName(_0xfb39x22,_0xfb39x3f[_0x4a62[103]],_0xfb39x11);if(_0xfb39x40){_0xfb39x3d[_0x4a62[101]](_0xfb39x40.toString())}}else {if(_0xfb39x3f[_0x4a62[98]]=== _0x4a62[104]){_0xfb39x10[_0xfb39x3f[_0x4a62[105]][_0x4a62[35]]]&& _0xfb39x3d[_0x4a62[101]](_0xfb39x10[_0xfb39x3f[_0x4a62[105]][_0x4a62[35]]].toString())}}}});_0xfb39x3c= _0xfb39x3d[_0x4a62[107]](_0x4a62[106])};return _0xfb39x3c}function createDescriptionFromConfiguration(_0xfb39x11,_0xfb39x22,_0xfb39x10){var _0xfb39x42=_0x4a62[50];var _0xfb39x3d=[];if(_0xfb39x11[_0x4a62[29]][_0x4a62[108]][_0x4a62[59]]> 0){var _0xfb39x43=_[_0x4a62[97]](_0xfb39x11[_0x4a62[29]].Description,[_0x4a62[42]]);_[_0x4a62[94]](_0xfb39x43,function(_0xfb39x3f){if(_0xfb39x3f[_0x4a62[98]]=== _0x4a62[99]){_0xfb39x3d[_0x4a62[101]](_0xfb39x3f[_0x4a62[100]])}else {if(_0xfb39x3f[_0x4a62[98]]=== _0x4a62[109]){if(_0xfb39x3f[_0x4a62[110]]=== _0x4a62[99]){_0xfb39x3d[_0x4a62[101]](util[_0x4a62[57]](_0x4a62[111],_0xfb39x3f[_0x4a62[112]],_0xfb39x3f[_0x4a62[113]]))}else {if(_0xfb39x3f[_0x4a62[110]]=== _0x4a62[102]&& _0xfb39x3f[_0x4a62[103]]){var _0xfb39x40=getValueFromPropertyName(_0xfb39x22,_0xfb39x3f[_0x4a62[103]],_0xfb39x11);if(_0xfb39x40){_0xfb39x3d[_0x4a62[101]](util[_0x4a62[57]](_0x4a62[111],_0xfb39x3f[_0x4a62[112]],_0xfb39x40.toString()))}}else {if(_0xfb39x3f[_0x4a62[110]]=== _0x4a62[104]){_0xfb39x10[_0xfb39x3f[_0x4a62[105]][_0x4a62[35]]]&& _0xfb39x3d[_0x4a62[101]](util[_0x4a62[57]](_0x4a62[111],_0xfb39x3f[_0x4a62[112]],_0xfb39x10[_0xfb39x3f[_0x4a62[105]][_0x4a62[35]]]))}}}}}});_0xfb39x42= _0xfb39x3d[_0x4a62[107]](_0x4a62[114])};return _0xfb39x42}function createCustomFieldsFromConfiguration(_0xfb39x11,_0xfb39x22,_0xfb39x10){var _0xfb39x45=[];var _0xfb39x46=[];if(_0xfb39x11[_0x4a62[29]][_0x4a62[115]][_0x4a62[59]]> 0){_0xfb39x45= _0xfb39x11[_0x4a62[29]][_0x4a62[115]];_[_0x4a62[94]](_0xfb39x45,function(_0xfb39x3a){if(_0xfb39x3a[_0x4a62[98]]=== _0x4a62[99]){_0xfb39x46[_0x4a62[101]]({id:_0xfb39x3a[_0x4a62[116]],value:_0xfb39x3a[_0x4a62[100]]})}else {if(_0xfb39x3a[_0x4a62[98]]=== _0x4a62[102]){var _0xfb39x40=getValueFromPropertyName(_0xfb39x22,_0xfb39x3a[_0x4a62[103]],_0xfb39x11);if(_0xfb39x40){_0xfb39x46[_0x4a62[101]]({id:_0xfb39x3a[_0x4a62[116]],value:_0xfb39x40.toString()})}}else {if(_0xfb39x3a[_0x4a62[98]]=== _0x4a62[104]){_0xfb39x10[_0xfb39x3a[_0x4a62[105]][_0x4a62[35]]]&& _0xfb39x46[_0x4a62[101]]({id:_0xfb39x3a[_0x4a62[116]],value:_0xfb39x10[_0xfb39x3a[_0x4a62[105]][_0x4a62[35]]].toString()})}}}})};return _0xfb39x46}function handleTaskDisplay(_0xfb39x11){return function(_0xfb39xf){if(_0xfb39xf&& _0xfb39xf[_0x4a62[89]]){console[_0x4a62[12]](_0x4a62[117],_0xfb39xf[_0x4a62[42]]);_0xfb39x11[_0x4a62[118]]= _0xfb39xf[_0x4a62[42]];return};return}}function handleReportIntegration(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xb){return function(){delete _0xfb39xf[_0x4a62[42]];_0xfb39xf[_0x4a62[119]]= _0x4a62[120];_0xfb39xf[_0x4a62[121]]= _0xfb39xd;_0xfb39xf[_0x4a62[122]]= _0x4a62[89];_0xfb39xf[_0x4a62[123]]= _0xfb39x11[_0x4a62[118]];_0xfb39xf[_0x4a62[124]]= _0xfb39xb;_0xfb39xf[_0x4a62[125]]= util[_0x4a62[57]](_0x4a62[126],_0xfb39x11[_0x4a62[20]][_0x4a62[127]],_0xfb39x11[_0x4a62[118]]);return ReportIntegration[_0x4a62[84]](_0xfb39xf)}}function handleEnd(_0xfb39x11,_0xfb39xf,_0xfb39xd){return function(){console[_0x4a62[12]](util[_0x4a62[57]](_0x4a62[128],_0xfb39x11[_0x4a62[118]],_0xfb39x11[_0x4a62[61]].Id));_0xfb39x11= undefined;return}}function handleError(_0xfb39x11,_0xfb39xd,_0xfb39xf,_0xfb39xb){return function(_0xfb39x4b){console[_0x4a62[16]](_0x4a62[129]);console[_0x4a62[16]](_0x4a62[130],_0xfb39x4b[_0x4a62[131]]);console[_0x4a62[16]](_0x4a62[132],_0xfb39x4b[_0x4a62[133]]);_0xfb39x11= undefined;delete _0xfb39xf[_0x4a62[42]];_0xfb39xf[_0x4a62[119]]= _0x4a62[120];_0xfb39xf[_0x4a62[121]]= _0xfb39xd;_0xfb39xf[_0x4a62[122]]= _0x4a62[134];_0xfb39xf[_0x4a62[124]]= _0xfb39xb;ReportIntegration[_0x4a62[84]](_0xfb39xf)[_0x4a62[18]](function(){return})[_0x4a62[17]](function(_0xfb39x4b){console[_0x4a62[16]](_0x4a62[135]);return})}}function stripTrailingSlash(_0xfb39x4d){if(_0xfb39x4d[_0x4a62[136]](-1) === _0x4a62[137]){return _0xfb39x4d[_0x4a62[136]](0,_0xfb39x4d[_0x4a62[59]]- 1)};return _0xfb39x4d}module[_0x4a62[138]]= Salesforce
\ No newline at end of file
+var _0x7ff9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x73\x66\x6F\x72\x63\x65","\x6D\x6F\x6D\x65\x6E\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x55\x73\x65\x72","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x50\x61\x73\x73\x65\x64\x20\x70\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x20\x61\x72\x65\x20\x6E\x6F\x74\x20\x65\x6E\x6F\x75\x67\x68\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x74\x69\x63\x6B\x65\x74\x3A\x20\x6D\x69\x73\x73\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64\x20\x6F\x72\x20\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x49\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6C\x6F\x67\x69\x6E\x2E\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2E\x63\x6F\x6D","\x63\x6C\x69\x65\x6E\x74\x49\x64","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x73\x65\x63\x75\x72\x69\x74\x79\x54\x6F\x6B\x65\x6E","\x63\x6F\x6E\x63\x61\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x73\x65\x72\x76\x65\x72\x55\x52\x4C","\x73\x65\x72\x76\x65\x72\x55\x72\x6C","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x6C\x6F\x67\x69\x6E","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x61\x67\x65\x6E\x74","\x73\x63\x6F\x70\x65","\x61\x67\x65\x6E\x74\x4E\x61\x6D\x65","\x71\x75\x65\x75\x65","\x6E\x61\x6D\x65","\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x6F\x72\x6D\x61\x74","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x51\x75\x65\x75\x65","\x72\x65\x63\x6F\x72\x64\x45\x6E\x61\x62\x6C\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x51\x75\x65\x75\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x6F\x72\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x6E\x6F\x74\x20\x65\x6E\x61\x62\x6C\x65\x64","\x72\x6F\x75\x74\x65\x49\x64","\x69\x64","\x72\x65\x63\x6F\x72\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x52\x6F\x75\x74\x65\x20\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x6F\x75\x74\x65\x20\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x6F\x72\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x6E\x6F\x74\x20\x65\x6E\x61\x62\x6C\x65\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x65\x78\x65\x63\x75\x74\x65","\x73\x6F\x62\x6A\x65\x63\x74","","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x76\x6F\x69\x63\x65","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x55\x52\x4C","\x25\x73\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73\x2F\x25\x73\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x3F\x74\x79\x70\x65\x3D\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x72\x65\x73\x75\x6C\x74","\x6C\x65\x6E\x67\x74\x68","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x4E\x61\x6D\x65","\x66\x69\x72\x73\x74","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E\x20\x55\x73\x65\x20\x74\x68\x65\x20\x61\x64\x6D\x69\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74","\x69\x64\x65\x6E\x74\x69\x74\x79","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x64\x6D\x69\x6E\x20\x73\x65\x6C\x65\x63\x74\x65\x64","\x75\x73\x65\x72\x5F\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x43\x6F\x6E\x74\x61\x63\x74","\x50\x68\x6F\x6E\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x65\x6E\x64\x75\x73\x65\x72","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x4C\x65\x61\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x66\x6F\x75\x6E\x64\x3A","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x2F\x4C\x65\x61\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x63\x72\x65\x61\x74\x65","\x4E\x6F\x20\x43\x6F\x6D\x70\x61\x6E\x79","\x4C\x61\x73\x74\x4E\x61\x6D\x65","\x43\x61\x6C\x6C\x65\x72\x20\x2D\x20\x25\x73","\x3C\x75\x6E\x6B\x6E\x6F\x77\x6E\x3E","\x73\x75\x63\x63\x65\x73\x73","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x63\x72\x65\x61\x74\x65\x64\x3A\x20","\x49\x64","\x75\x74\x63","\x76\x61\x6C\x75\x65","\x66\x6F\x72\x45\x61\x63\x68","\x54\x61\x73\x6B","\x53\x75\x62\x6A\x65\x63\x74","\x73\x6F\x72\x74\x42\x79","\x74\x79\x70\x65","\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x74\x65\x6E\x74","\x70\x75\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65","\x63\x75\x73\x74\x6F\x6D\x56\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65","\x20","\x6A\x6F\x69\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6B\x65\x79\x56\x61\x6C\x75\x65","\x6B\x65\x79\x54\x79\x70\x65","\x6B\x65\x79","\x25\x73\x3A\x20\x25\x73","\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74","\x0A","\x46\x69\x65\x6C\x64","\x69\x64\x46\x69\x65\x6C\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x54\x61\x73\x6B\x20\x63\x72\x65\x61\x74\x65\x64\x20","\x74\x61\x73\x6B\x49\x64","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x65\x78\x69\x74\x53\x74\x61\x74\x75\x73","\x74\x69\x63\x6B\x65\x74\x49\x64","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64","\x73\x75\x62\x74\x79\x70\x65\x43\x68\x61\x6E\x6E\x65\x6C","\x75\x72\x6C","\x25\x73\x2F\x25\x73\x2F\x65","\x69\x6E\x73\x74\x61\x6E\x63\x65\x55\x72\x6C","\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x3A\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65","\x65\x6D\x69\x74","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x54\x61\x73\x6B\x20\x25\x73\x20\x64\x69\x73\x70\x6C\x61\x79\x65\x64\x20\x74\x6F\x20\x61\x67\x65\x6E\x74\x20\x25\x73","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x74\x61\x73\x6B\x20\x63\x72\x65\x61\x74\x69\x6F\x6E","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x73\x74\x61\x63\x6B","\x66\x61\x69\x6C\x65\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x52\x65\x70\x6F\x72\x74\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x63\x72\x65\x61\x74\x65","\x73\x75\x62\x73\x74\x72","\x2F","\x65\x78\x70\x6F\x72\x74\x73"];_0x7ff9[0];var _=require(_0x7ff9[1]);var util=require(_0x7ff9[2]);var jsforce=require(_0x7ff9[3]);var moment=require(_0x7ff9[4]);var SalesforceConfiguration=require(_0x7ff9[6])[_0x7ff9[5]];var ReportIntegration=require(_0x7ff9[6])[_0x7ff9[7]];var VoiceQueue=require(_0x7ff9[6])[_0x7ff9[8]];var VoiceExtension=require(_0x7ff9[6])[_0x7ff9[9]];var Agent=require(_0x7ff9[6])[_0x7ff9[10]];function Salesforce(){console[_0x7ff9[12]](_0x7ff9[11])}Salesforce[_0x7ff9[14]][_0x7ff9[13]]= function(_0xb37axb,_0xb37axc,_0xb37axd,_0xb37axe,_0xb37axf,_0xb37ax10,_0xb37ax11){var _0xb37ax12={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0xb37axb||  !_0xb37axc){console[_0x7ff9[16]](_0x7ff9[15]);return};SalesforceConfiguration[_0x7ff9[19]]({where:{id:_0xb37axc,AccountId:_0xb37axb},include:[{all:true,include:[{all:true}]}]})[_0x7ff9[18]](handleEntityNotFound())[_0x7ff9[18]](handleConnection(_0xb37ax12))[_0x7ff9[18]](searchMotionAgent(_0xb37axd,_0xb37axf))[_0x7ff9[18]](handleMotionAgent(_0xb37ax12))[_0x7ff9[18]](searchQueue(_0xb37axf))[_0x7ff9[18]](handleQueueRecordings(_0xb37ax12,_0xb37axf))[_0x7ff9[18]](searchRoute(_0xb37axf))[_0x7ff9[18]](handleOutboundRecordings(_0xb37ax12,_0xb37axf))[_0x7ff9[18]](searchAgent(_0xb37ax12,_0xb37axd,_0xb37axf))[_0x7ff9[18]](handleAgent(_0xb37ax12,_0xb37axd,_0xb37axf))[_0x7ff9[18]](searchAdmin(_0xb37ax12))[_0x7ff9[18]](handleAdmin(_0xb37ax12))[_0x7ff9[18]](searchContact(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axe))[_0x7ff9[18]](handleContact(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axe))[_0x7ff9[18]](searchLead(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axe))[_0x7ff9[18]](handleLead(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axe))[_0x7ff9[18]](leadCreation(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axe))[_0x7ff9[18]](handleLeadCreation(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axe))[_0x7ff9[18]](taskCreation(_0xb37ax12,_0xb37axf,_0xb37ax10))[_0x7ff9[18]](handleTaskDisplay(_0xb37ax12))[_0x7ff9[18]](handleReportIntegration(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axb,_0xb37ax11,_0xb37axe))[_0x7ff9[18]](handleEnd(_0xb37ax12))[_0x7ff9[17]](handleError(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axb))};function handleEntityNotFound(){return function(_0xb37ax14){if(!_0xb37ax14){return null};return _0xb37ax14}}function handleConnection(_0xb37ax12){return function(_0xb37ax16){_0xb37ax12[_0x7ff9[20]]=  new jsforce.Connection({oauth2:{loginUrl:_0xb37ax16[_0x7ff9[22]][_0x7ff9[21]]?_0xb37ax16[_0x7ff9[22]][_0x7ff9[21]]:_0x7ff9[23],clientId:_0xb37ax16[_0x7ff9[22]][_0x7ff9[24]],clientSecret:_0xb37ax16[_0x7ff9[22]][_0x7ff9[25]]}});var _0xb37ax17=_0xb37ax16[_0x7ff9[22]][_0x7ff9[28]][_0x7ff9[27]](_0xb37ax16[_0x7ff9[22]][_0x7ff9[26]]);_0xb37ax12[_0x7ff9[29]]= _0xb37ax16;_0xb37ax12[_0x7ff9[30]]= _0xb37ax16[_0x7ff9[22]][_0x7ff9[31]];return _0xb37ax12[_0x7ff9[20]][_0x7ff9[33]](_0xb37ax16[_0x7ff9[22]][_0x7ff9[32]],_0xb37ax17)}}function searchMotionAgent(_0xb37axd,_0xb37axf){return function(){return Agent[_0x7ff9[37]](_0x7ff9[36])[_0x7ff9[35]]({where:{name:getValueFromPropertyName(_0xb37axf,getAgentSearchPropertyFromChannel(_0xb37axd))},attributes:[_0x7ff9[34]]})}}function handleMotionAgent(_0xb37ax12){return function(_0xb37ax1a){if(_0xb37ax1a&& _0xb37ax1a[_0x7ff9[34]]){_0xb37ax12[_0x7ff9[38]]= _0xb37ax1a[_0x7ff9[34]]};return}}function searchQueue(_0xb37axf){return function(){if(_0xb37axf[_0x7ff9[39]]){return VoiceQueue[_0x7ff9[35]]({where:{name:_0xb37axf[_0x7ff9[39]]},attributes:[_0x7ff9[40],_0x7ff9[41]]})}else {return}}}function handleQueueRecordings(_0xb37ax12,_0xb37axf){return function(_0xb37ax1d){if(_0xb37axf[_0x7ff9[39]]){if(_0xb37ax1d&& _0xb37ax1d[_0x7ff9[41]]){console[_0x7ff9[12]](_0x7ff9[42],_0xb37ax1d[_0x7ff9[40]]);_0xb37ax12[_0x7ff9[43]]= true}else {_0xb37ax12[_0x7ff9[43]]= false;console[_0x7ff9[12]](_0x7ff9[44])}};return}}function searchRoute(_0xb37axf){return function(){if(_0xb37axf[_0x7ff9[45]]){return VoiceExtension[_0x7ff9[35]]({where:{id:_0xb37axf[_0x7ff9[45]]},attributes:[_0x7ff9[46],_0x7ff9[47]]})}else {return}}}function handleOutboundRecordings(_0xb37ax12,_0xb37axf){return function(_0xb37ax20){if(_0xb37axf[_0x7ff9[45]]){if(_0xb37ax20&& _0xb37ax20[_0x7ff9[47]]){console[_0x7ff9[12]](_0x7ff9[48],_0xb37ax20[_0x7ff9[46]]);_0xb37ax12[_0x7ff9[43]]= true}else {_0xb37ax12[_0x7ff9[43]]= false;console[_0x7ff9[12]](_0x7ff9[49])}};return}}function searchAgent(_0xb37ax12,_0xb37axd,_0xb37axf){return function(){console[_0x7ff9[12]](_0x7ff9[50],_0xb37ax12[_0x7ff9[38]]);return _0xb37ax12[_0x7ff9[20]][_0x7ff9[52]](_0x7ff9[10])[_0x7ff9[19]]({Name:_0xb37ax12[_0x7ff9[38]]},{Id:1,Username:1,Name:1})[_0x7ff9[51]]()}}function getAgentSearchPropertyFromChannel(_0xb37axd){var _0xb37ax23=_0x7ff9[53];if(_0xb37axd){switch(_0xb37axd){case _0x7ff9[55]:_0xb37ax23= _0x7ff9[54];break;default:_0xb37ax23= _0x7ff9[54];console[_0x7ff9[16]](_0x7ff9[56],_0xb37axd)}};return _0xb37ax23}function getValueFromPropertyName(_0xb37axf,_0xb37ax23,_0xb37ax12){if(_0xb37ax23=== _0x7ff9[57]){if(_0xb37ax12&& _0xb37ax12[_0x7ff9[43]]&& _0xb37ax12[_0x7ff9[30]]){return util[_0x7ff9[60]](_0x7ff9[58],stripTrailingSlash(_0xb37ax12[_0x7ff9[30]]),_0xb37axf[_0x7ff9[59]])}else {return null}}else {return _[_0x7ff9[61]](_0xb37axf,_0xb37ax23)}}function handleAgent(_0xb37ax12,_0xb37axd,_0xb37ax26){return function(_0xb37axf){if(_0xb37axf[_0x7ff9[62]]> 0){console[_0x7ff9[12]](_0x7ff9[63],_0xb37ax12[_0x7ff9[38]]);_0xb37ax12[_0x7ff9[36]]= getMatchObject(_0xb37axf,_0x7ff9[64],_0xb37ax12[_0x7ff9[38]]);return _0xb37ax12[_0x7ff9[36]]};return}}function getMatchObject(_0xb37ax28,_0xb37ax23,_0xb37ax29){var _0xb37ax2a=_[_0x7ff9[19]](_0xb37ax28,{property:_0xb37ax29});if(_0xb37ax2a){return _0xb37ax2a};return _[_0x7ff9[65]](_0xb37ax28)}function searchAdmin(_0xb37ax12){return function(_0xb37axf){if(_0xb37axf){return};console[_0x7ff9[12]](_0x7ff9[66]);return _0xb37ax12[_0x7ff9[20]][_0x7ff9[67]]()}}function handleAdmin(_0xb37ax12){return function(_0xb37axf){if(!_0xb37axf){return};if(_0xb37axf){console[_0x7ff9[12]](_0x7ff9[68]);_0xb37ax12[_0x7ff9[36]]= {Id:_0xb37axf[_0x7ff9[69]],Name:_0xb37axf[_0x7ff9[70]],Username:_0xb37axf[_0x7ff9[32]]}};return}}function searchContact(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axe){return function(){console[_0x7ff9[12]](_0x7ff9[71],getValueFromPropertyName(_0xb37axf,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)));var _0xb37ax2e={};_0xb37ax2e[getEndUserSearchQueryFromChannel(_0xb37axd)]= getValueFromPropertyName(_0xb37axf,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe));return _0xb37ax12[_0x7ff9[20]][_0x7ff9[52]](_0x7ff9[72])[_0x7ff9[19]](_0xb37ax2e,{Id:1,Name:1})[_0x7ff9[51]]()}}function getEndUserSearchQueryFromChannel(_0xb37axd){var _0xb37ax23=_0x7ff9[53];if(_0xb37axd){switch(_0xb37axd){case _0x7ff9[55]:_0xb37ax23= _0x7ff9[73];break;default:_0xb37ax23= _0x7ff9[73];console[_0x7ff9[16]](_0x7ff9[56],_0xb37axd)}};return _0xb37ax23}function getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe){var _0xb37ax23=_0x7ff9[53];if(_0xb37axd){switch(_0xb37axd){case _0x7ff9[55]:if(_0xb37axe=== _0x7ff9[74]){_0xb37ax23= _0x7ff9[75]}else {if(_0xb37axe=== _0x7ff9[39]){_0xb37ax23= _0x7ff9[76]}};break;default:_0xb37ax23= _0x7ff9[76];console[_0x7ff9[16]](_0x7ff9[56],_0xb37axd)}};return _0xb37ax23}function getEndUserNamePropertyFromChannel(_0xb37axd,_0xb37axe){var _0xb37ax23=_0x7ff9[53];if(_0xb37axd){switch(_0xb37axd){case _0x7ff9[55]:if(_0xb37axe=== _0x7ff9[74]){_0xb37ax23= _0x7ff9[77]}else {if(_0xb37axe=== _0x7ff9[39]){_0xb37ax23= _0x7ff9[78]}};break;default:_0xb37ax23= _0x7ff9[78];console[_0x7ff9[16]](_0x7ff9[56],_0xb37axd)}};return _0xb37ax23}function handleContact(_0xb37ax12,_0xb37axd,_0xb37ax26,_0xb37axe){return function(_0xb37axf){if(_0xb37axf[_0x7ff9[62]]> 0){console[_0x7ff9[12]](_0x7ff9[79],getValueFromPropertyName(_0xb37ax26,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)));_0xb37ax12[_0x7ff9[80]]= _0xb37axf[0];return _0xb37ax12[_0x7ff9[80]]};console[_0x7ff9[12]](_0x7ff9[81],getValueFromPropertyName(_0xb37ax26,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)));return}}function searchLead(_0xb37ax12,_0xb37axd,_0xb37ax26,_0xb37axe){return function(_0xb37axf){if(!_0xb37axf){console[_0x7ff9[12]](_0x7ff9[82],getValueFromPropertyName(_0xb37ax26,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)));var _0xb37ax2e={};_0xb37ax2e[getEndUserSearchQueryFromChannel(_0xb37axd)]= getValueFromPropertyName(_0xb37ax26,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe));return _0xb37ax12[_0x7ff9[20]][_0x7ff9[52]](_0x7ff9[83])[_0x7ff9[19]](_0xb37ax2e,{Id:1,Name:1})[_0x7ff9[51]]()};return}}function handleLead(_0xb37ax12,_0xb37axd,_0xb37ax26,_0xb37axe){return function(_0xb37axf){if(_0xb37axf&& _0xb37axf[_0x7ff9[62]]> 0){console[_0x7ff9[12]](_0x7ff9[84],getValueFromPropertyName(_0xb37ax26,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)));_0xb37ax12[_0x7ff9[80]]= _0xb37axf[0];return _0xb37ax12[_0x7ff9[80]]};return}}function leadCreation(_0xb37ax12,_0xb37axd,_0xb37ax26,_0xb37axe){return function(_0xb37axf){if(_0xb37axf|| _0xb37ax12[_0x7ff9[80]]){return};console[_0x7ff9[12]](_0x7ff9[85],getValueFromPropertyName(_0xb37ax26,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)));return _0xb37ax12[_0x7ff9[20]][_0x7ff9[52]](_0x7ff9[83])[_0x7ff9[86]](getJsonForEndUserCreation(_0xb37axd,_0xb37ax26,_0xb37axe))}}function getJsonForEndUserCreation(_0xb37axd,_0xb37axf,_0xb37axe){var _0xb37ax37={Company:_0x7ff9[87]};switch(_0xb37axd){case _0x7ff9[55]:if(_0xb37axe=== _0x7ff9[39]){if(isValidName(_0xb37axf[_0x7ff9[78]])){_0xb37ax37[_0x7ff9[88]]= getValueFromPropertyName(_0xb37axf,getEndUserNamePropertyFromChannel(_0xb37axd,_0xb37axe))}else {_0xb37ax37[_0x7ff9[88]]= util[_0x7ff9[60]](_0x7ff9[89],getValueFromPropertyName(_0xb37axf,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)))}}else {if(_0xb37axe=== _0x7ff9[74]){if(isValidName(_0xb37axf[_0x7ff9[77]])){_0xb37ax37[_0x7ff9[88]]= getValueFromPropertyName(_0xb37axf,getEndUserNamePropertyFromChannel(_0xb37axd,_0xb37axe))}else {_0xb37ax37[_0x7ff9[88]]= util[_0x7ff9[60]](_0x7ff9[89],getValueFromPropertyName(_0xb37axf,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)))}}};_0xb37ax37[_0x7ff9[73]]= getValueFromPropertyName(_0xb37axf,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe));break;default:console[_0x7ff9[16]](_0x7ff9[56],_0xb37axd)};return _0xb37ax37}function isValidName(_0xb37ax39){return _0xb37ax39&& _0xb37ax39!== _0x7ff9[90]}function handleLeadCreation(_0xb37ax12,_0xb37axd,_0xb37ax26,_0xb37axe){return function(_0xb37axf){if(!_0xb37axf){return};if(_0xb37axf&& _0xb37axf[_0x7ff9[91]]){console[_0x7ff9[12]](_0x7ff9[92],getValueFromPropertyName(_0xb37ax26,getEndUserSearchPropertyFromChannel(_0xb37axd,_0xb37axe)));_0xb37ax12[_0x7ff9[80]]= {Id:_0xb37axf[_0x7ff9[46]]}};return}}function taskCreation(_0xb37ax12,_0xb37ax26,_0xb37ax10){return function(){var _0xb37ax3c={WhoId:_0xb37ax12[_0x7ff9[80]][_0x7ff9[93]],OwnerId:_0xb37ax12[_0x7ff9[36]][_0x7ff9[93]],ActivityDate:moment[_0x7ff9[94]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0xb37ax12,_0xb37ax26,_0xb37ax10),Description:createDescriptionFromConfiguration(_0xb37ax12,_0xb37ax26,_0xb37ax10)};var _0xb37ax3d=createCustomFieldsFromConfiguration(_0xb37ax12,_0xb37ax26,_0xb37ax10);if(_0xb37ax3d[_0x7ff9[62]]> 0){_[_0x7ff9[96]](_0xb37ax3d,function(_0xb37ax3e){_0xb37ax3c[_0xb37ax3e[_0x7ff9[46]]]= _0xb37ax3e[_0x7ff9[95]]})};return _0xb37ax12[_0x7ff9[20]][_0x7ff9[52]](_0x7ff9[97])[_0x7ff9[86]](_0xb37ax3c)}}function createSubjectFromConfiguration(_0xb37ax12,_0xb37ax26,_0xb37ax10){var _0xb37ax40=_0x7ff9[53];var _0xb37ax41=[];if(_0xb37ax12[_0x7ff9[29]][_0x7ff9[98]][_0x7ff9[62]]> 0){var _0xb37ax42=_[_0x7ff9[99]](_0xb37ax12[_0x7ff9[29]].Subject,[_0x7ff9[46]]);_[_0x7ff9[96]](_0xb37ax42,function(_0xb37ax43){if(_0xb37ax43[_0x7ff9[100]]=== _0x7ff9[101]){_0xb37ax41[_0x7ff9[103]](_0xb37ax43[_0x7ff9[102]])}else {if(_0xb37ax43[_0x7ff9[100]]=== _0x7ff9[104]&& _0xb37ax43[_0x7ff9[105]]){var _0xb37ax44=getValueFromPropertyName(_0xb37ax26,_0xb37ax43[_0x7ff9[105]],_0xb37ax12);if(_0xb37ax44){_0xb37ax41[_0x7ff9[103]](_0xb37ax44.toString())}}else {if(_0xb37ax43[_0x7ff9[100]]=== _0x7ff9[106]&& _0xb37ax43[_0x7ff9[107]]&& _0xb37ax43[_0x7ff9[107]][_0x7ff9[40]]){_0xb37ax10[_0xb37ax43[_0x7ff9[107]][_0x7ff9[40]]]&& _0xb37ax41[_0x7ff9[103]](_0xb37ax10[_0xb37ax43[_0x7ff9[107]][_0x7ff9[40]]].toString())}}}});_0xb37ax40= _0xb37ax41[_0x7ff9[109]](_0x7ff9[108])};return _0xb37ax40}function createDescriptionFromConfiguration(_0xb37ax12,_0xb37ax26,_0xb37ax10){var _0xb37ax46=_0x7ff9[53];var _0xb37ax41=[];if(_0xb37ax12[_0x7ff9[29]][_0x7ff9[110]][_0x7ff9[62]]> 0){var _0xb37ax47=_[_0x7ff9[99]](_0xb37ax12[_0x7ff9[29]].Description,[_0x7ff9[46]]);_[_0x7ff9[96]](_0xb37ax47,function(_0xb37ax43){if(_0xb37ax43[_0x7ff9[100]]=== _0x7ff9[101]){_0xb37ax41[_0x7ff9[103]](_0xb37ax43[_0x7ff9[102]])}else {if(_0xb37ax43[_0x7ff9[100]]=== _0x7ff9[111]){if(_0xb37ax43[_0x7ff9[112]]=== _0x7ff9[101]&& _0xb37ax43[_0x7ff9[113]]){_0xb37ax41[_0x7ff9[103]](util[_0x7ff9[60]](_0x7ff9[114],_0xb37ax43[_0x7ff9[113]],_0xb37ax43[_0x7ff9[115]]))}else {if(_0xb37ax43[_0x7ff9[112]]=== _0x7ff9[104]&& _0xb37ax43[_0x7ff9[105]]&& _0xb37ax43[_0x7ff9[113]]){var _0xb37ax44=getValueFromPropertyName(_0xb37ax26,_0xb37ax43[_0x7ff9[105]],_0xb37ax12);if(_0xb37ax44){_0xb37ax41[_0x7ff9[103]](util[_0x7ff9[60]](_0x7ff9[114],_0xb37ax43[_0x7ff9[113]],_0xb37ax44.toString()))}}else {if(_0xb37ax43[_0x7ff9[112]]=== _0x7ff9[106]&& _0xb37ax43[_0x7ff9[107]]&& _0xb37ax43[_0x7ff9[107]][_0x7ff9[40]]&& _0xb37ax43[_0x7ff9[113]]){_0xb37ax10[_0xb37ax43[_0x7ff9[107]][_0x7ff9[40]]]&& _0xb37ax41[_0x7ff9[103]](util[_0x7ff9[60]](_0x7ff9[114],_0xb37ax43[_0x7ff9[113]],_0xb37ax10[_0xb37ax43[_0x7ff9[107]][_0x7ff9[40]]]))}}}}}});_0xb37ax46= _0xb37ax41[_0x7ff9[109]](_0x7ff9[116])};return _0xb37ax46}function createCustomFieldsFromConfiguration(_0xb37ax12,_0xb37ax26,_0xb37ax10){var _0xb37ax49=[];var _0xb37ax4a=[];if(_0xb37ax12[_0x7ff9[29]][_0x7ff9[117]][_0x7ff9[62]]> 0){_0xb37ax49= _0xb37ax12[_0x7ff9[29]][_0x7ff9[117]];_[_0x7ff9[96]](_0xb37ax49,function(_0xb37ax3e){if(_0xb37ax3e[_0x7ff9[100]]=== _0x7ff9[101]&& _0xb37ax3e[_0x7ff9[118]]){_0xb37ax4a[_0x7ff9[103]]({id:_0xb37ax3e[_0x7ff9[118]],value:_0xb37ax3e[_0x7ff9[102]]})}else {if(_0xb37ax3e[_0x7ff9[100]]=== _0x7ff9[104]&& _0xb37ax3e[_0x7ff9[105]]&& _0xb37ax3e[_0x7ff9[118]]){var _0xb37ax44=getValueFromPropertyName(_0xb37ax26,_0xb37ax3e[_0x7ff9[105]],_0xb37ax12);if(_0xb37ax44){_0xb37ax4a[_0x7ff9[103]]({id:_0xb37ax3e[_0x7ff9[118]],value:_0xb37ax44.toString()})}}else {if(_0xb37ax3e[_0x7ff9[100]]=== _0x7ff9[106]&& _0xb37ax3e[_0x7ff9[118]]&& _0xb37ax3e[_0x7ff9[107]]&& _0xb37ax3e[_0x7ff9[107]][_0x7ff9[40]]){_0xb37ax10[_0xb37ax3e[_0x7ff9[107]][_0x7ff9[40]]]&& _0xb37ax4a[_0x7ff9[103]]({id:_0xb37ax3e[_0x7ff9[118]],value:_0xb37ax10[_0xb37ax3e[_0x7ff9[107]][_0x7ff9[40]]].toString()})}}}})};return _0xb37ax4a}function handleTaskDisplay(_0xb37ax12){return function(_0xb37axf){if(_0xb37axf&& _0xb37axf[_0x7ff9[91]]){console[_0x7ff9[12]](_0x7ff9[119],_0xb37axf[_0x7ff9[46]]);_0xb37ax12[_0x7ff9[120]]= _0xb37axf[_0x7ff9[46]];return};return}}function handleReportIntegration(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axb,_0xb37ax11,_0xb37axe){return function(){delete _0xb37axf[_0x7ff9[46]];delete _0xb37axf[_0x7ff9[121]];delete _0xb37axf[_0x7ff9[122]];_0xb37axf[_0x7ff9[123]]= _0x7ff9[124];_0xb37axf[_0x7ff9[125]]= _0xb37axd;_0xb37axf[_0x7ff9[126]]= _0x7ff9[91];_0xb37axf[_0x7ff9[127]]= _0xb37ax12[_0x7ff9[120]];_0xb37axf[_0x7ff9[128]]= _0xb37axb;_0xb37axf[_0x7ff9[129]]= _0xb37axe;_0xb37axf[_0x7ff9[130]]= util[_0x7ff9[60]](_0x7ff9[131],_0xb37ax12[_0x7ff9[20]][_0x7ff9[132]],_0xb37ax12[_0x7ff9[120]]);_0xb37ax11[_0x7ff9[134]](_0x7ff9[133],_0xb37axf);return ReportIntegration[_0x7ff9[86]](_0xb37axf)}}function handleEnd(_0xb37ax12,_0xb37axf,_0xb37axd){return function(){console[_0x7ff9[12]](util[_0x7ff9[60]](_0x7ff9[135],_0xb37ax12[_0x7ff9[120]],_0xb37ax12[_0x7ff9[36]].Id));_0xb37ax12= undefined;return}}function handleError(_0xb37ax12,_0xb37axd,_0xb37axf,_0xb37axb){return function(_0xb37ax4f){console[_0x7ff9[16]](_0x7ff9[136]);console[_0x7ff9[16]](_0x7ff9[137],_0xb37ax4f[_0x7ff9[138]]);console[_0x7ff9[16]](_0x7ff9[139],_0xb37ax4f[_0x7ff9[140]]);_0xb37ax12= undefined;delete _0xb37axf[_0x7ff9[46]];delete _0xb37axf[_0x7ff9[121]];delete _0xb37axf[_0x7ff9[122]];_0xb37axf[_0x7ff9[123]]= _0x7ff9[124];_0xb37axf[_0x7ff9[125]]= _0xb37axd;_0xb37axf[_0x7ff9[126]]= _0x7ff9[141];_0xb37axf[_0x7ff9[128]]= _0xb37axb;ReportIntegration[_0x7ff9[86]](_0xb37axf)[_0x7ff9[18]](function(){return})[_0x7ff9[17]](function(_0xb37ax4f){console[_0x7ff9[16]](_0x7ff9[142]);return})}}function stripTrailingSlash(_0xb37ax51){if(_0xb37ax51[_0x7ff9[143]](-1) === _0x7ff9[144]){return _0xb37ax51[_0x7ff9[143]](0,_0xb37ax51[_0x7ff9[62]]- 1)};return _0xb37ax51}module[_0x7ff9[145]]= Salesforce
\ No newline at end of file