Built motion from commit 5ae821c.|0.0.127
[motion.git] / server / config / integrations / zendesk.js
index 7854c86..0c8b8f5 100644 (file)
@@ -1 +1 @@
-var _0x905d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x5A\x65\x6E\x64\x65\x73\x6B\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5A\x65\x6E\x64\x65\x73\x6B\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","\x5A\x65\x6E\x64\x65\x73\x6B\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\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x75\x72\x69","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x72\x76\x65\x72\x55\x52\x4C","\x73\x65\x72\x76\x65\x72\x55\x72\x6C","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\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\x5A\x65\x6E\x64\x65\x73\x6B\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\x5A\x65\x6E\x64\x65\x73\x6B\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\x5A\x65\x6E\x64\x65\x73\x6B\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\x5A\x65\x6E\x64\x65\x73\x6B\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","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x61\x75\x74\x68\x54\x79\x70\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x3A","\x74\x6F\x6B\x65\x6E","\x2F\x74\x6F\x6B\x65\x6E\x3A","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x61\x73\x69\x63\x20","\x62\x61\x73\x65\x36\x34","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x2F\x73\x65\x61\x72\x63\x68\x2E\x6A\x73\x6F\x6E","\x74\x79\x70\x65\x3A\x75\x73\x65\x72\x20\x72\x6F\x6C\x65\x3A\x61\x67\x65\x6E\x74\x20\x6E\x61\x6D\x65\x3A\x25\x73","\x66\x6F\x72\x6D\x61\x74","","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x76\x6F\x69\x63\x65","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x55\x52\x4C","\x25\x73\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73\x2F\x25\x73\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x72\x65\x73\x75\x6C\x74","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x73\x75\x6C\x74\x73","\x63\x6F\x75\x6E\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x61\x67\x65\x6E\x74","\x66\x69\x72\x73\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\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","\x2F\x75\x73\x65\x72\x73\x2F\x6D\x65\x2E\x6A\x73\x6F\x6E","\x75\x73\x65\x72","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x64\x6D\x69\x6E\x20\x73\x65\x6C\x65\x63\x74\x65\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x74\x79\x70\x65\x3A\x75\x73\x65\x72\x20\x72\x6F\x6C\x65\x3A\x65\x6E\x64\x2D\x75\x73\x65\x72\x20\x25\x73\x3A\x25\x73","\x70\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\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x66\x6F\x75\x6E\x64\x3A","\x65\x6E\x64\x75\x73\x65\x72","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x2F\x75\x73\x65\x72\x73\x2E\x6A\x73\x6F\x6E","\x50\x4F\x53\x54","\x65\x6E\x64\x2D\x75\x73\x65\x72","\x43\x61\x6C\x6C\x65\x72\x20\x2D\x20\x25\x73","\x3C\x75\x6E\x6B\x6E\x6F\x77\x6E\x3E","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x63\x72\x65\x61\x74\x65\x64\x3A","\x76\x61\x6C\x75\x65","\x66\x6F\x72\x45\x61\x63\x68","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x62\x6F\x64\x79\x3A","\x2F\x74\x69\x63\x6B\x65\x74\x73\x2E\x6A\x73\x6F\x6E","\x54\x61\x67\x73","\x6D\x61\x70","\x53\x75\x62\x6A\x65\x63\x74","\x73\x6F\x72\x74\x42\x79","\x74\x79\x70\x65","\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x74\x65\x6E\x74","\x70\x75\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65","\x63\x75\x73\x74\x6F\x6D\x56\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65","\x20","\x6A\x6F\x69\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6B\x65\x79\x56\x61\x6C\x75\x65","\x6B\x65\x79\x54\x79\x70\x65","\x25\x73\x3A\x20\x25\x73","\x6B\x65\x79","\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74","\x0A","\x46\x69\x65\x6C\x64","\x66\x69\x6C\x74\x65\x72","\x69\x64\x46\x69\x65\x6C\x64","\x6E\x61\x6D\x65\x46\x69\x65\x6C\x64","\x74\x69\x63\x6B\x65\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x63\x72\x65\x61\x74\x65\x64","\x2F\x63\x68\x61\x6E\x6E\x65\x6C\x73\x2F\x76\x6F\x69\x63\x65\x2F\x61\x67\x65\x6E\x74\x73\x2F\x25\x64\x2F\x74\x69\x63\x6B\x65\x74\x73\x2F\x25\x64\x2F\x64\x69\x73\x70\x6C\x61\x79\x2E\x6A\x73\x6F\x6E","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x7A\x65\x6E\x64\x65\x73\x6B","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x65\x78\x69\x74\x53\x74\x61\x74\x75\x73","\x73\x75\x63\x63\x65\x73\x73","\x74\x69\x63\x6B\x65\x74\x49\x64","\x75\x72\x6C","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64","\x63\x72\x65\x61\x74\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x25\x64\x20\x64\x69\x73\x70\x6C\x61\x79\x65\x64\x20\x74\x6F\x20\x61\x67\x65\x6E\x74\x20\x25\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x74\x69\x63\x6B\x65\x74\x20\x63\x72\x65\x61\x74\x69\x6F\x6E","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x73\x74\x61\x63\x6B","\x66\x61\x69\x6C\x65\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\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"];_0x905d[0];var _=require(_0x905d[1]);var util=require(_0x905d[2]);var rp=require(_0x905d[3]);var ZendeskIntegration=require(_0x905d[5])[_0x905d[4]];var ZendeskConfiguration=require(_0x905d[5])[_0x905d[6]];var ReportIntegration=require(_0x905d[5])[_0x905d[7]];var VoiceQueue=require(_0x905d[5])[_0x905d[8]];var VoiceExtension=require(_0x905d[5])[_0x905d[9]];function Zendesk(){console[_0x905d[11]](_0x905d[10])}Zendesk[_0x905d[13]][_0x905d[12]]= function(_0x6a12xa,_0x6a12xb,_0x6a12xc,_0x6a12xd,_0x6a12xe,_0x6a12xf){var _0x6a12x10={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined};if(!_0x6a12xa||  !_0x6a12xb){console[_0x905d[15]](_0x905d[14]);return};ZendeskConfiguration[_0x905d[18]]({where:{id:_0x6a12xb,AccountId:_0x6a12xa},include:[{all:true,include:[{all:true}]}]})[_0x905d[17]](handleEntityNotFound())[_0x905d[17]](handleConnection(_0x6a12x10))[_0x905d[17]](searchQueue(_0x6a12xe))[_0x905d[17]](handleQueueRecordings(_0x6a12x10))[_0x905d[17]](searchRoute(_0x6a12xe))[_0x905d[17]](handleOutboundRecordings(_0x6a12x10))[_0x905d[17]](searchAgent(_0x6a12x10,_0x6a12xc,_0x6a12xe))[_0x905d[17]](handleAgent(_0x6a12x10,_0x6a12xc,_0x6a12xe))[_0x905d[17]](searchAdmin(_0x6a12x10))[_0x905d[17]](handleAdmin(_0x6a12x10))[_0x905d[17]](searchEndUser(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xd))[_0x905d[17]](handleEndUser(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xd))[_0x905d[17]](endUserCreation(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xd))[_0x905d[17]](handleEndUserCreation(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xd))[_0x905d[17]](ticketCreation(_0x6a12x10,_0x6a12xe,_0x6a12xf))[_0x905d[17]](handleTicketDisplay(_0x6a12x10))[_0x905d[17]](handleReportIntegration(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xa))[_0x905d[17]](handleEnd(_0x6a12x10))[_0x905d[16]](handleError(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xa))};function handleEntityNotFound(){return function(_0x6a12x12){if(!_0x6a12x12){return null};return _0x6a12x12}}function handleConnection(_0x6a12x10){return function(_0x6a12x14){var _0x6a12x15=getAccountConfiguration(_0x6a12x14.ZendeskAccount);_0x6a12x10[_0x905d[19]]= _0x6a12x14;_0x6a12x10[_0x905d[20]]= _0x6a12x15[_0x905d[20]];_0x6a12x10[_0x905d[21]]= _0x6a12x15[_0x905d[21]];_0x6a12x10[_0x905d[22]]= _0x6a12x14[_0x905d[24]][_0x905d[23]]}}function searchQueue(_0x6a12xe){return function(){if(_0x6a12xe[_0x905d[25]]){return VoiceQueue[_0x905d[28]]({where:{name:_0x6a12xe[_0x905d[25]]},attributes:[_0x905d[26],_0x905d[27]]})}else {return}}}function handleQueueRecordings(_0x6a12x10){return function(_0x6a12x18){if(_0x6a12x18&& _0x6a12x18[_0x905d[27]]){console[_0x905d[11]](_0x905d[29],_0x6a12x18[_0x905d[26]]);_0x6a12x10[_0x905d[30]]= true}else {_0x6a12x10[_0x905d[30]]= false;console[_0x905d[11]](_0x905d[31]);return}}}function searchRoute(_0x6a12xe){return function(){if(_0x6a12xe[_0x905d[32]]){return VoiceExtension[_0x905d[28]]({where:{id:_0x6a12xe[_0x905d[32]]},attributes:[_0x905d[33],_0x905d[34]]})}else {return}}}function handleOutboundRecordings(_0x6a12x10){return function(_0x6a12x1b){if(_0x6a12x1b&& _0x6a12x1b[_0x905d[34]]){console[_0x905d[11]](_0x905d[35],_0x6a12x1b[_0x905d[33]]);_0x6a12x10[_0x905d[30]]= true}else {_0x6a12x10[_0x905d[30]]= false;console[_0x905d[11]](_0x905d[36]);return}}}function getAccountConfiguration(_0x6a12x1d){var _0x6a12x1e={uri:stripTrailingSlash(_0x6a12x1d[_0x905d[37]]),headers:{"\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E":undefined,"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x905d[38],"\x41\x63\x63\x65\x70\x74":_0x905d[38]}};var _0x6a12x1f=_0x6a12x1d[_0x905d[39]];if(_0x6a12x1d[_0x905d[40]]=== _0x905d[41]){_0x6a12x1f= _0x6a12x1f+ _0x905d[42]+ _0x6a12x1d[_0x905d[41]]}else {if(_0x6a12x1d[_0x905d[40]]=== _0x905d[43]){_0x6a12x1f= _0x6a12x1f+ _0x905d[44]+ _0x6a12x1d[_0x905d[43]]}};_0x6a12x1e[_0x905d[21]][_0x905d[45]]= _0x905d[46]+  new Buffer(_0x6a12x1f).toString(_0x905d[47]);return _0x6a12x1e}function searchAgent(_0x6a12x10,_0x6a12xc,_0x6a12xe){return function(){console[_0x905d[11]](_0x905d[48],getValueFromPropertyName(_0x6a12xe,getAgentSearchPropertyFromChannel(_0x6a12xc)));return rp({uri:_0x6a12x10[_0x905d[20]]+ _0x905d[49],qs:{"\x71\x75\x65\x72\x79":util[_0x905d[51]](_0x905d[50],getValueFromPropertyName(_0x6a12xe,getAgentSearchPropertyFromChannel(_0x6a12xc)))},headers:_0x6a12x10[_0x905d[21]],json:true})}}function getAgentSearchPropertyFromChannel(_0x6a12xc){var _0x6a12x22=_0x905d[52];if(_0x6a12xc){switch(_0x6a12xc){case _0x905d[54]:_0x6a12x22= _0x905d[53];break;default:_0x6a12x22= _0x905d[53];console[_0x905d[15]](_0x905d[55],_0x6a12xc)}};return _0x6a12x22}function getValueFromPropertyName(_0x6a12xe,_0x6a12x22,_0x6a12x10){if(_0x6a12x22=== _0x905d[56]){if(_0x6a12x10&& _0x6a12x10[_0x905d[30]]&& _0x6a12x10[_0x905d[22]]){return util[_0x905d[51]](_0x905d[57],stripTrailingSlash(_0x6a12x10[_0x905d[22]]),_0x6a12xe[_0x905d[58]])}else {return null}}else {return _[_0x905d[59]](_0x6a12xe,_0x6a12x22)}}function handleAgent(_0x6a12x10,_0x6a12xc,_0x6a12x25){return function(_0x6a12xe){if(_0x6a12xe[_0x905d[61]][_0x905d[60]]> 0&& _0x6a12xe[_0x905d[62]]> 0){console[_0x905d[11]](_0x905d[63],getValueFromPropertyName(_0x6a12x25,getAgentSearchPropertyFromChannel(_0x6a12xc)));_0x6a12x10[_0x905d[64]]= getMatchObject(_0x6a12xe[_0x905d[61]],_0x905d[26],getValueFromPropertyName(_0x6a12x25,getAgentSearchPropertyFromChannel(_0x6a12xc)));return _0x6a12x10[_0x905d[64]]};return}}function getMatchObject(_0x6a12x27,_0x6a12x22,_0x6a12x28){var _0x6a12x29=_[_0x905d[18]](_0x6a12x27,{property:_0x6a12x28});if(_0x6a12x29){return _0x6a12x29};return _[_0x905d[65]](_0x6a12x27)}function searchAdmin(_0x6a12x10){return function(_0x6a12xe){if(_0x6a12xe){return};console[_0x905d[11]](_0x905d[66]);return rp({uri:_0x6a12x10[_0x905d[20]]+ _0x905d[67],headers:_0x6a12x10[_0x905d[21]],json:true})}}function handleAdmin(_0x6a12x10){return function(_0x6a12xe){if(!_0x6a12xe){return};if(_0x6a12xe[_0x905d[68]]){console[_0x905d[11]](_0x905d[69]);_0x6a12x10[_0x905d[64]]= _0x6a12xe[_0x905d[68]]};return}}function searchEndUser(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xd){return function(){console[_0x905d[11]](_0x905d[70],getValueFromPropertyName(_0x6a12xe,getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd)));return rp({uri:_0x6a12x10[_0x905d[20]]+ _0x905d[49],qs:{"\x71\x75\x65\x72\x79":util[_0x905d[51]](_0x905d[71],getEndUserSearchQueryFromChannel(_0x6a12xc),getValueFromPropertyName(_0x6a12xe,getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd)))},headers:_0x6a12x10[_0x905d[21]],json:true})}}function getEndUserSearchQueryFromChannel(_0x6a12xc){var _0x6a12x22=_0x905d[52];if(_0x6a12xc){switch(_0x6a12xc){case _0x905d[54]:_0x6a12x22= _0x905d[72];break;default:_0x6a12x22= _0x905d[72];console[_0x905d[15]](_0x905d[55],_0x6a12xc)}};return _0x6a12x22}function getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd){var _0x6a12x22=_0x905d[52];if(_0x6a12xc){switch(_0x6a12xc){case _0x905d[54]:if(_0x6a12xd=== _0x905d[73]){_0x6a12x22= _0x905d[74]}else {if(_0x6a12xd=== _0x905d[25]){_0x6a12x22= _0x905d[75]}};break;default:_0x6a12x22= _0x905d[75];console[_0x905d[15]](_0x905d[55],_0x6a12xc)}};return _0x6a12x22}function getEndUserNamePropertyFromChannel(_0x6a12xc,_0x6a12xd){var _0x6a12x22=_0x905d[52];if(_0x6a12xc){switch(_0x6a12xc){case _0x905d[54]:if(_0x6a12xd=== _0x905d[73]){_0x6a12x22= _0x905d[76]}else {if(_0x6a12xd=== _0x905d[25]){_0x6a12x22= _0x905d[77]}};break;default:_0x6a12x22= _0x905d[77];console[_0x905d[15]](_0x905d[55],_0x6a12xc)}};return _0x6a12x22}function handleEndUser(_0x6a12x10,_0x6a12xc,_0x6a12x25,_0x6a12xd){return function(_0x6a12xe){if(_0x6a12xe[_0x905d[61]][_0x905d[60]]> 0&& _0x6a12xe[_0x905d[62]]> 0){console[_0x905d[11]](_0x905d[78],getValueFromPropertyName(_0x6a12x25,getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd)));_0x6a12x10[_0x905d[79]]= _0x6a12xe[_0x905d[61]][0];return _0x6a12x10[_0x905d[79]]};return}}function endUserCreation(_0x6a12x10,_0x6a12xc,_0x6a12x25,_0x6a12xd){return function(_0x6a12xe){if(_0x6a12xe){return};console[_0x905d[11]](_0x905d[80],getValueFromPropertyName(_0x6a12x25,getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd)));console[_0x905d[11]](getJsonForEndUserCreation(_0x6a12xc,_0x6a12x25,_0x6a12xd));return rp({uri:_0x6a12x10[_0x905d[20]]+ _0x905d[81],method:_0x905d[82],body:{user:getJsonForEndUserCreation(_0x6a12xc,_0x6a12x25,_0x6a12xd)},headers:_0x6a12x10[_0x905d[21]],json:true})}}function getJsonForEndUserCreation(_0x6a12xc,_0x6a12xe,_0x6a12xd){var _0x6a12x33={role:_0x905d[83]};switch(_0x6a12xc){case _0x905d[54]:if(_0x6a12xd=== _0x905d[25]){if(isValidName(_0x6a12xe[_0x905d[77]])){_0x6a12x33[_0x905d[26]]= getValueFromPropertyName(_0x6a12xe,getEndUserNamePropertyFromChannel(_0x6a12xc,_0x6a12xd))}else {_0x6a12x33[_0x905d[26]]= util[_0x905d[51]](_0x905d[84],getValueFromPropertyName(_0x6a12xe,getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd)))}}else {if(_0x6a12xd=== _0x905d[73]){if(isValidName(_0x6a12xe[_0x905d[76]])){_0x6a12x33[_0x905d[26]]= getValueFromPropertyName(_0x6a12xe,getEndUserNamePropertyFromChannel(_0x6a12xc,_0x6a12xd))}else {_0x6a12x33[_0x905d[26]]= util[_0x905d[51]](_0x905d[84],getValueFromPropertyName(_0x6a12xe,getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd)))}}};_0x6a12x33[_0x905d[72]]= getValueFromPropertyName(_0x6a12xe,getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd));break;default:console[_0x905d[15]](_0x905d[55],_0x6a12xc)};return _0x6a12x33}function isValidName(_0x6a12x35){return _0x6a12x35&& _0x6a12x35!== _0x905d[85]}function handleEndUserCreation(_0x6a12x10,_0x6a12xc,_0x6a12x25,_0x6a12xd){return function(_0x6a12xe){if(!_0x6a12xe){return};if(_0x6a12xe[_0x905d[68]]){console[_0x905d[11]](_0x905d[86],getValueFromPropertyName(_0x6a12x25,getEndUserSearchPropertyFromChannel(_0x6a12xc,_0x6a12xd)));_0x6a12x10[_0x905d[79]]= _0x6a12xe[_0x905d[68]]};return}}function ticketCreation(_0x6a12x10,_0x6a12x25,_0x6a12xf){return function(){var _0x6a12x38={requester_id:_0x6a12x10[_0x905d[64]][_0x905d[33]],submitter_id:_0x6a12x10[_0x905d[79]][_0x905d[33]],assignee_id:_0x6a12x10[_0x905d[79]][_0x905d[33]],tags:createTagsFromConfiguration(_0x6a12x10),subject:createSubjectFromConfiguration(_0x6a12x10,_0x6a12x25,_0x6a12xf),description:createDescriptionFromConfiguration(_0x6a12x10,_0x6a12x25,_0x6a12xf),custom_fields:createCustomFieldsFromConfiguration(_0x6a12x10,_0x6a12x25,_0x6a12xf)};var _0x6a12x39=createFieldsFromConfiguration(_0x6a12x10);if(_0x6a12x39[_0x905d[60]]> 0){_[_0x905d[88]](_0x6a12x39,function(_0x6a12x3a){_0x6a12x38[_0x6a12x3a[_0x905d[33]]]= _0x6a12x3a[_0x905d[87]]})};console[_0x905d[11]](_0x905d[89],_0x6a12x38);return rp({uri:_0x6a12x10[_0x905d[20]]+ _0x905d[90],method:_0x905d[82],body:{ticket:_0x6a12x38},headers:_0x6a12x10[_0x905d[21]],json:true})}}function createTagsFromConfiguration(_0x6a12x10){var _0x6a12x3c=[];if(_0x6a12x10[_0x905d[19]][_0x905d[91]][_0x905d[60]]> 0){_0x6a12x3c= _[_0x905d[92]](_0x6a12x10[_0x905d[19]].Tags,_0x905d[26])};return _0x6a12x3c}function createSubjectFromConfiguration(_0x6a12x10,_0x6a12x25,_0x6a12xf){var _0x6a12x3e=_0x905d[52];var _0x6a12x3f=[];if(_0x6a12x10[_0x905d[19]][_0x905d[93]][_0x905d[60]]> 0){var _0x6a12x40=_[_0x905d[94]](_0x6a12x10[_0x905d[19]].Subject,[_0x905d[33]]);_[_0x905d[88]](_0x6a12x40,function(_0x6a12x41){if(_0x6a12x41[_0x905d[95]]=== _0x905d[96]){_0x6a12x3f[_0x905d[98]](_0x6a12x41[_0x905d[97]])}else {if(_0x6a12x41[_0x905d[95]]=== _0x905d[99]&& _0x6a12x41[_0x905d[100]]){var _0x6a12x42=getValueFromPropertyName(_0x6a12x25,_0x6a12x41[_0x905d[100]],_0x6a12x10);if(_0x6a12x42){_0x6a12x3f[_0x905d[98]](_0x6a12x42.toString())}}else {if(_0x6a12x41[_0x905d[95]]=== _0x905d[101]){var _0x6a12x43=_[_0x905d[18]](_0x6a12xf,{"\x6E\x61\x6D\x65":_0x6a12x41[_0x905d[102]][_0x905d[26]]});if(_0x6a12x43){_0x6a12x3f[_0x905d[98]](_0x6a12x43[_0x905d[87]].toString())}}}}});_0x6a12x3e= _0x6a12x3f[_0x905d[104]](_0x905d[103])};return _0x6a12x3e}function createDescriptionFromConfiguration(_0x6a12x10,_0x6a12x25,_0x6a12xf){var _0x6a12x45=_0x905d[52];var _0x6a12x3f=[];if(_0x6a12x10[_0x905d[19]][_0x905d[105]][_0x905d[60]]> 0){var _0x6a12x46=_[_0x905d[94]](_0x6a12x10[_0x905d[19]].Description,[_0x905d[33]]);_[_0x905d[88]](_0x6a12x46,function(_0x6a12x41){if(_0x6a12x41[_0x905d[95]]=== _0x905d[96]){_0x6a12x3f[_0x905d[98]](_0x6a12x41[_0x905d[97]])}else {if(_0x6a12x41[_0x905d[95]]=== _0x905d[106]){if(_0x6a12x41[_0x905d[107]]=== _0x905d[96]){_0x6a12x3f[_0x905d[98]](util[_0x905d[51]](_0x905d[108],_0x6a12x41[_0x905d[109]],_0x6a12x41[_0x905d[110]]))}else {if(_0x6a12x41[_0x905d[107]]=== _0x905d[99]&& _0x6a12x41[_0x905d[100]]){var _0x6a12x42=getValueFromPropertyName(_0x6a12x25,_0x6a12x41[_0x905d[100]],_0x6a12x10);if(_0x6a12x42){_0x6a12x3f[_0x905d[98]](util[_0x905d[51]](_0x905d[108],_0x6a12x41[_0x905d[109]],_0x6a12x42.toString()))}}else {if(_0x6a12x41[_0x905d[107]]=== _0x905d[101]){var _0x6a12x43=_[_0x905d[18]](_0x6a12xf,{"\x6E\x61\x6D\x65":_0x6a12x41[_0x905d[102]][_0x905d[26]]});if(_0x6a12x43){_0x6a12x3f[_0x905d[98]](util[_0x905d[51]](_0x905d[108],_0x6a12x41[_0x905d[109]],_0x6a12x43[_0x905d[87]].toString()))}}}}}}});_0x6a12x45= _0x6a12x3f[_0x905d[104]](_0x905d[111])};return _0x6a12x45}function createCustomFieldsFromConfiguration(_0x6a12x10,_0x6a12x25,_0x6a12xf){var _0x6a12x48=[];var _0x6a12x49=[];if(_0x6a12x10[_0x905d[19]][_0x905d[112]][_0x905d[60]]> 0){_0x6a12x48= _[_0x905d[113]](_0x6a12x10[_0x905d[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x905d[88]](_0x6a12x48,function(_0x6a12x3a){if(_0x6a12x3a[_0x905d[95]]=== _0x905d[96]){_0x6a12x49[_0x905d[98]]({id:_0x6a12x3a[_0x905d[114]],value:_0x6a12x3a[_0x905d[97]]})}else {if(_0x6a12x3a[_0x905d[95]]=== _0x905d[99]){var _0x6a12x42=getValueFromPropertyName(_0x6a12x25,_0x6a12x3a[_0x905d[100]],_0x6a12x10);if(_0x6a12x42){_0x6a12x49[_0x905d[98]]({id:_0x6a12x3a[_0x905d[114]],value:_0x6a12x42.toString()})}}else {if(_0x6a12x3a[_0x905d[95]]=== _0x905d[101]){var _0x6a12x43=_[_0x905d[18]](_0x6a12xf,{"\x6E\x61\x6D\x65":_0x6a12x3a[_0x905d[102]][_0x905d[26]]});if(_0x6a12x43){_0x6a12x49[_0x905d[98]]({id:_0x6a12x3a[_0x905d[114]],value:_0x6a12x43[_0x905d[87]].toString()})}}}}})};return _0x6a12x49}function createFieldsFromConfiguration(_0x6a12x10){var _0x6a12x39=[];var _0x6a12x49=[];if(_0x6a12x10[_0x905d[19]][_0x905d[112]][_0x905d[60]]> 0){_0x6a12x39= _[_0x905d[113]](_0x6a12x10[_0x905d[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x905d[88]](_0x6a12x39,function(_0x6a12x3a){if(_0x6a12x3a[_0x905d[95]]=== _0x905d[96]){_0x6a12x49[_0x905d[98]]({id:_0x6a12x3a[_0x905d[115]],value:_0x6a12x3a[_0x905d[97]]})}})};return _0x6a12x49}function handleTicketDisplay(_0x6a12x10){return function(_0x6a12xe){if(_0x6a12xe[_0x905d[116]]){console[_0x905d[11]](_0x905d[117]);_0x6a12x10[_0x905d[116]]= _0x6a12xe[_0x905d[116]];var _0x6a12x4c=util[_0x905d[51]](_0x905d[118],_0x6a12x10[_0x905d[64]][_0x905d[33]],_0x6a12x10[_0x905d[116]][_0x905d[33]]);return rp({uri:_0x6a12x10[_0x905d[20]]+ _0x6a12x4c,method:_0x905d[82],headers:_0x6a12x10[_0x905d[21]],json:true})};return}}function handleReportIntegration(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xa){return function(){delete _0x6a12xe[_0x905d[33]];_0x6a12xe[_0x905d[119]]= _0x905d[120];_0x6a12xe[_0x905d[121]]= _0x6a12xc;_0x6a12xe[_0x905d[122]]= _0x905d[123];_0x6a12xe[_0x905d[124]]= _0x6a12x10[_0x905d[116]][_0x905d[33]];_0x6a12xe[_0x905d[125]]= _0x6a12x10[_0x905d[116]][_0x905d[125]];_0x6a12xe[_0x905d[126]]= _0x6a12xa;return ReportIntegration[_0x905d[127]](_0x6a12xe)}}function handleEnd(_0x6a12x10,_0x6a12xe,_0x6a12xc){return function(){console[_0x905d[11]](util[_0x905d[51]](_0x905d[128],_0x6a12x10[_0x905d[116]][_0x905d[33]],_0x6a12x10[_0x905d[64]][_0x905d[33]]));_0x6a12x10= undefined;return}}function handleError(_0x6a12x10,_0x6a12xc,_0x6a12xe,_0x6a12xa){return function(_0x6a12x50){console[_0x905d[15]](_0x905d[129]);console[_0x905d[15]](_0x905d[130],_0x6a12x50[_0x905d[131]]);console[_0x905d[15]](_0x905d[132],_0x6a12x50[_0x905d[133]]);_0x6a12x10= undefined;delete _0x6a12xe[_0x905d[33]];_0x6a12xe[_0x905d[119]]= _0x905d[120];_0x6a12xe[_0x905d[121]]= _0x6a12xc;_0x6a12xe[_0x905d[122]]= _0x905d[134];_0x6a12xe[_0x905d[126]]= _0x6a12xa;ReportIntegration[_0x905d[127]](_0x6a12xe)[_0x905d[17]](function(){return})[_0x905d[16]](function(_0x6a12x50){console[_0x905d[15]](_0x905d[135]);return})}}function stripTrailingSlash(_0x6a12x52){if(_0x6a12x52[_0x905d[136]](-1) === _0x905d[137]){return _0x6a12x52[_0x905d[136]](0,_0x6a12x52[_0x905d[60]]- 1)};return _0x6a12x52}module[_0x905d[138]]= Zendesk
\ No newline at end of file
+var _0x528d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x5A\x65\x6E\x64\x65\x73\x6B\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5A\x65\x6E\x64\x65\x73\x6B\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","\x5A\x65\x6E\x64\x65\x73\x6B\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\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x75\x72\x69","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x72\x76\x65\x72\x55\x52\x4C","\x73\x65\x72\x76\x65\x72\x55\x72\x6C","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\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\x5A\x65\x6E\x64\x65\x73\x6B\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\x5A\x65\x6E\x64\x65\x73\x6B\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\x5A\x65\x6E\x64\x65\x73\x6B\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\x5A\x65\x6E\x64\x65\x73\x6B\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","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x61\x75\x74\x68\x54\x79\x70\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x3A","\x74\x6F\x6B\x65\x6E","\x2F\x74\x6F\x6B\x65\x6E\x3A","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x61\x73\x69\x63\x20","\x62\x61\x73\x65\x36\x34","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x2F\x73\x65\x61\x72\x63\x68\x2E\x6A\x73\x6F\x6E","\x74\x79\x70\x65\x3A\x75\x73\x65\x72\x20\x72\x6F\x6C\x65\x3A\x61\x67\x65\x6E\x74\x20\x6E\x61\x6D\x65\x3A\x25\x73","\x66\x6F\x72\x6D\x61\x74","","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x76\x6F\x69\x63\x65","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x55\x52\x4C","\x25\x73\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73\x2F\x25\x73\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x72\x65\x73\x75\x6C\x74","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x73\x75\x6C\x74\x73","\x63\x6F\x75\x6E\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x61\x67\x65\x6E\x74","\x66\x69\x72\x73\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\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","\x2F\x75\x73\x65\x72\x73\x2F\x6D\x65\x2E\x6A\x73\x6F\x6E","\x75\x73\x65\x72","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x64\x6D\x69\x6E\x20\x73\x65\x6C\x65\x63\x74\x65\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x74\x79\x70\x65\x3A\x75\x73\x65\x72\x20\x72\x6F\x6C\x65\x3A\x65\x6E\x64\x2D\x75\x73\x65\x72\x20\x25\x73\x3A\x25\x73","\x70\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\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x66\x6F\x75\x6E\x64\x3A","\x65\x6E\x64\x75\x73\x65\x72","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x2F\x75\x73\x65\x72\x73\x2E\x6A\x73\x6F\x6E","\x50\x4F\x53\x54","\x65\x6E\x64\x2D\x75\x73\x65\x72","\x43\x61\x6C\x6C\x65\x72\x20\x2D\x20\x25\x73","\x3C\x75\x6E\x6B\x6E\x6F\x77\x6E\x3E","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x63\x72\x65\x61\x74\x65\x64\x3A","\x76\x61\x6C\x75\x65","\x66\x6F\x72\x45\x61\x63\x68","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x62\x6F\x64\x79\x3A","\x2F\x74\x69\x63\x6B\x65\x74\x73\x2E\x6A\x73\x6F\x6E","\x54\x61\x67\x73","\x6D\x61\x70","\x53\x75\x62\x6A\x65\x63\x74","\x73\x6F\x72\x74\x42\x79","\x74\x79\x70\x65","\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x74\x65\x6E\x74","\x70\x75\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65","\x63\x75\x73\x74\x6F\x6D\x56\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65","\x20","\x6A\x6F\x69\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6B\x65\x79\x56\x61\x6C\x75\x65","\x6B\x65\x79\x54\x79\x70\x65","\x25\x73\x3A\x20\x25\x73","\x6B\x65\x79","\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74","\x0A","\x46\x69\x65\x6C\x64","\x66\x69\x6C\x74\x65\x72","\x69\x64\x46\x69\x65\x6C\x64","\x6E\x61\x6D\x65\x46\x69\x65\x6C\x64","\x74\x69\x63\x6B\x65\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x63\x72\x65\x61\x74\x65\x64","\x2F\x63\x68\x61\x6E\x6E\x65\x6C\x73\x2F\x76\x6F\x69\x63\x65\x2F\x61\x67\x65\x6E\x74\x73\x2F\x25\x64\x2F\x74\x69\x63\x6B\x65\x74\x73\x2F\x25\x64\x2F\x64\x69\x73\x70\x6C\x61\x79\x2E\x6A\x73\x6F\x6E","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x7A\x65\x6E\x64\x65\x73\x6B","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x65\x78\x69\x74\x53\x74\x61\x74\x75\x73","\x73\x75\x63\x63\x65\x73\x73","\x74\x69\x63\x6B\x65\x74\x49\x64","\x75\x72\x6C","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64","\x63\x72\x65\x61\x74\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x25\x64\x20\x64\x69\x73\x70\x6C\x61\x79\x65\x64\x20\x74\x6F\x20\x61\x67\x65\x6E\x74\x20\x25\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x74\x69\x63\x6B\x65\x74\x20\x63\x72\x65\x61\x74\x69\x6F\x6E","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x73\x74\x61\x63\x6B","\x66\x61\x69\x6C\x65\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\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"];_0x528d[0];var _=require(_0x528d[1]);var util=require(_0x528d[2]);var rp=require(_0x528d[3]);var ZendeskIntegration=require(_0x528d[5])[_0x528d[4]];var ZendeskConfiguration=require(_0x528d[5])[_0x528d[6]];var ReportIntegration=require(_0x528d[5])[_0x528d[7]];var VoiceQueue=require(_0x528d[5])[_0x528d[8]];var VoiceExtension=require(_0x528d[5])[_0x528d[9]];function Zendesk(){console[_0x528d[11]](_0x528d[10])}Zendesk[_0x528d[13]][_0x528d[12]]= function(_0xe593xa,_0xe593xb,_0xe593xc,_0xe593xd,_0xe593xe,_0xe593xf){var _0xe593x10={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined};if(!_0xe593xa||  !_0xe593xb){console[_0x528d[15]](_0x528d[14]);return};ZendeskConfiguration[_0x528d[18]]({where:{id:_0xe593xb,AccountId:_0xe593xa},include:[{all:true,include:[{all:true}]}]})[_0x528d[17]](handleEntityNotFound())[_0x528d[17]](handleConnection(_0xe593x10))[_0x528d[17]](searchQueue(_0xe593xe))[_0x528d[17]](handleQueueRecordings(_0xe593x10))[_0x528d[17]](searchRoute(_0xe593xe))[_0x528d[17]](handleOutboundRecordings(_0xe593x10))[_0x528d[17]](searchAgent(_0xe593x10,_0xe593xc,_0xe593xe))[_0x528d[17]](handleAgent(_0xe593x10,_0xe593xc,_0xe593xe))[_0x528d[17]](searchAdmin(_0xe593x10))[_0x528d[17]](handleAdmin(_0xe593x10))[_0x528d[17]](searchEndUser(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xd))[_0x528d[17]](handleEndUser(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xd))[_0x528d[17]](endUserCreation(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xd))[_0x528d[17]](handleEndUserCreation(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xd))[_0x528d[17]](ticketCreation(_0xe593x10,_0xe593xe,_0xe593xf))[_0x528d[17]](handleTicketDisplay(_0xe593x10))[_0x528d[17]](handleReportIntegration(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xa))[_0x528d[17]](handleEnd(_0xe593x10))[_0x528d[16]](handleError(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xa))};function handleEntityNotFound(){return function(_0xe593x12){if(!_0xe593x12){return null};return _0xe593x12}}function handleConnection(_0xe593x10){return function(_0xe593x14){var _0xe593x15=getAccountConfiguration(_0xe593x14.ZendeskAccount);_0xe593x10[_0x528d[19]]= _0xe593x14;_0xe593x10[_0x528d[20]]= _0xe593x15[_0x528d[20]];_0xe593x10[_0x528d[21]]= _0xe593x15[_0x528d[21]];_0xe593x10[_0x528d[22]]= _0xe593x14[_0x528d[24]][_0x528d[23]]}}function searchQueue(_0xe593xe){return function(){if(_0xe593xe[_0x528d[25]]){return VoiceQueue[_0x528d[28]]({where:{name:_0xe593xe[_0x528d[25]]},attributes:[_0x528d[26],_0x528d[27]]})}else {return}}}function handleQueueRecordings(_0xe593x10){return function(_0xe593x18){if(_0xe593x18&& _0xe593x18[_0x528d[27]]){console[_0x528d[11]](_0x528d[29],_0xe593x18[_0x528d[26]]);_0xe593x10[_0x528d[30]]= true}else {_0xe593x10[_0x528d[30]]= false;console[_0x528d[11]](_0x528d[31]);return}}}function searchRoute(_0xe593xe){return function(){if(_0xe593xe[_0x528d[32]]){return VoiceExtension[_0x528d[28]]({where:{id:_0xe593xe[_0x528d[32]]},attributes:[_0x528d[33],_0x528d[34]]})}else {return}}}function handleOutboundRecordings(_0xe593x10){return function(_0xe593x1b){if(_0xe593x1b&& _0xe593x1b[_0x528d[34]]){console[_0x528d[11]](_0x528d[35],_0xe593x1b[_0x528d[33]]);_0xe593x10[_0x528d[30]]= true}else {_0xe593x10[_0x528d[30]]= false;console[_0x528d[11]](_0x528d[36]);return}}}function getAccountConfiguration(_0xe593x1d){var _0xe593x1e={uri:stripTrailingSlash(_0xe593x1d[_0x528d[37]]),headers:{"\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E":undefined,"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x528d[38],"\x41\x63\x63\x65\x70\x74":_0x528d[38]}};var _0xe593x1f=_0xe593x1d[_0x528d[39]];if(_0xe593x1d[_0x528d[40]]=== _0x528d[41]){_0xe593x1f= _0xe593x1f+ _0x528d[42]+ _0xe593x1d[_0x528d[41]]}else {if(_0xe593x1d[_0x528d[40]]=== _0x528d[43]){_0xe593x1f= _0xe593x1f+ _0x528d[44]+ _0xe593x1d[_0x528d[43]]}};_0xe593x1e[_0x528d[21]][_0x528d[45]]= _0x528d[46]+  new Buffer(_0xe593x1f).toString(_0x528d[47]);return _0xe593x1e}function searchAgent(_0xe593x10,_0xe593xc,_0xe593xe){return function(){console[_0x528d[11]](_0x528d[48],getValueFromPropertyName(_0xe593xe,getAgentSearchPropertyFromChannel(_0xe593xc)));return rp({uri:_0xe593x10[_0x528d[20]]+ _0x528d[49],qs:{"\x71\x75\x65\x72\x79":util[_0x528d[51]](_0x528d[50],getValueFromPropertyName(_0xe593xe,getAgentSearchPropertyFromChannel(_0xe593xc)))},headers:_0xe593x10[_0x528d[21]],json:true})}}function getAgentSearchPropertyFromChannel(_0xe593xc){var _0xe593x22=_0x528d[52];if(_0xe593xc){switch(_0xe593xc){case _0x528d[54]:_0xe593x22= _0x528d[53];break;default:_0xe593x22= _0x528d[53];console[_0x528d[15]](_0x528d[55],_0xe593xc)}};return _0xe593x22}function getValueFromPropertyName(_0xe593xe,_0xe593x22,_0xe593x10){if(_0xe593x22=== _0x528d[56]){if(_0xe593x10&& _0xe593x10[_0x528d[30]]&& _0xe593x10[_0x528d[22]]){return util[_0x528d[51]](_0x528d[57],stripTrailingSlash(_0xe593x10[_0x528d[22]]),_0xe593xe[_0x528d[58]])}else {return null}}else {return _[_0x528d[59]](_0xe593xe,_0xe593x22)}}function handleAgent(_0xe593x10,_0xe593xc,_0xe593x25){return function(_0xe593xe){if(_0xe593xe[_0x528d[61]][_0x528d[60]]> 0&& _0xe593xe[_0x528d[62]]> 0){console[_0x528d[11]](_0x528d[63],getValueFromPropertyName(_0xe593x25,getAgentSearchPropertyFromChannel(_0xe593xc)));_0xe593x10[_0x528d[64]]= getMatchObject(_0xe593xe[_0x528d[61]],_0x528d[26],getValueFromPropertyName(_0xe593x25,getAgentSearchPropertyFromChannel(_0xe593xc)));return _0xe593x10[_0x528d[64]]};return}}function getMatchObject(_0xe593x27,_0xe593x22,_0xe593x28){var _0xe593x29=_[_0x528d[18]](_0xe593x27,{property:_0xe593x28});if(_0xe593x29){return _0xe593x29};return _[_0x528d[65]](_0xe593x27)}function searchAdmin(_0xe593x10){return function(_0xe593xe){if(_0xe593xe){return};console[_0x528d[11]](_0x528d[66]);return rp({uri:_0xe593x10[_0x528d[20]]+ _0x528d[67],headers:_0xe593x10[_0x528d[21]],json:true})}}function handleAdmin(_0xe593x10){return function(_0xe593xe){if(!_0xe593xe){return};if(_0xe593xe[_0x528d[68]]){console[_0x528d[11]](_0x528d[69]);_0xe593x10[_0x528d[64]]= _0xe593xe[_0x528d[68]]};return}}function searchEndUser(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xd){return function(){console[_0x528d[11]](_0x528d[70],getValueFromPropertyName(_0xe593xe,getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd)));return rp({uri:_0xe593x10[_0x528d[20]]+ _0x528d[49],qs:{"\x71\x75\x65\x72\x79":util[_0x528d[51]](_0x528d[71],getEndUserSearchQueryFromChannel(_0xe593xc),getValueFromPropertyName(_0xe593xe,getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd)))},headers:_0xe593x10[_0x528d[21]],json:true})}}function getEndUserSearchQueryFromChannel(_0xe593xc){var _0xe593x22=_0x528d[52];if(_0xe593xc){switch(_0xe593xc){case _0x528d[54]:_0xe593x22= _0x528d[72];break;default:_0xe593x22= _0x528d[72];console[_0x528d[15]](_0x528d[55],_0xe593xc)}};return _0xe593x22}function getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd){var _0xe593x22=_0x528d[52];if(_0xe593xc){switch(_0xe593xc){case _0x528d[54]:if(_0xe593xd=== _0x528d[73]){_0xe593x22= _0x528d[74]}else {if(_0xe593xd=== _0x528d[25]){_0xe593x22= _0x528d[75]}};break;default:_0xe593x22= _0x528d[75];console[_0x528d[15]](_0x528d[55],_0xe593xc)}};return _0xe593x22}function getEndUserNamePropertyFromChannel(_0xe593xc,_0xe593xd){var _0xe593x22=_0x528d[52];if(_0xe593xc){switch(_0xe593xc){case _0x528d[54]:if(_0xe593xd=== _0x528d[73]){_0xe593x22= _0x528d[76]}else {if(_0xe593xd=== _0x528d[25]){_0xe593x22= _0x528d[77]}};break;default:_0xe593x22= _0x528d[77];console[_0x528d[15]](_0x528d[55],_0xe593xc)}};return _0xe593x22}function handleEndUser(_0xe593x10,_0xe593xc,_0xe593x25,_0xe593xd){return function(_0xe593xe){if(_0xe593xe[_0x528d[61]][_0x528d[60]]> 0&& _0xe593xe[_0x528d[62]]> 0){console[_0x528d[11]](_0x528d[78],getValueFromPropertyName(_0xe593x25,getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd)));_0xe593x10[_0x528d[79]]= _0xe593xe[_0x528d[61]][0];return _0xe593x10[_0x528d[79]]};return}}function endUserCreation(_0xe593x10,_0xe593xc,_0xe593x25,_0xe593xd){return function(_0xe593xe){if(_0xe593xe){return};console[_0x528d[11]](_0x528d[80],getValueFromPropertyName(_0xe593x25,getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd)));console[_0x528d[11]](getJsonForEndUserCreation(_0xe593xc,_0xe593x25,_0xe593xd));return rp({uri:_0xe593x10[_0x528d[20]]+ _0x528d[81],method:_0x528d[82],body:{user:getJsonForEndUserCreation(_0xe593xc,_0xe593x25,_0xe593xd)},headers:_0xe593x10[_0x528d[21]],json:true})}}function getJsonForEndUserCreation(_0xe593xc,_0xe593xe,_0xe593xd){var _0xe593x33={role:_0x528d[83]};switch(_0xe593xc){case _0x528d[54]:if(_0xe593xd=== _0x528d[25]){if(isValidName(_0xe593xe[_0x528d[77]])){_0xe593x33[_0x528d[26]]= getValueFromPropertyName(_0xe593xe,getEndUserNamePropertyFromChannel(_0xe593xc,_0xe593xd))}else {_0xe593x33[_0x528d[26]]= util[_0x528d[51]](_0x528d[84],getValueFromPropertyName(_0xe593xe,getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd)))}}else {if(_0xe593xd=== _0x528d[73]){if(isValidName(_0xe593xe[_0x528d[76]])){_0xe593x33[_0x528d[26]]= getValueFromPropertyName(_0xe593xe,getEndUserNamePropertyFromChannel(_0xe593xc,_0xe593xd))}else {_0xe593x33[_0x528d[26]]= util[_0x528d[51]](_0x528d[84],getValueFromPropertyName(_0xe593xe,getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd)))}}};_0xe593x33[_0x528d[72]]= getValueFromPropertyName(_0xe593xe,getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd));break;default:console[_0x528d[15]](_0x528d[55],_0xe593xc)};return _0xe593x33}function isValidName(_0xe593x35){return _0xe593x35&& _0xe593x35!== _0x528d[85]}function handleEndUserCreation(_0xe593x10,_0xe593xc,_0xe593x25,_0xe593xd){return function(_0xe593xe){if(!_0xe593xe){return};if(_0xe593xe[_0x528d[68]]){console[_0x528d[11]](_0x528d[86],getValueFromPropertyName(_0xe593x25,getEndUserSearchPropertyFromChannel(_0xe593xc,_0xe593xd)));_0xe593x10[_0x528d[79]]= _0xe593xe[_0x528d[68]]};return}}function ticketCreation(_0xe593x10,_0xe593x25,_0xe593xf){return function(){var _0xe593x38={requester_id:_0xe593x10[_0x528d[64]][_0x528d[33]],submitter_id:_0xe593x10[_0x528d[79]][_0x528d[33]],assignee_id:_0xe593x10[_0x528d[79]][_0x528d[33]],tags:createTagsFromConfiguration(_0xe593x10),subject:createSubjectFromConfiguration(_0xe593x10,_0xe593x25,_0xe593xf),description:createDescriptionFromConfiguration(_0xe593x10,_0xe593x25,_0xe593xf),custom_fields:createCustomFieldsFromConfiguration(_0xe593x10,_0xe593x25,_0xe593xf)};var _0xe593x39=createFieldsFromConfiguration(_0xe593x10);if(_0xe593x39[_0x528d[60]]> 0){_[_0x528d[88]](_0xe593x39,function(_0xe593x3a){_0xe593x38[_0xe593x3a[_0x528d[33]]]= _0xe593x3a[_0x528d[87]]})};console[_0x528d[11]](_0x528d[89],_0xe593x38);return rp({uri:_0xe593x10[_0x528d[20]]+ _0x528d[90],method:_0x528d[82],body:{ticket:_0xe593x38},headers:_0xe593x10[_0x528d[21]],json:true})}}function createTagsFromConfiguration(_0xe593x10){var _0xe593x3c=[];if(_0xe593x10[_0x528d[19]][_0x528d[91]][_0x528d[60]]> 0){_0xe593x3c= _[_0x528d[92]](_0xe593x10[_0x528d[19]].Tags,_0x528d[26])};return _0xe593x3c}function createSubjectFromConfiguration(_0xe593x10,_0xe593x25,_0xe593xf){var _0xe593x3e=_0x528d[52];var _0xe593x3f=[];if(_0xe593x10[_0x528d[19]][_0x528d[93]][_0x528d[60]]> 0){var _0xe593x40=_[_0x528d[94]](_0xe593x10[_0x528d[19]].Subject,[_0x528d[33]]);_[_0x528d[88]](_0xe593x40,function(_0xe593x41){if(_0xe593x41[_0x528d[95]]=== _0x528d[96]){_0xe593x3f[_0x528d[98]](_0xe593x41[_0x528d[97]])}else {if(_0xe593x41[_0x528d[95]]=== _0x528d[99]&& _0xe593x41[_0x528d[100]]){var _0xe593x42=getValueFromPropertyName(_0xe593x25,_0xe593x41[_0x528d[100]],_0xe593x10);if(_0xe593x42){_0xe593x3f[_0x528d[98]](_0xe593x42.toString())}}else {if(_0xe593x41[_0x528d[95]]=== _0x528d[101]){var _0xe593x43=_[_0x528d[18]](_0xe593xf,{"\x6E\x61\x6D\x65":_0xe593x41[_0x528d[102]][_0x528d[26]]});if(_0xe593x43){_0xe593x3f[_0x528d[98]](_0xe593x43[_0x528d[87]].toString())}}}}});_0xe593x3e= _0xe593x3f[_0x528d[104]](_0x528d[103])};return _0xe593x3e}function createDescriptionFromConfiguration(_0xe593x10,_0xe593x25,_0xe593xf){var _0xe593x45=_0x528d[52];var _0xe593x3f=[];if(_0xe593x10[_0x528d[19]][_0x528d[105]][_0x528d[60]]> 0){var _0xe593x46=_[_0x528d[94]](_0xe593x10[_0x528d[19]].Description,[_0x528d[33]]);_[_0x528d[88]](_0xe593x46,function(_0xe593x41){if(_0xe593x41[_0x528d[95]]=== _0x528d[96]){_0xe593x3f[_0x528d[98]](_0xe593x41[_0x528d[97]])}else {if(_0xe593x41[_0x528d[95]]=== _0x528d[106]){if(_0xe593x41[_0x528d[107]]=== _0x528d[96]){_0xe593x3f[_0x528d[98]](util[_0x528d[51]](_0x528d[108],_0xe593x41[_0x528d[109]],_0xe593x41[_0x528d[110]]))}else {if(_0xe593x41[_0x528d[107]]=== _0x528d[99]&& _0xe593x41[_0x528d[100]]){var _0xe593x42=getValueFromPropertyName(_0xe593x25,_0xe593x41[_0x528d[100]],_0xe593x10);if(_0xe593x42){_0xe593x3f[_0x528d[98]](util[_0x528d[51]](_0x528d[108],_0xe593x41[_0x528d[109]],_0xe593x42.toString()))}}else {if(_0xe593x41[_0x528d[107]]=== _0x528d[101]){var _0xe593x43=_[_0x528d[18]](_0xe593xf,{"\x6E\x61\x6D\x65":_0xe593x41[_0x528d[102]][_0x528d[26]]});if(_0xe593x43){_0xe593x3f[_0x528d[98]](util[_0x528d[51]](_0x528d[108],_0xe593x41[_0x528d[109]],_0xe593x43[_0x528d[87]].toString()))}}}}}}});_0xe593x45= _0xe593x3f[_0x528d[104]](_0x528d[111])};return _0xe593x45}function createCustomFieldsFromConfiguration(_0xe593x10,_0xe593x25,_0xe593xf){var _0xe593x48=[];var _0xe593x49=[];if(_0xe593x10[_0x528d[19]][_0x528d[112]][_0x528d[60]]> 0){_0xe593x48= _[_0x528d[113]](_0xe593x10[_0x528d[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x528d[88]](_0xe593x48,function(_0xe593x3a){if(_0xe593x3a[_0x528d[95]]=== _0x528d[96]){_0xe593x49[_0x528d[98]]({id:_0xe593x3a[_0x528d[114]],value:_0xe593x3a[_0x528d[97]]})}else {if(_0xe593x3a[_0x528d[95]]=== _0x528d[99]){var _0xe593x42=getValueFromPropertyName(_0xe593x25,_0xe593x3a[_0x528d[100]],_0xe593x10);if(_0xe593x42){_0xe593x49[_0x528d[98]]({id:_0xe593x3a[_0x528d[114]],value:_0xe593x42.toString()})}}else {if(_0xe593x3a[_0x528d[95]]=== _0x528d[101]){var _0xe593x43=_[_0x528d[18]](_0xe593xf,{"\x6E\x61\x6D\x65":_0xe593x3a[_0x528d[102]][_0x528d[26]]});if(_0xe593x43){_0xe593x49[_0x528d[98]]({id:_0xe593x3a[_0x528d[114]],value:_0xe593x43[_0x528d[87]].toString()})}}}}})};return _0xe593x49}function createFieldsFromConfiguration(_0xe593x10){var _0xe593x39=[];var _0xe593x49=[];if(_0xe593x10[_0x528d[19]][_0x528d[112]][_0x528d[60]]> 0){_0xe593x39= _[_0x528d[113]](_0xe593x10[_0x528d[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x528d[88]](_0xe593x39,function(_0xe593x3a){if(_0xe593x3a[_0x528d[95]]=== _0x528d[96]){_0xe593x49[_0x528d[98]]({id:_0xe593x3a[_0x528d[115]],value:_0xe593x3a[_0x528d[97]]})}})};return _0xe593x49}function handleTicketDisplay(_0xe593x10){return function(_0xe593xe){if(_0xe593xe[_0x528d[116]]){console[_0x528d[11]](_0x528d[117]);_0xe593x10[_0x528d[116]]= _0xe593xe[_0x528d[116]];var _0xe593x4c=util[_0x528d[51]](_0x528d[118],_0xe593x10[_0x528d[64]][_0x528d[33]],_0xe593x10[_0x528d[116]][_0x528d[33]]);return rp({uri:_0xe593x10[_0x528d[20]]+ _0xe593x4c,method:_0x528d[82],headers:_0xe593x10[_0x528d[21]],json:true})};return}}function handleReportIntegration(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xa){return function(){delete _0xe593xe[_0x528d[33]];_0xe593xe[_0x528d[119]]= _0x528d[120];_0xe593xe[_0x528d[121]]= _0xe593xc;_0xe593xe[_0x528d[122]]= _0x528d[123];_0xe593xe[_0x528d[124]]= _0xe593x10[_0x528d[116]][_0x528d[33]];_0xe593xe[_0x528d[125]]= _0xe593x10[_0x528d[116]][_0x528d[125]];_0xe593xe[_0x528d[126]]= _0xe593xa;return ReportIntegration[_0x528d[127]](_0xe593xe)}}function handleEnd(_0xe593x10,_0xe593xe,_0xe593xc){return function(){console[_0x528d[11]](util[_0x528d[51]](_0x528d[128],_0xe593x10[_0x528d[116]][_0x528d[33]],_0xe593x10[_0x528d[64]][_0x528d[33]]));_0xe593x10= undefined;return}}function handleError(_0xe593x10,_0xe593xc,_0xe593xe,_0xe593xa){return function(_0xe593x50){console[_0x528d[15]](_0x528d[129]);console[_0x528d[15]](_0x528d[130],_0xe593x50[_0x528d[131]]);console[_0x528d[15]](_0x528d[132],_0xe593x50[_0x528d[133]]);_0xe593x10= undefined;delete _0xe593xe[_0x528d[33]];_0xe593xe[_0x528d[119]]= _0x528d[120];_0xe593xe[_0x528d[121]]= _0xe593xc;_0xe593xe[_0x528d[122]]= _0x528d[134];_0xe593xe[_0x528d[126]]= _0xe593xa;ReportIntegration[_0x528d[127]](_0xe593xe)[_0x528d[17]](function(){return})[_0x528d[16]](function(_0xe593x50){console[_0x528d[15]](_0x528d[135]);return})}}function stripTrailingSlash(_0xe593x52){if(_0xe593x52[_0x528d[136]](-1) === _0x528d[137]){return _0xe593x52[_0x528d[136]](0,_0xe593x52[_0x528d[60]]- 1)};return _0xe593x52}module[_0x528d[138]]= Zendesk
\ No newline at end of file