Built motion from commit 712a57186.|1.0.37
[motion.git] / server / config / integrations / salesforce.js
index e62047c..d4dc80d 100644 (file)
@@ -1 +1 @@
-var _0x47ef=["\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"];_0x47ef[0];var _=require(_0x47ef[1]);var util=require(_0x47ef[2]);var jsforce=require(_0x47ef[3]);var moment=require(_0x47ef[4]);var SalesforceIntegration=require(_0x47ef[6])[_0x47ef[5]];var SalesforceConfiguration=require(_0x47ef[6])[_0x47ef[7]];var ReportIntegration=require(_0x47ef[6])[_0x47ef[8]];function Salesforce(){console[_0x47ef[10]](_0x47ef[9])}Salesforce[_0x47ef[12]][_0x47ef[11]]=function(_0x1acfx9,_0x1acfxa,_0x1acfxb,_0x1acfxc,_0x1acfxd){var _0x1acfxe={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined};if(!_0x1acfx9|| !_0x1acfxa){console[_0x47ef[14]](_0x47ef[13]);return};SalesforceConfiguration[_0x47ef[17]]({where:{id:_0x1acfxa,AccountId:_0x1acfx9},include:[{all:true,include:[{all:true}]}]})[_0x47ef[16]](handleEntityNotFound())[_0x47ef[16]](handleConnection(_0x1acfxe))[_0x47ef[16]](searchAgent(_0x1acfxe,_0x1acfxb,_0x1acfxc))[_0x47ef[16]](handleAgent(_0x1acfxe,_0x1acfxb,_0x1acfxc))[_0x47ef[16]](searchAdmin(_0x1acfxe))[_0x47ef[16]](handleAdmin(_0x1acfxe))[_0x47ef[16]](searchContact(_0x1acfxe,_0x1acfxb,_0x1acfxc))[_0x47ef[16]](handleContact(_0x1acfxe,_0x1acfxb,_0x1acfxc))[_0x47ef[16]](searchLead(_0x1acfxe,_0x1acfxb,_0x1acfxc))[_0x47ef[16]](handleLead(_0x1acfxe,_0x1acfxb,_0x1acfxc))[_0x47ef[16]](leadCreation(_0x1acfxe,_0x1acfxb,_0x1acfxc))[_0x47ef[16]](handleLeadCreation(_0x1acfxe,_0x1acfxb,_0x1acfxc))[_0x47ef[16]](taskCreation(_0x1acfxe,_0x1acfxc,_0x1acfxd))[_0x47ef[16]](handleTaskDisplay(_0x1acfxe))[_0x47ef[16]](handleReportIntegration(_0x1acfxe,_0x1acfxb,_0x1acfxc,_0x1acfx9))[_0x47ef[16]](handleEnd(_0x1acfxe))[_0x47ef[15]](handleError(_0x1acfxe,_0x1acfxb,_0x1acfxc,_0x1acfx9))};function handleEntityNotFound(){return function(_0x1acfx10){if(!_0x1acfx10){return null};return _0x1acfx10}}function handleConnection(_0x1acfxe){return function(_0x1acfx12){_0x1acfxe[_0x47ef[18]]= new jsforce.Connection({oauth2:{loginUrl:_0x1acfx12[_0x47ef[20]][_0x47ef[19]]?_0x1acfx12[_0x47ef[20]][_0x47ef[19]]:_0x47ef[21],clientId:_0x1acfx12[_0x47ef[20]][_0x47ef[22]],clientSecret:_0x1acfx12[_0x47ef[20]][_0x47ef[23]]}});var _0x1acfx13=_0x1acfx12[_0x47ef[20]][_0x47ef[26]][_0x47ef[25]](_0x1acfx12[_0x47ef[20]][_0x47ef[24]]);_0x1acfxe[_0x47ef[27]]=_0x1acfx12;return _0x1acfxe[_0x47ef[18]][_0x47ef[29]](_0x1acfx12[_0x47ef[20]][_0x47ef[28]],_0x1acfx13)}}function searchAgent(_0x1acfxe,_0x1acfxb,_0x1acfxc){return function(){console[_0x47ef[10]](_0x47ef[30],getValueFromPropertyName(_0x1acfxc,getAgentSearchPropertyFromChannel(_0x1acfxb)));return _0x1acfxe[_0x47ef[18]][_0x47ef[33]](_0x47ef[32])[_0x47ef[17]]({Name:getValueFromPropertyName(_0x1acfxc,getAgentSearchPropertyFromChannel(_0x1acfxb))},{Id:1,Username:1,Name:1})[_0x47ef[31]]()}}function getAgentSearchPropertyFromChannel(_0x1acfxb){var _0x1acfx16=_0x47ef[34];if(_0x1acfxb){switch(_0x1acfxb){case _0x47ef[36]:_0x1acfx16=_0x47ef[35];break;default:_0x1acfx16=_0x47ef[35];console[_0x47ef[14]](_0x47ef[37],_0x1acfxb)}};return _0x1acfx16}function getValueFromPropertyName(_0x1acfxc,_0x1acfx16){return _[_0x47ef[38]](_0x1acfxc,_0x1acfx16)}function handleAgent(_0x1acfxe,_0x1acfxb,_0x1acfx19){return function(_0x1acfxc){if(_0x1acfxc[_0x47ef[39]]>0){console[_0x47ef[10]](_0x47ef[40],getValueFromPropertyName(_0x1acfx19,getAgentSearchPropertyFromChannel(_0x1acfxb)));_0x1acfxe[_0x47ef[41]]=getMatchObject(_0x1acfxc,_0x47ef[42],getValueFromPropertyName(_0x1acfx19,getAgentSearchPropertyFromChannel(_0x1acfxb)));return _0x1acfxe[_0x47ef[41]]};return}}function getMatchObject(_0x1acfx1b,_0x1acfx16,_0x1acfx1c){var _0x1acfx1d=_[_0x47ef[17]](_0x1acfx1b,{property:_0x1acfx1c});if(_0x1acfx1d){return _0x1acfx1d};return _[_0x47ef[43]](_0x1acfx1b)}function searchAdmin(_0x1acfxe){return function(_0x1acfxc){if(_0x1acfxc){return};console[_0x47ef[10]](_0x47ef[44]);return _0x1acfxe[_0x47ef[18]][_0x47ef[45]]()}}function handleAdmin(_0x1acfxe){return function(_0x1acfxc){if(!_0x1acfxc){return};if(_0x1acfxc){console[_0x47ef[10]](_0x47ef[46]);_0x1acfxe[_0x47ef[41]]={Id:_0x1acfxc[_0x47ef[47]],Name:_0x1acfxc[_0x47ef[48]],Username:_0x1acfxc[_0x47ef[28]]}};return}}function searchContact(_0x1acfxe,_0x1acfxb,_0x1acfxc){return function(){console[_0x47ef[10]](_0x47ef[49],getValueFromPropertyName(_0x1acfxc,getEndUserSearchPropertyFromChannel(_0x1acfxb)));var _0x1acfx21={};_0x1acfx21[getEndUserSearchQueryFromChannel(_0x1acfxb)]=getValueFromPropertyName(_0x1acfxc,getEndUserSearchPropertyFromChannel(_0x1acfxb));return _0x1acfxe[_0x47ef[18]][_0x47ef[33]](_0x47ef[50])[_0x47ef[17]](_0x1acfx21,{Id:1,Name:1})[_0x47ef[31]]()}}function getEndUserSearchQueryFromChannel(_0x1acfxb){var _0x1acfx16=_0x47ef[34];if(_0x1acfxb){switch(_0x1acfxb){case _0x47ef[36]:_0x1acfx16=_0x47ef[51];break;default:_0x1acfx16=_0x47ef[51];console[_0x47ef[14]](_0x47ef[37],_0x1acfxb)}};return _0x1acfx16}function getEndUserSearchPropertyFromChannel(_0x1acfxb){var _0x1acfx16=_0x47ef[34];if(_0x1acfxb){switch(_0x1acfxb){case _0x47ef[36]:_0x1acfx16=_0x47ef[52];break;default:_0x1acfx16=_0x47ef[52];console[_0x47ef[14]](_0x47ef[37],_0x1acfxb)}};return _0x1acfx16}function getEndUserNamePropertyFromChannel(_0x1acfxb){var _0x1acfx16=_0x47ef[34];if(_0x1acfxb){switch(_0x1acfxb){case _0x47ef[36]:_0x1acfx16=_0x47ef[53];break;default:_0x1acfx16=_0x47ef[53];console[_0x47ef[14]](_0x47ef[37],_0x1acfxb)}};return _0x1acfx16}function handleContact(_0x1acfxe,_0x1acfxb,_0x1acfx19){return function(_0x1acfxc){if(_0x1acfxc[_0x47ef[39]]>0){console[_0x47ef[10]](_0x47ef[54],getValueFromPropertyName(_0x1acfx19,getEndUserSearchPropertyFromChannel(_0x1acfxb)));_0x1acfxe[_0x47ef[55]]=_0x1acfxc[0];return _0x1acfxe[_0x47ef[55]]};console[_0x47ef[10]](_0x47ef[56],getValueFromPropertyName(_0x1acfx19,getEndUserSearchPropertyFromChannel(_0x1acfxb)));return}}function searchLead(_0x1acfxe,_0x1acfxb,_0x1acfx19){return function(_0x1acfxc){if(!_0x1acfxc){console[_0x47ef[10]](_0x47ef[57],getValueFromPropertyName(_0x1acfx19,getEndUserSearchPropertyFromChannel(_0x1acfxb)));var _0x1acfx21={};_0x1acfx21[getEndUserSearchQueryFromChannel(_0x1acfxb)]=getValueFromPropertyName(_0x1acfx19,getEndUserSearchPropertyFromChannel(_0x1acfxb));return _0x1acfxe[_0x47ef[18]][_0x47ef[33]](_0x47ef[58])[_0x47ef[17]](_0x1acfx21,{Id:1,Name:1})[_0x47ef[31]]()};return}}function handleLead(_0x1acfxe,_0x1acfxb,_0x1acfx19){return function(_0x1acfxc){if(_0x1acfxc&&_0x1acfxc[_0x47ef[39]]>0){console[_0x47ef[10]](_0x47ef[59],getValueFromPropertyName(_0x1acfx19,getEndUserSearchPropertyFromChannel(_0x1acfxb)));_0x1acfxe[_0x47ef[55]]=_0x1acfxc[0];return _0x1acfxe[_0x47ef[55]]};return}}function leadCreation(_0x1acfxe,_0x1acfxb,_0x1acfx19){return function(_0x1acfxc){if(_0x1acfxc||_0x1acfxe[_0x47ef[55]]){return};console[_0x47ef[10]](_0x47ef[60],getValueFromPropertyName(_0x1acfx19,getEndUserSearchPropertyFromChannel(_0x1acfxb)));return _0x1acfxe[_0x47ef[18]][_0x47ef[33]](_0x47ef[58])[_0x47ef[61]](getJsonForEndUserCreation(_0x1acfxb,_0x1acfx19))}}function getJsonForEndUserCreation(_0x1acfxb,_0x1acfxc){var _0x1acfx2a={Company:_0x47ef[62]};switch(_0x1acfxb){case _0x47ef[36]:if(_0x1acfxc[_0x47ef[53]]){_0x1acfx2a[_0x47ef[63]]=getValueFromPropertyName(_0x1acfxc,getEndUserNamePropertyFromChannel(_0x1acfxb))}else {_0x1acfx2a[_0x47ef[63]]=util[_0x47ef[65]](_0x47ef[64],getValueFromPropertyName(_0x1acfxc,getAgentSearchPropertyFromChannel(_0x1acfxb)))};_0x1acfx2a[_0x47ef[51]]=getValueFromPropertyName(_0x1acfxc,getEndUserSearchPropertyFromChannel(_0x1acfxb));break;default:console[_0x47ef[14]](_0x47ef[37],_0x1acfxb)};return _0x1acfx2a}function handleLeadCreation(_0x1acfxe,_0x1acfxb,_0x1acfx19){return function(_0x1acfxc){if(!_0x1acfxc){return};if(_0x1acfxc&&_0x1acfxc[_0x47ef[66]]){console[_0x47ef[10]](_0x47ef[67],getValueFromPropertyName(_0x1acfx19,getEndUserSearchPropertyFromChannel(_0x1acfxb)));_0x1acfxe[_0x47ef[55]]={Id:_0x1acfxc[_0x47ef[68]]}};return}}function taskCreation(_0x1acfxe,_0x1acfx19,_0x1acfxd){return function(){var _0x1acfx2d={WhoId:_0x1acfxe[_0x47ef[55]][_0x47ef[69]],OwnerId:_0x1acfxe[_0x47ef[41]][_0x47ef[69]],ActivityDate:moment[_0x47ef[70]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0x1acfxe,_0x1acfx19,_0x1acfxd),Description:createDescriptionFromConfiguration(_0x1acfxe,_0x1acfx19,_0x1acfxd)};var _0x1acfx2e=createCustomFieldsFromConfiguration(_0x1acfxe);if(_0x1acfx2e[_0x47ef[39]]>0){_[_0x47ef[72]](_0x1acfx2e,function(_0x1acfx2f){_0x1acfx2d[_0x1acfx2f[_0x47ef[68]]]=_0x1acfx2f[_0x47ef[71]]})};return _0x1acfxe[_0x47ef[18]][_0x47ef[33]](_0x47ef[73])[_0x47ef[61]](_0x1acfx2d)}}function createSubjectFromConfiguration(_0x1acfxe,_0x1acfx19,_0x1acfxd){var _0x1acfx31=_0x47ef[34];var _0x1acfx32=[];if(_0x1acfxe[_0x47ef[27]][_0x47ef[74]][_0x47ef[39]]>0){var _0x1acfx33=_[_0x47ef[75]](_0x1acfxe[_0x47ef[27]].Subject,[_0x47ef[68]]);_[_0x47ef[72]](_0x1acfx33,function(_0x1acfx34){if(_0x1acfx34[_0x47ef[76]]===_0x47ef[77]){_0x1acfx32[_0x47ef[79]](_0x1acfx34[_0x47ef[78]])}else {if(_0x1acfx34[_0x47ef[76]]===_0x47ef[80]&&_0x1acfx34[_0x47ef[81]]){var _0x1acfx35=getValueFromPropertyName(_0x1acfx19,_0x1acfx34[_0x47ef[81]]);if(_0x1acfx35){_0x1acfx32[_0x47ef[79]](_0x1acfx35.toString())}}else {if(_0x1acfx34[_0x47ef[76]]===_0x47ef[82]){var _0x1acfx36=_[_0x47ef[17]](_0x1acfxd,{"\x6E\x61\x6D\x65":_0x1acfx34[_0x47ef[84]][_0x47ef[83]]});if(_0x1acfx36){_0x1acfx32[_0x47ef[79]](_0x1acfx36[_0x47ef[71]].toString())}}}}});_0x1acfx31=_0x1acfx32[_0x47ef[86]](_0x47ef[85])};return _0x1acfx31}function createDescriptionFromConfiguration(_0x1acfxe,_0x1acfx19,_0x1acfxd){var _0x1acfx38=_0x47ef[34];var _0x1acfx32=[];if(_0x1acfxe[_0x47ef[27]][_0x47ef[87]][_0x47ef[39]]>0){var _0x1acfx39=_[_0x47ef[75]](_0x1acfxe[_0x47ef[27]].Description,[_0x47ef[68]]);_[_0x47ef[72]](_0x1acfx39,function(_0x1acfx34){if(_0x1acfx34[_0x47ef[76]]===_0x47ef[77]){_0x1acfx32[_0x47ef[79]](_0x1acfx34[_0x47ef[78]])}else {if(_0x1acfx34[_0x47ef[76]]===_0x47ef[88]){if(_0x1acfx34[_0x47ef[89]]===_0x47ef[77]){_0x1acfx32[_0x47ef[79]](util[_0x47ef[65]](_0x47ef[90],_0x1acfx34[_0x47ef[91]],_0x1acfx34[_0x47ef[92]]))}else {if(_0x1acfx34[_0x47ef[89]]===_0x47ef[80]&&_0x1acfx34[_0x47ef[81]]){var _0x1acfx35=getValueFromPropertyName(_0x1acfx19,_0x1acfx34[_0x47ef[81]]);if(_0x1acfx35){_0x1acfx32[_0x47ef[79]](util[_0x47ef[65]](_0x47ef[90],_0x1acfx34[_0x47ef[91]],_0x1acfx35.toString()))}}else {if(_0x1acfx34[_0x47ef[89]]===_0x47ef[82]){var _0x1acfx36=_[_0x47ef[17]](_0x1acfxd,{"\x6E\x61\x6D\x65":_0x1acfx34[_0x47ef[84]][_0x47ef[83]]});if(_0x1acfx36){_0x1acfx32[_0x47ef[79]](util[_0x47ef[65]](_0x47ef[90],_0x1acfx34[_0x47ef[91]],_0x1acfx36[_0x47ef[71]].toString()))}}}}}}});_0x1acfx38=_0x1acfx32[_0x47ef[86]](_0x47ef[93])};return _0x1acfx38}function createCustomFieldsFromConfiguration(_0x1acfxe,_0x1acfx19,_0x1acfxd){var _0x1acfx3b=[];var _0x1acfx3c=[];if(_0x1acfxe[_0x47ef[27]][_0x47ef[94]][_0x47ef[39]]>0){_0x1acfx3b=_0x1acfxe[_0x47ef[27]][_0x47ef[94]];_[_0x47ef[72]](_0x1acfx3b,function(_0x1acfx2f){if(_0x1acfx2f[_0x47ef[76]]===_0x47ef[77]){_0x1acfx3c[_0x47ef[79]]({id:_0x1acfx2f[_0x47ef[95]],value:_0x1acfx2f[_0x47ef[78]]})}else {if(_0x1acfx2f[_0x47ef[76]]===_0x47ef[80]){var _0x1acfx35=getValueFromPropertyName(_0x1acfx19,_0x1acfx2f[_0x47ef[81]]);if(_0x1acfx35){_0x1acfx3c[_0x47ef[79]]({id:_0x1acfx2f[_0x47ef[95]],value:_0x1acfx35.toString()})}}else {if(_0x1acfx2f[_0x47ef[76]]===_0x47ef[82]){var _0x1acfx36=_[_0x47ef[17]](_0x1acfxd,{"\x6E\x61\x6D\x65":_0x1acfx2f[_0x47ef[84]][_0x47ef[83]]});if(_0x1acfx36){_0x1acfx3c[_0x47ef[79]]({id:_0x1acfx2f[_0x47ef[95]],value:_0x1acfx36[_0x47ef[71]].toString()})}}}}})};return _0x1acfx3c}function handleTaskDisplay(_0x1acfxe){return function(_0x1acfxc){if(_0x1acfxc&&_0x1acfxc[_0x47ef[66]]){console[_0x47ef[10]](_0x47ef[96],_0x1acfxc[_0x47ef[68]]);_0x1acfxe[_0x47ef[97]]=_0x1acfxc[_0x47ef[68]];return};return}}function handleReportIntegration(_0x1acfxe,_0x1acfxb,_0x1acfxc,_0x1acfx9){return function(){_0x1acfxc=_0x1acfxc[_0x47ef[98]];delete _0x1acfxc[_0x47ef[68]];_0x1acfxc[_0x47ef[99]]=_0x47ef[100];_0x1acfxc[_0x47ef[101]]=_0x1acfxb;_0x1acfxc[_0x47ef[102]]=_0x47ef[66];_0x1acfxc[_0x47ef[103]]=_0x1acfxe[_0x47ef[97]];_0x1acfxc[_0x47ef[104]]=_0x1acfx9;_0x1acfxc[_0x47ef[105]]=util[_0x47ef[65]](_0x47ef[106],_0x1acfxe[_0x47ef[18]][_0x47ef[107]],_0x1acfxe[_0x47ef[97]]);return ReportIntegration[_0x47ef[61]](_0x1acfxc)}}function handleEnd(_0x1acfxe,_0x1acfxc,_0x1acfxb){return function(){console[_0x47ef[10]](util[_0x47ef[65]](_0x47ef[108],_0x1acfxe[_0x47ef[97]],_0x1acfxe[_0x47ef[41]].Id));_0x1acfxe=undefined;return}}function handleError(_0x1acfxe,_0x1acfxb,_0x1acfxc,_0x1acfx9){return function(_0x1acfx41){console[_0x47ef[14]](_0x47ef[109]);console[_0x47ef[14]](_0x47ef[110],_0x1acfx41[_0x47ef[111]]);console[_0x47ef[14]](_0x47ef[112],_0x1acfx41[_0x47ef[113]]);_0x1acfxe=undefined;delete _0x1acfxc[_0x47ef[68]];_0x1acfxc=_0x1acfxc[_0x47ef[98]];_0x1acfxc[_0x47ef[99]]=_0x47ef[100];_0x1acfxc[_0x47ef[101]]=_0x1acfxb;_0x1acfxc[_0x47ef[102]]=_0x47ef[114];_0x1acfxc[_0x47ef[104]]=_0x1acfx9;ReportIntegration[_0x47ef[61]](_0x1acfxc)[_0x47ef[16]](function(){return})[_0x47ef[15]](function(_0x1acfx41){console[_0x47ef[14]](_0x47ef[115]);return})}}function stripTrailingSlash(_0x1acfx43){if(_0x1acfx43[_0x47ef[116]](-1)===_0x47ef[117]){return _0x1acfx43[_0x47ef[116]](0,_0x1acfx43[_0x47ef[39]]-1)};return _0x1acfx43}module[_0x47ef[118]]=Salesforce
\ No newline at end of file
+var _0xd5cc=["\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"];_0xd5cc[0];var _=require(_0xd5cc[1]);var util=require(_0xd5cc[2]);var jsforce=require(_0xd5cc[3]);var moment=require(_0xd5cc[4]);var logger=require(_0xd5cc[6])(_0xd5cc[5]);var SalesforceConfiguration=require(_0xd5cc[8])[_0xd5cc[7]];var ReportIntegration=require(_0xd5cc[8])[_0xd5cc[9]];var VoiceQueue=require(_0xd5cc[8])[_0xd5cc[10]];var VoiceExtension=require(_0xd5cc[8])[_0xd5cc[11]];var Agent=require(_0xd5cc[8])[_0xd5cc[12]];function Salesforce(){logger[_0xd5cc[14]](_0xd5cc[13])}Salesforce[_0xd5cc[16]][_0xd5cc[15]]= function(_0xa644xc,_0xa644xd,_0xa644xe,_0xa644xf,_0xa644x10,_0xa644x11,_0xa644x12){var _0xa644x13={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0xa644xc||  !_0xa644xd){logger[_0xd5cc[18]](_0xd5cc[17]);return};SalesforceConfiguration[_0xd5cc[21]]({where:{id:_0xa644xd,AccountId:_0xa644xc},include:[{all:true,include:[{all:true}]}]})[_0xd5cc[20]](handleEntityNotFound())[_0xd5cc[20]](handleConnection(_0xa644x13))[_0xd5cc[20]](searchMotionAgent(_0xa644xe,_0xa644x10))[_0xd5cc[20]](handleMotionAgent(_0xa644x13))[_0xd5cc[20]](searchQueue(_0xa644x10))[_0xd5cc[20]](handleQueueRecordings(_0xa644x13,_0xa644x10))[_0xd5cc[20]](searchRoute(_0xa644x10))[_0xd5cc[20]](handleOutboundRecordings(_0xa644x13,_0xa644x10))[_0xd5cc[20]](searchAgent(_0xa644x13,_0xa644xe,_0xa644x10))[_0xd5cc[20]](handleAgent(_0xa644x13,_0xa644xe,_0xa644x10))[_0xd5cc[20]](searchAdmin(_0xa644x13))[_0xd5cc[20]](handleAdmin(_0xa644x13))[_0xd5cc[20]](searchContact(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xf))[_0xd5cc[20]](handleContact(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xf))[_0xd5cc[20]](searchLead(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xf))[_0xd5cc[20]](handleLead(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xf))[_0xd5cc[20]](leadCreation(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xf))[_0xd5cc[20]](handleLeadCreation(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xf))[_0xd5cc[20]](taskCreation(_0xa644x13,_0xa644x10,_0xa644x11))[_0xd5cc[20]](handleTaskDisplay(_0xa644x13))[_0xd5cc[20]](handleReportIntegration(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xc,_0xa644x12,_0xa644xf))[_0xd5cc[20]](handleEnd(_0xa644x13))[_0xd5cc[19]](handleError(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xc))};function handleEntityNotFound(){return function(_0xa644x15){if(!_0xa644x15){return null};return _0xa644x15}}function handleConnection(_0xa644x13){return function(_0xa644x17){_0xa644x13[_0xd5cc[22]]=  new jsforce.Connection({oauth2:{loginUrl:_0xa644x17[_0xd5cc[24]][_0xd5cc[23]]?_0xa644x17[_0xd5cc[24]][_0xd5cc[23]]:_0xd5cc[25],clientId:_0xa644x17[_0xd5cc[24]][_0xd5cc[26]],clientSecret:_0xa644x17[_0xd5cc[24]][_0xd5cc[27]]}});var _0xa644x18=_0xa644x17[_0xd5cc[24]][_0xd5cc[30]][_0xd5cc[29]](_0xa644x17[_0xd5cc[24]][_0xd5cc[28]]);_0xa644x13[_0xd5cc[31]]= _0xa644x17;_0xa644x13[_0xd5cc[32]]= _0xa644x17[_0xd5cc[24]][_0xd5cc[33]];return _0xa644x13[_0xd5cc[22]][_0xd5cc[35]](_0xa644x17[_0xd5cc[24]][_0xd5cc[34]],_0xa644x18)}}function searchMotionAgent(_0xa644xe,_0xa644x10){return function(){var _0xa644x1a=getAgentSearchPropertyFromChannel(_0xa644xe);if(_0xa644x10[_0xd5cc[36]](_0xa644x1a)){return Agent[_0xd5cc[40]](_0xd5cc[39])[_0xd5cc[38]]({where:{name:getValueFromPropertyName(_0xa644x10,_0xa644x1a)},attributes:[_0xd5cc[37]]})};return}}function handleMotionAgent(_0xa644x13){return function(_0xa644x1c){if(_0xa644x1c&& _0xa644x1c[_0xd5cc[37]]){_0xa644x13[_0xd5cc[41]]= _0xa644x1c[_0xd5cc[37]]};return}}function searchQueue(_0xa644x10){return function(){if(_0xa644x10[_0xd5cc[42]]){return VoiceQueue[_0xd5cc[38]]({where:{name:_0xa644x10[_0xd5cc[42]]},attributes:[_0xd5cc[43],_0xd5cc[44]]})}else {return}}}function handleQueueRecordings(_0xa644x13,_0xa644x10){return function(_0xa644x1f){if(_0xa644x10[_0xd5cc[42]]){if(_0xa644x1f&& _0xa644x1f[_0xd5cc[44]]){logger[_0xd5cc[14]](_0xd5cc[45],_0xa644x1f[_0xd5cc[43]]);_0xa644x13[_0xd5cc[46]]= true}else {_0xa644x13[_0xd5cc[46]]= false;logger[_0xd5cc[14]](_0xd5cc[47])}};return}}function searchRoute(_0xa644x10){return function(){if(_0xa644x10[_0xd5cc[48]]){return VoiceExtension[_0xd5cc[38]]({where:{id:_0xa644x10[_0xd5cc[48]]},attributes:[_0xd5cc[49],_0xd5cc[50]]})}else {return}}}function handleOutboundRecordings(_0xa644x13,_0xa644x10){return function(_0xa644x22){if(_0xa644x10[_0xd5cc[48]]){if(_0xa644x22&& _0xa644x22[_0xd5cc[50]]){logger[_0xd5cc[14]](_0xd5cc[51],_0xa644x22[_0xd5cc[49]]);_0xa644x13[_0xd5cc[46]]= true}else {_0xa644x13[_0xd5cc[46]]= false;logger[_0xd5cc[14]](_0xd5cc[52])}};return}}function searchAgent(_0xa644x13,_0xa644xe,_0xa644x10){return function(){if(_0xa644x13[_0xd5cc[41]]){logger[_0xd5cc[14]](_0xd5cc[53],_0xa644x13[_0xd5cc[41]]);return _0xa644x13[_0xd5cc[22]][_0xd5cc[55]](_0xd5cc[12])[_0xd5cc[21]]({Name:_0xa644x13[_0xd5cc[41]]},{Id:1,Username:1,Name:1})[_0xd5cc[54]]()};return}}function getAgentSearchPropertyFromChannel(_0xa644xe){var _0xa644x25=_0xd5cc[56];if(_0xa644xe){switch(_0xa644xe){case _0xd5cc[58]:_0xa644x25= _0xd5cc[57];break;default:_0xa644x25= _0xd5cc[57];logger[_0xd5cc[18]](_0xd5cc[59],_0xa644xe)}};return _0xa644x25}function getValueFromPropertyName(_0xa644x10,_0xa644x25,_0xa644x13){if(_0xa644x25=== _0xd5cc[60]){if(_0xa644x13&& _0xa644x13[_0xd5cc[46]]&& _0xa644x13[_0xd5cc[32]]){return util[_0xd5cc[63]](_0xd5cc[61],stripTrailingSlash(_0xa644x13[_0xd5cc[32]]),_0xa644x10[_0xd5cc[62]])}else {return null}}else {return _[_0xd5cc[64]](_0xa644x10,_0xa644x25)}}function handleAgent(_0xa644x13,_0xa644xe,_0xa644x28){return function(_0xa644x10){if(_0xa644x10&& _0xa644x10[_0xd5cc[65]]> 0){logger[_0xd5cc[14]](_0xd5cc[66],_0xa644x13[_0xd5cc[41]]);_0xa644x13[_0xd5cc[39]]= getMatchObject(_0xa644x10,_0xd5cc[67],_0xa644x13[_0xd5cc[41]]);return _0xa644x13[_0xd5cc[39]]};return}}function getMatchObject(_0xa644x2a,_0xa644x25,_0xa644x2b){var _0xa644x2c=_[_0xd5cc[21]](_0xa644x2a,{property:_0xa644x2b});if(_0xa644x2c){return _0xa644x2c};return _[_0xd5cc[68]](_0xa644x2a)}function searchAdmin(_0xa644x13){return function(_0xa644x10){if(_0xa644x10){return};logger[_0xd5cc[14]](_0xd5cc[69]);return _0xa644x13[_0xd5cc[22]][_0xd5cc[70]]()}}function handleAdmin(_0xa644x13){return function(_0xa644x10){if(!_0xa644x10){return};if(_0xa644x10){logger[_0xd5cc[14]](_0xd5cc[71]);_0xa644x13[_0xd5cc[39]]= {Id:_0xa644x10[_0xd5cc[72]],Name:_0xa644x10[_0xd5cc[73]],Username:_0xa644x10[_0xd5cc[34]]}};return}}function searchContact(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xf){return function(){logger[_0xd5cc[14]](_0xd5cc[74],getValueFromPropertyName(_0xa644x10,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)));var _0xa644x30={};_0xa644x30[getEndUserSearchQueryFromChannel(_0xa644xe)]= getValueFromPropertyName(_0xa644x10,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf));return _0xa644x13[_0xd5cc[22]][_0xd5cc[55]](_0xd5cc[75])[_0xd5cc[21]](_0xa644x30,{Id:1,Name:1})[_0xd5cc[54]]()}}function getEndUserSearchQueryFromChannel(_0xa644xe){var _0xa644x25=_0xd5cc[56];if(_0xa644xe){switch(_0xa644xe){case _0xd5cc[58]:_0xa644x25= _0xd5cc[76];break;default:_0xa644x25= _0xd5cc[76];logger[_0xd5cc[18]](_0xd5cc[59],_0xa644xe)}};return _0xa644x25}function getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf){var _0xa644x25=_0xd5cc[56];if(_0xa644xe){switch(_0xa644xe){case _0xd5cc[58]:if(_0xa644xf=== _0xd5cc[77]){_0xa644x25= _0xd5cc[78]}else {if(_0xa644xf=== _0xd5cc[42]){_0xa644x25= _0xd5cc[79]}};break;default:_0xa644x25= _0xd5cc[79];logger[_0xd5cc[18]](_0xd5cc[59],_0xa644xe)}};return _0xa644x25}function getEndUserNamePropertyFromChannel(_0xa644xe,_0xa644xf){var _0xa644x25=_0xd5cc[56];if(_0xa644xe){switch(_0xa644xe){case _0xd5cc[58]:if(_0xa644xf=== _0xd5cc[77]){_0xa644x25= _0xd5cc[80]}else {if(_0xa644xf=== _0xd5cc[42]){_0xa644x25= _0xd5cc[81]}};break;default:_0xa644x25= _0xd5cc[81];logger[_0xd5cc[18]](_0xd5cc[59],_0xa644xe)}};return _0xa644x25}function handleContact(_0xa644x13,_0xa644xe,_0xa644x28,_0xa644xf){return function(_0xa644x10){if(_0xa644x10[_0xd5cc[65]]> 0){logger[_0xd5cc[14]](_0xd5cc[82],getValueFromPropertyName(_0xa644x28,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)));_0xa644x13[_0xd5cc[83]]= _0xa644x10[0];return _0xa644x13[_0xd5cc[83]]};logger[_0xd5cc[14]](_0xd5cc[84],getValueFromPropertyName(_0xa644x28,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)));return}}function searchLead(_0xa644x13,_0xa644xe,_0xa644x28,_0xa644xf){return function(_0xa644x10){if(!_0xa644x10){logger[_0xd5cc[14]](_0xd5cc[85],getValueFromPropertyName(_0xa644x28,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)));var _0xa644x30={};_0xa644x30[getEndUserSearchQueryFromChannel(_0xa644xe)]= getValueFromPropertyName(_0xa644x28,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf));return _0xa644x13[_0xd5cc[22]][_0xd5cc[55]](_0xd5cc[86])[_0xd5cc[21]](_0xa644x30,{Id:1,Name:1})[_0xd5cc[54]]()};return}}function handleLead(_0xa644x13,_0xa644xe,_0xa644x28,_0xa644xf){return function(_0xa644x10){if(_0xa644x10&& _0xa644x10[_0xd5cc[65]]> 0){logger[_0xd5cc[14]](_0xd5cc[87],getValueFromPropertyName(_0xa644x28,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)));_0xa644x13[_0xd5cc[83]]= _0xa644x10[0];return _0xa644x13[_0xd5cc[83]]};return}}function leadCreation(_0xa644x13,_0xa644xe,_0xa644x28,_0xa644xf){return function(_0xa644x10){if(_0xa644x10|| _0xa644x13[_0xd5cc[83]]){return};logger[_0xd5cc[14]](_0xd5cc[88],getValueFromPropertyName(_0xa644x28,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)));return _0xa644x13[_0xd5cc[22]][_0xd5cc[55]](_0xd5cc[86])[_0xd5cc[89]](getJsonForEndUserCreation(_0xa644xe,_0xa644x28,_0xa644xf))}}function getJsonForEndUserCreation(_0xa644xe,_0xa644x10,_0xa644xf){var _0xa644x39={Company:_0xd5cc[90]};switch(_0xa644xe){case _0xd5cc[58]:if(_0xa644xf=== _0xd5cc[42]){if(isValidName(_0xa644x10[_0xd5cc[81]])){_0xa644x39[_0xd5cc[91]]= getValueFromPropertyName(_0xa644x10,getEndUserNamePropertyFromChannel(_0xa644xe,_0xa644xf))}else {_0xa644x39[_0xd5cc[91]]= util[_0xd5cc[63]](_0xd5cc[92],getValueFromPropertyName(_0xa644x10,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)))}}else {if(_0xa644xf=== _0xd5cc[77]){if(isValidName(_0xa644x10[_0xd5cc[80]])){_0xa644x39[_0xd5cc[91]]= getValueFromPropertyName(_0xa644x10,getEndUserNamePropertyFromChannel(_0xa644xe,_0xa644xf))}else {_0xa644x39[_0xd5cc[91]]= util[_0xd5cc[63]](_0xd5cc[92],getValueFromPropertyName(_0xa644x10,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)))}}};_0xa644x39[_0xd5cc[76]]= getValueFromPropertyName(_0xa644x10,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf));break;default:logger[_0xd5cc[18]](_0xd5cc[59],_0xa644xe)};return _0xa644x39}function isValidName(_0xa644x3b){return _0xa644x3b&& _0xa644x3b!== _0xd5cc[93]}function handleLeadCreation(_0xa644x13,_0xa644xe,_0xa644x28,_0xa644xf){return function(_0xa644x10){if(!_0xa644x10){return};if(_0xa644x10&& _0xa644x10[_0xd5cc[94]]){logger[_0xd5cc[14]](_0xd5cc[95],getValueFromPropertyName(_0xa644x28,getEndUserSearchPropertyFromChannel(_0xa644xe,_0xa644xf)));_0xa644x13[_0xd5cc[83]]= {Id:_0xa644x10[_0xd5cc[49]]}};return}}function taskCreation(_0xa644x13,_0xa644x28,_0xa644x11){return function(){var _0xa644x3e={WhoId:_0xa644x13[_0xd5cc[83]][_0xd5cc[96]],OwnerId:_0xa644x13[_0xd5cc[39]][_0xd5cc[96]],ActivityDate:moment[_0xd5cc[97]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0xa644x13,_0xa644x28,_0xa644x11),Description:createDescriptionFromConfiguration(_0xa644x13,_0xa644x28,_0xa644x11)};var _0xa644x3f=createCustomFieldsFromConfiguration(_0xa644x13,_0xa644x28,_0xa644x11);if(_0xa644x3f[_0xd5cc[65]]> 0){_[_0xd5cc[99]](_0xa644x3f,function(_0xa644x40){_0xa644x3e[_0xa644x40[_0xd5cc[49]]]= _0xa644x40[_0xd5cc[98]]})};return _0xa644x13[_0xd5cc[22]][_0xd5cc[55]](_0xd5cc[100])[_0xd5cc[89]](_0xa644x3e)}}function createSubjectFromConfiguration(_0xa644x13,_0xa644x28,_0xa644x11){var _0xa644x42=_0xd5cc[56];var _0xa644x43=[];if(_0xa644x13[_0xd5cc[31]][_0xd5cc[101]][_0xd5cc[65]]> 0){var _0xa644x44=_[_0xd5cc[102]](_0xa644x13[_0xd5cc[31]].Subject,[_0xd5cc[49]]);_[_0xd5cc[99]](_0xa644x44,function(_0xa644x45){if(_0xa644x45[_0xd5cc[103]]=== _0xd5cc[104]){_0xa644x43[_0xd5cc[106]](_0xa644x45[_0xd5cc[105]])}else {if(_0xa644x45[_0xd5cc[103]]=== _0xd5cc[107]&& _0xa644x45[_0xd5cc[108]]){var _0xa644x46=getValueFromPropertyName(_0xa644x28,_0xa644x45[_0xd5cc[108]],_0xa644x13);if(_0xa644x46){_0xa644x43[_0xd5cc[106]](_0xa644x46.toString())}}else {if(_0xa644x45[_0xd5cc[103]]=== _0xd5cc[109]&& _0xa644x45[_0xd5cc[110]]&& _0xa644x45[_0xd5cc[110]][_0xd5cc[43]]){_0xa644x11[_0xa644x45[_0xd5cc[110]][_0xd5cc[43]]]&& _0xa644x43[_0xd5cc[106]](_0xa644x11[_0xa644x45[_0xd5cc[110]][_0xd5cc[43]]].toString())}}}});_0xa644x42= _0xa644x43[_0xd5cc[112]](_0xd5cc[111])};return _0xa644x42}function createDescriptionFromConfiguration(_0xa644x13,_0xa644x28,_0xa644x11){var _0xa644x48=_0xd5cc[56];var _0xa644x43=[];if(_0xa644x13[_0xd5cc[31]][_0xd5cc[113]][_0xd5cc[65]]> 0){var _0xa644x49=_[_0xd5cc[102]](_0xa644x13[_0xd5cc[31]].Description,[_0xd5cc[49]]);_[_0xd5cc[99]](_0xa644x49,function(_0xa644x45){if(_0xa644x45[_0xd5cc[103]]=== _0xd5cc[104]){_0xa644x43[_0xd5cc[106]](_0xa644x45[_0xd5cc[105]])}else {if(_0xa644x45[_0xd5cc[103]]=== _0xd5cc[114]){if(_0xa644x45[_0xd5cc[115]]=== _0xd5cc[104]&& _0xa644x45[_0xd5cc[116]]){_0xa644x43[_0xd5cc[106]](util[_0xd5cc[63]](_0xd5cc[117],_0xa644x45[_0xd5cc[116]],_0xa644x45[_0xd5cc[118]]))}else {if(_0xa644x45[_0xd5cc[115]]=== _0xd5cc[107]&& _0xa644x45[_0xd5cc[108]]&& _0xa644x45[_0xd5cc[116]]){var _0xa644x46=getValueFromPropertyName(_0xa644x28,_0xa644x45[_0xd5cc[108]],_0xa644x13);if(_0xa644x46){_0xa644x43[_0xd5cc[106]](util[_0xd5cc[63]](_0xd5cc[117],_0xa644x45[_0xd5cc[116]],_0xa644x46.toString()))}}else {if(_0xa644x45[_0xd5cc[115]]=== _0xd5cc[109]&& _0xa644x45[_0xd5cc[110]]&& _0xa644x45[_0xd5cc[110]][_0xd5cc[43]]&& _0xa644x45[_0xd5cc[116]]){_0xa644x11[_0xa644x45[_0xd5cc[110]][_0xd5cc[43]]]&& _0xa644x43[_0xd5cc[106]](util[_0xd5cc[63]](_0xd5cc[117],_0xa644x45[_0xd5cc[116]],_0xa644x11[_0xa644x45[_0xd5cc[110]][_0xd5cc[43]]]))}}}}}});_0xa644x48= _0xa644x43[_0xd5cc[112]](_0xd5cc[119])};return _0xa644x48}function createCustomFieldsFromConfiguration(_0xa644x13,_0xa644x28,_0xa644x11){var _0xa644x4b=[];var _0xa644x4c=[];if(_0xa644x13[_0xd5cc[31]][_0xd5cc[120]][_0xd5cc[65]]> 0){_0xa644x4b= _0xa644x13[_0xd5cc[31]][_0xd5cc[120]];_[_0xd5cc[99]](_0xa644x4b,function(_0xa644x40){if(_0xa644x40[_0xd5cc[103]]=== _0xd5cc[104]&& _0xa644x40[_0xd5cc[121]]){_0xa644x4c[_0xd5cc[106]]({id:_0xa644x40[_0xd5cc[121]],value:_0xa644x40[_0xd5cc[105]]})}else {if(_0xa644x40[_0xd5cc[103]]=== _0xd5cc[107]&& _0xa644x40[_0xd5cc[108]]&& _0xa644x40[_0xd5cc[121]]){var _0xa644x46=getValueFromPropertyName(_0xa644x28,_0xa644x40[_0xd5cc[108]],_0xa644x13);if(_0xa644x46){_0xa644x4c[_0xd5cc[106]]({id:_0xa644x40[_0xd5cc[121]],value:_0xa644x46.toString()})}}else {if(_0xa644x40[_0xd5cc[103]]=== _0xd5cc[109]&& _0xa644x40[_0xd5cc[121]]&& _0xa644x40[_0xd5cc[110]]&& _0xa644x40[_0xd5cc[110]][_0xd5cc[43]]){_0xa644x11[_0xa644x40[_0xd5cc[110]][_0xd5cc[43]]]&& _0xa644x4c[_0xd5cc[106]]({id:_0xa644x40[_0xd5cc[121]],value:_0xa644x11[_0xa644x40[_0xd5cc[110]][_0xd5cc[43]]].toString()})}}}})};return _0xa644x4c}function handleTaskDisplay(_0xa644x13){return function(_0xa644x10){if(_0xa644x10&& _0xa644x10[_0xd5cc[94]]){logger[_0xd5cc[14]](_0xd5cc[122],_0xa644x10[_0xd5cc[49]]);_0xa644x13[_0xd5cc[123]]= _0xa644x10[_0xd5cc[49]];return};return}}function handleReportIntegration(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xc,_0xa644x12,_0xa644xf){return function(){delete _0xa644x10[_0xd5cc[49]];delete _0xa644x10[_0xd5cc[124]];delete _0xa644x10[_0xd5cc[125]];_0xa644x10[_0xd5cc[126]]= _0xd5cc[127];_0xa644x10[_0xd5cc[128]]= _0xa644xe;_0xa644x10[_0xd5cc[129]]= _0xd5cc[94];_0xa644x10[_0xd5cc[130]]= _0xa644x13[_0xd5cc[123]];_0xa644x10[_0xd5cc[131]]= _0xa644xc;_0xa644x10[_0xd5cc[132]]= _0xa644xf;_0xa644x10[_0xd5cc[133]]= util[_0xd5cc[63]](_0xd5cc[134],_0xa644x13[_0xd5cc[22]][_0xd5cc[135]],_0xa644x13[_0xd5cc[123]]);_0xa644x10[_0xd5cc[136]]= _0xa644x13[_0xd5cc[31]][_0xd5cc[24]][_0xd5cc[136]]?_0xa644x13[_0xd5cc[31]][_0xd5cc[24]][_0xd5cc[136]]:_0xd5cc[137];_0xa644x12[_0xd5cc[139]](_0xd5cc[138],_0xa644x10);delete _0xa644x10[_0xd5cc[136]];return ReportIntegration[_0xd5cc[89]](_0xa644x10)}}function handleEnd(_0xa644x13,_0xa644x10,_0xa644xe){return function(){logger[_0xd5cc[14]](util[_0xd5cc[63]](_0xd5cc[140],_0xa644x13[_0xd5cc[123]],_0xa644x13[_0xd5cc[39]].Id));_0xa644x13= undefined;return}}function handleError(_0xa644x13,_0xa644xe,_0xa644x10,_0xa644xc){return function(_0xa644x51){logger[_0xd5cc[18]](_0xd5cc[141]);logger[_0xd5cc[18]](_0xd5cc[142],_0xa644x51[_0xd5cc[143]]);logger[_0xd5cc[18]](_0xd5cc[144],_0xa644x51[_0xd5cc[145]]);_0xa644x13= undefined;delete _0xa644x10[_0xd5cc[49]];delete _0xa644x10[_0xd5cc[124]];delete _0xa644x10[_0xd5cc[125]];_0xa644x10[_0xd5cc[126]]= _0xd5cc[127];_0xa644x10[_0xd5cc[128]]= _0xa644xe;_0xa644x10[_0xd5cc[129]]= _0xd5cc[146];_0xa644x10[_0xd5cc[131]]= _0xa644xc;ReportIntegration[_0xd5cc[89]](_0xa644x10)[_0xd5cc[20]](function(){return})[_0xd5cc[19]](function(_0xa644x51){logger[_0xd5cc[18]](_0xd5cc[147]);return})}}function stripTrailingSlash(_0xa644x53){if(_0xa644x53[_0xd5cc[148]](-1) === _0xd5cc[149]){return _0xa644x53[_0xd5cc[148]](0,_0xa644x53[_0xd5cc[65]]- 1)};return _0xa644x53}module[_0xd5cc[150]]= Salesforce
\ No newline at end of file