1 var _0xa4df=["\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\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","\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","\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","\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"];_0xa4df[0];var _=require(_0xa4df[1]);var util=require(_0xa4df[2]);var jsforce=require(_0xa4df[3]);var moment=require(_0xa4df[4]);var SalesforceConfiguration=require(_0xa4df[6])[_0xa4df[5]];var ReportIntegration=require(_0xa4df[6])[_0xa4df[7]];var VoiceQueue=require(_0xa4df[6])[_0xa4df[8]];var VoiceExtension=require(_0xa4df[6])[_0xa4df[9]];var Agent=require(_0xa4df[6])[_0xa4df[10]];function Salesforce(){console[_0xa4df[12]](_0xa4df[11])}Salesforce[_0xa4df[14]][_0xa4df[13]]= function(_0xff6axb,_0xff6axc,_0xff6axd,_0xff6axe,_0xff6axf,_0xff6ax10,_0xff6ax11){var _0xff6ax12={connection:undefined,configuration:undefined,agent:undefined,enduser:undefined,taskId:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0xff6axb|| !_0xff6axc){console[_0xa4df[16]](_0xa4df[15]);return};SalesforceConfiguration[_0xa4df[19]]({where:{id:_0xff6axc,AccountId:_0xff6axb},include:[{all:true,include:[{all:true}]}]})[_0xa4df[18]](handleEntityNotFound())[_0xa4df[18]](handleConnection(_0xff6ax12))[_0xa4df[18]](searchMotionAgent(_0xff6axd,_0xff6axf))[_0xa4df[18]](handleMotionAgent(_0xff6ax12))[_0xa4df[18]](searchQueue(_0xff6axf))[_0xa4df[18]](handleQueueRecordings(_0xff6ax12,_0xff6axf))[_0xa4df[18]](searchRoute(_0xff6axf))[_0xa4df[18]](handleOutboundRecordings(_0xff6ax12,_0xff6axf))[_0xa4df[18]](searchAgent(_0xff6ax12,_0xff6axd,_0xff6axf))[_0xa4df[18]](handleAgent(_0xff6ax12,_0xff6axd,_0xff6axf))[_0xa4df[18]](searchAdmin(_0xff6ax12))[_0xa4df[18]](handleAdmin(_0xff6ax12))[_0xa4df[18]](searchContact(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axe))[_0xa4df[18]](handleContact(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axe))[_0xa4df[18]](searchLead(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axe))[_0xa4df[18]](handleLead(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axe))[_0xa4df[18]](leadCreation(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axe))[_0xa4df[18]](handleLeadCreation(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axe))[_0xa4df[18]](taskCreation(_0xff6ax12,_0xff6axf,_0xff6ax10))[_0xa4df[18]](handleTaskDisplay(_0xff6ax12))[_0xa4df[18]](handleReportIntegration(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axb,_0xff6ax11,_0xff6axe))[_0xa4df[18]](handleEnd(_0xff6ax12))[_0xa4df[17]](handleError(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axb))};function handleEntityNotFound(){return function(_0xff6ax14){if(!_0xff6ax14){return null};return _0xff6ax14}}function handleConnection(_0xff6ax12){return function(_0xff6ax16){_0xff6ax12[_0xa4df[20]]= new jsforce.Connection({oauth2:{loginUrl:_0xff6ax16[_0xa4df[22]][_0xa4df[21]]?_0xff6ax16[_0xa4df[22]][_0xa4df[21]]:_0xa4df[23],clientId:_0xff6ax16[_0xa4df[22]][_0xa4df[24]],clientSecret:_0xff6ax16[_0xa4df[22]][_0xa4df[25]]}});var _0xff6ax17=_0xff6ax16[_0xa4df[22]][_0xa4df[28]][_0xa4df[27]](_0xff6ax16[_0xa4df[22]][_0xa4df[26]]);_0xff6ax12[_0xa4df[29]]= _0xff6ax16;_0xff6ax12[_0xa4df[30]]= _0xff6ax16[_0xa4df[22]][_0xa4df[31]];return _0xff6ax12[_0xa4df[20]][_0xa4df[33]](_0xff6ax16[_0xa4df[22]][_0xa4df[32]],_0xff6ax17)}}function searchMotionAgent(_0xff6axd,_0xff6axf){return function(){var _0xff6ax19=getAgentSearchPropertyFromChannel(_0xff6axd);if(_0xff6axf[_0xa4df[34]](_0xff6ax19)){return Agent[_0xa4df[38]](_0xa4df[37])[_0xa4df[36]]({where:{name:getValueFromPropertyName(_0xff6axf,_0xff6ax19)},attributes:[_0xa4df[35]]})};return}}function handleMotionAgent(_0xff6ax12){return function(_0xff6ax1b){if(_0xff6ax1b&& _0xff6ax1b[_0xa4df[35]]){_0xff6ax12[_0xa4df[39]]= _0xff6ax1b[_0xa4df[35]]};return}}function searchQueue(_0xff6axf){return function(){if(_0xff6axf[_0xa4df[40]]){return VoiceQueue[_0xa4df[36]]({where:{name:_0xff6axf[_0xa4df[40]]},attributes:[_0xa4df[41],_0xa4df[42]]})}else {return}}}function handleQueueRecordings(_0xff6ax12,_0xff6axf){return function(_0xff6ax1e){if(_0xff6axf[_0xa4df[40]]){if(_0xff6ax1e&& _0xff6ax1e[_0xa4df[42]]){console[_0xa4df[12]](_0xa4df[43],_0xff6ax1e[_0xa4df[41]]);_0xff6ax12[_0xa4df[44]]= true}else {_0xff6ax12[_0xa4df[44]]= false;console[_0xa4df[12]](_0xa4df[45])}};return}}function searchRoute(_0xff6axf){return function(){if(_0xff6axf[_0xa4df[46]]){return VoiceExtension[_0xa4df[36]]({where:{id:_0xff6axf[_0xa4df[46]]},attributes:[_0xa4df[47],_0xa4df[48]]})}else {return}}}function handleOutboundRecordings(_0xff6ax12,_0xff6axf){return function(_0xff6ax21){if(_0xff6axf[_0xa4df[46]]){if(_0xff6ax21&& _0xff6ax21[_0xa4df[48]]){console[_0xa4df[12]](_0xa4df[49],_0xff6ax21[_0xa4df[47]]);_0xff6ax12[_0xa4df[44]]= true}else {_0xff6ax12[_0xa4df[44]]= false;console[_0xa4df[12]](_0xa4df[50])}};return}}function searchAgent(_0xff6ax12,_0xff6axd,_0xff6axf){return function(){if(_0xff6ax12[_0xa4df[39]]){console[_0xa4df[12]](_0xa4df[51],_0xff6ax12[_0xa4df[39]]);return _0xff6ax12[_0xa4df[20]][_0xa4df[53]](_0xa4df[10])[_0xa4df[19]]({Name:_0xff6ax12[_0xa4df[39]]},{Id:1,Username:1,Name:1})[_0xa4df[52]]()};return}}function getAgentSearchPropertyFromChannel(_0xff6axd){var _0xff6ax24=_0xa4df[54];if(_0xff6axd){switch(_0xff6axd){case _0xa4df[56]:_0xff6ax24= _0xa4df[55];break;default:_0xff6ax24= _0xa4df[55];console[_0xa4df[16]](_0xa4df[57],_0xff6axd)}};return _0xff6ax24}function getValueFromPropertyName(_0xff6axf,_0xff6ax24,_0xff6ax12){if(_0xff6ax24=== _0xa4df[58]){if(_0xff6ax12&& _0xff6ax12[_0xa4df[44]]&& _0xff6ax12[_0xa4df[30]]){return util[_0xa4df[61]](_0xa4df[59],stripTrailingSlash(_0xff6ax12[_0xa4df[30]]),_0xff6axf[_0xa4df[60]])}else {return null}}else {return _[_0xa4df[62]](_0xff6axf,_0xff6ax24)}}function handleAgent(_0xff6ax12,_0xff6axd,_0xff6ax27){return function(_0xff6axf){if(_0xff6axf&& _0xff6axf[_0xa4df[63]]> 0){console[_0xa4df[12]](_0xa4df[64],_0xff6ax12[_0xa4df[39]]);_0xff6ax12[_0xa4df[37]]= getMatchObject(_0xff6axf,_0xa4df[65],_0xff6ax12[_0xa4df[39]]);return _0xff6ax12[_0xa4df[37]]};return}}function getMatchObject(_0xff6ax29,_0xff6ax24,_0xff6ax2a){var _0xff6ax2b=_[_0xa4df[19]](_0xff6ax29,{property:_0xff6ax2a});if(_0xff6ax2b){return _0xff6ax2b};return _[_0xa4df[66]](_0xff6ax29)}function searchAdmin(_0xff6ax12){return function(_0xff6axf){if(_0xff6axf){return};console[_0xa4df[12]](_0xa4df[67]);return _0xff6ax12[_0xa4df[20]][_0xa4df[68]]()}}function handleAdmin(_0xff6ax12){return function(_0xff6axf){if(!_0xff6axf){return};if(_0xff6axf){console[_0xa4df[12]](_0xa4df[69]);_0xff6ax12[_0xa4df[37]]= {Id:_0xff6axf[_0xa4df[70]],Name:_0xff6axf[_0xa4df[71]],Username:_0xff6axf[_0xa4df[32]]}};return}}function searchContact(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axe){return function(){console[_0xa4df[12]](_0xa4df[72],getValueFromPropertyName(_0xff6axf,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)));var _0xff6ax2f={};_0xff6ax2f[getEndUserSearchQueryFromChannel(_0xff6axd)]= getValueFromPropertyName(_0xff6axf,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe));return _0xff6ax12[_0xa4df[20]][_0xa4df[53]](_0xa4df[73])[_0xa4df[19]](_0xff6ax2f,{Id:1,Name:1})[_0xa4df[52]]()}}function getEndUserSearchQueryFromChannel(_0xff6axd){var _0xff6ax24=_0xa4df[54];if(_0xff6axd){switch(_0xff6axd){case _0xa4df[56]:_0xff6ax24= _0xa4df[74];break;default:_0xff6ax24= _0xa4df[74];console[_0xa4df[16]](_0xa4df[57],_0xff6axd)}};return _0xff6ax24}function getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe){var _0xff6ax24=_0xa4df[54];if(_0xff6axd){switch(_0xff6axd){case _0xa4df[56]:if(_0xff6axe=== _0xa4df[75]){_0xff6ax24= _0xa4df[76]}else {if(_0xff6axe=== _0xa4df[40]){_0xff6ax24= _0xa4df[77]}};break;default:_0xff6ax24= _0xa4df[77];console[_0xa4df[16]](_0xa4df[57],_0xff6axd)}};return _0xff6ax24}function getEndUserNamePropertyFromChannel(_0xff6axd,_0xff6axe){var _0xff6ax24=_0xa4df[54];if(_0xff6axd){switch(_0xff6axd){case _0xa4df[56]:if(_0xff6axe=== _0xa4df[75]){_0xff6ax24= _0xa4df[78]}else {if(_0xff6axe=== _0xa4df[40]){_0xff6ax24= _0xa4df[79]}};break;default:_0xff6ax24= _0xa4df[79];console[_0xa4df[16]](_0xa4df[57],_0xff6axd)}};return _0xff6ax24}function handleContact(_0xff6ax12,_0xff6axd,_0xff6ax27,_0xff6axe){return function(_0xff6axf){if(_0xff6axf[_0xa4df[63]]> 0){console[_0xa4df[12]](_0xa4df[80],getValueFromPropertyName(_0xff6ax27,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)));_0xff6ax12[_0xa4df[81]]= _0xff6axf[0];return _0xff6ax12[_0xa4df[81]]};console[_0xa4df[12]](_0xa4df[82],getValueFromPropertyName(_0xff6ax27,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)));return}}function searchLead(_0xff6ax12,_0xff6axd,_0xff6ax27,_0xff6axe){return function(_0xff6axf){if(!_0xff6axf){console[_0xa4df[12]](_0xa4df[83],getValueFromPropertyName(_0xff6ax27,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)));var _0xff6ax2f={};_0xff6ax2f[getEndUserSearchQueryFromChannel(_0xff6axd)]= getValueFromPropertyName(_0xff6ax27,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe));return _0xff6ax12[_0xa4df[20]][_0xa4df[53]](_0xa4df[84])[_0xa4df[19]](_0xff6ax2f,{Id:1,Name:1})[_0xa4df[52]]()};return}}function handleLead(_0xff6ax12,_0xff6axd,_0xff6ax27,_0xff6axe){return function(_0xff6axf){if(_0xff6axf&& _0xff6axf[_0xa4df[63]]> 0){console[_0xa4df[12]](_0xa4df[85],getValueFromPropertyName(_0xff6ax27,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)));_0xff6ax12[_0xa4df[81]]= _0xff6axf[0];return _0xff6ax12[_0xa4df[81]]};return}}function leadCreation(_0xff6ax12,_0xff6axd,_0xff6ax27,_0xff6axe){return function(_0xff6axf){if(_0xff6axf|| _0xff6ax12[_0xa4df[81]]){return};console[_0xa4df[12]](_0xa4df[86],getValueFromPropertyName(_0xff6ax27,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)));return _0xff6ax12[_0xa4df[20]][_0xa4df[53]](_0xa4df[84])[_0xa4df[87]](getJsonForEndUserCreation(_0xff6axd,_0xff6ax27,_0xff6axe))}}function getJsonForEndUserCreation(_0xff6axd,_0xff6axf,_0xff6axe){var _0xff6ax38={Company:_0xa4df[88]};switch(_0xff6axd){case _0xa4df[56]:if(_0xff6axe=== _0xa4df[40]){if(isValidName(_0xff6axf[_0xa4df[79]])){_0xff6ax38[_0xa4df[89]]= getValueFromPropertyName(_0xff6axf,getEndUserNamePropertyFromChannel(_0xff6axd,_0xff6axe))}else {_0xff6ax38[_0xa4df[89]]= util[_0xa4df[61]](_0xa4df[90],getValueFromPropertyName(_0xff6axf,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)))}}else {if(_0xff6axe=== _0xa4df[75]){if(isValidName(_0xff6axf[_0xa4df[78]])){_0xff6ax38[_0xa4df[89]]= getValueFromPropertyName(_0xff6axf,getEndUserNamePropertyFromChannel(_0xff6axd,_0xff6axe))}else {_0xff6ax38[_0xa4df[89]]= util[_0xa4df[61]](_0xa4df[90],getValueFromPropertyName(_0xff6axf,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)))}}};_0xff6ax38[_0xa4df[74]]= getValueFromPropertyName(_0xff6axf,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe));break;default:console[_0xa4df[16]](_0xa4df[57],_0xff6axd)};return _0xff6ax38}function isValidName(_0xff6ax3a){return _0xff6ax3a&& _0xff6ax3a!== _0xa4df[91]}function handleLeadCreation(_0xff6ax12,_0xff6axd,_0xff6ax27,_0xff6axe){return function(_0xff6axf){if(!_0xff6axf){return};if(_0xff6axf&& _0xff6axf[_0xa4df[92]]){console[_0xa4df[12]](_0xa4df[93],getValueFromPropertyName(_0xff6ax27,getEndUserSearchPropertyFromChannel(_0xff6axd,_0xff6axe)));_0xff6ax12[_0xa4df[81]]= {Id:_0xff6axf[_0xa4df[47]]}};return}}function taskCreation(_0xff6ax12,_0xff6ax27,_0xff6ax10){return function(){var _0xff6ax3d={WhoId:_0xff6ax12[_0xa4df[81]][_0xa4df[94]],OwnerId:_0xff6ax12[_0xa4df[37]][_0xa4df[94]],ActivityDate:moment[_0xa4df[95]](),IsReminderSet:false,IsRecurrence:false,Subject:createSubjectFromConfiguration(_0xff6ax12,_0xff6ax27,_0xff6ax10),Description:createDescriptionFromConfiguration(_0xff6ax12,_0xff6ax27,_0xff6ax10)};var _0xff6ax3e=createCustomFieldsFromConfiguration(_0xff6ax12,_0xff6ax27,_0xff6ax10);if(_0xff6ax3e[_0xa4df[63]]> 0){_[_0xa4df[97]](_0xff6ax3e,function(_0xff6ax3f){_0xff6ax3d[_0xff6ax3f[_0xa4df[47]]]= _0xff6ax3f[_0xa4df[96]]})};return _0xff6ax12[_0xa4df[20]][_0xa4df[53]](_0xa4df[98])[_0xa4df[87]](_0xff6ax3d)}}function createSubjectFromConfiguration(_0xff6ax12,_0xff6ax27,_0xff6ax10){var _0xff6ax41=_0xa4df[54];var _0xff6ax42=[];if(_0xff6ax12[_0xa4df[29]][_0xa4df[99]][_0xa4df[63]]> 0){var _0xff6ax43=_[_0xa4df[100]](_0xff6ax12[_0xa4df[29]].Subject,[_0xa4df[47]]);_[_0xa4df[97]](_0xff6ax43,function(_0xff6ax44){if(_0xff6ax44[_0xa4df[101]]=== _0xa4df[102]){_0xff6ax42[_0xa4df[104]](_0xff6ax44[_0xa4df[103]])}else {if(_0xff6ax44[_0xa4df[101]]=== _0xa4df[105]&& _0xff6ax44[_0xa4df[106]]){var _0xff6ax45=getValueFromPropertyName(_0xff6ax27,_0xff6ax44[_0xa4df[106]],_0xff6ax12);if(_0xff6ax45){_0xff6ax42[_0xa4df[104]](_0xff6ax45.toString())}}else {if(_0xff6ax44[_0xa4df[101]]=== _0xa4df[107]&& _0xff6ax44[_0xa4df[108]]&& _0xff6ax44[_0xa4df[108]][_0xa4df[41]]){_0xff6ax10[_0xff6ax44[_0xa4df[108]][_0xa4df[41]]]&& _0xff6ax42[_0xa4df[104]](_0xff6ax10[_0xff6ax44[_0xa4df[108]][_0xa4df[41]]].toString())}}}});_0xff6ax41= _0xff6ax42[_0xa4df[110]](_0xa4df[109])};return _0xff6ax41}function createDescriptionFromConfiguration(_0xff6ax12,_0xff6ax27,_0xff6ax10){var _0xff6ax47=_0xa4df[54];var _0xff6ax42=[];if(_0xff6ax12[_0xa4df[29]][_0xa4df[111]][_0xa4df[63]]> 0){var _0xff6ax48=_[_0xa4df[100]](_0xff6ax12[_0xa4df[29]].Description,[_0xa4df[47]]);_[_0xa4df[97]](_0xff6ax48,function(_0xff6ax44){if(_0xff6ax44[_0xa4df[101]]=== _0xa4df[102]){_0xff6ax42[_0xa4df[104]](_0xff6ax44[_0xa4df[103]])}else {if(_0xff6ax44[_0xa4df[101]]=== _0xa4df[112]){if(_0xff6ax44[_0xa4df[113]]=== _0xa4df[102]&& _0xff6ax44[_0xa4df[114]]){_0xff6ax42[_0xa4df[104]](util[_0xa4df[61]](_0xa4df[115],_0xff6ax44[_0xa4df[114]],_0xff6ax44[_0xa4df[116]]))}else {if(_0xff6ax44[_0xa4df[113]]=== _0xa4df[105]&& _0xff6ax44[_0xa4df[106]]&& _0xff6ax44[_0xa4df[114]]){var _0xff6ax45=getValueFromPropertyName(_0xff6ax27,_0xff6ax44[_0xa4df[106]],_0xff6ax12);if(_0xff6ax45){_0xff6ax42[_0xa4df[104]](util[_0xa4df[61]](_0xa4df[115],_0xff6ax44[_0xa4df[114]],_0xff6ax45.toString()))}}else {if(_0xff6ax44[_0xa4df[113]]=== _0xa4df[107]&& _0xff6ax44[_0xa4df[108]]&& _0xff6ax44[_0xa4df[108]][_0xa4df[41]]&& _0xff6ax44[_0xa4df[114]]){_0xff6ax10[_0xff6ax44[_0xa4df[108]][_0xa4df[41]]]&& _0xff6ax42[_0xa4df[104]](util[_0xa4df[61]](_0xa4df[115],_0xff6ax44[_0xa4df[114]],_0xff6ax10[_0xff6ax44[_0xa4df[108]][_0xa4df[41]]]))}}}}}});_0xff6ax47= _0xff6ax42[_0xa4df[110]](_0xa4df[117])};return _0xff6ax47}function createCustomFieldsFromConfiguration(_0xff6ax12,_0xff6ax27,_0xff6ax10){var _0xff6ax4a=[];var _0xff6ax4b=[];if(_0xff6ax12[_0xa4df[29]][_0xa4df[118]][_0xa4df[63]]> 0){_0xff6ax4a= _0xff6ax12[_0xa4df[29]][_0xa4df[118]];_[_0xa4df[97]](_0xff6ax4a,function(_0xff6ax3f){if(_0xff6ax3f[_0xa4df[101]]=== _0xa4df[102]&& _0xff6ax3f[_0xa4df[119]]){_0xff6ax4b[_0xa4df[104]]({id:_0xff6ax3f[_0xa4df[119]],value:_0xff6ax3f[_0xa4df[103]]})}else {if(_0xff6ax3f[_0xa4df[101]]=== _0xa4df[105]&& _0xff6ax3f[_0xa4df[106]]&& _0xff6ax3f[_0xa4df[119]]){var _0xff6ax45=getValueFromPropertyName(_0xff6ax27,_0xff6ax3f[_0xa4df[106]],_0xff6ax12);if(_0xff6ax45){_0xff6ax4b[_0xa4df[104]]({id:_0xff6ax3f[_0xa4df[119]],value:_0xff6ax45.toString()})}}else {if(_0xff6ax3f[_0xa4df[101]]=== _0xa4df[107]&& _0xff6ax3f[_0xa4df[119]]&& _0xff6ax3f[_0xa4df[108]]&& _0xff6ax3f[_0xa4df[108]][_0xa4df[41]]){_0xff6ax10[_0xff6ax3f[_0xa4df[108]][_0xa4df[41]]]&& _0xff6ax4b[_0xa4df[104]]({id:_0xff6ax3f[_0xa4df[119]],value:_0xff6ax10[_0xff6ax3f[_0xa4df[108]][_0xa4df[41]]].toString()})}}}})};return _0xff6ax4b}function handleTaskDisplay(_0xff6ax12){return function(_0xff6axf){if(_0xff6axf&& _0xff6axf[_0xa4df[92]]){console[_0xa4df[12]](_0xa4df[120],_0xff6axf[_0xa4df[47]]);_0xff6ax12[_0xa4df[121]]= _0xff6axf[_0xa4df[47]];return};return}}function handleReportIntegration(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axb,_0xff6ax11,_0xff6axe){return function(){delete _0xff6axf[_0xa4df[47]];delete _0xff6axf[_0xa4df[122]];delete _0xff6axf[_0xa4df[123]];_0xff6axf[_0xa4df[124]]= _0xa4df[125];_0xff6axf[_0xa4df[126]]= _0xff6axd;_0xff6axf[_0xa4df[127]]= _0xa4df[92];_0xff6axf[_0xa4df[128]]= _0xff6ax12[_0xa4df[121]];_0xff6axf[_0xa4df[129]]= _0xff6axb;_0xff6axf[_0xa4df[130]]= _0xff6axe;_0xff6axf[_0xa4df[131]]= util[_0xa4df[61]](_0xa4df[132],_0xff6ax12[_0xa4df[20]][_0xa4df[133]],_0xff6ax12[_0xa4df[121]]);_0xff6ax11[_0xa4df[135]](_0xa4df[134],_0xff6axf);return ReportIntegration[_0xa4df[87]](_0xff6axf)}}function handleEnd(_0xff6ax12,_0xff6axf,_0xff6axd){return function(){console[_0xa4df[12]](util[_0xa4df[61]](_0xa4df[136],_0xff6ax12[_0xa4df[121]],_0xff6ax12[_0xa4df[37]].Id));_0xff6ax12= undefined;return}}function handleError(_0xff6ax12,_0xff6axd,_0xff6axf,_0xff6axb){return function(_0xff6ax50){console[_0xa4df[16]](_0xa4df[137]);console[_0xa4df[16]](_0xa4df[138],_0xff6ax50[_0xa4df[139]]);console[_0xa4df[16]](_0xa4df[140],_0xff6ax50[_0xa4df[141]]);_0xff6ax12= undefined;delete _0xff6axf[_0xa4df[47]];delete _0xff6axf[_0xa4df[122]];delete _0xff6axf[_0xa4df[123]];_0xff6axf[_0xa4df[124]]= _0xa4df[125];_0xff6axf[_0xa4df[126]]= _0xff6axd;_0xff6axf[_0xa4df[127]]= _0xa4df[142];_0xff6axf[_0xa4df[129]]= _0xff6axb;ReportIntegration[_0xa4df[87]](_0xff6axf)[_0xa4df[18]](function(){return})[_0xa4df[17]](function(_0xff6ax50){console[_0xa4df[16]](_0xa4df[143]);return})}}function stripTrailingSlash(_0xff6ax52){if(_0xff6ax52[_0xa4df[144]](-1) === _0xa4df[145]){return _0xff6ax52[_0xa4df[144]](0,_0xff6ax52[_0xa4df[63]]- 1)};return _0xff6ax52}module[_0xa4df[146]]= Salesforce