Built motion from commit b7ac9c5.|0.0.123
[motion.git] / server / config / integrations / salesforce.js
index 3999949..2011f72 100644 (file)
@@ -1 +1 @@
-var _0x30b2=["\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"];_0x30b2[0];var _=require(_0x30b2[1]);var util=require(_0x30b2[2]);var jsforce=require(_0x30b2[3]);var moment=require(_0x30b2[4]);var SalesforceIntegration=require(_0x30b2[6])[_0x30b2[5]];var SalesforceConfiguration=require(_0x30b2[6])[_0x30b2[7]];var ReportIntegration=require(_0x30b2[6])[_0x30b2[8]];var VoiceQueue=require(_0x30b2[6])[_0x30b2[9]];function Salesforce(){console[_0x30b2[11]](_0x30b2[10])}Salesforce[_0x30b2[13]][_0x30b2[12]]= function(_0xe2afxa,_0xe2afxb,_0xe2afxc,_0xe2afxd,_0xe2afxe){var _0xe2afxf={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined};if(!_0xe2afxa||  !_0xe2afxb){console[_0x30b2[15]](_0x30b2[14]);return};SalesforceConfiguration[_0x30b2[18]]({where:{id:_0xe2afxb,AccountId:_0xe2afxa},include:[{all:true,include:[{all:true}]}]})[_0x30b2[17]](handleEntityNotFound())[_0x30b2[17]](handleConnection(_0xe2afxf))[_0x30b2[17]](searchQueue(_0xe2afxd))[_0x30b2[17]](handleRecordings(_0xe2afxf))[_0x30b2[17]](searchAgent(_0xe2afxf,_0xe2afxc,_0xe2afxd))[_0x30b2[17]](handleAgent(_0xe2afxf,_0xe2afxc,_0xe2afxd))[_0x30b2[17]](searchAdmin(_0xe2afxf))[_0x30b2[17]](handleAdmin(_0xe2afxf))[_0x30b2[17]](searchContact(_0xe2afxf,_0xe2afxc,_0xe2afxd))[_0x30b2[17]](handleContact(_0xe2afxf,_0xe2afxc,_0xe2afxd))[_0x30b2[17]](searchLead(_0xe2afxf,_0xe2afxc,_0xe2afxd))[_0x30b2[17]](handleLead(_0xe2afxf,_0xe2afxc,_0xe2afxd))[_0x30b2[17]](leadCreation(_0xe2afxf,_0xe2afxc,_0xe2afxd))[_0x30b2[17]](handleLeadCreation(_0xe2afxf,_0xe2afxc,_0xe2afxd))[_0x30b2[17]](taskCreation(_0xe2afxf,_0xe2afxd,_0xe2afxe))[_0x30b2[17]](handleTaskDisplay(_0xe2afxf))[_0x30b2[17]](handleReportIntegration(_0xe2afxf,_0xe2afxc,_0xe2afxd,_0xe2afxa))[_0x30b2[17]](handleEnd(_0xe2afxf))[_0x30b2[16]](handleError(_0xe2afxf,_0xe2afxc,_0xe2afxd,_0xe2afxa))};function handleEntityNotFound(){return function(_0xe2afx11){if(!_0xe2afx11){return null};return _0xe2afx11}}function handleConnection(_0xe2afxf){return function(_0xe2afx13){_0xe2afxf[_0x30b2[19]]=  new jsforce.Connection({oauth2:{loginUrl:_0xe2afx13[_0x30b2[21]][_0x30b2[20]]?_0xe2afx13[_0x30b2[21]][_0x30b2[20]]:_0x30b2[22],clientId:_0xe2afx13[_0x30b2[21]][_0x30b2[23]],clientSecret:_0xe2afx13[_0x30b2[21]][_0x30b2[24]]}});var _0xe2afx14=_0xe2afx13[_0x30b2[21]][_0x30b2[27]][_0x30b2[26]](_0xe2afx13[_0x30b2[21]][_0x30b2[25]]);_0xe2afxf[_0x30b2[28]]= _0xe2afx13;_0xe2afxf[_0x30b2[29]]= _0xe2afx13[_0x30b2[21]][_0x30b2[30]];return _0xe2afxf[_0x30b2[19]][_0x30b2[32]](_0xe2afx13[_0x30b2[21]][_0x30b2[31]],_0xe2afx14)}}function searchQueue(_0xe2afxd){return function(){if(_0xe2afxd[_0x30b2[33]]){return VoiceQueue[_0x30b2[36]]({where:{name:_0xe2afxd[_0x30b2[33]]},attributes:[_0x30b2[34],_0x30b2[35]]})}else {return}}}function handleRecordings(_0xe2afxf){return function(_0xe2afx17){if(_0xe2afx17&& _0xe2afx17[_0x30b2[35]]){console[_0x30b2[11]](_0x30b2[37],_0xe2afx17[_0x30b2[34]]);_0xe2afxf[_0x30b2[38]]= true}else {_0xe2afxf[_0x30b2[38]]= false;console[_0x30b2[11]](_0x30b2[39]);return}}}function searchAgent(_0xe2afxf,_0xe2afxc,_0xe2afxd){return function(){console[_0x30b2[11]](_0x30b2[40],getValueFromPropertyName(_0xe2afxd,getAgentSearchPropertyFromChannel(_0xe2afxc)));return _0xe2afxf[_0x30b2[19]][_0x30b2[43]](_0x30b2[42])[_0x30b2[18]]({Name:getValueFromPropertyName(_0xe2afxd,getAgentSearchPropertyFromChannel(_0xe2afxc))},{Id:1,Username:1,Name:1})[_0x30b2[41]]()}}function getAgentSearchPropertyFromChannel(_0xe2afxc){var _0xe2afx1a=_0x30b2[44];if(_0xe2afxc){switch(_0xe2afxc){case _0x30b2[46]:_0xe2afx1a= _0x30b2[45];break;default:_0xe2afx1a= _0x30b2[45];console[_0x30b2[15]](_0x30b2[47],_0xe2afxc)}};return _0xe2afx1a}function getValueFromPropertyName(_0xe2afxd,_0xe2afx1a,_0xe2afxf){if(_0xe2afx1a=== _0x30b2[48]){if(_0xe2afxf&& _0xe2afxf[_0x30b2[38]]&& _0xe2afxf[_0x30b2[29]]){return util[_0x30b2[52]](_0x30b2[49],stripTrailingSlash(_0xe2afxf[_0x30b2[29]]),_0xe2afxd[_0x30b2[51]][_0x30b2[50]])}else {return null}}else {return _[_0x30b2[53]](_0xe2afxd,_0xe2afx1a)}}function handleAgent(_0xe2afxf,_0xe2afxc,_0xe2afx1d){return function(_0xe2afxd){if(_0xe2afxd[_0x30b2[54]]> 0){console[_0x30b2[11]](_0x30b2[55],getValueFromPropertyName(_0xe2afx1d,getAgentSearchPropertyFromChannel(_0xe2afxc)));_0xe2afxf[_0x30b2[56]]= getMatchObject(_0xe2afxd,_0x30b2[57],getValueFromPropertyName(_0xe2afx1d,getAgentSearchPropertyFromChannel(_0xe2afxc)));return _0xe2afxf[_0x30b2[56]]};return}}function getMatchObject(_0xe2afx1f,_0xe2afx1a,_0xe2afx20){var _0xe2afx21=_[_0x30b2[18]](_0xe2afx1f,{property:_0xe2afx20});if(_0xe2afx21){return _0xe2afx21};return _[_0x30b2[58]](_0xe2afx1f)}function searchAdmin(_0xe2afxf){return function(_0xe2afxd){if(_0xe2afxd){return};console[_0x30b2[11]](_0x30b2[59]);return _0xe2afxf[_0x30b2[19]][_0x30b2[60]]()}}function handleAdmin(_0xe2afxf){return function(_0xe2afxd){if(!_0xe2afxd){return};if(_0xe2afxd){console[_0x30b2[11]](_0x30b2[61]);_0xe2afxf[_0x30b2[56]]= {Id:_0xe2afxd[_0x30b2[62]],Name:_0xe2afxd[_0x30b2[63]],Username:_0xe2afxd[_0x30b2[31]]}};return}}function searchContact(_0xe2afxf,_0xe2afxc,_0xe2afxd){return function(){console[_0x30b2[11]](_0x30b2[64],getValueFromPropertyName(_0xe2afxd,getEndUserSearchPropertyFromChannel(_0xe2afxc)));var _0xe2afx25={};_0xe2afx25[getEndUserSearchQueryFromChannel(_0xe2afxc)]= getValueFromPropertyName(_0xe2afxd,getEndUserSearchPropertyFromChannel(_0xe2afxc));return _0xe2afxf[_0x30b2[19]][_0x30b2[43]](_0x30b2[65])[_0x30b2[18]](_0xe2afx25,{Id:1,Name:1})[_0x30b2[41]]()}}function getEndUserSearchQueryFromChannel(_0xe2afxc){var _0xe2afx1a=_0x30b2[44];if(_0xe2afxc){switch(_0xe2afxc){case _0x30b2[46]:_0xe2afx1a= _0x30b2[66];break;default:_0xe2afx1a= _0x30b2[66];console[_0x30b2[15]](_0x30b2[47],_0xe2afxc)}};return _0xe2afx1a}function getEndUserSearchPropertyFromChannel(_0xe2afxc){var _0xe2afx1a=_0x30b2[44];if(_0xe2afxc){switch(_0xe2afxc){case _0x30b2[46]:_0xe2afx1a= _0x30b2[67];break;default:_0xe2afx1a= _0x30b2[67];console[_0x30b2[15]](_0x30b2[47],_0xe2afxc)}};return _0xe2afx1a}function getEndUserNamePropertyFromChannel(_0xe2afxc){var _0xe2afx1a=_0x30b2[44];if(_0xe2afxc){switch(_0xe2afxc){case _0x30b2[46]:_0xe2afx1a= _0x30b2[68];break;default:_0xe2afx1a= _0x30b2[68];console[_0x30b2[15]](_0x30b2[47],_0xe2afxc)}};return _0xe2afx1a}function handleContact(_0xe2afxf,_0xe2afxc,_0xe2afx1d){return function(_0xe2afxd){if(_0xe2afxd[_0x30b2[54]]> 0){console[_0x30b2[11]](_0x30b2[69],getValueFromPropertyName(_0xe2afx1d,getEndUserSearchPropertyFromChannel(_0xe2afxc)));_0xe2afxf[_0x30b2[70]]= _0xe2afxd[0];return _0xe2afxf[_0x30b2[70]]};console[_0x30b2[11]](_0x30b2[71],getValueFromPropertyName(_0xe2afx1d,getEndUserSearchPropertyFromChannel(_0xe2afxc)));return}}function searchLead(_0xe2afxf,_0xe2afxc,_0xe2afx1d){return function(_0xe2afxd){if(!_0xe2afxd){console[_0x30b2[11]](_0x30b2[72],getValueFromPropertyName(_0xe2afx1d,getEndUserSearchPropertyFromChannel(_0xe2afxc)));var _0xe2afx25={};_0xe2afx25[getEndUserSearchQueryFromChannel(_0xe2afxc)]= getValueFromPropertyName(_0xe2afx1d,getEndUserSearchPropertyFromChannel(_0xe2afxc));return _0xe2afxf[_0x30b2[19]][_0x30b2[43]](_0x30b2[73])[_0x30b2[18]](_0xe2afx25,{Id:1,Name:1})[_0x30b2[41]]()};return}}function handleLead(_0xe2afxf,_0xe2afxc,_0xe2afx1d){return function(_0xe2afxd){if(_0xe2afxd&& _0xe2afxd[_0x30b2[54]]> 0){console[_0x30b2[11]](_0x30b2[74],getValueFromPropertyName(_0xe2afx1d,getEndUserSearchPropertyFromChannel(_0xe2afxc)));_0xe2afxf[_0x30b2[70]]= _0xe2afxd[0];return _0xe2afxf[_0x30b2[70]]};return}}function leadCreation(_0xe2afxf,_0xe2afxc,_0xe2afx1d){return function(_0xe2afxd){if(_0xe2afxd|| _0xe2afxf[_0x30b2[70]]){return};console[_0x30b2[11]](_0x30b2[75],getValueFromPropertyName(_0xe2afx1d,getEndUserSearchPropertyFromChannel(_0xe2afxc)));return _0xe2afxf[_0x30b2[19]][_0x30b2[43]](_0x30b2[73])[_0x30b2[76]](getJsonForEndUserCreation(_0xe2afxc,_0xe2afx1d))}}function getJsonForEndUserCreation(_0xe2afxc,_0xe2afxd){var _0xe2afx2e={Company:_0x30b2[77]};switch(_0xe2afxc){case _0x30b2[46]:if(_0xe2afxd[_0x30b2[68]]){_0xe2afx2e[_0x30b2[78]]= getValueFromPropertyName(_0xe2afxd,getEndUserNamePropertyFromChannel(_0xe2afxc))}else {_0xe2afx2e[_0x30b2[78]]= util[_0x30b2[52]](_0x30b2[79],getValueFromPropertyName(_0xe2afxd,getAgentSearchPropertyFromChannel(_0xe2afxc)))};_0xe2afx2e[_0x30b2[66]]= getValueFromPropertyName(_0xe2afxd,getEndUserSearchPropertyFromChannel(_0xe2afxc));break;default:console[_0x30b2[15]](_0x30b2[47],_0xe2afxc)};return _0xe2afx2e}function handleLeadCreation(_0xe2afxf,_0xe2afxc,_0xe2afx1d){return function(_0xe2afxd){if(!_0xe2afxd){return};if(_0xe2afxd&& _0xe2afxd[_0x30b2[80]]){console[_0x30b2[11]](_0x30b2[81],getValueFromPropertyName(_0xe2afx1d,getEndUserSearchPropertyFromChannel(_0xe2afxc)));_0xe2afxf[_0x30b2[70]]= {Id:_0xe2afxd[_0x30b2[82]]}};return}}function taskCreation(_0xe2afxf,_0xe2afx1d,_0xe2afxe){return function(){var _0xe2afx31={WhoId:_0xe2afxf[_0x30b2[70]][_0x30b2[83]],OwnerId:_0xe2afxf[_0x30b2[56]][_0x30b2[83]],ActivityDate:moment[_0x30b2[84]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0xe2afxf,_0xe2afx1d,_0xe2afxe),Description:createDescriptionFromConfiguration(_0xe2afxf,_0xe2afx1d,_0xe2afxe)};var _0xe2afx32=createCustomFieldsFromConfiguration(_0xe2afxf,_0xe2afx1d,_0xe2afxe);if(_0xe2afx32[_0x30b2[54]]> 0){_[_0x30b2[86]](_0xe2afx32,function(_0xe2afx33){_0xe2afx31[_0xe2afx33[_0x30b2[82]]]= _0xe2afx33[_0x30b2[85]]})};return _0xe2afxf[_0x30b2[19]][_0x30b2[43]](_0x30b2[87])[_0x30b2[76]](_0xe2afx31)}}function createSubjectFromConfiguration(_0xe2afxf,_0xe2afx1d,_0xe2afxe){var _0xe2afx35=_0x30b2[44];var _0xe2afx36=[];if(_0xe2afxf[_0x30b2[28]][_0x30b2[88]][_0x30b2[54]]> 0){var _0xe2afx37=_[_0x30b2[89]](_0xe2afxf[_0x30b2[28]].Subject,[_0x30b2[82]]);_[_0x30b2[86]](_0xe2afx37,function(_0xe2afx38){if(_0xe2afx38[_0x30b2[90]]=== _0x30b2[91]){_0xe2afx36[_0x30b2[93]](_0xe2afx38[_0x30b2[92]])}else {if(_0xe2afx38[_0x30b2[90]]=== _0x30b2[94]&& _0xe2afx38[_0x30b2[95]]){var _0xe2afx39=getValueFromPropertyName(_0xe2afx1d,_0xe2afx38[_0x30b2[95]],_0xe2afxf);if(_0xe2afx39){_0xe2afx36[_0x30b2[93]](_0xe2afx39.toString())}}else {if(_0xe2afx38[_0x30b2[90]]=== _0x30b2[96]){var _0xe2afx3a=_[_0x30b2[18]](_0xe2afxe,{"\x6E\x61\x6D\x65":_0xe2afx38[_0x30b2[97]][_0x30b2[34]]});if(_0xe2afx3a){_0xe2afx36[_0x30b2[93]](_0xe2afx3a[_0x30b2[85]].toString())}}}}});_0xe2afx35= _0xe2afx36[_0x30b2[99]](_0x30b2[98])};return _0xe2afx35}function createDescriptionFromConfiguration(_0xe2afxf,_0xe2afx1d,_0xe2afxe){var _0xe2afx3c=_0x30b2[44];var _0xe2afx36=[];if(_0xe2afxf[_0x30b2[28]][_0x30b2[100]][_0x30b2[54]]> 0){var _0xe2afx3d=_[_0x30b2[89]](_0xe2afxf[_0x30b2[28]].Description,[_0x30b2[82]]);_[_0x30b2[86]](_0xe2afx3d,function(_0xe2afx38){if(_0xe2afx38[_0x30b2[90]]=== _0x30b2[91]){_0xe2afx36[_0x30b2[93]](_0xe2afx38[_0x30b2[92]])}else {if(_0xe2afx38[_0x30b2[90]]=== _0x30b2[101]){if(_0xe2afx38[_0x30b2[102]]=== _0x30b2[91]){_0xe2afx36[_0x30b2[93]](util[_0x30b2[52]](_0x30b2[103],_0xe2afx38[_0x30b2[104]],_0xe2afx38[_0x30b2[105]]))}else {if(_0xe2afx38[_0x30b2[102]]=== _0x30b2[94]&& _0xe2afx38[_0x30b2[95]]){var _0xe2afx39=getValueFromPropertyName(_0xe2afx1d,_0xe2afx38[_0x30b2[95]],_0xe2afxf);if(_0xe2afx39){_0xe2afx36[_0x30b2[93]](util[_0x30b2[52]](_0x30b2[103],_0xe2afx38[_0x30b2[104]],_0xe2afx39.toString()))}}else {if(_0xe2afx38[_0x30b2[102]]=== _0x30b2[96]){var _0xe2afx3a=_[_0x30b2[18]](_0xe2afxe,{"\x6E\x61\x6D\x65":_0xe2afx38[_0x30b2[97]][_0x30b2[34]]});if(_0xe2afx3a){_0xe2afx36[_0x30b2[93]](util[_0x30b2[52]](_0x30b2[103],_0xe2afx38[_0x30b2[104]],_0xe2afx3a[_0x30b2[85]].toString()))}}}}}}});_0xe2afx3c= _0xe2afx36[_0x30b2[99]](_0x30b2[106])};return _0xe2afx3c}function createCustomFieldsFromConfiguration(_0xe2afxf,_0xe2afx1d,_0xe2afxe){var _0xe2afx3f=[];var _0xe2afx40=[];if(_0xe2afxf[_0x30b2[28]][_0x30b2[107]][_0x30b2[54]]> 0){_0xe2afx3f= _0xe2afxf[_0x30b2[28]][_0x30b2[107]];_[_0x30b2[86]](_0xe2afx3f,function(_0xe2afx33){if(_0xe2afx33[_0x30b2[90]]=== _0x30b2[91]){_0xe2afx40[_0x30b2[93]]({id:_0xe2afx33[_0x30b2[108]],value:_0xe2afx33[_0x30b2[92]]})}else {if(_0xe2afx33[_0x30b2[90]]=== _0x30b2[94]){var _0xe2afx39=getValueFromPropertyName(_0xe2afx1d,_0xe2afx33[_0x30b2[95]],_0xe2afxf);if(_0xe2afx39){_0xe2afx40[_0x30b2[93]]({id:_0xe2afx33[_0x30b2[108]],value:_0xe2afx39.toString()})}}else {if(_0xe2afx33[_0x30b2[90]]=== _0x30b2[96]){var _0xe2afx3a=_[_0x30b2[18]](_0xe2afxe,{"\x6E\x61\x6D\x65":_0xe2afx33[_0x30b2[97]][_0x30b2[34]]});if(_0xe2afx3a){_0xe2afx40[_0x30b2[93]]({id:_0xe2afx33[_0x30b2[108]],value:_0xe2afx3a[_0x30b2[85]].toString()})}}}}})};return _0xe2afx40}function handleTaskDisplay(_0xe2afxf){return function(_0xe2afxd){if(_0xe2afxd&& _0xe2afxd[_0x30b2[80]]){console[_0x30b2[11]](_0x30b2[109],_0xe2afxd[_0x30b2[82]]);_0xe2afxf[_0x30b2[110]]= _0xe2afxd[_0x30b2[82]];return};return}}function handleReportIntegration(_0xe2afxf,_0xe2afxc,_0xe2afxd,_0xe2afxa){return function(){_0xe2afxd= _0xe2afxd[_0x30b2[51]];delete _0xe2afxd[_0x30b2[82]];_0xe2afxd[_0x30b2[111]]= _0x30b2[112];_0xe2afxd[_0x30b2[113]]= _0xe2afxc;_0xe2afxd[_0x30b2[114]]= _0x30b2[80];_0xe2afxd[_0x30b2[115]]= _0xe2afxf[_0x30b2[110]];_0xe2afxd[_0x30b2[116]]= _0xe2afxa;_0xe2afxd[_0x30b2[117]]= util[_0x30b2[52]](_0x30b2[118],_0xe2afxf[_0x30b2[19]][_0x30b2[119]],_0xe2afxf[_0x30b2[110]]);return ReportIntegration[_0x30b2[76]](_0xe2afxd)}}function handleEnd(_0xe2afxf,_0xe2afxd,_0xe2afxc){return function(){console[_0x30b2[11]](util[_0x30b2[52]](_0x30b2[120],_0xe2afxf[_0x30b2[110]],_0xe2afxf[_0x30b2[56]].Id));_0xe2afxf= undefined;return}}function handleError(_0xe2afxf,_0xe2afxc,_0xe2afxd,_0xe2afxa){return function(_0xe2afx45){console[_0x30b2[15]](_0x30b2[121]);console[_0x30b2[15]](_0x30b2[122],_0xe2afx45[_0x30b2[123]]);console[_0x30b2[15]](_0x30b2[124],_0xe2afx45[_0x30b2[125]]);_0xe2afxf= undefined;delete _0xe2afxd[_0x30b2[82]];_0xe2afxd= _0xe2afxd[_0x30b2[51]];_0xe2afxd[_0x30b2[111]]= _0x30b2[112];_0xe2afxd[_0x30b2[113]]= _0xe2afxc;_0xe2afxd[_0x30b2[114]]= _0x30b2[126];_0xe2afxd[_0x30b2[116]]= _0xe2afxa;ReportIntegration[_0x30b2[76]](_0xe2afxd)[_0x30b2[17]](function(){return})[_0x30b2[16]](function(_0xe2afx45){console[_0x30b2[15]](_0x30b2[127]);return})}}function stripTrailingSlash(_0xe2afx47){if(_0xe2afx47[_0x30b2[128]](-1) === _0x30b2[129]){return _0xe2afx47[_0x30b2[128]](0,_0xe2afx47[_0x30b2[54]]- 1)};return _0xe2afx47}module[_0x30b2[130]]= Salesforce
\ No newline at end of file
+var _0x98bd=["\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"];_0x98bd[0];var _=require(_0x98bd[1]);var util=require(_0x98bd[2]);var jsforce=require(_0x98bd[3]);var moment=require(_0x98bd[4]);var SalesforceIntegration=require(_0x98bd[6])[_0x98bd[5]];var SalesforceConfiguration=require(_0x98bd[6])[_0x98bd[7]];var ReportIntegration=require(_0x98bd[6])[_0x98bd[8]];var VoiceQueue=require(_0x98bd[6])[_0x98bd[9]];var VoiceExtension=require(_0x98bd[6])[_0x98bd[10]];function Salesforce(){console[_0x98bd[12]](_0x98bd[11])}Salesforce[_0x98bd[14]][_0x98bd[13]]= function(_0x4e4cxb,_0x4e4cxc,_0x4e4cxd,_0x4e4cxe,_0x4e4cxf,_0x4e4cx10){var _0x4e4cx11={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined};if(!_0x4e4cxb||  !_0x4e4cxc){console[_0x98bd[16]](_0x98bd[15]);return};SalesforceConfiguration[_0x98bd[19]]({where:{id:_0x4e4cxc,AccountId:_0x4e4cxb},include:[{all:true,include:[{all:true}]}]})[_0x98bd[18]](handleEntityNotFound())[_0x98bd[18]](handleConnection(_0x4e4cx11))[_0x98bd[18]](searchQueue(_0x4e4cxf))[_0x98bd[18]](handleQueueRecordings(_0x4e4cx11))[_0x98bd[18]](searchRoute(_0x4e4cxf))[_0x98bd[18]](handleOutboundRecordings(_0x4e4cx11))[_0x98bd[18]](searchAgent(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf))[_0x98bd[18]](handleAgent(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf))[_0x98bd[18]](searchAdmin(_0x4e4cx11))[_0x98bd[18]](handleAdmin(_0x4e4cx11))[_0x98bd[18]](searchContact(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxe))[_0x98bd[18]](handleContact(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxe))[_0x98bd[18]](searchLead(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxe))[_0x98bd[18]](handleLead(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxe))[_0x98bd[18]](leadCreation(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxe))[_0x98bd[18]](handleLeadCreation(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxe))[_0x98bd[18]](taskCreation(_0x4e4cx11,_0x4e4cxf,_0x4e4cx10))[_0x98bd[18]](handleTaskDisplay(_0x4e4cx11))[_0x98bd[18]](handleReportIntegration(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxb))[_0x98bd[18]](handleEnd(_0x4e4cx11))[_0x98bd[17]](handleError(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxb))};function handleEntityNotFound(){return function(_0x4e4cx13){if(!_0x4e4cx13){return null};return _0x4e4cx13}}function handleConnection(_0x4e4cx11){return function(_0x4e4cx15){_0x4e4cx11[_0x98bd[20]]=  new jsforce.Connection({oauth2:{loginUrl:_0x4e4cx15[_0x98bd[22]][_0x98bd[21]]?_0x4e4cx15[_0x98bd[22]][_0x98bd[21]]:_0x98bd[23],clientId:_0x4e4cx15[_0x98bd[22]][_0x98bd[24]],clientSecret:_0x4e4cx15[_0x98bd[22]][_0x98bd[25]]}});var _0x4e4cx16=_0x4e4cx15[_0x98bd[22]][_0x98bd[28]][_0x98bd[27]](_0x4e4cx15[_0x98bd[22]][_0x98bd[26]]);_0x4e4cx11[_0x98bd[29]]= _0x4e4cx15;_0x4e4cx11[_0x98bd[30]]= _0x4e4cx15[_0x98bd[22]][_0x98bd[31]];return _0x4e4cx11[_0x98bd[20]][_0x98bd[33]](_0x4e4cx15[_0x98bd[22]][_0x98bd[32]],_0x4e4cx16)}}function searchQueue(_0x4e4cxf){return function(){if(_0x4e4cxf[_0x98bd[34]]){return VoiceQueue[_0x98bd[37]]({where:{name:_0x4e4cxf[_0x98bd[34]]},attributes:[_0x98bd[35],_0x98bd[36]]})}else {return}}}function handleQueueRecordings(_0x4e4cx11){return function(_0x4e4cx19){if(_0x4e4cx19&& _0x4e4cx19[_0x98bd[36]]){console[_0x98bd[12]](_0x98bd[38],_0x4e4cx19[_0x98bd[35]]);_0x4e4cx11[_0x98bd[39]]= true}else {_0x4e4cx11[_0x98bd[39]]= false;console[_0x98bd[12]](_0x98bd[40]);return}}}function searchRoute(_0x4e4cxf){return function(){if(_0x4e4cxf[_0x98bd[41]]){return VoiceExtension[_0x98bd[37]]({where:{id:_0x4e4cxf[_0x98bd[41]]},attributes:[_0x98bd[42],_0x98bd[43]]})}else {return}}}function handleOutboundRecordings(_0x4e4cx11){return function(_0x4e4cx1c){if(_0x4e4cx1c&& _0x4e4cx1c[_0x98bd[43]]){console[_0x98bd[12]](_0x98bd[44],_0x4e4cx1c[_0x98bd[42]]);_0x4e4cx11[_0x98bd[39]]= true}else {_0x4e4cx11[_0x98bd[39]]= false;console[_0x98bd[12]](_0x98bd[45]);return}}}function searchAgent(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf){return function(){console[_0x98bd[12]](_0x98bd[46],getValueFromPropertyName(_0x4e4cxf,getAgentSearchPropertyFromChannel(_0x4e4cxd)));return _0x4e4cx11[_0x98bd[20]][_0x98bd[49]](_0x98bd[48])[_0x98bd[19]]({Name:getValueFromPropertyName(_0x4e4cxf,getAgentSearchPropertyFromChannel(_0x4e4cxd))},{Id:1,Username:1,Name:1})[_0x98bd[47]]()}}function getAgentSearchPropertyFromChannel(_0x4e4cxd){var _0x4e4cx1f=_0x98bd[50];if(_0x4e4cxd){switch(_0x4e4cxd){case _0x98bd[52]:_0x4e4cx1f= _0x98bd[51];break;default:_0x4e4cx1f= _0x98bd[51];console[_0x98bd[16]](_0x98bd[53],_0x4e4cxd)}};return _0x4e4cx1f}function getValueFromPropertyName(_0x4e4cxf,_0x4e4cx1f,_0x4e4cx11){if(_0x4e4cx1f=== _0x98bd[54]){if(_0x4e4cx11&& _0x4e4cx11[_0x98bd[39]]&& _0x4e4cx11[_0x98bd[30]]){return util[_0x98bd[57]](_0x98bd[55],stripTrailingSlash(_0x4e4cx11[_0x98bd[30]]),_0x4e4cxf[_0x98bd[56]])}else {return null}}else {return _[_0x98bd[58]](_0x4e4cxf,_0x4e4cx1f)}}function handleAgent(_0x4e4cx11,_0x4e4cxd,_0x4e4cx22){return function(_0x4e4cxf){if(_0x4e4cxf[_0x98bd[59]]> 0){console[_0x98bd[12]](_0x98bd[60],getValueFromPropertyName(_0x4e4cx22,getAgentSearchPropertyFromChannel(_0x4e4cxd)));_0x4e4cx11[_0x98bd[61]]= getMatchObject(_0x4e4cxf,_0x98bd[62],getValueFromPropertyName(_0x4e4cx22,getAgentSearchPropertyFromChannel(_0x4e4cxd)));return _0x4e4cx11[_0x98bd[61]]};return}}function getMatchObject(_0x4e4cx24,_0x4e4cx1f,_0x4e4cx25){var _0x4e4cx26=_[_0x98bd[19]](_0x4e4cx24,{property:_0x4e4cx25});if(_0x4e4cx26){return _0x4e4cx26};return _[_0x98bd[63]](_0x4e4cx24)}function searchAdmin(_0x4e4cx11){return function(_0x4e4cxf){if(_0x4e4cxf){return};console[_0x98bd[12]](_0x98bd[64]);return _0x4e4cx11[_0x98bd[20]][_0x98bd[65]]()}}function handleAdmin(_0x4e4cx11){return function(_0x4e4cxf){if(!_0x4e4cxf){return};if(_0x4e4cxf){console[_0x98bd[12]](_0x98bd[66]);_0x4e4cx11[_0x98bd[61]]= {Id:_0x4e4cxf[_0x98bd[67]],Name:_0x4e4cxf[_0x98bd[68]],Username:_0x4e4cxf[_0x98bd[32]]}};return}}function searchContact(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxe){return function(){console[_0x98bd[12]](_0x98bd[69],getValueFromPropertyName(_0x4e4cxf,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)));var _0x4e4cx2a={};_0x4e4cx2a[getEndUserSearchQueryFromChannel(_0x4e4cxd)]= getValueFromPropertyName(_0x4e4cxf,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe));return _0x4e4cx11[_0x98bd[20]][_0x98bd[49]](_0x98bd[70])[_0x98bd[19]](_0x4e4cx2a,{Id:1,Name:1})[_0x98bd[47]]()}}function getEndUserSearchQueryFromChannel(_0x4e4cxd){var _0x4e4cx1f=_0x98bd[50];if(_0x4e4cxd){switch(_0x4e4cxd){case _0x98bd[52]:_0x4e4cx1f= _0x98bd[71];break;default:_0x4e4cx1f= _0x98bd[71];console[_0x98bd[16]](_0x98bd[53],_0x4e4cxd)}};return _0x4e4cx1f}function getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe){var _0x4e4cx1f=_0x98bd[50];if(_0x4e4cxd){switch(_0x4e4cxd){case _0x98bd[52]:if(_0x4e4cxe=== _0x98bd[72]){_0x4e4cx1f= _0x98bd[73]}else {if(_0x4e4cxe=== _0x98bd[34]){_0x4e4cx1f= _0x98bd[74]}};break;default:_0x4e4cx1f= _0x98bd[74];console[_0x98bd[16]](_0x98bd[53],_0x4e4cxd)}};return _0x4e4cx1f}function getEndUserNamePropertyFromChannel(_0x4e4cxd,_0x4e4cxe){var _0x4e4cx1f=_0x98bd[50];if(_0x4e4cxd){switch(_0x4e4cxd){case _0x98bd[52]:if(_0x4e4cxe=== _0x98bd[72]){_0x4e4cx1f= _0x98bd[75]}else {if(_0x4e4cxe=== _0x98bd[34]){_0x4e4cx1f= _0x98bd[76]}};break;default:_0x4e4cx1f= _0x98bd[76];console[_0x98bd[16]](_0x98bd[53],_0x4e4cxd)}};return _0x4e4cx1f}function handleContact(_0x4e4cx11,_0x4e4cxd,_0x4e4cx22,_0x4e4cxe){return function(_0x4e4cxf){if(_0x4e4cxf[_0x98bd[59]]> 0){console[_0x98bd[12]](_0x98bd[77],getValueFromPropertyName(_0x4e4cx22,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)));_0x4e4cx11[_0x98bd[78]]= _0x4e4cxf[0];return _0x4e4cx11[_0x98bd[78]]};console[_0x98bd[12]](_0x98bd[79],getValueFromPropertyName(_0x4e4cx22,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)));return}}function searchLead(_0x4e4cx11,_0x4e4cxd,_0x4e4cx22,_0x4e4cxe){return function(_0x4e4cxf){if(!_0x4e4cxf){console[_0x98bd[12]](_0x98bd[80],getValueFromPropertyName(_0x4e4cx22,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)));var _0x4e4cx2a={};_0x4e4cx2a[getEndUserSearchQueryFromChannel(_0x4e4cxd)]= getValueFromPropertyName(_0x4e4cx22,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe));return _0x4e4cx11[_0x98bd[20]][_0x98bd[49]](_0x98bd[81])[_0x98bd[19]](_0x4e4cx2a,{Id:1,Name:1})[_0x98bd[47]]()};return}}function handleLead(_0x4e4cx11,_0x4e4cxd,_0x4e4cx22,_0x4e4cxe){return function(_0x4e4cxf){if(_0x4e4cxf&& _0x4e4cxf[_0x98bd[59]]> 0){console[_0x98bd[12]](_0x98bd[82],getValueFromPropertyName(_0x4e4cx22,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)));_0x4e4cx11[_0x98bd[78]]= _0x4e4cxf[0];return _0x4e4cx11[_0x98bd[78]]};return}}function leadCreation(_0x4e4cx11,_0x4e4cxd,_0x4e4cx22,_0x4e4cxe){return function(_0x4e4cxf){if(_0x4e4cxf|| _0x4e4cx11[_0x98bd[78]]){return};console[_0x98bd[12]](_0x98bd[83],getValueFromPropertyName(_0x4e4cx22,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)));return _0x4e4cx11[_0x98bd[20]][_0x98bd[49]](_0x98bd[81])[_0x98bd[84]](getJsonForEndUserCreation(_0x4e4cxd,_0x4e4cx22,_0x4e4cxe))}}function getJsonForEndUserCreation(_0x4e4cxd,_0x4e4cxf,_0x4e4cxe){var _0x4e4cx33={Company:_0x98bd[85]};switch(_0x4e4cxd){case _0x98bd[52]:if(_0x4e4cxe=== _0x98bd[34]){if(isValidName(_0x4e4cxf[_0x98bd[76]])){_0x4e4cx33[_0x98bd[86]]= getValueFromPropertyName(_0x4e4cxf,getEndUserNamePropertyFromChannel(_0x4e4cxd,_0x4e4cxe))}else {_0x4e4cx33[_0x98bd[86]]= util[_0x98bd[57]](_0x98bd[87],getValueFromPropertyName(_0x4e4cxf,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)))}}else {if(_0x4e4cxe=== _0x98bd[72]){if(isValidName(_0x4e4cxf[_0x98bd[75]])){_0x4e4cx33[_0x98bd[86]]= getValueFromPropertyName(_0x4e4cxf,getEndUserNamePropertyFromChannel(_0x4e4cxd,_0x4e4cxe))}else {_0x4e4cx33[_0x98bd[86]]= util[_0x98bd[57]](_0x98bd[87],getValueFromPropertyName(_0x4e4cxf,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)))}}};_0x4e4cx33[_0x98bd[71]]= getValueFromPropertyName(_0x4e4cxf,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe));break;default:console[_0x98bd[16]](_0x98bd[53],_0x4e4cxd)};return _0x4e4cx33}function isValidName(_0x4e4cx35){return _0x4e4cx35&& _0x4e4cx35!== _0x98bd[88]}function handleLeadCreation(_0x4e4cx11,_0x4e4cxd,_0x4e4cx22,_0x4e4cxe){return function(_0x4e4cxf){if(!_0x4e4cxf){return};if(_0x4e4cxf&& _0x4e4cxf[_0x98bd[89]]){console[_0x98bd[12]](_0x98bd[90],getValueFromPropertyName(_0x4e4cx22,getEndUserSearchPropertyFromChannel(_0x4e4cxd,_0x4e4cxe)));_0x4e4cx11[_0x98bd[78]]= {Id:_0x4e4cxf[_0x98bd[42]]}};return}}function taskCreation(_0x4e4cx11,_0x4e4cx22,_0x4e4cx10){return function(){var _0x4e4cx38={WhoId:_0x4e4cx11[_0x98bd[78]][_0x98bd[91]],OwnerId:_0x4e4cx11[_0x98bd[61]][_0x98bd[91]],ActivityDate:moment[_0x98bd[92]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0x4e4cx11,_0x4e4cx22,_0x4e4cx10),Description:createDescriptionFromConfiguration(_0x4e4cx11,_0x4e4cx22,_0x4e4cx10)};var _0x4e4cx39=createCustomFieldsFromConfiguration(_0x4e4cx11,_0x4e4cx22,_0x4e4cx10);if(_0x4e4cx39[_0x98bd[59]]> 0){_[_0x98bd[94]](_0x4e4cx39,function(_0x4e4cx3a){_0x4e4cx38[_0x4e4cx3a[_0x98bd[42]]]= _0x4e4cx3a[_0x98bd[93]]})};return _0x4e4cx11[_0x98bd[20]][_0x98bd[49]](_0x98bd[95])[_0x98bd[84]](_0x4e4cx38)}}function createSubjectFromConfiguration(_0x4e4cx11,_0x4e4cx22,_0x4e4cx10){var _0x4e4cx3c=_0x98bd[50];var _0x4e4cx3d=[];if(_0x4e4cx11[_0x98bd[29]][_0x98bd[96]][_0x98bd[59]]> 0){var _0x4e4cx3e=_[_0x98bd[97]](_0x4e4cx11[_0x98bd[29]].Subject,[_0x98bd[42]]);_[_0x98bd[94]](_0x4e4cx3e,function(_0x4e4cx3f){if(_0x4e4cx3f[_0x98bd[98]]=== _0x98bd[99]){_0x4e4cx3d[_0x98bd[101]](_0x4e4cx3f[_0x98bd[100]])}else {if(_0x4e4cx3f[_0x98bd[98]]=== _0x98bd[102]&& _0x4e4cx3f[_0x98bd[103]]){var _0x4e4cx40=getValueFromPropertyName(_0x4e4cx22,_0x4e4cx3f[_0x98bd[103]],_0x4e4cx11);if(_0x4e4cx40){_0x4e4cx3d[_0x98bd[101]](_0x4e4cx40.toString())}}else {if(_0x4e4cx3f[_0x98bd[98]]=== _0x98bd[104]){var _0x4e4cx41=_[_0x98bd[19]](_0x4e4cx10,{"\x6E\x61\x6D\x65":_0x4e4cx3f[_0x98bd[105]][_0x98bd[35]]});if(_0x4e4cx41){_0x4e4cx3d[_0x98bd[101]](_0x4e4cx41[_0x98bd[93]].toString())}}}}});_0x4e4cx3c= _0x4e4cx3d[_0x98bd[107]](_0x98bd[106])};return _0x4e4cx3c}function createDescriptionFromConfiguration(_0x4e4cx11,_0x4e4cx22,_0x4e4cx10){var _0x4e4cx43=_0x98bd[50];var _0x4e4cx3d=[];if(_0x4e4cx11[_0x98bd[29]][_0x98bd[108]][_0x98bd[59]]> 0){var _0x4e4cx44=_[_0x98bd[97]](_0x4e4cx11[_0x98bd[29]].Description,[_0x98bd[42]]);_[_0x98bd[94]](_0x4e4cx44,function(_0x4e4cx3f){if(_0x4e4cx3f[_0x98bd[98]]=== _0x98bd[99]){_0x4e4cx3d[_0x98bd[101]](_0x4e4cx3f[_0x98bd[100]])}else {if(_0x4e4cx3f[_0x98bd[98]]=== _0x98bd[109]){if(_0x4e4cx3f[_0x98bd[110]]=== _0x98bd[99]){_0x4e4cx3d[_0x98bd[101]](util[_0x98bd[57]](_0x98bd[111],_0x4e4cx3f[_0x98bd[112]],_0x4e4cx3f[_0x98bd[113]]))}else {if(_0x4e4cx3f[_0x98bd[110]]=== _0x98bd[102]&& _0x4e4cx3f[_0x98bd[103]]){var _0x4e4cx40=getValueFromPropertyName(_0x4e4cx22,_0x4e4cx3f[_0x98bd[103]],_0x4e4cx11);if(_0x4e4cx40){_0x4e4cx3d[_0x98bd[101]](util[_0x98bd[57]](_0x98bd[111],_0x4e4cx3f[_0x98bd[112]],_0x4e4cx40.toString()))}}else {if(_0x4e4cx3f[_0x98bd[110]]=== _0x98bd[104]){var _0x4e4cx41=_[_0x98bd[19]](_0x4e4cx10,{"\x6E\x61\x6D\x65":_0x4e4cx3f[_0x98bd[105]][_0x98bd[35]]});if(_0x4e4cx41){_0x4e4cx3d[_0x98bd[101]](util[_0x98bd[57]](_0x98bd[111],_0x4e4cx3f[_0x98bd[112]],_0x4e4cx41[_0x98bd[93]].toString()))}}}}}}});_0x4e4cx43= _0x4e4cx3d[_0x98bd[107]](_0x98bd[114])};return _0x4e4cx43}function createCustomFieldsFromConfiguration(_0x4e4cx11,_0x4e4cx22,_0x4e4cx10){var _0x4e4cx46=[];var _0x4e4cx47=[];if(_0x4e4cx11[_0x98bd[29]][_0x98bd[115]][_0x98bd[59]]> 0){_0x4e4cx46= _0x4e4cx11[_0x98bd[29]][_0x98bd[115]];_[_0x98bd[94]](_0x4e4cx46,function(_0x4e4cx3a){if(_0x4e4cx3a[_0x98bd[98]]=== _0x98bd[99]){_0x4e4cx47[_0x98bd[101]]({id:_0x4e4cx3a[_0x98bd[116]],value:_0x4e4cx3a[_0x98bd[100]]})}else {if(_0x4e4cx3a[_0x98bd[98]]=== _0x98bd[102]){var _0x4e4cx40=getValueFromPropertyName(_0x4e4cx22,_0x4e4cx3a[_0x98bd[103]],_0x4e4cx11);if(_0x4e4cx40){_0x4e4cx47[_0x98bd[101]]({id:_0x4e4cx3a[_0x98bd[116]],value:_0x4e4cx40.toString()})}}else {if(_0x4e4cx3a[_0x98bd[98]]=== _0x98bd[104]){var _0x4e4cx41=_[_0x98bd[19]](_0x4e4cx10,{"\x6E\x61\x6D\x65":_0x4e4cx3a[_0x98bd[105]][_0x98bd[35]]});if(_0x4e4cx41){_0x4e4cx47[_0x98bd[101]]({id:_0x4e4cx3a[_0x98bd[116]],value:_0x4e4cx41[_0x98bd[93]].toString()})}}}}})};return _0x4e4cx47}function handleTaskDisplay(_0x4e4cx11){return function(_0x4e4cxf){if(_0x4e4cxf&& _0x4e4cxf[_0x98bd[89]]){console[_0x98bd[12]](_0x98bd[117],_0x4e4cxf[_0x98bd[42]]);_0x4e4cx11[_0x98bd[118]]= _0x4e4cxf[_0x98bd[42]];return};return}}function handleReportIntegration(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxb){return function(){delete _0x4e4cxf[_0x98bd[42]];_0x4e4cxf[_0x98bd[119]]= _0x98bd[120];_0x4e4cxf[_0x98bd[121]]= _0x4e4cxd;_0x4e4cxf[_0x98bd[122]]= _0x98bd[89];_0x4e4cxf[_0x98bd[123]]= _0x4e4cx11[_0x98bd[118]];_0x4e4cxf[_0x98bd[124]]= _0x4e4cxb;_0x4e4cxf[_0x98bd[125]]= util[_0x98bd[57]](_0x98bd[126],_0x4e4cx11[_0x98bd[20]][_0x98bd[127]],_0x4e4cx11[_0x98bd[118]]);return ReportIntegration[_0x98bd[84]](_0x4e4cxf)}}function handleEnd(_0x4e4cx11,_0x4e4cxf,_0x4e4cxd){return function(){console[_0x98bd[12]](util[_0x98bd[57]](_0x98bd[128],_0x4e4cx11[_0x98bd[118]],_0x4e4cx11[_0x98bd[61]].Id));_0x4e4cx11= undefined;return}}function handleError(_0x4e4cx11,_0x4e4cxd,_0x4e4cxf,_0x4e4cxb){return function(_0x4e4cx4c){console[_0x98bd[16]](_0x98bd[129]);console[_0x98bd[16]](_0x98bd[130],_0x4e4cx4c[_0x98bd[131]]);console[_0x98bd[16]](_0x98bd[132],_0x4e4cx4c[_0x98bd[133]]);_0x4e4cx11= undefined;delete _0x4e4cxf[_0x98bd[42]];_0x4e4cxf[_0x98bd[119]]= _0x98bd[120];_0x4e4cxf[_0x98bd[121]]= _0x4e4cxd;_0x4e4cxf[_0x98bd[122]]= _0x98bd[134];_0x4e4cxf[_0x98bd[124]]= _0x4e4cxb;ReportIntegration[_0x98bd[84]](_0x4e4cxf)[_0x98bd[18]](function(){return})[_0x98bd[17]](function(_0x4e4cx4c){console[_0x98bd[16]](_0x98bd[135]);return})}}function stripTrailingSlash(_0x4e4cx4e){if(_0x4e4cx4e[_0x98bd[136]](-1) === _0x98bd[137]){return _0x4e4cx4e[_0x98bd[136]](0,_0x4e4cx4e[_0x98bd[59]]- 1)};return _0x4e4cx4e}module[_0x98bd[138]]= Salesforce
\ No newline at end of file