1 var _0x6e18=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6A\x73\x66\x6F\x72\x63\x65","\x6D\x6F\x6D\x65\x6E\x74","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x50\x61\x73\x73\x65\x64\x20\x70\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x20\x61\x72\x65\x20\x6E\x6F\x74\x20\x65\x6E\x6F\x75\x67\x68\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x74\x69\x63\x6B\x65\x74\x3A\x20\x6D\x69\x73\x73\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64\x20\x6F\x72\x20\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x49\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x41\x63\x63\x6F\x75\x6E\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6C\x6F\x67\x69\x6E\x2E\x73\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x2E\x63\x6F\x6D","\x63\x6C\x69\x65\x6E\x74\x49\x64","\x63\x6C\x69\x65\x6E\x74\x53\x65\x63\x72\x65\x74","\x73\x65\x63\x75\x72\x69\x74\x79\x54\x6F\x6B\x65\x6E","\x63\x6F\x6E\x63\x61\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x73\x65\x72\x76\x65\x72\x55\x52\x4C","\x73\x65\x72\x76\x65\x72\x55\x72\x6C","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x6C\x6F\x67\x69\x6E","\x71\x75\x65\x75\x65","\x6E\x61\x6D\x65","\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x6F\x72\x6D\x61\x74","\x66\x69\x6E\x64\x4F\x6E\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x51\x75\x65\x75\x65","\x72\x65\x63\x6F\x72\x64\x45\x6E\x61\x62\x6C\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x51\x75\x65\x75\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x6F\x72\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x6E\x6F\x74\x20\x65\x6E\x61\x62\x6C\x65\x64","\x72\x6F\x75\x74\x65\x49\x64","\x69\x64","\x72\x65\x63\x6F\x72\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x52\x6F\x75\x74\x65\x20\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x52\x6F\x75\x74\x65\x20\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x6F\x72\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x6E\x6F\x74\x20\x65\x6E\x61\x62\x6C\x65\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x65\x78\x65\x63\x75\x74\x65","\x55\x73\x65\x72","\x73\x6F\x62\x6A\x65\x63\x74","","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x76\x6F\x69\x63\x65","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x55\x52\x4C","\x25\x73\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73\x2F\x25\x73\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64\x3F\x74\x79\x70\x65\x3D\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x72\x65\x73\x75\x6C\x74","\x6C\x65\x6E\x67\x74\x68","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x61\x67\x65\x6E\x74","\x4E\x61\x6D\x65","\x66\x69\x72\x73\x74","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x67\x65\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E\x20\x55\x73\x65\x20\x74\x68\x65\x20\x61\x64\x6D\x69\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74","\x69\x64\x65\x6E\x74\x69\x74\x79","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x41\x64\x6D\x69\x6E\x20\x73\x65\x6C\x65\x63\x74\x65\x64","\x75\x73\x65\x72\x5F\x69\x64","\x64\x69\x73\x70\x6C\x61\x79\x5F\x6E\x61\x6D\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x43\x6F\x6E\x74\x61\x63\x74","\x50\x68\x6F\x6E\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x65\x6E\x64\x75\x73\x65\x72","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x4C\x65\x61\x64","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x66\x6F\x75\x6E\x64\x3A","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x43\x6F\x6E\x74\x61\x63\x74\x2F\x4C\x65\x61\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x63\x72\x65\x61\x74\x65","\x4E\x6F\x20\x43\x6F\x6D\x70\x61\x6E\x79","\x4C\x61\x73\x74\x4E\x61\x6D\x65","\x43\x61\x6C\x6C\x65\x72\x20\x2D\x20\x25\x73","\x3C\x75\x6E\x6B\x6E\x6F\x77\x6E\x3E","\x73\x75\x63\x63\x65\x73\x73","\x5B\x53\x61\x6C\x65\x73\x66\x6F\x72\x63\x65\x5D\x20\x4C\x65\x61\x64\x20\x63\x72\x65\x61\x74\x65\x64\x3A\x20","\x49\x64","\x75\x74\x63","\x76\x61\x6C\x75\x65","\x66\x6F\x72\x45\x61\x63\x68","\x54\x61\x73\x6B","\x53\x75\x62\x6A\x65\x63\x74","\x73\x6F\x72\x74\x42\x79","\x74\x79\x70\x65","\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x74\x65\x6E\x74","\x70\x75\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65","\x63\x75\x73\x74\x6F\x6D\x56\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65","\x20","\x6A\x6F\x69\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6B\x65\x79\x56\x61\x6C\x75\x65","\x6B\x65\x79\x54\x79\x70\x65","\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","\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"];_0x6e18[0];var _=require(_0x6e18[1]);var util=require(_0x6e18[2]);var jsforce=require(_0x6e18[3]);var moment=require(_0x6e18[4]);var SalesforceIntegration=require(_0x6e18[6])[_0x6e18[5]];var SalesforceConfiguration=require(_0x6e18[6])[_0x6e18[7]];var ReportIntegration=require(_0x6e18[6])[_0x6e18[8]];var VoiceQueue=require(_0x6e18[6])[_0x6e18[9]];var VoiceExtension=require(_0x6e18[6])[_0x6e18[10]];function Salesforce(){console[_0x6e18[12]](_0x6e18[11])}Salesforce[_0x6e18[14]][_0x6e18[13]]= function(_0x2ae9xb,_0x2ae9xc,_0x2ae9xd,_0x2ae9xe,_0x2ae9xf,_0x2ae9x10){var _0x2ae9x11={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined};if(!_0x2ae9xb|| !_0x2ae9xc){console[_0x6e18[16]](_0x6e18[15]);return};SalesforceConfiguration[_0x6e18[19]]({where:{id:_0x2ae9xc,AccountId:_0x2ae9xb},include:[{all:true,include:[{all:true}]}]})[_0x6e18[18]](handleEntityNotFound())[_0x6e18[18]](handleConnection(_0x2ae9x11))[_0x6e18[18]](searchQueue(_0x2ae9xf))[_0x6e18[18]](handleQueueRecordings(_0x2ae9x11,_0x2ae9xf))[_0x6e18[18]](searchRoute(_0x2ae9xf))[_0x6e18[18]](handleOutboundRecordings(_0x2ae9x11,_0x2ae9xf))[_0x6e18[18]](searchAgent(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf))[_0x6e18[18]](handleAgent(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf))[_0x6e18[18]](searchAdmin(_0x2ae9x11))[_0x6e18[18]](handleAdmin(_0x2ae9x11))[_0x6e18[18]](searchContact(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xe))[_0x6e18[18]](handleContact(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xe))[_0x6e18[18]](searchLead(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xe))[_0x6e18[18]](handleLead(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xe))[_0x6e18[18]](leadCreation(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xe))[_0x6e18[18]](handleLeadCreation(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xe))[_0x6e18[18]](taskCreation(_0x2ae9x11,_0x2ae9xf,_0x2ae9x10))[_0x6e18[18]](handleTaskDisplay(_0x2ae9x11))[_0x6e18[18]](handleReportIntegration(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xb))[_0x6e18[18]](handleEnd(_0x2ae9x11))[_0x6e18[17]](handleError(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xb))};function handleEntityNotFound(){return function(_0x2ae9x13){if(!_0x2ae9x13){return null};return _0x2ae9x13}}function handleConnection(_0x2ae9x11){return function(_0x2ae9x15){_0x2ae9x11[_0x6e18[20]]= new jsforce.Connection({oauth2:{loginUrl:_0x2ae9x15[_0x6e18[22]][_0x6e18[21]]?_0x2ae9x15[_0x6e18[22]][_0x6e18[21]]:_0x6e18[23],clientId:_0x2ae9x15[_0x6e18[22]][_0x6e18[24]],clientSecret:_0x2ae9x15[_0x6e18[22]][_0x6e18[25]]}});var _0x2ae9x16=_0x2ae9x15[_0x6e18[22]][_0x6e18[28]][_0x6e18[27]](_0x2ae9x15[_0x6e18[22]][_0x6e18[26]]);_0x2ae9x11[_0x6e18[29]]= _0x2ae9x15;_0x2ae9x11[_0x6e18[30]]= _0x2ae9x15[_0x6e18[22]][_0x6e18[31]];return _0x2ae9x11[_0x6e18[20]][_0x6e18[33]](_0x2ae9x15[_0x6e18[22]][_0x6e18[32]],_0x2ae9x16)}}function searchQueue(_0x2ae9xf){return function(){if(_0x2ae9xf[_0x6e18[34]]){return VoiceQueue[_0x6e18[37]]({where:{name:_0x2ae9xf[_0x6e18[34]]},attributes:[_0x6e18[35],_0x6e18[36]]})}else {return}}}function handleQueueRecordings(_0x2ae9x11,_0x2ae9xf){return function(_0x2ae9x19){if(_0x2ae9xf[_0x6e18[34]]){if(_0x2ae9x19&& _0x2ae9x19[_0x6e18[36]]){console[_0x6e18[12]](_0x6e18[38],_0x2ae9x19[_0x6e18[35]]);_0x2ae9x11[_0x6e18[39]]= true}else {_0x2ae9x11[_0x6e18[39]]= false;console[_0x6e18[12]](_0x6e18[40])}};return}}function searchRoute(_0x2ae9xf){return function(){if(_0x2ae9xf[_0x6e18[41]]){return VoiceExtension[_0x6e18[37]]({where:{id:_0x2ae9xf[_0x6e18[41]]},attributes:[_0x6e18[42],_0x6e18[43]]})}else {return}}}function handleOutboundRecordings(_0x2ae9x11,_0x2ae9xf){return function(_0x2ae9x1c){if(_0x2ae9xf[_0x6e18[41]]){if(_0x2ae9x1c&& _0x2ae9x1c[_0x6e18[43]]){console[_0x6e18[12]](_0x6e18[44],_0x2ae9x1c[_0x6e18[42]]);_0x2ae9x11[_0x6e18[39]]= true}else {_0x2ae9x11[_0x6e18[39]]= false;console[_0x6e18[12]](_0x6e18[45])}};return}}function searchAgent(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf){return function(){console[_0x6e18[12]](_0x6e18[46],getValueFromPropertyName(_0x2ae9xf,getAgentSearchPropertyFromChannel(_0x2ae9xd)));return _0x2ae9x11[_0x6e18[20]][_0x6e18[49]](_0x6e18[48])[_0x6e18[19]]({Name:getValueFromPropertyName(_0x2ae9xf,getAgentSearchPropertyFromChannel(_0x2ae9xd))},{Id:1,Username:1,Name:1})[_0x6e18[47]]()}}function getAgentSearchPropertyFromChannel(_0x2ae9xd){var _0x2ae9x1f=_0x6e18[50];if(_0x2ae9xd){switch(_0x2ae9xd){case _0x6e18[52]:_0x2ae9x1f= _0x6e18[51];break;default:_0x2ae9x1f= _0x6e18[51];console[_0x6e18[16]](_0x6e18[53],_0x2ae9xd)}};return _0x2ae9x1f}function getValueFromPropertyName(_0x2ae9xf,_0x2ae9x1f,_0x2ae9x11){if(_0x2ae9x1f=== _0x6e18[54]){if(_0x2ae9x11&& _0x2ae9x11[_0x6e18[39]]&& _0x2ae9x11[_0x6e18[30]]){return util[_0x6e18[57]](_0x6e18[55],stripTrailingSlash(_0x2ae9x11[_0x6e18[30]]),_0x2ae9xf[_0x6e18[56]])}else {return null}}else {return _[_0x6e18[58]](_0x2ae9xf,_0x2ae9x1f)}}function handleAgent(_0x2ae9x11,_0x2ae9xd,_0x2ae9x22){return function(_0x2ae9xf){if(_0x2ae9xf[_0x6e18[59]]> 0){console[_0x6e18[12]](_0x6e18[60],getValueFromPropertyName(_0x2ae9x22,getAgentSearchPropertyFromChannel(_0x2ae9xd)));_0x2ae9x11[_0x6e18[61]]= getMatchObject(_0x2ae9xf,_0x6e18[62],getValueFromPropertyName(_0x2ae9x22,getAgentSearchPropertyFromChannel(_0x2ae9xd)));return _0x2ae9x11[_0x6e18[61]]};return}}function getMatchObject(_0x2ae9x24,_0x2ae9x1f,_0x2ae9x25){var _0x2ae9x26=_[_0x6e18[19]](_0x2ae9x24,{property:_0x2ae9x25});if(_0x2ae9x26){return _0x2ae9x26};return _[_0x6e18[63]](_0x2ae9x24)}function searchAdmin(_0x2ae9x11){return function(_0x2ae9xf){if(_0x2ae9xf){return};console[_0x6e18[12]](_0x6e18[64]);return _0x2ae9x11[_0x6e18[20]][_0x6e18[65]]()}}function handleAdmin(_0x2ae9x11){return function(_0x2ae9xf){if(!_0x2ae9xf){return};if(_0x2ae9xf){console[_0x6e18[12]](_0x6e18[66]);_0x2ae9x11[_0x6e18[61]]= {Id:_0x2ae9xf[_0x6e18[67]],Name:_0x2ae9xf[_0x6e18[68]],Username:_0x2ae9xf[_0x6e18[32]]}};return}}function searchContact(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xe){return function(){console[_0x6e18[12]](_0x6e18[69],getValueFromPropertyName(_0x2ae9xf,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)));var _0x2ae9x2a={};_0x2ae9x2a[getEndUserSearchQueryFromChannel(_0x2ae9xd)]= getValueFromPropertyName(_0x2ae9xf,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe));return _0x2ae9x11[_0x6e18[20]][_0x6e18[49]](_0x6e18[70])[_0x6e18[19]](_0x2ae9x2a,{Id:1,Name:1})[_0x6e18[47]]()}}function getEndUserSearchQueryFromChannel(_0x2ae9xd){var _0x2ae9x1f=_0x6e18[50];if(_0x2ae9xd){switch(_0x2ae9xd){case _0x6e18[52]:_0x2ae9x1f= _0x6e18[71];break;default:_0x2ae9x1f= _0x6e18[71];console[_0x6e18[16]](_0x6e18[53],_0x2ae9xd)}};return _0x2ae9x1f}function getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe){var _0x2ae9x1f=_0x6e18[50];if(_0x2ae9xd){switch(_0x2ae9xd){case _0x6e18[52]:if(_0x2ae9xe=== _0x6e18[72]){_0x2ae9x1f= _0x6e18[73]}else {if(_0x2ae9xe=== _0x6e18[34]){_0x2ae9x1f= _0x6e18[74]}};break;default:_0x2ae9x1f= _0x6e18[74];console[_0x6e18[16]](_0x6e18[53],_0x2ae9xd)}};return _0x2ae9x1f}function getEndUserNamePropertyFromChannel(_0x2ae9xd,_0x2ae9xe){var _0x2ae9x1f=_0x6e18[50];if(_0x2ae9xd){switch(_0x2ae9xd){case _0x6e18[52]:if(_0x2ae9xe=== _0x6e18[72]){_0x2ae9x1f= _0x6e18[75]}else {if(_0x2ae9xe=== _0x6e18[34]){_0x2ae9x1f= _0x6e18[76]}};break;default:_0x2ae9x1f= _0x6e18[76];console[_0x6e18[16]](_0x6e18[53],_0x2ae9xd)}};return _0x2ae9x1f}function handleContact(_0x2ae9x11,_0x2ae9xd,_0x2ae9x22,_0x2ae9xe){return function(_0x2ae9xf){if(_0x2ae9xf[_0x6e18[59]]> 0){console[_0x6e18[12]](_0x6e18[77],getValueFromPropertyName(_0x2ae9x22,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)));_0x2ae9x11[_0x6e18[78]]= _0x2ae9xf[0];return _0x2ae9x11[_0x6e18[78]]};console[_0x6e18[12]](_0x6e18[79],getValueFromPropertyName(_0x2ae9x22,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)));return}}function searchLead(_0x2ae9x11,_0x2ae9xd,_0x2ae9x22,_0x2ae9xe){return function(_0x2ae9xf){if(!_0x2ae9xf){console[_0x6e18[12]](_0x6e18[80],getValueFromPropertyName(_0x2ae9x22,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)));var _0x2ae9x2a={};_0x2ae9x2a[getEndUserSearchQueryFromChannel(_0x2ae9xd)]= getValueFromPropertyName(_0x2ae9x22,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe));return _0x2ae9x11[_0x6e18[20]][_0x6e18[49]](_0x6e18[81])[_0x6e18[19]](_0x2ae9x2a,{Id:1,Name:1})[_0x6e18[47]]()};return}}function handleLead(_0x2ae9x11,_0x2ae9xd,_0x2ae9x22,_0x2ae9xe){return function(_0x2ae9xf){if(_0x2ae9xf&& _0x2ae9xf[_0x6e18[59]]> 0){console[_0x6e18[12]](_0x6e18[82],getValueFromPropertyName(_0x2ae9x22,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)));_0x2ae9x11[_0x6e18[78]]= _0x2ae9xf[0];return _0x2ae9x11[_0x6e18[78]]};return}}function leadCreation(_0x2ae9x11,_0x2ae9xd,_0x2ae9x22,_0x2ae9xe){return function(_0x2ae9xf){if(_0x2ae9xf|| _0x2ae9x11[_0x6e18[78]]){return};console[_0x6e18[12]](_0x6e18[83],getValueFromPropertyName(_0x2ae9x22,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)));return _0x2ae9x11[_0x6e18[20]][_0x6e18[49]](_0x6e18[81])[_0x6e18[84]](getJsonForEndUserCreation(_0x2ae9xd,_0x2ae9x22,_0x2ae9xe))}}function getJsonForEndUserCreation(_0x2ae9xd,_0x2ae9xf,_0x2ae9xe){var _0x2ae9x33={Company:_0x6e18[85]};switch(_0x2ae9xd){case _0x6e18[52]:if(_0x2ae9xe=== _0x6e18[34]){if(isValidName(_0x2ae9xf[_0x6e18[76]])){_0x2ae9x33[_0x6e18[86]]= getValueFromPropertyName(_0x2ae9xf,getEndUserNamePropertyFromChannel(_0x2ae9xd,_0x2ae9xe))}else {_0x2ae9x33[_0x6e18[86]]= util[_0x6e18[57]](_0x6e18[87],getValueFromPropertyName(_0x2ae9xf,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)))}}else {if(_0x2ae9xe=== _0x6e18[72]){if(isValidName(_0x2ae9xf[_0x6e18[75]])){_0x2ae9x33[_0x6e18[86]]= getValueFromPropertyName(_0x2ae9xf,getEndUserNamePropertyFromChannel(_0x2ae9xd,_0x2ae9xe))}else {_0x2ae9x33[_0x6e18[86]]= util[_0x6e18[57]](_0x6e18[87],getValueFromPropertyName(_0x2ae9xf,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)))}}};_0x2ae9x33[_0x6e18[71]]= getValueFromPropertyName(_0x2ae9xf,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe));break;default:console[_0x6e18[16]](_0x6e18[53],_0x2ae9xd)};return _0x2ae9x33}function isValidName(_0x2ae9x35){return _0x2ae9x35&& _0x2ae9x35!== _0x6e18[88]}function handleLeadCreation(_0x2ae9x11,_0x2ae9xd,_0x2ae9x22,_0x2ae9xe){return function(_0x2ae9xf){if(!_0x2ae9xf){return};if(_0x2ae9xf&& _0x2ae9xf[_0x6e18[89]]){console[_0x6e18[12]](_0x6e18[90],getValueFromPropertyName(_0x2ae9x22,getEndUserSearchPropertyFromChannel(_0x2ae9xd,_0x2ae9xe)));_0x2ae9x11[_0x6e18[78]]= {Id:_0x2ae9xf[_0x6e18[42]]}};return}}function taskCreation(_0x2ae9x11,_0x2ae9x22,_0x2ae9x10){return function(){var _0x2ae9x38={WhoId:_0x2ae9x11[_0x6e18[78]][_0x6e18[91]],OwnerId:_0x2ae9x11[_0x6e18[61]][_0x6e18[91]],ActivityDate:moment[_0x6e18[92]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0x2ae9x11,_0x2ae9x22,_0x2ae9x10),Description:createDescriptionFromConfiguration(_0x2ae9x11,_0x2ae9x22,_0x2ae9x10)};var _0x2ae9x39=createCustomFieldsFromConfiguration(_0x2ae9x11,_0x2ae9x22,_0x2ae9x10);if(_0x2ae9x39[_0x6e18[59]]> 0){_[_0x6e18[94]](_0x2ae9x39,function(_0x2ae9x3a){_0x2ae9x38[_0x2ae9x3a[_0x6e18[42]]]= _0x2ae9x3a[_0x6e18[93]]})};return _0x2ae9x11[_0x6e18[20]][_0x6e18[49]](_0x6e18[95])[_0x6e18[84]](_0x2ae9x38)}}function createSubjectFromConfiguration(_0x2ae9x11,_0x2ae9x22,_0x2ae9x10){var _0x2ae9x3c=_0x6e18[50];var _0x2ae9x3d=[];if(_0x2ae9x11[_0x6e18[29]][_0x6e18[96]][_0x6e18[59]]> 0){var _0x2ae9x3e=_[_0x6e18[97]](_0x2ae9x11[_0x6e18[29]].Subject,[_0x6e18[42]]);_[_0x6e18[94]](_0x2ae9x3e,function(_0x2ae9x3f){if(_0x2ae9x3f[_0x6e18[98]]=== _0x6e18[99]){_0x2ae9x3d[_0x6e18[101]](_0x2ae9x3f[_0x6e18[100]])}else {if(_0x2ae9x3f[_0x6e18[98]]=== _0x6e18[102]&& _0x2ae9x3f[_0x6e18[103]]){var _0x2ae9x40=getValueFromPropertyName(_0x2ae9x22,_0x2ae9x3f[_0x6e18[103]],_0x2ae9x11);if(_0x2ae9x40){_0x2ae9x3d[_0x6e18[101]](_0x2ae9x40.toString())}}else {if(_0x2ae9x3f[_0x6e18[98]]=== _0x6e18[104]&& _0x2ae9x3f[_0x6e18[105]]&& _0x2ae9x3f[_0x6e18[105]][_0x6e18[35]]){_0x2ae9x10[_0x2ae9x3f[_0x6e18[105]][_0x6e18[35]]]&& _0x2ae9x3d[_0x6e18[101]](_0x2ae9x10[_0x2ae9x3f[_0x6e18[105]][_0x6e18[35]]].toString())}}}});_0x2ae9x3c= _0x2ae9x3d[_0x6e18[107]](_0x6e18[106])};return _0x2ae9x3c}function createDescriptionFromConfiguration(_0x2ae9x11,_0x2ae9x22,_0x2ae9x10){var _0x2ae9x42=_0x6e18[50];var _0x2ae9x3d=[];if(_0x2ae9x11[_0x6e18[29]][_0x6e18[108]][_0x6e18[59]]> 0){var _0x2ae9x43=_[_0x6e18[97]](_0x2ae9x11[_0x6e18[29]].Description,[_0x6e18[42]]);_[_0x6e18[94]](_0x2ae9x43,function(_0x2ae9x3f){if(_0x2ae9x3f[_0x6e18[98]]=== _0x6e18[99]){_0x2ae9x3d[_0x6e18[101]](_0x2ae9x3f[_0x6e18[100]])}else {if(_0x2ae9x3f[_0x6e18[98]]=== _0x6e18[109]){if(_0x2ae9x3f[_0x6e18[110]]=== _0x6e18[99]&& _0x2ae9x3f[_0x6e18[111]]){_0x2ae9x3d[_0x6e18[101]](util[_0x6e18[57]](_0x6e18[112],_0x2ae9x3f[_0x6e18[111]],_0x2ae9x3f[_0x6e18[113]]))}else {if(_0x2ae9x3f[_0x6e18[110]]=== _0x6e18[102]&& _0x2ae9x3f[_0x6e18[103]]&& _0x2ae9x3f[_0x6e18[111]]){var _0x2ae9x40=getValueFromPropertyName(_0x2ae9x22,_0x2ae9x3f[_0x6e18[103]],_0x2ae9x11);if(_0x2ae9x40){_0x2ae9x3d[_0x6e18[101]](util[_0x6e18[57]](_0x6e18[112],_0x2ae9x3f[_0x6e18[111]],_0x2ae9x40.toString()))}}else {if(_0x2ae9x3f[_0x6e18[110]]=== _0x6e18[104]&& _0x2ae9x3f[_0x6e18[105]]&& _0x2ae9x3f[_0x6e18[105]][_0x6e18[35]]&& _0x2ae9x3f[_0x6e18[111]]){_0x2ae9x10[_0x2ae9x3f[_0x6e18[105]][_0x6e18[35]]]&& _0x2ae9x3d[_0x6e18[101]](util[_0x6e18[57]](_0x6e18[112],_0x2ae9x3f[_0x6e18[111]],_0x2ae9x10[_0x2ae9x3f[_0x6e18[105]][_0x6e18[35]]]))}}}}}});_0x2ae9x42= _0x2ae9x3d[_0x6e18[107]](_0x6e18[114])};return _0x2ae9x42}function createCustomFieldsFromConfiguration(_0x2ae9x11,_0x2ae9x22,_0x2ae9x10){var _0x2ae9x45=[];var _0x2ae9x46=[];if(_0x2ae9x11[_0x6e18[29]][_0x6e18[115]][_0x6e18[59]]> 0){_0x2ae9x45= _0x2ae9x11[_0x6e18[29]][_0x6e18[115]];_[_0x6e18[94]](_0x2ae9x45,function(_0x2ae9x3a){if(_0x2ae9x3a[_0x6e18[98]]=== _0x6e18[99]&& _0x2ae9x3a[_0x6e18[116]]){_0x2ae9x46[_0x6e18[101]]({id:_0x2ae9x3a[_0x6e18[116]],value:_0x2ae9x3a[_0x6e18[100]]})}else {if(_0x2ae9x3a[_0x6e18[98]]=== _0x6e18[102]&& _0x2ae9x3a[_0x6e18[103]]&& _0x2ae9x3a[_0x6e18[116]]){var _0x2ae9x40=getValueFromPropertyName(_0x2ae9x22,_0x2ae9x3a[_0x6e18[103]],_0x2ae9x11);if(_0x2ae9x40){_0x2ae9x46[_0x6e18[101]]({id:_0x2ae9x3a[_0x6e18[116]],value:_0x2ae9x40.toString()})}}else {if(_0x2ae9x3a[_0x6e18[98]]=== _0x6e18[104]&& _0x2ae9x3a[_0x6e18[116]]&& _0x2ae9x3a[_0x6e18[105]]&& _0x2ae9x3a[_0x6e18[105]][_0x6e18[35]]){_0x2ae9x10[_0x2ae9x3a[_0x6e18[105]][_0x6e18[35]]]&& _0x2ae9x46[_0x6e18[101]]({id:_0x2ae9x3a[_0x6e18[116]],value:_0x2ae9x10[_0x2ae9x3a[_0x6e18[105]][_0x6e18[35]]].toString()})}}}})};return _0x2ae9x46}function handleTaskDisplay(_0x2ae9x11){return function(_0x2ae9xf){if(_0x2ae9xf&& _0x2ae9xf[_0x6e18[89]]){console[_0x6e18[12]](_0x6e18[117],_0x2ae9xf[_0x6e18[42]]);_0x2ae9x11[_0x6e18[118]]= _0x2ae9xf[_0x6e18[42]];return};return}}function handleReportIntegration(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xb){return function(){delete _0x2ae9xf[_0x6e18[42]];_0x2ae9xf[_0x6e18[119]]= _0x6e18[120];_0x2ae9xf[_0x6e18[121]]= _0x2ae9xd;_0x2ae9xf[_0x6e18[122]]= _0x6e18[89];_0x2ae9xf[_0x6e18[123]]= _0x2ae9x11[_0x6e18[118]];_0x2ae9xf[_0x6e18[124]]= _0x2ae9xb;_0x2ae9xf[_0x6e18[125]]= util[_0x6e18[57]](_0x6e18[126],_0x2ae9x11[_0x6e18[20]][_0x6e18[127]],_0x2ae9x11[_0x6e18[118]]);return ReportIntegration[_0x6e18[84]](_0x2ae9xf)}}function handleEnd(_0x2ae9x11,_0x2ae9xf,_0x2ae9xd){return function(){console[_0x6e18[12]](util[_0x6e18[57]](_0x6e18[128],_0x2ae9x11[_0x6e18[118]],_0x2ae9x11[_0x6e18[61]].Id));_0x2ae9x11= undefined;return}}function handleError(_0x2ae9x11,_0x2ae9xd,_0x2ae9xf,_0x2ae9xb){return function(_0x2ae9x4b){console[_0x6e18[16]](_0x6e18[129]);console[_0x6e18[16]](_0x6e18[130],_0x2ae9x4b[_0x6e18[131]]);console[_0x6e18[16]](_0x6e18[132],_0x2ae9x4b[_0x6e18[133]]);_0x2ae9x11= undefined;delete _0x2ae9xf[_0x6e18[42]];_0x2ae9xf[_0x6e18[119]]= _0x6e18[120];_0x2ae9xf[_0x6e18[121]]= _0x2ae9xd;_0x2ae9xf[_0x6e18[122]]= _0x6e18[134];_0x2ae9xf[_0x6e18[124]]= _0x2ae9xb;ReportIntegration[_0x6e18[84]](_0x2ae9xf)[_0x6e18[18]](function(){return})[_0x6e18[17]](function(_0x2ae9x4b){console[_0x6e18[16]](_0x6e18[135]);return})}}function stripTrailingSlash(_0x2ae9x4d){if(_0x2ae9x4d[_0x6e18[136]](-1) === _0x6e18[137]){return _0x2ae9x4d[_0x6e18[136]](0,_0x2ae9x4d[_0x6e18[59]]- 1)};return _0x2ae9x4d}module[_0x6e18[138]]= Salesforce