Built motion from commit ce2081a.|0.0.133
[motion.git] / server / config / integrations / salesforce.js
index 781a120..839c5bf 100644 (file)
@@ -1 +1 @@
-var _0x8233=["\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","\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\x20","\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","\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","","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\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","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\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","\x64\x65\x73\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x75\x6D","\x64\x65\x73\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\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","\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","\x69\x64","\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"];_0x8233[0];var _=require(_0x8233[1]);var util=require(_0x8233[2]);var jsforce=require(_0x8233[3]);var moment=require(_0x8233[4]);var SalesforceIntegration=require(_0x8233[6])[_0x8233[5]];var SalesforceConfiguration=require(_0x8233[6])[_0x8233[7]];var ReportIntegration=require(_0x8233[6])[_0x8233[8]];var VoiceQueue=require(_0x8233[6])[_0x8233[9]];function Salesforce(){console[_0x8233[11]](_0x8233[10])}Salesforce[_0x8233[13]][_0x8233[12]]= function(_0x2bccxa,_0x2bccxb,_0x2bccxc,_0x2bccxd,_0x2bccxe){var _0x2bccxf={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined};if(!_0x2bccxa||  !_0x2bccxb){console[_0x8233[15]](_0x8233[14]);return};SalesforceConfiguration[_0x8233[18]]({where:{id:_0x2bccxb,AccountId:_0x2bccxa},include:[{all:true,include:[{all:true}]}]})[_0x8233[17]](handleEntityNotFound())[_0x8233[17]](handleConnection(_0x2bccxf))[_0x8233[17]](searchQueue(_0x2bccxd))[_0x8233[17]](handleRecordings(_0x2bccxf))[_0x8233[17]](searchAgent(_0x2bccxf,_0x2bccxc,_0x2bccxd))[_0x8233[17]](handleAgent(_0x2bccxf,_0x2bccxc,_0x2bccxd))[_0x8233[17]](searchAdmin(_0x2bccxf))[_0x8233[17]](handleAdmin(_0x2bccxf))[_0x8233[17]](searchContact(_0x2bccxf,_0x2bccxc,_0x2bccxd))[_0x8233[17]](handleContact(_0x2bccxf,_0x2bccxc,_0x2bccxd))[_0x8233[17]](searchLead(_0x2bccxf,_0x2bccxc,_0x2bccxd))[_0x8233[17]](handleLead(_0x2bccxf,_0x2bccxc,_0x2bccxd))[_0x8233[17]](leadCreation(_0x2bccxf,_0x2bccxc,_0x2bccxd))[_0x8233[17]](handleLeadCreation(_0x2bccxf,_0x2bccxc,_0x2bccxd))[_0x8233[17]](taskCreation(_0x2bccxf,_0x2bccxd,_0x2bccxe))[_0x8233[17]](handleTaskDisplay(_0x2bccxf))[_0x8233[17]](handleReportIntegration(_0x2bccxf,_0x2bccxc,_0x2bccxd,_0x2bccxa))[_0x8233[17]](handleEnd(_0x2bccxf))[_0x8233[16]](handleError(_0x2bccxf,_0x2bccxc,_0x2bccxd,_0x2bccxa))};function handleEntityNotFound(){return function(_0x2bccx11){if(!_0x2bccx11){return null};return _0x2bccx11}}function handleConnection(_0x2bccxf){return function(_0x2bccx13){_0x2bccxf[_0x8233[19]]=  new jsforce.Connection({oauth2:{loginUrl:_0x2bccx13[_0x8233[21]][_0x8233[20]]?_0x2bccx13[_0x8233[21]][_0x8233[20]]:_0x8233[22],clientId:_0x2bccx13[_0x8233[21]][_0x8233[23]],clientSecret:_0x2bccx13[_0x8233[21]][_0x8233[24]]}});var _0x2bccx14=_0x2bccx13[_0x8233[21]][_0x8233[27]][_0x8233[26]](_0x2bccx13[_0x8233[21]][_0x8233[25]]);_0x2bccxf[_0x8233[28]]= _0x2bccx13;_0x2bccxf[_0x8233[29]]= _0x2bccx13[_0x8233[21]][_0x8233[30]];return _0x2bccxf[_0x8233[19]][_0x8233[32]](_0x2bccx13[_0x8233[21]][_0x8233[31]],_0x2bccx14)}}function searchQueue(_0x2bccxd){return function(){if(_0x2bccxd[_0x8233[33]]){return VoiceQueue[_0x8233[36]]({where:{name:_0x2bccxd[_0x8233[33]]},attributes:[_0x8233[34],_0x8233[35]]})}else {return}}}function handleRecordings(_0x2bccxf){return function(_0x2bccx17){if(_0x2bccx17&& _0x2bccx17[_0x8233[35]]){console[_0x8233[11]](_0x8233[37],_0x2bccx17[_0x8233[34]]);_0x2bccxf[_0x8233[38]]= true}else {_0x2bccxf[_0x8233[38]]= false;console[_0x8233[11]](_0x8233[39]);return}}}function searchAgent(_0x2bccxf,_0x2bccxc,_0x2bccxd){return function(){console[_0x8233[11]](_0x8233[40],getValueFromPropertyName(_0x2bccxd,getAgentSearchPropertyFromChannel(_0x2bccxc)));return _0x2bccxf[_0x8233[19]][_0x8233[43]](_0x8233[42])[_0x8233[18]]({Name:getValueFromPropertyName(_0x2bccxd,getAgentSearchPropertyFromChannel(_0x2bccxc))},{Id:1,Username:1,Name:1})[_0x8233[41]]()}}function getAgentSearchPropertyFromChannel(_0x2bccxc){var _0x2bccx1a=_0x8233[44];if(_0x2bccxc){switch(_0x2bccxc){case _0x8233[46]:_0x2bccx1a= _0x8233[45];break;default:_0x2bccx1a= _0x8233[45];console[_0x8233[15]](_0x8233[47],_0x2bccxc)}};return _0x2bccx1a}function getValueFromPropertyName(_0x2bccxd,_0x2bccx1a,_0x2bccxf){if(_0x2bccx1a=== _0x8233[48]){if(_0x2bccxf&& _0x2bccxf[_0x8233[38]]&& _0x2bccxf[_0x8233[29]]){return util[_0x8233[52]](_0x8233[49],stripTrailingSlash(_0x2bccxf[_0x8233[29]]),_0x2bccxd[_0x8233[51]][_0x8233[50]])}else {return null}}else {return _[_0x8233[53]](_0x2bccxd,_0x2bccx1a)}}function handleAgent(_0x2bccxf,_0x2bccxc,_0x2bccx1d){return function(_0x2bccxd){if(_0x2bccxd[_0x8233[54]]> 0){console[_0x8233[11]](_0x8233[55],getValueFromPropertyName(_0x2bccx1d,getAgentSearchPropertyFromChannel(_0x2bccxc)));_0x2bccxf[_0x8233[56]]= getMatchObject(_0x2bccxd,_0x8233[57],getValueFromPropertyName(_0x2bccx1d,getAgentSearchPropertyFromChannel(_0x2bccxc)));return _0x2bccxf[_0x8233[56]]};return}}function getMatchObject(_0x2bccx1f,_0x2bccx1a,_0x2bccx20){var _0x2bccx21=_[_0x8233[18]](_0x2bccx1f,{property:_0x2bccx20});if(_0x2bccx21){return _0x2bccx21};return _[_0x8233[58]](_0x2bccx1f)}function searchAdmin(_0x2bccxf){return function(_0x2bccxd){if(_0x2bccxd){return};console[_0x8233[11]](_0x8233[59]);return _0x2bccxf[_0x8233[19]][_0x8233[60]]()}}function handleAdmin(_0x2bccxf){return function(_0x2bccxd){if(!_0x2bccxd){return};if(_0x2bccxd){console[_0x8233[11]](_0x8233[61]);_0x2bccxf[_0x8233[56]]= {Id:_0x2bccxd[_0x8233[62]],Name:_0x2bccxd[_0x8233[63]],Username:_0x2bccxd[_0x8233[31]]}};return}}function searchContact(_0x2bccxf,_0x2bccxc,_0x2bccxd){return function(){console[_0x8233[11]](_0x8233[64],getValueFromPropertyName(_0x2bccxd,getEndUserSearchPropertyFromChannel(_0x2bccxc)));var _0x2bccx25={};_0x2bccx25[getEndUserSearchQueryFromChannel(_0x2bccxc)]= getValueFromPropertyName(_0x2bccxd,getEndUserSearchPropertyFromChannel(_0x2bccxc));return _0x2bccxf[_0x8233[19]][_0x8233[43]](_0x8233[65])[_0x8233[18]](_0x2bccx25,{Id:1,Name:1})[_0x8233[41]]()}}function getEndUserSearchQueryFromChannel(_0x2bccxc){var _0x2bccx1a=_0x8233[44];if(_0x2bccxc){switch(_0x2bccxc){case _0x8233[46]:_0x2bccx1a= _0x8233[66];break;default:_0x2bccx1a= _0x8233[66];console[_0x8233[15]](_0x8233[47],_0x2bccxc)}};return _0x2bccx1a}function getEndUserSearchPropertyFromChannel(_0x2bccxc){var _0x2bccx1a=_0x8233[44];if(_0x2bccxc){switch(_0x2bccxc){case _0x8233[46]:_0x2bccx1a= _0x8233[67];break;default:_0x2bccx1a= _0x8233[67];console[_0x8233[15]](_0x8233[47],_0x2bccxc)}};return _0x2bccx1a}function getEndUserNamePropertyFromChannel(_0x2bccxc){var _0x2bccx1a=_0x8233[44];if(_0x2bccxc){switch(_0x2bccxc){case _0x8233[46]:_0x2bccx1a= _0x8233[68];break;default:_0x2bccx1a= _0x8233[68];console[_0x8233[15]](_0x8233[47],_0x2bccxc)}};return _0x2bccx1a}function handleContact(_0x2bccxf,_0x2bccxc,_0x2bccx1d){return function(_0x2bccxd){if(_0x2bccxd[_0x8233[54]]> 0){console[_0x8233[11]](_0x8233[69],getValueFromPropertyName(_0x2bccx1d,getEndUserSearchPropertyFromChannel(_0x2bccxc)));_0x2bccxf[_0x8233[70]]= _0x2bccxd[0];return _0x2bccxf[_0x8233[70]]};console[_0x8233[11]](_0x8233[71],getValueFromPropertyName(_0x2bccx1d,getEndUserSearchPropertyFromChannel(_0x2bccxc)));return}}function searchLead(_0x2bccxf,_0x2bccxc,_0x2bccx1d){return function(_0x2bccxd){if(!_0x2bccxd){console[_0x8233[11]](_0x8233[72],getValueFromPropertyName(_0x2bccx1d,getEndUserSearchPropertyFromChannel(_0x2bccxc)));var _0x2bccx25={};_0x2bccx25[getEndUserSearchQueryFromChannel(_0x2bccxc)]= getValueFromPropertyName(_0x2bccx1d,getEndUserSearchPropertyFromChannel(_0x2bccxc));return _0x2bccxf[_0x8233[19]][_0x8233[43]](_0x8233[73])[_0x8233[18]](_0x2bccx25,{Id:1,Name:1})[_0x8233[41]]()};return}}function handleLead(_0x2bccxf,_0x2bccxc,_0x2bccx1d){return function(_0x2bccxd){if(_0x2bccxd&& _0x2bccxd[_0x8233[54]]> 0){console[_0x8233[11]](_0x8233[74],getValueFromPropertyName(_0x2bccx1d,getEndUserSearchPropertyFromChannel(_0x2bccxc)));_0x2bccxf[_0x8233[70]]= _0x2bccxd[0];return _0x2bccxf[_0x8233[70]]};return}}function leadCreation(_0x2bccxf,_0x2bccxc,_0x2bccx1d){return function(_0x2bccxd){if(_0x2bccxd|| _0x2bccxf[_0x8233[70]]){return};console[_0x8233[11]](_0x8233[75],getValueFromPropertyName(_0x2bccx1d,getEndUserSearchPropertyFromChannel(_0x2bccxc)));return _0x2bccxf[_0x8233[19]][_0x8233[43]](_0x8233[73])[_0x8233[76]](getJsonForEndUserCreation(_0x2bccxc,_0x2bccx1d))}}function getJsonForEndUserCreation(_0x2bccxc,_0x2bccxd){var _0x2bccx2e={Company:_0x8233[77]};switch(_0x2bccxc){case _0x8233[46]:if(_0x2bccxd[_0x8233[68]]){_0x2bccx2e[_0x8233[78]]= getValueFromPropertyName(_0x2bccxd,getEndUserNamePropertyFromChannel(_0x2bccxc))}else {_0x2bccx2e[_0x8233[78]]= util[_0x8233[52]](_0x8233[79],getValueFromPropertyName(_0x2bccxd,getAgentSearchPropertyFromChannel(_0x2bccxc)))};_0x2bccx2e[_0x8233[66]]= getValueFromPropertyName(_0x2bccxd,getEndUserSearchPropertyFromChannel(_0x2bccxc));break;default:console[_0x8233[15]](_0x8233[47],_0x2bccxc)};return _0x2bccx2e}function handleLeadCreation(_0x2bccxf,_0x2bccxc,_0x2bccx1d){return function(_0x2bccxd){if(!_0x2bccxd){return};if(_0x2bccxd&& _0x2bccxd[_0x8233[80]]){console[_0x8233[11]](_0x8233[81],getValueFromPropertyName(_0x2bccx1d,getEndUserSearchPropertyFromChannel(_0x2bccxc)));_0x2bccxf[_0x8233[70]]= {Id:_0x2bccxd[_0x8233[82]]}};return}}function taskCreation(_0x2bccxf,_0x2bccx1d,_0x2bccxe){return function(){var _0x2bccx31={WhoId:_0x2bccxf[_0x8233[70]][_0x8233[83]],OwnerId:_0x2bccxf[_0x8233[56]][_0x8233[83]],ActivityDate:moment[_0x8233[84]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0x2bccxf,_0x2bccx1d,_0x2bccxe),Description:createDescriptionFromConfiguration(_0x2bccxf,_0x2bccx1d,_0x2bccxe)};var _0x2bccx32=createCustomFieldsFromConfiguration(_0x2bccxf,_0x2bccx1d,_0x2bccxe);if(_0x2bccx32[_0x8233[54]]> 0){_[_0x8233[86]](_0x2bccx32,function(_0x2bccx33){_0x2bccx31[_0x2bccx33[_0x8233[82]]]= _0x2bccx33[_0x8233[85]]})};return _0x2bccxf[_0x8233[19]][_0x8233[43]](_0x8233[87])[_0x8233[76]](_0x2bccx31)}}function createSubjectFromConfiguration(_0x2bccxf,_0x2bccx1d,_0x2bccxe){var _0x2bccx35=_0x8233[44];var _0x2bccx36=[];if(_0x2bccxf[_0x8233[28]][_0x8233[88]][_0x8233[54]]> 0){var _0x2bccx37=_[_0x8233[89]](_0x2bccxf[_0x8233[28]].Subject,[_0x8233[82]]);_[_0x8233[86]](_0x2bccx37,function(_0x2bccx38){if(_0x2bccx38[_0x8233[90]]=== _0x8233[91]){_0x2bccx36[_0x8233[93]](_0x2bccx38[_0x8233[92]])}else {if(_0x2bccx38[_0x8233[90]]=== _0x8233[94]&& _0x2bccx38[_0x8233[95]]){var _0x2bccx39=getValueFromPropertyName(_0x2bccx1d,_0x2bccx38[_0x8233[95]],_0x2bccxf);if(_0x2bccx39){_0x2bccx36[_0x8233[93]](_0x2bccx39.toString())}}else {if(_0x2bccx38[_0x8233[90]]=== _0x8233[96]){var _0x2bccx3a=_[_0x8233[18]](_0x2bccxe,{"\x6E\x61\x6D\x65":_0x2bccx38[_0x8233[97]][_0x8233[34]]});if(_0x2bccx3a){_0x2bccx36[_0x8233[93]](_0x2bccx3a[_0x8233[85]].toString())}}}}});_0x2bccx35= _0x2bccx36[_0x8233[99]](_0x8233[98])};return _0x2bccx35}function createDescriptionFromConfiguration(_0x2bccxf,_0x2bccx1d,_0x2bccxe){var _0x2bccx3c=_0x8233[44];var _0x2bccx36=[];if(_0x2bccxf[_0x8233[28]][_0x8233[100]][_0x8233[54]]> 0){var _0x2bccx3d=_[_0x8233[89]](_0x2bccxf[_0x8233[28]].Description,[_0x8233[82]]);_[_0x8233[86]](_0x2bccx3d,function(_0x2bccx38){if(_0x2bccx38[_0x8233[90]]=== _0x8233[91]){_0x2bccx36[_0x8233[93]](_0x2bccx38[_0x8233[92]])}else {if(_0x2bccx38[_0x8233[90]]=== _0x8233[101]){if(_0x2bccx38[_0x8233[102]]=== _0x8233[91]){_0x2bccx36[_0x8233[93]](util[_0x8233[52]](_0x8233[103],_0x2bccx38[_0x8233[104]],_0x2bccx38[_0x8233[105]]))}else {if(_0x2bccx38[_0x8233[102]]=== _0x8233[94]&& _0x2bccx38[_0x8233[95]]){var _0x2bccx39=getValueFromPropertyName(_0x2bccx1d,_0x2bccx38[_0x8233[95]],_0x2bccxf);if(_0x2bccx39){_0x2bccx36[_0x8233[93]](util[_0x8233[52]](_0x8233[103],_0x2bccx38[_0x8233[104]],_0x2bccx39.toString()))}}else {if(_0x2bccx38[_0x8233[102]]=== _0x8233[96]){var _0x2bccx3a=_[_0x8233[18]](_0x2bccxe,{"\x6E\x61\x6D\x65":_0x2bccx38[_0x8233[97]][_0x8233[34]]});if(_0x2bccx3a){_0x2bccx36[_0x8233[93]](util[_0x8233[52]](_0x8233[103],_0x2bccx38[_0x8233[104]],_0x2bccx3a[_0x8233[85]].toString()))}}}}}}});_0x2bccx3c= _0x2bccx36[_0x8233[99]](_0x8233[106])};return _0x2bccx3c}function createCustomFieldsFromConfiguration(_0x2bccxf,_0x2bccx1d,_0x2bccxe){var _0x2bccx3f=[];var _0x2bccx40=[];if(_0x2bccxf[_0x8233[28]][_0x8233[107]][_0x8233[54]]> 0){_0x2bccx3f= _0x2bccxf[_0x8233[28]][_0x8233[107]];_[_0x8233[86]](_0x2bccx3f,function(_0x2bccx33){if(_0x2bccx33[_0x8233[90]]=== _0x8233[91]){_0x2bccx40[_0x8233[93]]({id:_0x2bccx33[_0x8233[108]],value:_0x2bccx33[_0x8233[92]]})}else {if(_0x2bccx33[_0x8233[90]]=== _0x8233[94]){var _0x2bccx39=getValueFromPropertyName(_0x2bccx1d,_0x2bccx33[_0x8233[95]],_0x2bccxf);if(_0x2bccx39){_0x2bccx40[_0x8233[93]]({id:_0x2bccx33[_0x8233[108]],value:_0x2bccx39.toString()})}}else {if(_0x2bccx33[_0x8233[90]]=== _0x8233[96]){var _0x2bccx3a=_[_0x8233[18]](_0x2bccxe,{"\x6E\x61\x6D\x65":_0x2bccx33[_0x8233[97]][_0x8233[34]]});if(_0x2bccx3a){_0x2bccx40[_0x8233[93]]({id:_0x2bccx33[_0x8233[108]],value:_0x2bccx3a[_0x8233[85]].toString()})}}}}})};return _0x2bccx40}function handleTaskDisplay(_0x2bccxf){return function(_0x2bccxd){if(_0x2bccxd&& _0x2bccxd[_0x8233[80]]){console[_0x8233[11]](_0x8233[109],_0x2bccxd[_0x8233[82]]);_0x2bccxf[_0x8233[110]]= _0x2bccxd[_0x8233[82]];return};return}}function handleReportIntegration(_0x2bccxf,_0x2bccxc,_0x2bccxd,_0x2bccxa){return function(){_0x2bccxd= _0x2bccxd[_0x8233[51]];delete _0x2bccxd[_0x8233[82]];_0x2bccxd[_0x8233[111]]= _0x8233[112];_0x2bccxd[_0x8233[113]]= _0x2bccxc;_0x2bccxd[_0x8233[114]]= _0x8233[80];_0x2bccxd[_0x8233[115]]= _0x2bccxf[_0x8233[110]];_0x2bccxd[_0x8233[116]]= _0x2bccxa;_0x2bccxd[_0x8233[117]]= util[_0x8233[52]](_0x8233[118],_0x2bccxf[_0x8233[19]][_0x8233[119]],_0x2bccxf[_0x8233[110]]);return ReportIntegration[_0x8233[76]](_0x2bccxd)}}function handleEnd(_0x2bccxf,_0x2bccxd,_0x2bccxc){return function(){console[_0x8233[11]](util[_0x8233[52]](_0x8233[120],_0x2bccxf[_0x8233[110]],_0x2bccxf[_0x8233[56]].Id));_0x2bccxf= undefined;return}}function handleError(_0x2bccxf,_0x2bccxc,_0x2bccxd,_0x2bccxa){return function(_0x2bccx45){console[_0x8233[15]](_0x8233[121]);console[_0x8233[15]](_0x8233[122],_0x2bccx45[_0x8233[123]]);console[_0x8233[15]](_0x8233[124],_0x2bccx45[_0x8233[125]]);_0x2bccxf= undefined;delete _0x2bccxd[_0x8233[82]];_0x2bccxd= _0x2bccxd[_0x8233[51]];_0x2bccxd[_0x8233[111]]= _0x8233[112];_0x2bccxd[_0x8233[113]]= _0x2bccxc;_0x2bccxd[_0x8233[114]]= _0x8233[126];_0x2bccxd[_0x8233[116]]= _0x2bccxa;ReportIntegration[_0x8233[76]](_0x2bccxd)[_0x8233[17]](function(){return})[_0x8233[16]](function(_0x2bccx45){console[_0x8233[15]](_0x8233[127]);return})}}function stripTrailingSlash(_0x2bccx47){if(_0x2bccx47[_0x8233[128]](-1) === _0x8233[129]){return _0x2bccx47[_0x8233[128]](0,_0x2bccx47[_0x8233[54]]- 1)};return _0x2bccx47}module[_0x8233[130]]= Salesforce
\ No newline at end of file
+var _0xbc7b=["\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","\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"];_0xbc7b[0];var _=require(_0xbc7b[1]);var util=require(_0xbc7b[2]);var jsforce=require(_0xbc7b[3]);var moment=require(_0xbc7b[4]);var SalesforceIntegration=require(_0xbc7b[6])[_0xbc7b[5]];var SalesforceConfiguration=require(_0xbc7b[6])[_0xbc7b[7]];var ReportIntegration=require(_0xbc7b[6])[_0xbc7b[8]];var VoiceQueue=require(_0xbc7b[6])[_0xbc7b[9]];var VoiceExtension=require(_0xbc7b[6])[_0xbc7b[10]];function Salesforce(){console[_0xbc7b[12]](_0xbc7b[11])}Salesforce[_0xbc7b[14]][_0xbc7b[13]]= function(_0x1c1cxb,_0x1c1cxc,_0x1c1cxd,_0x1c1cxe,_0x1c1cxf,_0x1c1cx10){var _0x1c1cx11={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined};if(!_0x1c1cxb||  !_0x1c1cxc){console[_0xbc7b[16]](_0xbc7b[15]);return};SalesforceConfiguration[_0xbc7b[19]]({where:{id:_0x1c1cxc,AccountId:_0x1c1cxb},include:[{all:true,include:[{all:true}]}]})[_0xbc7b[18]](handleEntityNotFound())[_0xbc7b[18]](handleConnection(_0x1c1cx11))[_0xbc7b[18]](searchQueue(_0x1c1cxf))[_0xbc7b[18]](handleQueueRecordings(_0x1c1cx11))[_0xbc7b[18]](searchRoute(_0x1c1cxf))[_0xbc7b[18]](handleOutboundRecordings(_0x1c1cx11))[_0xbc7b[18]](searchAgent(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf))[_0xbc7b[18]](handleAgent(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf))[_0xbc7b[18]](searchAdmin(_0x1c1cx11))[_0xbc7b[18]](handleAdmin(_0x1c1cx11))[_0xbc7b[18]](searchContact(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxe))[_0xbc7b[18]](handleContact(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxe))[_0xbc7b[18]](searchLead(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxe))[_0xbc7b[18]](handleLead(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxe))[_0xbc7b[18]](leadCreation(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxe))[_0xbc7b[18]](handleLeadCreation(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxe))[_0xbc7b[18]](taskCreation(_0x1c1cx11,_0x1c1cxf,_0x1c1cx10))[_0xbc7b[18]](handleTaskDisplay(_0x1c1cx11))[_0xbc7b[18]](handleReportIntegration(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxb))[_0xbc7b[18]](handleEnd(_0x1c1cx11))[_0xbc7b[17]](handleError(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxb))};function handleEntityNotFound(){return function(_0x1c1cx13){if(!_0x1c1cx13){return null};return _0x1c1cx13}}function handleConnection(_0x1c1cx11){return function(_0x1c1cx15){_0x1c1cx11[_0xbc7b[20]]=  new jsforce.Connection({oauth2:{loginUrl:_0x1c1cx15[_0xbc7b[22]][_0xbc7b[21]]?_0x1c1cx15[_0xbc7b[22]][_0xbc7b[21]]:_0xbc7b[23],clientId:_0x1c1cx15[_0xbc7b[22]][_0xbc7b[24]],clientSecret:_0x1c1cx15[_0xbc7b[22]][_0xbc7b[25]]}});var _0x1c1cx16=_0x1c1cx15[_0xbc7b[22]][_0xbc7b[28]][_0xbc7b[27]](_0x1c1cx15[_0xbc7b[22]][_0xbc7b[26]]);_0x1c1cx11[_0xbc7b[29]]= _0x1c1cx15;_0x1c1cx11[_0xbc7b[30]]= _0x1c1cx15[_0xbc7b[22]][_0xbc7b[31]];return _0x1c1cx11[_0xbc7b[20]][_0xbc7b[33]](_0x1c1cx15[_0xbc7b[22]][_0xbc7b[32]],_0x1c1cx16)}}function searchQueue(_0x1c1cxf){return function(){if(_0x1c1cxf[_0xbc7b[34]]){return VoiceQueue[_0xbc7b[37]]({where:{name:_0x1c1cxf[_0xbc7b[34]]},attributes:[_0xbc7b[35],_0xbc7b[36]]})}else {return}}}function handleQueueRecordings(_0x1c1cx11){return function(_0x1c1cx19){if(_0x1c1cx19&& _0x1c1cx19[_0xbc7b[36]]){console[_0xbc7b[12]](_0xbc7b[38],_0x1c1cx19[_0xbc7b[35]]);_0x1c1cx11[_0xbc7b[39]]= true}else {_0x1c1cx11[_0xbc7b[39]]= false;console[_0xbc7b[12]](_0xbc7b[40]);return}}}function searchRoute(_0x1c1cxf){return function(){if(_0x1c1cxf[_0xbc7b[41]]){return VoiceExtension[_0xbc7b[37]]({where:{id:_0x1c1cxf[_0xbc7b[41]]},attributes:[_0xbc7b[42],_0xbc7b[43]]})}else {return}}}function handleOutboundRecordings(_0x1c1cx11){return function(_0x1c1cx1c){if(_0x1c1cx1c&& _0x1c1cx1c[_0xbc7b[43]]){console[_0xbc7b[12]](_0xbc7b[44],_0x1c1cx1c[_0xbc7b[42]]);_0x1c1cx11[_0xbc7b[39]]= true}else {_0x1c1cx11[_0xbc7b[39]]= false;console[_0xbc7b[12]](_0xbc7b[45]);return}}}function searchAgent(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf){return function(){console[_0xbc7b[12]](_0xbc7b[46],getValueFromPropertyName(_0x1c1cxf,getAgentSearchPropertyFromChannel(_0x1c1cxd)));return _0x1c1cx11[_0xbc7b[20]][_0xbc7b[49]](_0xbc7b[48])[_0xbc7b[19]]({Name:getValueFromPropertyName(_0x1c1cxf,getAgentSearchPropertyFromChannel(_0x1c1cxd))},{Id:1,Username:1,Name:1})[_0xbc7b[47]]()}}function getAgentSearchPropertyFromChannel(_0x1c1cxd){var _0x1c1cx1f=_0xbc7b[50];if(_0x1c1cxd){switch(_0x1c1cxd){case _0xbc7b[52]:_0x1c1cx1f= _0xbc7b[51];break;default:_0x1c1cx1f= _0xbc7b[51];console[_0xbc7b[16]](_0xbc7b[53],_0x1c1cxd)}};return _0x1c1cx1f}function getValueFromPropertyName(_0x1c1cxf,_0x1c1cx1f,_0x1c1cx11){if(_0x1c1cx1f=== _0xbc7b[54]){if(_0x1c1cx11&& _0x1c1cx11[_0xbc7b[39]]&& _0x1c1cx11[_0xbc7b[30]]){return util[_0xbc7b[57]](_0xbc7b[55],stripTrailingSlash(_0x1c1cx11[_0xbc7b[30]]),_0x1c1cxf[_0xbc7b[56]])}else {return null}}else {return _[_0xbc7b[58]](_0x1c1cxf,_0x1c1cx1f)}}function handleAgent(_0x1c1cx11,_0x1c1cxd,_0x1c1cx22){return function(_0x1c1cxf){if(_0x1c1cxf[_0xbc7b[59]]> 0){console[_0xbc7b[12]](_0xbc7b[60],getValueFromPropertyName(_0x1c1cx22,getAgentSearchPropertyFromChannel(_0x1c1cxd)));_0x1c1cx11[_0xbc7b[61]]= getMatchObject(_0x1c1cxf,_0xbc7b[62],getValueFromPropertyName(_0x1c1cx22,getAgentSearchPropertyFromChannel(_0x1c1cxd)));return _0x1c1cx11[_0xbc7b[61]]};return}}function getMatchObject(_0x1c1cx24,_0x1c1cx1f,_0x1c1cx25){var _0x1c1cx26=_[_0xbc7b[19]](_0x1c1cx24,{property:_0x1c1cx25});if(_0x1c1cx26){return _0x1c1cx26};return _[_0xbc7b[63]](_0x1c1cx24)}function searchAdmin(_0x1c1cx11){return function(_0x1c1cxf){if(_0x1c1cxf){return};console[_0xbc7b[12]](_0xbc7b[64]);return _0x1c1cx11[_0xbc7b[20]][_0xbc7b[65]]()}}function handleAdmin(_0x1c1cx11){return function(_0x1c1cxf){if(!_0x1c1cxf){return};if(_0x1c1cxf){console[_0xbc7b[12]](_0xbc7b[66]);_0x1c1cx11[_0xbc7b[61]]= {Id:_0x1c1cxf[_0xbc7b[67]],Name:_0x1c1cxf[_0xbc7b[68]],Username:_0x1c1cxf[_0xbc7b[32]]}};return}}function searchContact(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxe){return function(){console[_0xbc7b[12]](_0xbc7b[69],getValueFromPropertyName(_0x1c1cxf,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)));var _0x1c1cx2a={};_0x1c1cx2a[getEndUserSearchQueryFromChannel(_0x1c1cxd)]= getValueFromPropertyName(_0x1c1cxf,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe));return _0x1c1cx11[_0xbc7b[20]][_0xbc7b[49]](_0xbc7b[70])[_0xbc7b[19]](_0x1c1cx2a,{Id:1,Name:1})[_0xbc7b[47]]()}}function getEndUserSearchQueryFromChannel(_0x1c1cxd){var _0x1c1cx1f=_0xbc7b[50];if(_0x1c1cxd){switch(_0x1c1cxd){case _0xbc7b[52]:_0x1c1cx1f= _0xbc7b[71];break;default:_0x1c1cx1f= _0xbc7b[71];console[_0xbc7b[16]](_0xbc7b[53],_0x1c1cxd)}};return _0x1c1cx1f}function getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe){var _0x1c1cx1f=_0xbc7b[50];if(_0x1c1cxd){switch(_0x1c1cxd){case _0xbc7b[52]:if(_0x1c1cxe=== _0xbc7b[72]){_0x1c1cx1f= _0xbc7b[73]}else {if(_0x1c1cxe=== _0xbc7b[34]){_0x1c1cx1f= _0xbc7b[74]}};break;default:_0x1c1cx1f= _0xbc7b[74];console[_0xbc7b[16]](_0xbc7b[53],_0x1c1cxd)}};return _0x1c1cx1f}function getEndUserNamePropertyFromChannel(_0x1c1cxd,_0x1c1cxe){var _0x1c1cx1f=_0xbc7b[50];if(_0x1c1cxd){switch(_0x1c1cxd){case _0xbc7b[52]:if(_0x1c1cxe=== _0xbc7b[72]){_0x1c1cx1f= _0xbc7b[75]}else {if(_0x1c1cxe=== _0xbc7b[34]){_0x1c1cx1f= _0xbc7b[76]}};break;default:_0x1c1cx1f= _0xbc7b[76];console[_0xbc7b[16]](_0xbc7b[53],_0x1c1cxd)}};return _0x1c1cx1f}function handleContact(_0x1c1cx11,_0x1c1cxd,_0x1c1cx22,_0x1c1cxe){return function(_0x1c1cxf){if(_0x1c1cxf[_0xbc7b[59]]> 0){console[_0xbc7b[12]](_0xbc7b[77],getValueFromPropertyName(_0x1c1cx22,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)));_0x1c1cx11[_0xbc7b[78]]= _0x1c1cxf[0];return _0x1c1cx11[_0xbc7b[78]]};console[_0xbc7b[12]](_0xbc7b[79],getValueFromPropertyName(_0x1c1cx22,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)));return}}function searchLead(_0x1c1cx11,_0x1c1cxd,_0x1c1cx22,_0x1c1cxe){return function(_0x1c1cxf){if(!_0x1c1cxf){console[_0xbc7b[12]](_0xbc7b[80],getValueFromPropertyName(_0x1c1cx22,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)));var _0x1c1cx2a={};_0x1c1cx2a[getEndUserSearchQueryFromChannel(_0x1c1cxd)]= getValueFromPropertyName(_0x1c1cx22,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe));return _0x1c1cx11[_0xbc7b[20]][_0xbc7b[49]](_0xbc7b[81])[_0xbc7b[19]](_0x1c1cx2a,{Id:1,Name:1})[_0xbc7b[47]]()};return}}function handleLead(_0x1c1cx11,_0x1c1cxd,_0x1c1cx22,_0x1c1cxe){return function(_0x1c1cxf){if(_0x1c1cxf&& _0x1c1cxf[_0xbc7b[59]]> 0){console[_0xbc7b[12]](_0xbc7b[82],getValueFromPropertyName(_0x1c1cx22,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)));_0x1c1cx11[_0xbc7b[78]]= _0x1c1cxf[0];return _0x1c1cx11[_0xbc7b[78]]};return}}function leadCreation(_0x1c1cx11,_0x1c1cxd,_0x1c1cx22,_0x1c1cxe){return function(_0x1c1cxf){if(_0x1c1cxf|| _0x1c1cx11[_0xbc7b[78]]){return};console[_0xbc7b[12]](_0xbc7b[83],getValueFromPropertyName(_0x1c1cx22,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)));return _0x1c1cx11[_0xbc7b[20]][_0xbc7b[49]](_0xbc7b[81])[_0xbc7b[84]](getJsonForEndUserCreation(_0x1c1cxd,_0x1c1cx22,_0x1c1cxe))}}function getJsonForEndUserCreation(_0x1c1cxd,_0x1c1cxf,_0x1c1cxe){var _0x1c1cx33={Company:_0xbc7b[85]};switch(_0x1c1cxd){case _0xbc7b[52]:if(_0x1c1cxe=== _0xbc7b[34]){if(isValidName(_0x1c1cxf[_0xbc7b[76]])){_0x1c1cx33[_0xbc7b[86]]= getValueFromPropertyName(_0x1c1cxf,getEndUserNamePropertyFromChannel(_0x1c1cxd,_0x1c1cxe))}else {_0x1c1cx33[_0xbc7b[86]]= util[_0xbc7b[57]](_0xbc7b[87],getValueFromPropertyName(_0x1c1cxf,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)))}}else {if(_0x1c1cxe=== _0xbc7b[72]){if(isValidName(_0x1c1cxf[_0xbc7b[75]])){_0x1c1cx33[_0xbc7b[86]]= getValueFromPropertyName(_0x1c1cxf,getEndUserNamePropertyFromChannel(_0x1c1cxd,_0x1c1cxe))}else {_0x1c1cx33[_0xbc7b[86]]= util[_0xbc7b[57]](_0xbc7b[87],getValueFromPropertyName(_0x1c1cxf,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)))}}};_0x1c1cx33[_0xbc7b[71]]= getValueFromPropertyName(_0x1c1cxf,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe));break;default:console[_0xbc7b[16]](_0xbc7b[53],_0x1c1cxd)};return _0x1c1cx33}function isValidName(_0x1c1cx35){return _0x1c1cx35&& _0x1c1cx35!== _0xbc7b[88]}function handleLeadCreation(_0x1c1cx11,_0x1c1cxd,_0x1c1cx22,_0x1c1cxe){return function(_0x1c1cxf){if(!_0x1c1cxf){return};if(_0x1c1cxf&& _0x1c1cxf[_0xbc7b[89]]){console[_0xbc7b[12]](_0xbc7b[90],getValueFromPropertyName(_0x1c1cx22,getEndUserSearchPropertyFromChannel(_0x1c1cxd,_0x1c1cxe)));_0x1c1cx11[_0xbc7b[78]]= {Id:_0x1c1cxf[_0xbc7b[42]]}};return}}function taskCreation(_0x1c1cx11,_0x1c1cx22,_0x1c1cx10){return function(){var _0x1c1cx38={WhoId:_0x1c1cx11[_0xbc7b[78]][_0xbc7b[91]],OwnerId:_0x1c1cx11[_0xbc7b[61]][_0xbc7b[91]],ActivityDate:moment[_0xbc7b[92]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0x1c1cx11,_0x1c1cx22,_0x1c1cx10),Description:createDescriptionFromConfiguration(_0x1c1cx11,_0x1c1cx22,_0x1c1cx10)};var _0x1c1cx39=createCustomFieldsFromConfiguration(_0x1c1cx11,_0x1c1cx22,_0x1c1cx10);if(_0x1c1cx39[_0xbc7b[59]]> 0){_[_0xbc7b[94]](_0x1c1cx39,function(_0x1c1cx3a){_0x1c1cx38[_0x1c1cx3a[_0xbc7b[42]]]= _0x1c1cx3a[_0xbc7b[93]]})};return _0x1c1cx11[_0xbc7b[20]][_0xbc7b[49]](_0xbc7b[95])[_0xbc7b[84]](_0x1c1cx38)}}function createSubjectFromConfiguration(_0x1c1cx11,_0x1c1cx22,_0x1c1cx10){var _0x1c1cx3c=_0xbc7b[50];var _0x1c1cx3d=[];if(_0x1c1cx11[_0xbc7b[29]][_0xbc7b[96]][_0xbc7b[59]]> 0){var _0x1c1cx3e=_[_0xbc7b[97]](_0x1c1cx11[_0xbc7b[29]].Subject,[_0xbc7b[42]]);_[_0xbc7b[94]](_0x1c1cx3e,function(_0x1c1cx3f){if(_0x1c1cx3f[_0xbc7b[98]]=== _0xbc7b[99]){_0x1c1cx3d[_0xbc7b[101]](_0x1c1cx3f[_0xbc7b[100]])}else {if(_0x1c1cx3f[_0xbc7b[98]]=== _0xbc7b[102]&& _0x1c1cx3f[_0xbc7b[103]]){var _0x1c1cx40=getValueFromPropertyName(_0x1c1cx22,_0x1c1cx3f[_0xbc7b[103]],_0x1c1cx11);if(_0x1c1cx40){_0x1c1cx3d[_0xbc7b[101]](_0x1c1cx40.toString())}}else {if(_0x1c1cx3f[_0xbc7b[98]]=== _0xbc7b[104]){var _0x1c1cx41=_[_0xbc7b[19]](_0x1c1cx10,{"\x6E\x61\x6D\x65":_0x1c1cx3f[_0xbc7b[105]][_0xbc7b[35]]});if(_0x1c1cx41){_0x1c1cx3d[_0xbc7b[101]](_0x1c1cx41[_0xbc7b[93]].toString())}}}}});_0x1c1cx3c= _0x1c1cx3d[_0xbc7b[107]](_0xbc7b[106])};return _0x1c1cx3c}function createDescriptionFromConfiguration(_0x1c1cx11,_0x1c1cx22,_0x1c1cx10){var _0x1c1cx43=_0xbc7b[50];var _0x1c1cx3d=[];if(_0x1c1cx11[_0xbc7b[29]][_0xbc7b[108]][_0xbc7b[59]]> 0){var _0x1c1cx44=_[_0xbc7b[97]](_0x1c1cx11[_0xbc7b[29]].Description,[_0xbc7b[42]]);_[_0xbc7b[94]](_0x1c1cx44,function(_0x1c1cx3f){if(_0x1c1cx3f[_0xbc7b[98]]=== _0xbc7b[99]){_0x1c1cx3d[_0xbc7b[101]](_0x1c1cx3f[_0xbc7b[100]])}else {if(_0x1c1cx3f[_0xbc7b[98]]=== _0xbc7b[109]){if(_0x1c1cx3f[_0xbc7b[110]]=== _0xbc7b[99]){_0x1c1cx3d[_0xbc7b[101]](util[_0xbc7b[57]](_0xbc7b[111],_0x1c1cx3f[_0xbc7b[112]],_0x1c1cx3f[_0xbc7b[113]]))}else {if(_0x1c1cx3f[_0xbc7b[110]]=== _0xbc7b[102]&& _0x1c1cx3f[_0xbc7b[103]]){var _0x1c1cx40=getValueFromPropertyName(_0x1c1cx22,_0x1c1cx3f[_0xbc7b[103]],_0x1c1cx11);if(_0x1c1cx40){_0x1c1cx3d[_0xbc7b[101]](util[_0xbc7b[57]](_0xbc7b[111],_0x1c1cx3f[_0xbc7b[112]],_0x1c1cx40.toString()))}}else {if(_0x1c1cx3f[_0xbc7b[110]]=== _0xbc7b[104]){var _0x1c1cx41=_[_0xbc7b[19]](_0x1c1cx10,{"\x6E\x61\x6D\x65":_0x1c1cx3f[_0xbc7b[105]][_0xbc7b[35]]});if(_0x1c1cx41){_0x1c1cx3d[_0xbc7b[101]](util[_0xbc7b[57]](_0xbc7b[111],_0x1c1cx3f[_0xbc7b[112]],_0x1c1cx41[_0xbc7b[93]].toString()))}}}}}}});_0x1c1cx43= _0x1c1cx3d[_0xbc7b[107]](_0xbc7b[114])};return _0x1c1cx43}function createCustomFieldsFromConfiguration(_0x1c1cx11,_0x1c1cx22,_0x1c1cx10){var _0x1c1cx46=[];var _0x1c1cx47=[];if(_0x1c1cx11[_0xbc7b[29]][_0xbc7b[115]][_0xbc7b[59]]> 0){_0x1c1cx46= _0x1c1cx11[_0xbc7b[29]][_0xbc7b[115]];_[_0xbc7b[94]](_0x1c1cx46,function(_0x1c1cx3a){if(_0x1c1cx3a[_0xbc7b[98]]=== _0xbc7b[99]){_0x1c1cx47[_0xbc7b[101]]({id:_0x1c1cx3a[_0xbc7b[116]],value:_0x1c1cx3a[_0xbc7b[100]]})}else {if(_0x1c1cx3a[_0xbc7b[98]]=== _0xbc7b[102]){var _0x1c1cx40=getValueFromPropertyName(_0x1c1cx22,_0x1c1cx3a[_0xbc7b[103]],_0x1c1cx11);if(_0x1c1cx40){_0x1c1cx47[_0xbc7b[101]]({id:_0x1c1cx3a[_0xbc7b[116]],value:_0x1c1cx40.toString()})}}else {if(_0x1c1cx3a[_0xbc7b[98]]=== _0xbc7b[104]){var _0x1c1cx41=_[_0xbc7b[19]](_0x1c1cx10,{"\x6E\x61\x6D\x65":_0x1c1cx3a[_0xbc7b[105]][_0xbc7b[35]]});if(_0x1c1cx41){_0x1c1cx47[_0xbc7b[101]]({id:_0x1c1cx3a[_0xbc7b[116]],value:_0x1c1cx41[_0xbc7b[93]].toString()})}}}}})};return _0x1c1cx47}function handleTaskDisplay(_0x1c1cx11){return function(_0x1c1cxf){if(_0x1c1cxf&& _0x1c1cxf[_0xbc7b[89]]){console[_0xbc7b[12]](_0xbc7b[117],_0x1c1cxf[_0xbc7b[42]]);_0x1c1cx11[_0xbc7b[118]]= _0x1c1cxf[_0xbc7b[42]];return};return}}function handleReportIntegration(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxb){return function(){delete _0x1c1cxf[_0xbc7b[42]];_0x1c1cxf[_0xbc7b[119]]= _0xbc7b[120];_0x1c1cxf[_0xbc7b[121]]= _0x1c1cxd;_0x1c1cxf[_0xbc7b[122]]= _0xbc7b[89];_0x1c1cxf[_0xbc7b[123]]= _0x1c1cx11[_0xbc7b[118]];_0x1c1cxf[_0xbc7b[124]]= _0x1c1cxb;_0x1c1cxf[_0xbc7b[125]]= util[_0xbc7b[57]](_0xbc7b[126],_0x1c1cx11[_0xbc7b[20]][_0xbc7b[127]],_0x1c1cx11[_0xbc7b[118]]);return ReportIntegration[_0xbc7b[84]](_0x1c1cxf)}}function handleEnd(_0x1c1cx11,_0x1c1cxf,_0x1c1cxd){return function(){console[_0xbc7b[12]](util[_0xbc7b[57]](_0xbc7b[128],_0x1c1cx11[_0xbc7b[118]],_0x1c1cx11[_0xbc7b[61]].Id));_0x1c1cx11= undefined;return}}function handleError(_0x1c1cx11,_0x1c1cxd,_0x1c1cxf,_0x1c1cxb){return function(_0x1c1cx4c){console[_0xbc7b[16]](_0xbc7b[129]);console[_0xbc7b[16]](_0xbc7b[130],_0x1c1cx4c[_0xbc7b[131]]);console[_0xbc7b[16]](_0xbc7b[132],_0x1c1cx4c[_0xbc7b[133]]);_0x1c1cx11= undefined;delete _0x1c1cxf[_0xbc7b[42]];_0x1c1cxf[_0xbc7b[119]]= _0xbc7b[120];_0x1c1cxf[_0xbc7b[121]]= _0x1c1cxd;_0x1c1cxf[_0xbc7b[122]]= _0xbc7b[134];_0x1c1cxf[_0xbc7b[124]]= _0x1c1cxb;ReportIntegration[_0xbc7b[84]](_0x1c1cxf)[_0xbc7b[18]](function(){return})[_0xbc7b[17]](function(_0x1c1cx4c){console[_0xbc7b[16]](_0xbc7b[135]);return})}}function stripTrailingSlash(_0x1c1cx4e){if(_0x1c1cx4e[_0xbc7b[136]](-1) === _0xbc7b[137]){return _0x1c1cx4e[_0xbc7b[136]](0,_0x1c1cx4e[_0xbc7b[59]]- 1)};return _0x1c1cx4e}module[_0xbc7b[138]]= Salesforce
\ No newline at end of file