Built motion from commit 78ef1e9a0.|1.0.36
[motion.git] / server / config / integrations / salesforce.js
index 3d14054..a0c8d0a 100644 (file)
@@ -1 +1 @@
-var _0x6ff0=["\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","\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","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x6C\x6F\x67\x69\x6E","\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\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","\x66\x6F\x72\x6D\x61\x74","\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","\x6E\x61\x6D\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","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\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"];_0x6ff0[0];var _=require(_0x6ff0[1]);var util=require(_0x6ff0[2]);var jsforce=require(_0x6ff0[3]);var moment=require(_0x6ff0[4]);var SalesforceIntegration=require(_0x6ff0[6])[_0x6ff0[5]];var SalesforceConfiguration=require(_0x6ff0[6])[_0x6ff0[7]];var ReportIntegration=require(_0x6ff0[6])[_0x6ff0[8]];function Salesforce(){console[_0x6ff0[10]](_0x6ff0[9])}Salesforce[_0x6ff0[12]][_0x6ff0[11]]=function(_0xe186x9,_0xe186xa,_0xe186xb,_0xe186xc,_0xe186xd){var _0xe186xe={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined};if(!_0xe186x9|| !_0xe186xa){console[_0x6ff0[14]](_0x6ff0[13]);return};SalesforceConfiguration[_0x6ff0[17]]({where:{id:_0xe186xa,AccountId:_0xe186x9},include:[{all:true,include:[{all:true}]}]})[_0x6ff0[16]](handleEntityNotFound())[_0x6ff0[16]](handleConnection(_0xe186xe))[_0x6ff0[16]](searchAgent(_0xe186xe,_0xe186xb,_0xe186xc))[_0x6ff0[16]](handleAgent(_0xe186xe,_0xe186xb,_0xe186xc))[_0x6ff0[16]](searchAdmin(_0xe186xe))[_0x6ff0[16]](handleAdmin(_0xe186xe))[_0x6ff0[16]](searchContact(_0xe186xe,_0xe186xb,_0xe186xc))[_0x6ff0[16]](handleContact(_0xe186xe,_0xe186xb,_0xe186xc))[_0x6ff0[16]](searchLead(_0xe186xe,_0xe186xb,_0xe186xc))[_0x6ff0[16]](handleLead(_0xe186xe,_0xe186xb,_0xe186xc))[_0x6ff0[16]](leadCreation(_0xe186xe,_0xe186xb,_0xe186xc))[_0x6ff0[16]](handleLeadCreation(_0xe186xe,_0xe186xb,_0xe186xc))[_0x6ff0[16]](taskCreation(_0xe186xe,_0xe186xc,_0xe186xd))[_0x6ff0[16]](handleTaskDisplay(_0xe186xe))[_0x6ff0[16]](handleReportIntegration(_0xe186xe,_0xe186xb,_0xe186xc,_0xe186x9))[_0x6ff0[16]](handleEnd(_0xe186xe))[_0x6ff0[15]](handleError(_0xe186xe,_0xe186xb,_0xe186xc,_0xe186x9))};function handleEntityNotFound(){return function(_0xe186x10){if(!_0xe186x10){return null};return _0xe186x10}}function handleConnection(_0xe186xe){return function(_0xe186x12){_0xe186xe[_0x6ff0[18]]= new jsforce.Connection({oauth2:{loginUrl:_0xe186x12[_0x6ff0[20]][_0x6ff0[19]]?_0xe186x12[_0x6ff0[20]][_0x6ff0[19]]:_0x6ff0[21],clientId:_0xe186x12[_0x6ff0[20]][_0x6ff0[22]],clientSecret:_0xe186x12[_0x6ff0[20]][_0x6ff0[23]]}});var _0xe186x13=_0xe186x12[_0x6ff0[20]][_0x6ff0[26]][_0x6ff0[25]](_0xe186x12[_0x6ff0[20]][_0x6ff0[24]]);_0xe186xe[_0x6ff0[27]]=_0xe186x12;return _0xe186xe[_0x6ff0[18]][_0x6ff0[29]](_0xe186x12[_0x6ff0[20]][_0x6ff0[28]],_0xe186x13)}}function searchAgent(_0xe186xe,_0xe186xb,_0xe186xc){return function(){console[_0x6ff0[10]](_0x6ff0[30],getValueFromPropertyName(_0xe186xc,getAgentSearchPropertyFromChannel(_0xe186xb)));return _0xe186xe[_0x6ff0[18]][_0x6ff0[33]](_0x6ff0[32])[_0x6ff0[17]]({Name:getValueFromPropertyName(_0xe186xc,getAgentSearchPropertyFromChannel(_0xe186xb))},{Id:1,Username:1,Name:1})[_0x6ff0[31]]()}}function getAgentSearchPropertyFromChannel(_0xe186xb){var _0xe186x16=_0x6ff0[34];if(_0xe186xb){switch(_0xe186xb){case _0x6ff0[36]:_0xe186x16=_0x6ff0[35];break;default:_0xe186x16=_0x6ff0[35];console[_0x6ff0[14]](_0x6ff0[37],_0xe186xb)}};return _0xe186x16}function getValueFromPropertyName(_0xe186xc,_0xe186x16){return _[_0x6ff0[38]](_0xe186xc,_0xe186x16)}function handleAgent(_0xe186xe,_0xe186xb,_0xe186x19){return function(_0xe186xc){if(_0xe186xc[_0x6ff0[39]]>0){console[_0x6ff0[10]](_0x6ff0[40],getValueFromPropertyName(_0xe186x19,getAgentSearchPropertyFromChannel(_0xe186xb)));_0xe186xe[_0x6ff0[41]]=getMatchObject(_0xe186xc,_0x6ff0[42],getValueFromPropertyName(_0xe186x19,getAgentSearchPropertyFromChannel(_0xe186xb)));return _0xe186xe[_0x6ff0[41]]};return}}function getMatchObject(_0xe186x1b,_0xe186x16,_0xe186x1c){var _0xe186x1d=_[_0x6ff0[17]](_0xe186x1b,{property:_0xe186x1c});if(_0xe186x1d){return _0xe186x1d};return _[_0x6ff0[43]](_0xe186x1b)}function searchAdmin(_0xe186xe){return function(_0xe186xc){if(_0xe186xc){return};console[_0x6ff0[10]](_0x6ff0[44]);return _0xe186xe[_0x6ff0[18]][_0x6ff0[45]]()}}function handleAdmin(_0xe186xe){return function(_0xe186xc){if(!_0xe186xc){return};if(_0xe186xc){console[_0x6ff0[10]](_0x6ff0[46]);_0xe186xe[_0x6ff0[41]]={Id:_0xe186xc[_0x6ff0[47]],Name:_0xe186xc[_0x6ff0[48]],Username:_0xe186xc[_0x6ff0[28]]}};return}}function searchContact(_0xe186xe,_0xe186xb,_0xe186xc){return function(){console[_0x6ff0[10]](_0x6ff0[49],getValueFromPropertyName(_0xe186xc,getEndUserSearchPropertyFromChannel(_0xe186xb)));var _0xe186x21={};_0xe186x21[getEndUserSearchQueryFromChannel(_0xe186xb)]=getValueFromPropertyName(_0xe186xc,getEndUserSearchPropertyFromChannel(_0xe186xb));return _0xe186xe[_0x6ff0[18]][_0x6ff0[33]](_0x6ff0[50])[_0x6ff0[17]](_0xe186x21,{Id:1,Name:1})[_0x6ff0[31]]()}}function getEndUserSearchQueryFromChannel(_0xe186xb){var _0xe186x16=_0x6ff0[34];if(_0xe186xb){switch(_0xe186xb){case _0x6ff0[36]:_0xe186x16=_0x6ff0[51];break;default:_0xe186x16=_0x6ff0[51];console[_0x6ff0[14]](_0x6ff0[37],_0xe186xb)}};return _0xe186x16}function getEndUserSearchPropertyFromChannel(_0xe186xb){var _0xe186x16=_0x6ff0[34];if(_0xe186xb){switch(_0xe186xb){case _0x6ff0[36]:_0xe186x16=_0x6ff0[52];break;default:_0xe186x16=_0x6ff0[52];console[_0x6ff0[14]](_0x6ff0[37],_0xe186xb)}};return _0xe186x16}function getEndUserNamePropertyFromChannel(_0xe186xb){var _0xe186x16=_0x6ff0[34];if(_0xe186xb){switch(_0xe186xb){case _0x6ff0[36]:_0xe186x16=_0x6ff0[53];break;default:_0xe186x16=_0x6ff0[53];console[_0x6ff0[14]](_0x6ff0[37],_0xe186xb)}};return _0xe186x16}function handleContact(_0xe186xe,_0xe186xb,_0xe186x19){return function(_0xe186xc){if(_0xe186xc[_0x6ff0[39]]>0){console[_0x6ff0[10]](_0x6ff0[54],getValueFromPropertyName(_0xe186x19,getEndUserSearchPropertyFromChannel(_0xe186xb)));_0xe186xe[_0x6ff0[55]]=_0xe186xc[0];return _0xe186xe[_0x6ff0[55]]};console[_0x6ff0[10]](_0x6ff0[56],getValueFromPropertyName(_0xe186x19,getEndUserSearchPropertyFromChannel(_0xe186xb)));return}}function searchLead(_0xe186xe,_0xe186xb,_0xe186x19){return function(_0xe186xc){if(!_0xe186xc){console[_0x6ff0[10]](_0x6ff0[57],getValueFromPropertyName(_0xe186x19,getEndUserSearchPropertyFromChannel(_0xe186xb)));var _0xe186x21={};_0xe186x21[getEndUserSearchQueryFromChannel(_0xe186xb)]=getValueFromPropertyName(_0xe186x19,getEndUserSearchPropertyFromChannel(_0xe186xb));return _0xe186xe[_0x6ff0[18]][_0x6ff0[33]](_0x6ff0[58])[_0x6ff0[17]](_0xe186x21,{Id:1,Name:1})[_0x6ff0[31]]()};return}}function handleLead(_0xe186xe,_0xe186xb,_0xe186x19){return function(_0xe186xc){if(_0xe186xc&&_0xe186xc[_0x6ff0[39]]>0){console[_0x6ff0[10]](_0x6ff0[59],getValueFromPropertyName(_0xe186x19,getEndUserSearchPropertyFromChannel(_0xe186xb)));_0xe186xe[_0x6ff0[55]]=_0xe186xc[0];return _0xe186xe[_0x6ff0[55]]};return}}function leadCreation(_0xe186xe,_0xe186xb,_0xe186x19){return function(_0xe186xc){if(_0xe186xc||_0xe186xe[_0x6ff0[55]]){return};console[_0x6ff0[10]](_0x6ff0[60],getValueFromPropertyName(_0xe186x19,getEndUserSearchPropertyFromChannel(_0xe186xb)));return _0xe186xe[_0x6ff0[18]][_0x6ff0[33]](_0x6ff0[58])[_0x6ff0[61]](getJsonForEndUserCreation(_0xe186xb,_0xe186x19))}}function getJsonForEndUserCreation(_0xe186xb,_0xe186xc){var _0xe186x2a={Company:_0x6ff0[62]};switch(_0xe186xb){case _0x6ff0[36]:if(_0xe186xc[_0x6ff0[53]]){_0xe186x2a[_0x6ff0[63]]=getValueFromPropertyName(_0xe186xc,getEndUserNamePropertyFromChannel(_0xe186xb))}else {_0xe186x2a[_0x6ff0[63]]=util[_0x6ff0[65]](_0x6ff0[64],getValueFromPropertyName(_0xe186xc,getAgentSearchPropertyFromChannel(_0xe186xb)))};_0xe186x2a[_0x6ff0[51]]=getValueFromPropertyName(_0xe186xc,getEndUserSearchPropertyFromChannel(_0xe186xb));break;default:console[_0x6ff0[14]](_0x6ff0[37],_0xe186xb)};return _0xe186x2a}function handleLeadCreation(_0xe186xe,_0xe186xb,_0xe186x19){return function(_0xe186xc){if(!_0xe186xc){return};if(_0xe186xc&&_0xe186xc[_0x6ff0[66]]){console[_0x6ff0[10]](_0x6ff0[67],getValueFromPropertyName(_0xe186x19,getEndUserSearchPropertyFromChannel(_0xe186xb)));_0xe186xe[_0x6ff0[55]]={Id:_0xe186xc[_0x6ff0[68]]}};return}}function taskCreation(_0xe186xe,_0xe186x19,_0xe186xd){return function(){var _0xe186x2d={WhoId:_0xe186xe[_0x6ff0[55]][_0x6ff0[69]],OwnerId:_0xe186xe[_0x6ff0[41]][_0x6ff0[69]],ActivityDate:moment[_0x6ff0[70]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0xe186xe,_0xe186x19,_0xe186xd),Description:createDescriptionFromConfiguration(_0xe186xe,_0xe186x19,_0xe186xd)};var _0xe186x2e=createCustomFieldsFromConfiguration(_0xe186xe);if(_0xe186x2e[_0x6ff0[39]]>0){_[_0x6ff0[72]](_0xe186x2e,function(_0xe186x2f){_0xe186x2d[_0xe186x2f[_0x6ff0[68]]]=_0xe186x2f[_0x6ff0[71]]})};return _0xe186xe[_0x6ff0[18]][_0x6ff0[33]](_0x6ff0[73])[_0x6ff0[61]](_0xe186x2d)}}function createSubjectFromConfiguration(_0xe186xe,_0xe186x19,_0xe186xd){var _0xe186x31=_0x6ff0[34];var _0xe186x32=[];if(_0xe186xe[_0x6ff0[27]][_0x6ff0[74]][_0x6ff0[39]]>0){var _0xe186x33=_[_0x6ff0[75]](_0xe186xe[_0x6ff0[27]].Subject,[_0x6ff0[68]]);_[_0x6ff0[72]](_0xe186x33,function(_0xe186x34){if(_0xe186x34[_0x6ff0[76]]===_0x6ff0[77]){_0xe186x32[_0x6ff0[79]](_0xe186x34[_0x6ff0[78]])}else {if(_0xe186x34[_0x6ff0[76]]===_0x6ff0[80]&&_0xe186x34[_0x6ff0[81]]){var _0xe186x35=getValueFromPropertyName(_0xe186x19,_0xe186x34[_0x6ff0[81]]);if(_0xe186x35){_0xe186x32[_0x6ff0[79]](_0xe186x35.toString())}}else {if(_0xe186x34[_0x6ff0[76]]===_0x6ff0[82]){var _0xe186x36=_[_0x6ff0[17]](_0xe186xd,{"\x6E\x61\x6D\x65":_0xe186x34[_0x6ff0[84]][_0x6ff0[83]]});if(_0xe186x36){_0xe186x32[_0x6ff0[79]](_0xe186x36[_0x6ff0[71]].toString())}}}}});_0xe186x31=_0xe186x32[_0x6ff0[86]](_0x6ff0[85])};return _0xe186x31}function createDescriptionFromConfiguration(_0xe186xe,_0xe186x19,_0xe186xd){var _0xe186x38=_0x6ff0[34];var _0xe186x32=[];if(_0xe186xe[_0x6ff0[27]][_0x6ff0[87]][_0x6ff0[39]]>0){var _0xe186x39=_[_0x6ff0[75]](_0xe186xe[_0x6ff0[27]].Description,[_0x6ff0[68]]);_[_0x6ff0[72]](_0xe186x39,function(_0xe186x34){if(_0xe186x34[_0x6ff0[76]]===_0x6ff0[77]){_0xe186x32[_0x6ff0[79]](_0xe186x34[_0x6ff0[78]])}else {if(_0xe186x34[_0x6ff0[76]]===_0x6ff0[88]){if(_0xe186x34[_0x6ff0[89]]===_0x6ff0[77]){_0xe186x32[_0x6ff0[79]](util[_0x6ff0[65]](_0x6ff0[90],_0xe186x34[_0x6ff0[91]],_0xe186x34[_0x6ff0[92]]))}else {if(_0xe186x34[_0x6ff0[89]]===_0x6ff0[80]&&_0xe186x34[_0x6ff0[81]]){var _0xe186x35=getValueFromPropertyName(_0xe186x19,_0xe186x34[_0x6ff0[81]]);if(_0xe186x35){_0xe186x32[_0x6ff0[79]](util[_0x6ff0[65]](_0x6ff0[90],_0xe186x34[_0x6ff0[91]],_0xe186x35.toString()))}}else {if(_0xe186x34[_0x6ff0[89]]===_0x6ff0[82]){var _0xe186x36=_[_0x6ff0[17]](_0xe186xd,{"\x6E\x61\x6D\x65":_0xe186x34[_0x6ff0[84]][_0x6ff0[83]]});if(_0xe186x36){_0xe186x32[_0x6ff0[79]](util[_0x6ff0[65]](_0x6ff0[90],_0xe186x34[_0x6ff0[91]],_0xe186x36[_0x6ff0[71]].toString()))}}}}}}});_0xe186x38=_0xe186x32[_0x6ff0[86]](_0x6ff0[93])};return _0xe186x38}function createCustomFieldsFromConfiguration(_0xe186xe,_0xe186x19,_0xe186xd){var _0xe186x3b=[];var _0xe186x3c=[];if(_0xe186xe[_0x6ff0[27]][_0x6ff0[94]][_0x6ff0[39]]>0){_0xe186x3b=_0xe186xe[_0x6ff0[27]][_0x6ff0[94]];_[_0x6ff0[72]](_0xe186x3b,function(_0xe186x2f){if(_0xe186x2f[_0x6ff0[76]]===_0x6ff0[77]){_0xe186x3c[_0x6ff0[79]]({id:_0xe186x2f[_0x6ff0[95]],value:_0xe186x2f[_0x6ff0[78]]})}else {if(_0xe186x2f[_0x6ff0[76]]===_0x6ff0[80]){var _0xe186x35=getValueFromPropertyName(_0xe186x19,_0xe186x2f[_0x6ff0[81]]);if(_0xe186x35){_0xe186x3c[_0x6ff0[79]]({id:_0xe186x2f[_0x6ff0[95]],value:_0xe186x35.toString()})}}else {if(_0xe186x2f[_0x6ff0[76]]===_0x6ff0[82]){var _0xe186x36=_[_0x6ff0[17]](_0xe186xd,{"\x6E\x61\x6D\x65":_0xe186x2f[_0x6ff0[84]][_0x6ff0[83]]});if(_0xe186x36){_0xe186x3c[_0x6ff0[79]]({id:_0xe186x2f[_0x6ff0[95]],value:_0xe186x36[_0x6ff0[71]].toString()})}}}}})};return _0xe186x3c}function handleTaskDisplay(_0xe186xe){return function(_0xe186xc){if(_0xe186xc&&_0xe186xc[_0x6ff0[66]]){console[_0x6ff0[10]](_0x6ff0[96],_0xe186xc[_0x6ff0[68]]);_0xe186xe[_0x6ff0[97]]=_0xe186xc[_0x6ff0[68]];return};return}}function handleReportIntegration(_0xe186xe,_0xe186xb,_0xe186xc,_0xe186x9){return function(){_0xe186xc=_0xe186xc[_0x6ff0[98]];delete _0xe186xc[_0x6ff0[68]];_0xe186xc[_0x6ff0[99]]=_0x6ff0[100];_0xe186xc[_0x6ff0[101]]=_0xe186xb;_0xe186xc[_0x6ff0[102]]=_0x6ff0[66];_0xe186xc[_0x6ff0[103]]=_0xe186xe[_0x6ff0[97]];_0xe186xc[_0x6ff0[104]]=_0xe186x9;_0xe186xc[_0x6ff0[105]]=util[_0x6ff0[65]](_0x6ff0[106],_0xe186xe[_0x6ff0[18]][_0x6ff0[107]],_0xe186xe[_0x6ff0[97]]);return ReportIntegration[_0x6ff0[61]](_0xe186xc)}}function handleEnd(_0xe186xe,_0xe186xc,_0xe186xb){return function(){console[_0x6ff0[10]](util[_0x6ff0[65]](_0x6ff0[108],_0xe186xe[_0x6ff0[97]],_0xe186xe[_0x6ff0[41]].Id));_0xe186xe=undefined;return}}function handleError(_0xe186xe,_0xe186xb,_0xe186xc,_0xe186x9){return function(_0xe186x41){console[_0x6ff0[14]](_0x6ff0[109]);console[_0x6ff0[14]](_0x6ff0[110],_0xe186x41[_0x6ff0[111]]);console[_0x6ff0[14]](_0x6ff0[112],_0xe186x41[_0x6ff0[113]]);_0xe186xe=undefined;delete _0xe186xc[_0x6ff0[68]];_0xe186xc=_0xe186xc[_0x6ff0[98]];_0xe186xc[_0x6ff0[99]]=_0x6ff0[100];_0xe186xc[_0x6ff0[101]]=_0xe186xb;_0xe186xc[_0x6ff0[102]]=_0x6ff0[114];_0xe186xc[_0x6ff0[104]]=_0xe186x9;ReportIntegration[_0x6ff0[61]](_0xe186xc)[_0x6ff0[16]](function(){return})[_0x6ff0[15]](function(_0xe186x41){console[_0x6ff0[14]](_0x6ff0[115]);return})}}function stripTrailingSlash(_0xe186x43){if(_0xe186x43[_0x6ff0[116]](-1)===_0x6ff0[117]){return _0xe186x43[_0x6ff0[116]](0,_0xe186x43[_0x6ff0[39]]-1)};return _0xe186x43}module[_0x6ff0[118]]=Salesforce
\ No newline at end of file
+var _0x7f2b=["\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","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x69\x6E\x66\x6F","\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","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\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","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x54\x79\x70\x65","\x65\x6D\x62\x65\x64\x64\x65\x64","\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"];_0x7f2b[0];var _=require(_0x7f2b[1]);var util=require(_0x7f2b[2]);var jsforce=require(_0x7f2b[3]);var moment=require(_0x7f2b[4]);var logger=require(_0x7f2b[6])(_0x7f2b[5]);var SalesforceConfiguration=require(_0x7f2b[8])[_0x7f2b[7]];var ReportIntegration=require(_0x7f2b[8])[_0x7f2b[9]];var VoiceQueue=require(_0x7f2b[8])[_0x7f2b[10]];var VoiceExtension=require(_0x7f2b[8])[_0x7f2b[11]];var Agent=require(_0x7f2b[8])[_0x7f2b[12]];function Salesforce(){logger[_0x7f2b[14]](_0x7f2b[13])}Salesforce[_0x7f2b[16]][_0x7f2b[15]]= function(_0x17e8xc,_0x17e8xd,_0x17e8xe,_0x17e8xf,_0x17e8x10,_0x17e8x11,_0x17e8x12){var _0x17e8x13={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0x17e8xc||  !_0x17e8xd){logger[_0x7f2b[18]](_0x7f2b[17]);return};SalesforceConfiguration[_0x7f2b[21]]({where:{id:_0x17e8xd,AccountId:_0x17e8xc},include:[{all:true,include:[{all:true}]}]})[_0x7f2b[20]](handleEntityNotFound())[_0x7f2b[20]](handleConnection(_0x17e8x13))[_0x7f2b[20]](searchMotionAgent(_0x17e8xe,_0x17e8x10))[_0x7f2b[20]](handleMotionAgent(_0x17e8x13))[_0x7f2b[20]](searchQueue(_0x17e8x10))[_0x7f2b[20]](handleQueueRecordings(_0x17e8x13,_0x17e8x10))[_0x7f2b[20]](searchRoute(_0x17e8x10))[_0x7f2b[20]](handleOutboundRecordings(_0x17e8x13,_0x17e8x10))[_0x7f2b[20]](searchAgent(_0x17e8x13,_0x17e8xe,_0x17e8x10))[_0x7f2b[20]](handleAgent(_0x17e8x13,_0x17e8xe,_0x17e8x10))[_0x7f2b[20]](searchAdmin(_0x17e8x13))[_0x7f2b[20]](handleAdmin(_0x17e8x13))[_0x7f2b[20]](searchContact(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xf))[_0x7f2b[20]](handleContact(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xf))[_0x7f2b[20]](searchLead(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xf))[_0x7f2b[20]](handleLead(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xf))[_0x7f2b[20]](leadCreation(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xf))[_0x7f2b[20]](handleLeadCreation(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xf))[_0x7f2b[20]](taskCreation(_0x17e8x13,_0x17e8x10,_0x17e8x11))[_0x7f2b[20]](handleTaskDisplay(_0x17e8x13))[_0x7f2b[20]](handleReportIntegration(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xc,_0x17e8x12,_0x17e8xf))[_0x7f2b[20]](handleEnd(_0x17e8x13))[_0x7f2b[19]](handleError(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xc))};function handleEntityNotFound(){return function(_0x17e8x15){if(!_0x17e8x15){return null};return _0x17e8x15}}function handleConnection(_0x17e8x13){return function(_0x17e8x17){_0x17e8x13[_0x7f2b[22]]=  new jsforce.Connection({oauth2:{loginUrl:_0x17e8x17[_0x7f2b[24]][_0x7f2b[23]]?_0x17e8x17[_0x7f2b[24]][_0x7f2b[23]]:_0x7f2b[25],clientId:_0x17e8x17[_0x7f2b[24]][_0x7f2b[26]],clientSecret:_0x17e8x17[_0x7f2b[24]][_0x7f2b[27]]}});var _0x17e8x18=_0x17e8x17[_0x7f2b[24]][_0x7f2b[30]][_0x7f2b[29]](_0x17e8x17[_0x7f2b[24]][_0x7f2b[28]]);_0x17e8x13[_0x7f2b[31]]= _0x17e8x17;_0x17e8x13[_0x7f2b[32]]= _0x17e8x17[_0x7f2b[24]][_0x7f2b[33]];return _0x17e8x13[_0x7f2b[22]][_0x7f2b[35]](_0x17e8x17[_0x7f2b[24]][_0x7f2b[34]],_0x17e8x18)}}function searchMotionAgent(_0x17e8xe,_0x17e8x10){return function(){var _0x17e8x1a=getAgentSearchPropertyFromChannel(_0x17e8xe);if(_0x17e8x10[_0x7f2b[36]](_0x17e8x1a)){return Agent[_0x7f2b[40]](_0x7f2b[39])[_0x7f2b[38]]({where:{name:getValueFromPropertyName(_0x17e8x10,_0x17e8x1a)},attributes:[_0x7f2b[37]]})};return}}function handleMotionAgent(_0x17e8x13){return function(_0x17e8x1c){if(_0x17e8x1c&& _0x17e8x1c[_0x7f2b[37]]){_0x17e8x13[_0x7f2b[41]]= _0x17e8x1c[_0x7f2b[37]]};return}}function searchQueue(_0x17e8x10){return function(){if(_0x17e8x10[_0x7f2b[42]]){return VoiceQueue[_0x7f2b[38]]({where:{name:_0x17e8x10[_0x7f2b[42]]},attributes:[_0x7f2b[43],_0x7f2b[44]]})}else {return}}}function handleQueueRecordings(_0x17e8x13,_0x17e8x10){return function(_0x17e8x1f){if(_0x17e8x10[_0x7f2b[42]]){if(_0x17e8x1f&& _0x17e8x1f[_0x7f2b[44]]){logger[_0x7f2b[14]](_0x7f2b[45],_0x17e8x1f[_0x7f2b[43]]);_0x17e8x13[_0x7f2b[46]]= true}else {_0x17e8x13[_0x7f2b[46]]= false;logger[_0x7f2b[14]](_0x7f2b[47])}};return}}function searchRoute(_0x17e8x10){return function(){if(_0x17e8x10[_0x7f2b[48]]){return VoiceExtension[_0x7f2b[38]]({where:{id:_0x17e8x10[_0x7f2b[48]]},attributes:[_0x7f2b[49],_0x7f2b[50]]})}else {return}}}function handleOutboundRecordings(_0x17e8x13,_0x17e8x10){return function(_0x17e8x22){if(_0x17e8x10[_0x7f2b[48]]){if(_0x17e8x22&& _0x17e8x22[_0x7f2b[50]]){logger[_0x7f2b[14]](_0x7f2b[51],_0x17e8x22[_0x7f2b[49]]);_0x17e8x13[_0x7f2b[46]]= true}else {_0x17e8x13[_0x7f2b[46]]= false;logger[_0x7f2b[14]](_0x7f2b[52])}};return}}function searchAgent(_0x17e8x13,_0x17e8xe,_0x17e8x10){return function(){if(_0x17e8x13[_0x7f2b[41]]){logger[_0x7f2b[14]](_0x7f2b[53],_0x17e8x13[_0x7f2b[41]]);return _0x17e8x13[_0x7f2b[22]][_0x7f2b[55]](_0x7f2b[12])[_0x7f2b[21]]({Name:_0x17e8x13[_0x7f2b[41]]},{Id:1,Username:1,Name:1})[_0x7f2b[54]]()};return}}function getAgentSearchPropertyFromChannel(_0x17e8xe){var _0x17e8x25=_0x7f2b[56];if(_0x17e8xe){switch(_0x17e8xe){case _0x7f2b[58]:_0x17e8x25= _0x7f2b[57];break;default:_0x17e8x25= _0x7f2b[57];logger[_0x7f2b[18]](_0x7f2b[59],_0x17e8xe)}};return _0x17e8x25}function getValueFromPropertyName(_0x17e8x10,_0x17e8x25,_0x17e8x13){if(_0x17e8x25=== _0x7f2b[60]){if(_0x17e8x13&& _0x17e8x13[_0x7f2b[46]]&& _0x17e8x13[_0x7f2b[32]]){return util[_0x7f2b[63]](_0x7f2b[61],stripTrailingSlash(_0x17e8x13[_0x7f2b[32]]),_0x17e8x10[_0x7f2b[62]])}else {return null}}else {return _[_0x7f2b[64]](_0x17e8x10,_0x17e8x25)}}function handleAgent(_0x17e8x13,_0x17e8xe,_0x17e8x28){return function(_0x17e8x10){if(_0x17e8x10&& _0x17e8x10[_0x7f2b[65]]> 0){logger[_0x7f2b[14]](_0x7f2b[66],_0x17e8x13[_0x7f2b[41]]);_0x17e8x13[_0x7f2b[39]]= getMatchObject(_0x17e8x10,_0x7f2b[67],_0x17e8x13[_0x7f2b[41]]);return _0x17e8x13[_0x7f2b[39]]};return}}function getMatchObject(_0x17e8x2a,_0x17e8x25,_0x17e8x2b){var _0x17e8x2c=_[_0x7f2b[21]](_0x17e8x2a,{property:_0x17e8x2b});if(_0x17e8x2c){return _0x17e8x2c};return _[_0x7f2b[68]](_0x17e8x2a)}function searchAdmin(_0x17e8x13){return function(_0x17e8x10){if(_0x17e8x10){return};logger[_0x7f2b[14]](_0x7f2b[69]);return _0x17e8x13[_0x7f2b[22]][_0x7f2b[70]]()}}function handleAdmin(_0x17e8x13){return function(_0x17e8x10){if(!_0x17e8x10){return};if(_0x17e8x10){logger[_0x7f2b[14]](_0x7f2b[71]);_0x17e8x13[_0x7f2b[39]]= {Id:_0x17e8x10[_0x7f2b[72]],Name:_0x17e8x10[_0x7f2b[73]],Username:_0x17e8x10[_0x7f2b[34]]}};return}}function searchContact(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xf){return function(){logger[_0x7f2b[14]](_0x7f2b[74],getValueFromPropertyName(_0x17e8x10,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)));var _0x17e8x30={};_0x17e8x30[getEndUserSearchQueryFromChannel(_0x17e8xe)]= getValueFromPropertyName(_0x17e8x10,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf));return _0x17e8x13[_0x7f2b[22]][_0x7f2b[55]](_0x7f2b[75])[_0x7f2b[21]](_0x17e8x30,{Id:1,Name:1})[_0x7f2b[54]]()}}function getEndUserSearchQueryFromChannel(_0x17e8xe){var _0x17e8x25=_0x7f2b[56];if(_0x17e8xe){switch(_0x17e8xe){case _0x7f2b[58]:_0x17e8x25= _0x7f2b[76];break;default:_0x17e8x25= _0x7f2b[76];logger[_0x7f2b[18]](_0x7f2b[59],_0x17e8xe)}};return _0x17e8x25}function getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf){var _0x17e8x25=_0x7f2b[56];if(_0x17e8xe){switch(_0x17e8xe){case _0x7f2b[58]:if(_0x17e8xf=== _0x7f2b[77]){_0x17e8x25= _0x7f2b[78]}else {if(_0x17e8xf=== _0x7f2b[42]){_0x17e8x25= _0x7f2b[79]}};break;default:_0x17e8x25= _0x7f2b[79];logger[_0x7f2b[18]](_0x7f2b[59],_0x17e8xe)}};return _0x17e8x25}function getEndUserNamePropertyFromChannel(_0x17e8xe,_0x17e8xf){var _0x17e8x25=_0x7f2b[56];if(_0x17e8xe){switch(_0x17e8xe){case _0x7f2b[58]:if(_0x17e8xf=== _0x7f2b[77]){_0x17e8x25= _0x7f2b[80]}else {if(_0x17e8xf=== _0x7f2b[42]){_0x17e8x25= _0x7f2b[81]}};break;default:_0x17e8x25= _0x7f2b[81];logger[_0x7f2b[18]](_0x7f2b[59],_0x17e8xe)}};return _0x17e8x25}function handleContact(_0x17e8x13,_0x17e8xe,_0x17e8x28,_0x17e8xf){return function(_0x17e8x10){if(_0x17e8x10[_0x7f2b[65]]> 0){logger[_0x7f2b[14]](_0x7f2b[82],getValueFromPropertyName(_0x17e8x28,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)));_0x17e8x13[_0x7f2b[83]]= _0x17e8x10[0];return _0x17e8x13[_0x7f2b[83]]};logger[_0x7f2b[14]](_0x7f2b[84],getValueFromPropertyName(_0x17e8x28,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)));return}}function searchLead(_0x17e8x13,_0x17e8xe,_0x17e8x28,_0x17e8xf){return function(_0x17e8x10){if(!_0x17e8x10){logger[_0x7f2b[14]](_0x7f2b[85],getValueFromPropertyName(_0x17e8x28,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)));var _0x17e8x30={};_0x17e8x30[getEndUserSearchQueryFromChannel(_0x17e8xe)]= getValueFromPropertyName(_0x17e8x28,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf));return _0x17e8x13[_0x7f2b[22]][_0x7f2b[55]](_0x7f2b[86])[_0x7f2b[21]](_0x17e8x30,{Id:1,Name:1})[_0x7f2b[54]]()};return}}function handleLead(_0x17e8x13,_0x17e8xe,_0x17e8x28,_0x17e8xf){return function(_0x17e8x10){if(_0x17e8x10&& _0x17e8x10[_0x7f2b[65]]> 0){logger[_0x7f2b[14]](_0x7f2b[87],getValueFromPropertyName(_0x17e8x28,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)));_0x17e8x13[_0x7f2b[83]]= _0x17e8x10[0];return _0x17e8x13[_0x7f2b[83]]};return}}function leadCreation(_0x17e8x13,_0x17e8xe,_0x17e8x28,_0x17e8xf){return function(_0x17e8x10){if(_0x17e8x10|| _0x17e8x13[_0x7f2b[83]]){return};logger[_0x7f2b[14]](_0x7f2b[88],getValueFromPropertyName(_0x17e8x28,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)));return _0x17e8x13[_0x7f2b[22]][_0x7f2b[55]](_0x7f2b[86])[_0x7f2b[89]](getJsonForEndUserCreation(_0x17e8xe,_0x17e8x28,_0x17e8xf))}}function getJsonForEndUserCreation(_0x17e8xe,_0x17e8x10,_0x17e8xf){var _0x17e8x39={Company:_0x7f2b[90]};switch(_0x17e8xe){case _0x7f2b[58]:if(_0x17e8xf=== _0x7f2b[42]){if(isValidName(_0x17e8x10[_0x7f2b[81]])){_0x17e8x39[_0x7f2b[91]]= getValueFromPropertyName(_0x17e8x10,getEndUserNamePropertyFromChannel(_0x17e8xe,_0x17e8xf))}else {_0x17e8x39[_0x7f2b[91]]= util[_0x7f2b[63]](_0x7f2b[92],getValueFromPropertyName(_0x17e8x10,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)))}}else {if(_0x17e8xf=== _0x7f2b[77]){if(isValidName(_0x17e8x10[_0x7f2b[80]])){_0x17e8x39[_0x7f2b[91]]= getValueFromPropertyName(_0x17e8x10,getEndUserNamePropertyFromChannel(_0x17e8xe,_0x17e8xf))}else {_0x17e8x39[_0x7f2b[91]]= util[_0x7f2b[63]](_0x7f2b[92],getValueFromPropertyName(_0x17e8x10,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)))}}};_0x17e8x39[_0x7f2b[76]]= getValueFromPropertyName(_0x17e8x10,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf));break;default:logger[_0x7f2b[18]](_0x7f2b[59],_0x17e8xe)};return _0x17e8x39}function isValidName(_0x17e8x3b){return _0x17e8x3b&& _0x17e8x3b!== _0x7f2b[93]}function handleLeadCreation(_0x17e8x13,_0x17e8xe,_0x17e8x28,_0x17e8xf){return function(_0x17e8x10){if(!_0x17e8x10){return};if(_0x17e8x10&& _0x17e8x10[_0x7f2b[94]]){logger[_0x7f2b[14]](_0x7f2b[95],getValueFromPropertyName(_0x17e8x28,getEndUserSearchPropertyFromChannel(_0x17e8xe,_0x17e8xf)));_0x17e8x13[_0x7f2b[83]]= {Id:_0x17e8x10[_0x7f2b[49]]}};return}}function taskCreation(_0x17e8x13,_0x17e8x28,_0x17e8x11){return function(){var _0x17e8x3e={WhoId:_0x17e8x13[_0x7f2b[83]][_0x7f2b[96]],OwnerId:_0x17e8x13[_0x7f2b[39]][_0x7f2b[96]],ActivityDate:moment[_0x7f2b[97]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0x17e8x13,_0x17e8x28,_0x17e8x11),Description:createDescriptionFromConfiguration(_0x17e8x13,_0x17e8x28,_0x17e8x11)};var _0x17e8x3f=createCustomFieldsFromConfiguration(_0x17e8x13,_0x17e8x28,_0x17e8x11);if(_0x17e8x3f[_0x7f2b[65]]> 0){_[_0x7f2b[99]](_0x17e8x3f,function(_0x17e8x40){_0x17e8x3e[_0x17e8x40[_0x7f2b[49]]]= _0x17e8x40[_0x7f2b[98]]})};return _0x17e8x13[_0x7f2b[22]][_0x7f2b[55]](_0x7f2b[100])[_0x7f2b[89]](_0x17e8x3e)}}function createSubjectFromConfiguration(_0x17e8x13,_0x17e8x28,_0x17e8x11){var _0x17e8x42=_0x7f2b[56];var _0x17e8x43=[];if(_0x17e8x13[_0x7f2b[31]][_0x7f2b[101]][_0x7f2b[65]]> 0){var _0x17e8x44=_[_0x7f2b[102]](_0x17e8x13[_0x7f2b[31]].Subject,[_0x7f2b[49]]);_[_0x7f2b[99]](_0x17e8x44,function(_0x17e8x45){if(_0x17e8x45[_0x7f2b[103]]=== _0x7f2b[104]){_0x17e8x43[_0x7f2b[106]](_0x17e8x45[_0x7f2b[105]])}else {if(_0x17e8x45[_0x7f2b[103]]=== _0x7f2b[107]&& _0x17e8x45[_0x7f2b[108]]){var _0x17e8x46=getValueFromPropertyName(_0x17e8x28,_0x17e8x45[_0x7f2b[108]],_0x17e8x13);if(_0x17e8x46){_0x17e8x43[_0x7f2b[106]](_0x17e8x46.toString())}}else {if(_0x17e8x45[_0x7f2b[103]]=== _0x7f2b[109]&& _0x17e8x45[_0x7f2b[110]]&& _0x17e8x45[_0x7f2b[110]][_0x7f2b[43]]){_0x17e8x11[_0x17e8x45[_0x7f2b[110]][_0x7f2b[43]]]&& _0x17e8x43[_0x7f2b[106]](_0x17e8x11[_0x17e8x45[_0x7f2b[110]][_0x7f2b[43]]].toString())}}}});_0x17e8x42= _0x17e8x43[_0x7f2b[112]](_0x7f2b[111])};return _0x17e8x42}function createDescriptionFromConfiguration(_0x17e8x13,_0x17e8x28,_0x17e8x11){var _0x17e8x48=_0x7f2b[56];var _0x17e8x43=[];if(_0x17e8x13[_0x7f2b[31]][_0x7f2b[113]][_0x7f2b[65]]> 0){var _0x17e8x49=_[_0x7f2b[102]](_0x17e8x13[_0x7f2b[31]].Description,[_0x7f2b[49]]);_[_0x7f2b[99]](_0x17e8x49,function(_0x17e8x45){if(_0x17e8x45[_0x7f2b[103]]=== _0x7f2b[104]){_0x17e8x43[_0x7f2b[106]](_0x17e8x45[_0x7f2b[105]])}else {if(_0x17e8x45[_0x7f2b[103]]=== _0x7f2b[114]){if(_0x17e8x45[_0x7f2b[115]]=== _0x7f2b[104]&& _0x17e8x45[_0x7f2b[116]]){_0x17e8x43[_0x7f2b[106]](util[_0x7f2b[63]](_0x7f2b[117],_0x17e8x45[_0x7f2b[116]],_0x17e8x45[_0x7f2b[118]]))}else {if(_0x17e8x45[_0x7f2b[115]]=== _0x7f2b[107]&& _0x17e8x45[_0x7f2b[108]]&& _0x17e8x45[_0x7f2b[116]]){var _0x17e8x46=getValueFromPropertyName(_0x17e8x28,_0x17e8x45[_0x7f2b[108]],_0x17e8x13);if(_0x17e8x46){_0x17e8x43[_0x7f2b[106]](util[_0x7f2b[63]](_0x7f2b[117],_0x17e8x45[_0x7f2b[116]],_0x17e8x46.toString()))}}else {if(_0x17e8x45[_0x7f2b[115]]=== _0x7f2b[109]&& _0x17e8x45[_0x7f2b[110]]&& _0x17e8x45[_0x7f2b[110]][_0x7f2b[43]]&& _0x17e8x45[_0x7f2b[116]]){_0x17e8x11[_0x17e8x45[_0x7f2b[110]][_0x7f2b[43]]]&& _0x17e8x43[_0x7f2b[106]](util[_0x7f2b[63]](_0x7f2b[117],_0x17e8x45[_0x7f2b[116]],_0x17e8x11[_0x17e8x45[_0x7f2b[110]][_0x7f2b[43]]]))}}}}}});_0x17e8x48= _0x17e8x43[_0x7f2b[112]](_0x7f2b[119])};return _0x17e8x48}function createCustomFieldsFromConfiguration(_0x17e8x13,_0x17e8x28,_0x17e8x11){var _0x17e8x4b=[];var _0x17e8x4c=[];if(_0x17e8x13[_0x7f2b[31]][_0x7f2b[120]][_0x7f2b[65]]> 0){_0x17e8x4b= _0x17e8x13[_0x7f2b[31]][_0x7f2b[120]];_[_0x7f2b[99]](_0x17e8x4b,function(_0x17e8x40){if(_0x17e8x40[_0x7f2b[103]]=== _0x7f2b[104]&& _0x17e8x40[_0x7f2b[121]]){_0x17e8x4c[_0x7f2b[106]]({id:_0x17e8x40[_0x7f2b[121]],value:_0x17e8x40[_0x7f2b[105]]})}else {if(_0x17e8x40[_0x7f2b[103]]=== _0x7f2b[107]&& _0x17e8x40[_0x7f2b[108]]&& _0x17e8x40[_0x7f2b[121]]){var _0x17e8x46=getValueFromPropertyName(_0x17e8x28,_0x17e8x40[_0x7f2b[108]],_0x17e8x13);if(_0x17e8x46){_0x17e8x4c[_0x7f2b[106]]({id:_0x17e8x40[_0x7f2b[121]],value:_0x17e8x46.toString()})}}else {if(_0x17e8x40[_0x7f2b[103]]=== _0x7f2b[109]&& _0x17e8x40[_0x7f2b[121]]&& _0x17e8x40[_0x7f2b[110]]&& _0x17e8x40[_0x7f2b[110]][_0x7f2b[43]]){_0x17e8x11[_0x17e8x40[_0x7f2b[110]][_0x7f2b[43]]]&& _0x17e8x4c[_0x7f2b[106]]({id:_0x17e8x40[_0x7f2b[121]],value:_0x17e8x11[_0x17e8x40[_0x7f2b[110]][_0x7f2b[43]]].toString()})}}}})};return _0x17e8x4c}function handleTaskDisplay(_0x17e8x13){return function(_0x17e8x10){if(_0x17e8x10&& _0x17e8x10[_0x7f2b[94]]){logger[_0x7f2b[14]](_0x7f2b[122],_0x17e8x10[_0x7f2b[49]]);_0x17e8x13[_0x7f2b[123]]= _0x17e8x10[_0x7f2b[49]];return};return}}function handleReportIntegration(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xc,_0x17e8x12,_0x17e8xf){return function(){delete _0x17e8x10[_0x7f2b[49]];delete _0x17e8x10[_0x7f2b[124]];delete _0x17e8x10[_0x7f2b[125]];_0x17e8x10[_0x7f2b[126]]= _0x7f2b[127];_0x17e8x10[_0x7f2b[128]]= _0x17e8xe;_0x17e8x10[_0x7f2b[129]]= _0x7f2b[94];_0x17e8x10[_0x7f2b[130]]= _0x17e8x13[_0x7f2b[123]];_0x17e8x10[_0x7f2b[131]]= _0x17e8xc;_0x17e8x10[_0x7f2b[132]]= _0x17e8xf;_0x17e8x10[_0x7f2b[133]]= util[_0x7f2b[63]](_0x7f2b[134],_0x17e8x13[_0x7f2b[22]][_0x7f2b[135]],_0x17e8x13[_0x7f2b[123]]);_0x17e8x10[_0x7f2b[136]]= _0x17e8x13[_0x7f2b[31]][_0x7f2b[24]][_0x7f2b[136]]?_0x17e8x13[_0x7f2b[31]][_0x7f2b[24]][_0x7f2b[136]]:_0x7f2b[137];_0x17e8x12[_0x7f2b[139]](_0x7f2b[138],_0x17e8x10);delete _0x17e8x10[_0x7f2b[136]];return ReportIntegration[_0x7f2b[89]](_0x17e8x10)}}function handleEnd(_0x17e8x13,_0x17e8x10,_0x17e8xe){return function(){logger[_0x7f2b[14]](util[_0x7f2b[63]](_0x7f2b[140],_0x17e8x13[_0x7f2b[123]],_0x17e8x13[_0x7f2b[39]].Id));_0x17e8x13= undefined;return}}function handleError(_0x17e8x13,_0x17e8xe,_0x17e8x10,_0x17e8xc){return function(_0x17e8x51){logger[_0x7f2b[18]](_0x7f2b[141]);logger[_0x7f2b[18]](_0x7f2b[142],_0x17e8x51[_0x7f2b[143]]);logger[_0x7f2b[18]](_0x7f2b[144],_0x17e8x51[_0x7f2b[145]]);_0x17e8x13= undefined;delete _0x17e8x10[_0x7f2b[49]];delete _0x17e8x10[_0x7f2b[124]];delete _0x17e8x10[_0x7f2b[125]];_0x17e8x10[_0x7f2b[126]]= _0x7f2b[127];_0x17e8x10[_0x7f2b[128]]= _0x17e8xe;_0x17e8x10[_0x7f2b[129]]= _0x7f2b[146];_0x17e8x10[_0x7f2b[131]]= _0x17e8xc;ReportIntegration[_0x7f2b[89]](_0x17e8x10)[_0x7f2b[20]](function(){return})[_0x7f2b[19]](function(_0x17e8x51){logger[_0x7f2b[18]](_0x7f2b[147]);return})}}function stripTrailingSlash(_0x17e8x53){if(_0x17e8x53[_0x7f2b[148]](-1) === _0x7f2b[149]){return _0x17e8x53[_0x7f2b[148]](0,_0x17e8x53[_0x7f2b[65]]- 1)};return _0x17e8x53}module[_0x7f2b[150]]= Salesforce
\ No newline at end of file