Built motion from commit b33b832.|1.0.17
[motion.git] / server / config / integrations / zendesk.js
index d2fb504..66f6deb 100644 (file)
@@ -1 +1 @@
-var _0x7bd5=["\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","\x55\x73\x65\x72","\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","\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","\x53\x65\x61\x72\x63\x68\x69\x6E\x67\x20\x51\x75\x65\x75\x65\x2E\x2E\x2E","\x71\x75\x65\x75\x65","\x6E\x61\x6D\x65","\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x6F\x72\x6D\x61\x74","\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\x3F\x74\x79\x70\x65\x3D\x75\x6E\x69\x71\x75\x65\x69\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","\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","\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","\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"];_0x7bd5[0];var _=require(_0x7bd5[1]);var util=require(_0x7bd5[2]);var rp=require(_0x7bd5[3]);var ZendeskIntegration=require(_0x7bd5[5])[_0x7bd5[4]];var ZendeskConfiguration=require(_0x7bd5[5])[_0x7bd5[6]];var ReportIntegration=require(_0x7bd5[5])[_0x7bd5[7]];var VoiceQueue=require(_0x7bd5[5])[_0x7bd5[8]];var VoiceExtension=require(_0x7bd5[5])[_0x7bd5[9]];var Agent=require(_0x7bd5[5])[_0x7bd5[10]];function Zendesk(){console[_0x7bd5[12]](_0x7bd5[11])}Zendesk[_0x7bd5[14]][_0x7bd5[13]]= function(_0x936fxb,_0x936fxc,_0x936fxd,_0x936fxe,_0x936fxf,_0x936fx10){var _0x936fx11={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0x936fxb||  !_0x936fxc){console[_0x7bd5[16]](_0x7bd5[15]);return};ZendeskConfiguration[_0x7bd5[19]]({where:{id:_0x936fxc,AccountId:_0x936fxb},include:[{all:true,include:[{all:true}]}]})[_0x7bd5[18]](handleEntityNotFound())[_0x7bd5[18]](handleConnection(_0x936fx11))[_0x7bd5[18]](searchMotionAgent(_0x936fxd,_0x936fxf))[_0x7bd5[18]](handleMotionAgent(_0x936fx11))[_0x7bd5[18]](searchQueue(_0x936fxf))[_0x7bd5[18]](handleQueueRecordings(_0x936fx11,_0x936fxf))[_0x7bd5[18]](searchRoute(_0x936fxf))[_0x7bd5[18]](handleOutboundRecordings(_0x936fx11,_0x936fxf))[_0x7bd5[18]](searchAgent(_0x936fx11))[_0x7bd5[18]](handleAgent(_0x936fx11))[_0x7bd5[18]](searchAdmin(_0x936fx11))[_0x7bd5[18]](handleAdmin(_0x936fx11))[_0x7bd5[18]](searchEndUser(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxe))[_0x7bd5[18]](handleEndUser(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxe))[_0x7bd5[18]](endUserCreation(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxe))[_0x7bd5[18]](handleEndUserCreation(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxe))[_0x7bd5[18]](ticketCreation(_0x936fx11,_0x936fxf,_0x936fx10))[_0x7bd5[18]](handleTicketDisplay(_0x936fx11))[_0x7bd5[18]](handleReportIntegration(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxb))[_0x7bd5[18]](handleEnd(_0x936fx11))[_0x7bd5[17]](handleError(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxb))};function handleEntityNotFound(){return function(_0x936fx13){if(!_0x936fx13){return null};return _0x936fx13}}function handleConnection(_0x936fx11){return function(_0x936fx15){var _0x936fx16=getAccountConfiguration(_0x936fx15.ZendeskAccount);_0x936fx11[_0x7bd5[20]]= _0x936fx15;_0x936fx11[_0x7bd5[21]]= _0x936fx16[_0x7bd5[21]];_0x936fx11[_0x7bd5[22]]= _0x936fx16[_0x7bd5[22]];_0x936fx11[_0x7bd5[23]]= _0x936fx15[_0x7bd5[25]][_0x7bd5[24]]}}function searchMotionAgent(_0x936fxd,_0x936fxf){return function(){return Agent[_0x7bd5[29]](_0x7bd5[28])[_0x7bd5[27]]({where:{name:getValueFromPropertyName(_0x936fxf,getAgentSearchPropertyFromChannel(_0x936fxd))},attributes:[_0x7bd5[26]]})}}function handleMotionAgent(_0x936fx11){return function(_0x936fx19){if(_0x936fx19&& _0x936fx19[_0x7bd5[26]]){_0x936fx11[_0x7bd5[30]]= _0x936fx19[_0x7bd5[26]]};return}}function searchQueue(_0x936fxf){return function(){console[_0x7bd5[12]](_0x7bd5[31]);if(_0x936fxf[_0x7bd5[32]]){return VoiceQueue[_0x7bd5[27]]({where:{name:_0x936fxf[_0x7bd5[32]]},attributes:[_0x7bd5[33],_0x7bd5[34]]})}else {return}}}function handleQueueRecordings(_0x936fx11,_0x936fxf){return function(_0x936fx1c){if(_0x936fxf[_0x7bd5[32]]){if(_0x936fx1c&& _0x936fx1c[_0x7bd5[34]]){console[_0x7bd5[12]](_0x7bd5[35],_0x936fx1c[_0x7bd5[33]]);_0x936fx11[_0x7bd5[36]]= true}else {_0x936fx11[_0x7bd5[36]]= false;console[_0x7bd5[12]](_0x7bd5[37])}};return}}function searchRoute(_0x936fxf){return function(){if(_0x936fxf[_0x7bd5[38]]){return VoiceExtension[_0x7bd5[27]]({where:{id:_0x936fxf[_0x7bd5[38]]},attributes:[_0x7bd5[39],_0x7bd5[40]]})}else {return}}}function handleOutboundRecordings(_0x936fx11,_0x936fxf){return function(_0x936fx1f){if(_0x936fxf[_0x7bd5[38]]){if(_0x936fx1f&& _0x936fx1f[_0x7bd5[40]]){console[_0x7bd5[12]](_0x7bd5[41],_0x936fx1f[_0x7bd5[39]]);_0x936fx11[_0x7bd5[36]]= true}else {_0x936fx11[_0x7bd5[36]]= false;console[_0x7bd5[12]](_0x7bd5[42])}};return}}function getAccountConfiguration(_0x936fx21){var _0x936fx22={uri:stripTrailingSlash(_0x936fx21[_0x7bd5[43]]),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":_0x7bd5[44],"\x41\x63\x63\x65\x70\x74":_0x7bd5[44]}};var _0x936fx23=_0x936fx21[_0x7bd5[45]];if(_0x936fx21[_0x7bd5[46]]=== _0x7bd5[47]){_0x936fx23= _0x936fx23+ _0x7bd5[48]+ _0x936fx21[_0x7bd5[47]]}else {if(_0x936fx21[_0x7bd5[46]]=== _0x7bd5[49]){_0x936fx23= _0x936fx23+ _0x7bd5[50]+ _0x936fx21[_0x7bd5[49]]}};_0x936fx22[_0x7bd5[22]][_0x7bd5[51]]= _0x7bd5[52]+  new Buffer(_0x936fx23).toString(_0x7bd5[53]);return _0x936fx22}function searchAgent(_0x936fx11){return function(){console[_0x7bd5[12]](_0x7bd5[54],_0x936fx11[_0x7bd5[30]]);return rp({uri:_0x936fx11[_0x7bd5[21]]+ _0x7bd5[55],qs:{"\x71\x75\x65\x72\x79":util[_0x7bd5[57]](_0x7bd5[56],_0x936fx11[_0x7bd5[30]])},headers:_0x936fx11[_0x7bd5[22]],json:true})}}function getAgentSearchPropertyFromChannel(_0x936fxd){var _0x936fx26=_0x7bd5[58];if(_0x936fxd){switch(_0x936fxd){case _0x7bd5[60]:_0x936fx26= _0x7bd5[59];break;default:_0x936fx26= _0x7bd5[59];console[_0x7bd5[16]](_0x7bd5[61],_0x936fxd)}};return _0x936fx26}function getValueFromPropertyName(_0x936fxf,_0x936fx26,_0x936fx11){if(_0x936fx26=== _0x7bd5[62]){if(_0x936fx11&& _0x936fx11[_0x7bd5[36]]&& _0x936fx11[_0x7bd5[23]]){return util[_0x7bd5[57]](_0x7bd5[63],stripTrailingSlash(_0x936fx11[_0x7bd5[23]]),_0x936fxf[_0x7bd5[64]])}else {return null}}else {return _[_0x7bd5[65]](_0x936fxf,_0x936fx26)}}function handleAgent(_0x936fx11){return function(_0x936fxf){if(_0x936fxf[_0x7bd5[67]][_0x7bd5[66]]> 0&& _0x936fxf[_0x7bd5[68]]> 0){console[_0x7bd5[12]](_0x7bd5[69],_0x936fx11[_0x7bd5[30]]);_0x936fx11[_0x7bd5[28]]= getMatchObject(_0x936fxf[_0x7bd5[67]],_0x7bd5[33],_0x936fx11[_0x7bd5[30]]);return _0x936fx11[_0x7bd5[28]]};return}}function getMatchObject(_0x936fx2a,_0x936fx26,_0x936fx2b){var _0x936fx2c=_[_0x7bd5[19]](_0x936fx2a,{property:_0x936fx2b});if(_0x936fx2c){return _0x936fx2c};return _[_0x7bd5[70]](_0x936fx2a)}function searchAdmin(_0x936fx11){return function(_0x936fxf){if(_0x936fxf){return};console[_0x7bd5[12]](_0x7bd5[71]);return rp({uri:_0x936fx11[_0x7bd5[21]]+ _0x7bd5[72],headers:_0x936fx11[_0x7bd5[22]],json:true})}}function handleAdmin(_0x936fx11){return function(_0x936fxf){if(!_0x936fxf){return};if(_0x936fxf[_0x7bd5[73]]){console[_0x7bd5[12]](_0x7bd5[74]);_0x936fx11[_0x7bd5[28]]= _0x936fxf[_0x7bd5[73]]};return}}function searchEndUser(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxe){return function(){console[_0x7bd5[12]](_0x7bd5[75],getValueFromPropertyName(_0x936fxf,getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe)));return rp({uri:_0x936fx11[_0x7bd5[21]]+ _0x7bd5[55],qs:{"\x71\x75\x65\x72\x79":util[_0x7bd5[57]](_0x7bd5[76],getEndUserSearchQueryFromChannel(_0x936fxd),getValueFromPropertyName(_0x936fxf,getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe)))},headers:_0x936fx11[_0x7bd5[22]],json:true})}}function getEndUserSearchQueryFromChannel(_0x936fxd){var _0x936fx26=_0x7bd5[58];if(_0x936fxd){switch(_0x936fxd){case _0x7bd5[60]:_0x936fx26= _0x7bd5[77];break;default:_0x936fx26= _0x7bd5[77];console[_0x7bd5[16]](_0x7bd5[61],_0x936fxd)}};return _0x936fx26}function getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe){var _0x936fx26=_0x7bd5[58];if(_0x936fxd){switch(_0x936fxd){case _0x7bd5[60]:if(_0x936fxe=== _0x7bd5[78]){_0x936fx26= _0x7bd5[79]}else {if(_0x936fxe=== _0x7bd5[32]){_0x936fx26= _0x7bd5[80]}};break;default:_0x936fx26= _0x7bd5[80];console[_0x7bd5[16]](_0x7bd5[61],_0x936fxd)}};return _0x936fx26}function getEndUserNamePropertyFromChannel(_0x936fxd,_0x936fxe){var _0x936fx26=_0x7bd5[58];if(_0x936fxd){switch(_0x936fxd){case _0x7bd5[60]:if(_0x936fxe=== _0x7bd5[78]){_0x936fx26= _0x7bd5[81]}else {if(_0x936fxe=== _0x7bd5[32]){_0x936fx26= _0x7bd5[82]}};break;default:_0x936fx26= _0x7bd5[82];console[_0x7bd5[16]](_0x7bd5[61],_0x936fxd)}};return _0x936fx26}function handleEndUser(_0x936fx11,_0x936fxd,_0x936fx34,_0x936fxe){return function(_0x936fxf){if(_0x936fxf[_0x7bd5[67]][_0x7bd5[66]]> 0&& _0x936fxf[_0x7bd5[68]]> 0){console[_0x7bd5[12]](_0x7bd5[83],getValueFromPropertyName(_0x936fx34,getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe)));_0x936fx11[_0x7bd5[84]]= _0x936fxf[_0x7bd5[67]][0];return _0x936fx11[_0x7bd5[84]]};return}}function endUserCreation(_0x936fx11,_0x936fxd,_0x936fx34,_0x936fxe){return function(_0x936fxf){if(_0x936fxf){return};console[_0x7bd5[12]](_0x7bd5[85],getValueFromPropertyName(_0x936fx34,getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe)));console[_0x7bd5[12]](getJsonForEndUserCreation(_0x936fxd,_0x936fx34,_0x936fxe));return rp({uri:_0x936fx11[_0x7bd5[21]]+ _0x7bd5[86],method:_0x7bd5[87],body:{user:getJsonForEndUserCreation(_0x936fxd,_0x936fx34,_0x936fxe)},headers:_0x936fx11[_0x7bd5[22]],json:true})}}function getJsonForEndUserCreation(_0x936fxd,_0x936fxf,_0x936fxe){var _0x936fx37={role:_0x7bd5[88]};switch(_0x936fxd){case _0x7bd5[60]:if(_0x936fxe=== _0x7bd5[32]){if(isValidName(_0x936fxf[_0x7bd5[82]])){_0x936fx37[_0x7bd5[33]]= getValueFromPropertyName(_0x936fxf,getEndUserNamePropertyFromChannel(_0x936fxd,_0x936fxe))}else {_0x936fx37[_0x7bd5[33]]= util[_0x7bd5[57]](_0x7bd5[89],getValueFromPropertyName(_0x936fxf,getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe)))}}else {if(_0x936fxe=== _0x7bd5[78]){if(isValidName(_0x936fxf[_0x7bd5[81]])){_0x936fx37[_0x7bd5[33]]= getValueFromPropertyName(_0x936fxf,getEndUserNamePropertyFromChannel(_0x936fxd,_0x936fxe))}else {_0x936fx37[_0x7bd5[33]]= util[_0x7bd5[57]](_0x7bd5[89],getValueFromPropertyName(_0x936fxf,getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe)))}}};_0x936fx37[_0x7bd5[77]]= getValueFromPropertyName(_0x936fxf,getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe));break;default:console[_0x7bd5[16]](_0x7bd5[61],_0x936fxd)};return _0x936fx37}function isValidName(_0x936fx39){return _0x936fx39&& _0x936fx39!== _0x7bd5[90]}function handleEndUserCreation(_0x936fx11,_0x936fxd,_0x936fx34,_0x936fxe){return function(_0x936fxf){if(!_0x936fxf){return};if(_0x936fxf[_0x7bd5[73]]){console[_0x7bd5[12]](_0x7bd5[91],getValueFromPropertyName(_0x936fx34,getEndUserSearchPropertyFromChannel(_0x936fxd,_0x936fxe)));_0x936fx11[_0x7bd5[84]]= _0x936fxf[_0x7bd5[73]]};return}}function ticketCreation(_0x936fx11,_0x936fx34,_0x936fx10){return function(){var _0x936fx3c={requester_id:_0x936fx11[_0x7bd5[28]][_0x7bd5[39]],submitter_id:_0x936fx11[_0x7bd5[84]][_0x7bd5[39]],assignee_id:_0x936fx11[_0x7bd5[84]][_0x7bd5[39]],tags:createTagsFromConfiguration(_0x936fx11),subject:createSubjectFromConfiguration(_0x936fx11,_0x936fx34,_0x936fx10),description:createDescriptionFromConfiguration(_0x936fx11,_0x936fx34,_0x936fx10),custom_fields:createCustomFieldsFromConfiguration(_0x936fx11,_0x936fx34,_0x936fx10)};var _0x936fx3d=createFieldsFromConfiguration(_0x936fx11);if(_0x936fx3d[_0x7bd5[66]]> 0){_[_0x7bd5[93]](_0x936fx3d,function(_0x936fx3e){_0x936fx3c[_0x936fx3e[_0x7bd5[39]]]= _0x936fx3e[_0x7bd5[92]]})};console[_0x7bd5[12]](_0x7bd5[94],_0x936fx3c);return rp({uri:_0x936fx11[_0x7bd5[21]]+ _0x7bd5[95],method:_0x7bd5[87],body:{ticket:_0x936fx3c},headers:_0x936fx11[_0x7bd5[22]],json:true})}}function createTagsFromConfiguration(_0x936fx11){var _0x936fx40=[];if(_0x936fx11[_0x7bd5[20]][_0x7bd5[96]][_0x7bd5[66]]> 0){_0x936fx40= _[_0x7bd5[97]](_0x936fx11[_0x7bd5[20]].Tags,_0x7bd5[33])};return _0x936fx40}function createSubjectFromConfiguration(_0x936fx11,_0x936fx34,_0x936fx10){var _0x936fx42=_0x7bd5[58];var _0x936fx43=[];if(_0x936fx11[_0x7bd5[20]][_0x7bd5[98]][_0x7bd5[66]]> 0){var _0x936fx44=_[_0x7bd5[99]](_0x936fx11[_0x7bd5[20]].Subject,[_0x7bd5[39]]);_[_0x7bd5[93]](_0x936fx44,function(_0x936fx45){if(_0x936fx45[_0x7bd5[100]]=== _0x7bd5[101]){_0x936fx43[_0x7bd5[103]](_0x936fx45[_0x7bd5[102]])}else {if(_0x936fx45[_0x7bd5[100]]=== _0x7bd5[104]&& _0x936fx45[_0x7bd5[105]]){var _0x936fx46=getValueFromPropertyName(_0x936fx34,_0x936fx45[_0x7bd5[105]],_0x936fx11);if(_0x936fx46){_0x936fx43[_0x7bd5[103]](_0x936fx46.toString())}}else {if(_0x936fx45[_0x7bd5[100]]=== _0x7bd5[106]&& _0x936fx45[_0x7bd5[107]]&& _0x936fx45[_0x7bd5[107]][_0x7bd5[33]]){_0x936fx10[_0x936fx45[_0x7bd5[107]][_0x7bd5[33]]]&& _0x936fx43[_0x7bd5[103]](_0x936fx10[_0x936fx45[_0x7bd5[107]][_0x7bd5[33]]].toString())}}}});_0x936fx42= _0x936fx43[_0x7bd5[109]](_0x7bd5[108])};return _0x936fx42}function createDescriptionFromConfiguration(_0x936fx11,_0x936fx34,_0x936fx10){var _0x936fx48=_0x7bd5[58];var _0x936fx43=[];if(_0x936fx11[_0x7bd5[20]][_0x7bd5[110]][_0x7bd5[66]]> 0){var _0x936fx49=_[_0x7bd5[99]](_0x936fx11[_0x7bd5[20]].Description,[_0x7bd5[39]]);_[_0x7bd5[93]](_0x936fx49,function(_0x936fx45){if(_0x936fx45[_0x7bd5[100]]=== _0x7bd5[101]){_0x936fx43[_0x7bd5[103]](_0x936fx45[_0x7bd5[102]])}else {if(_0x936fx45[_0x7bd5[100]]=== _0x7bd5[111]){if(_0x936fx45[_0x7bd5[112]]=== _0x7bd5[101]&& _0x936fx45[_0x7bd5[113]]){_0x936fx43[_0x7bd5[103]](util[_0x7bd5[57]](_0x7bd5[114],_0x936fx45[_0x7bd5[113]],_0x936fx45[_0x7bd5[115]]))}else {if(_0x936fx45[_0x7bd5[112]]=== _0x7bd5[104]&& _0x936fx45[_0x7bd5[105]]&& _0x936fx45[_0x7bd5[113]]){var _0x936fx46=getValueFromPropertyName(_0x936fx34,_0x936fx45[_0x7bd5[105]],_0x936fx11);if(_0x936fx46){_0x936fx43[_0x7bd5[103]](util[_0x7bd5[57]](_0x7bd5[114],_0x936fx45[_0x7bd5[113]],_0x936fx46.toString()))}}else {if(_0x936fx45[_0x7bd5[112]]=== _0x7bd5[106]&& _0x936fx45[_0x7bd5[107]]&& _0x936fx45[_0x7bd5[107]][_0x7bd5[33]]&& _0x936fx45[_0x7bd5[113]]){_0x936fx10[_0x936fx45[_0x7bd5[107]][_0x7bd5[33]]]&& _0x936fx43[_0x7bd5[103]](util[_0x7bd5[57]](_0x7bd5[114],_0x936fx45[_0x7bd5[113]],_0x936fx10[_0x936fx45[_0x7bd5[107]][_0x7bd5[33]]]))}}}}}});_0x936fx48= _0x936fx43[_0x7bd5[109]](_0x7bd5[116])};return _0x936fx48}function createCustomFieldsFromConfiguration(_0x936fx11,_0x936fx34,_0x936fx10){var _0x936fx4b=[];var _0x936fx4c=[];if(_0x936fx11[_0x7bd5[20]][_0x7bd5[117]][_0x7bd5[66]]> 0){_0x936fx4b= _[_0x7bd5[118]](_0x936fx11[_0x7bd5[20]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x7bd5[93]](_0x936fx4b,function(_0x936fx3e){if(_0x936fx3e[_0x7bd5[100]]=== _0x7bd5[101]&& _0x936fx3e[_0x7bd5[119]]){_0x936fx4c[_0x7bd5[103]]({id:_0x936fx3e[_0x7bd5[119]],value:_0x936fx3e[_0x7bd5[102]]})}else {if(_0x936fx3e[_0x7bd5[100]]=== _0x7bd5[104]&& _0x936fx3e[_0x7bd5[105]]&& _0x936fx3e[_0x7bd5[119]]){var _0x936fx46=getValueFromPropertyName(_0x936fx34,_0x936fx3e[_0x7bd5[105]],_0x936fx11);if(_0x936fx46){_0x936fx4c[_0x7bd5[103]]({id:_0x936fx3e[_0x7bd5[119]],value:_0x936fx46.toString()})}}else {if(_0x936fx3e[_0x7bd5[100]]=== _0x7bd5[106]&& _0x936fx3e[_0x7bd5[107]]&& _0x936fx3e[_0x7bd5[107]][_0x7bd5[33]]&& _0x936fx3e[_0x7bd5[119]]){_0x936fx10[_0x936fx3e[_0x7bd5[107]][_0x7bd5[33]]]&& _0x936fx4c[_0x7bd5[103]]({id:_0x936fx3e[_0x7bd5[119]],value:_0x936fx10[_0x936fx3e[_0x7bd5[107]][_0x7bd5[33]]].toString()})}}}})};return _0x936fx4c}function createFieldsFromConfiguration(_0x936fx11){var _0x936fx3d=[];var _0x936fx4c=[];if(_0x936fx11[_0x7bd5[20]][_0x7bd5[117]][_0x7bd5[66]]> 0){_0x936fx3d= _[_0x7bd5[118]](_0x936fx11[_0x7bd5[20]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x7bd5[93]](_0x936fx3d,function(_0x936fx3e){if(_0x936fx3e[_0x7bd5[100]]=== _0x7bd5[101]&& _0x936fx3e[_0x7bd5[120]]){_0x936fx4c[_0x7bd5[103]]({id:_0x936fx3e[_0x7bd5[120]],value:_0x936fx3e[_0x7bd5[102]]})}})};return _0x936fx4c}function handleTicketDisplay(_0x936fx11){return function(_0x936fxf){if(_0x936fxf[_0x7bd5[121]]){console[_0x7bd5[12]](_0x7bd5[122]);_0x936fx11[_0x7bd5[121]]= _0x936fxf[_0x7bd5[121]];var _0x936fx4f=util[_0x7bd5[57]](_0x7bd5[123],_0x936fx11[_0x7bd5[28]][_0x7bd5[39]],_0x936fx11[_0x7bd5[121]][_0x7bd5[39]]);return rp({uri:_0x936fx11[_0x7bd5[21]]+ _0x936fx4f,method:_0x7bd5[87],headers:_0x936fx11[_0x7bd5[22]],json:true})};return}}function handleReportIntegration(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxb){return function(){delete _0x936fxf[_0x7bd5[39]];_0x936fxf[_0x7bd5[124]]= _0x7bd5[125];_0x936fxf[_0x7bd5[126]]= _0x936fxd;_0x936fxf[_0x7bd5[127]]= _0x7bd5[128];_0x936fxf[_0x7bd5[129]]= _0x936fx11[_0x7bd5[121]][_0x7bd5[39]];_0x936fxf[_0x7bd5[130]]= _0x936fx11[_0x7bd5[121]][_0x7bd5[130]];_0x936fxf[_0x7bd5[131]]= _0x936fxb;return ReportIntegration[_0x7bd5[132]](_0x936fxf)}}function handleEnd(_0x936fx11,_0x936fxf,_0x936fxd){return function(){console[_0x7bd5[12]](util[_0x7bd5[57]](_0x7bd5[133],_0x936fx11[_0x7bd5[121]][_0x7bd5[39]],_0x936fx11[_0x7bd5[28]][_0x7bd5[39]]));_0x936fx11= undefined;return}}function handleError(_0x936fx11,_0x936fxd,_0x936fxf,_0x936fxb){return function(_0x936fx53){console[_0x7bd5[16]](_0x7bd5[134]);console[_0x7bd5[16]](_0x7bd5[135],_0x936fx53[_0x7bd5[136]]);console[_0x7bd5[16]](_0x7bd5[137],_0x936fx53[_0x7bd5[138]]);_0x936fx11= undefined;delete _0x936fxf[_0x7bd5[39]];_0x936fxf[_0x7bd5[124]]= _0x7bd5[125];_0x936fxf[_0x7bd5[126]]= _0x936fxd;_0x936fxf[_0x7bd5[127]]= _0x7bd5[139];_0x936fxf[_0x7bd5[131]]= _0x936fxb;ReportIntegration[_0x7bd5[132]](_0x936fxf)[_0x7bd5[18]](function(){return})[_0x7bd5[17]](function(_0x936fx53){console[_0x7bd5[16]](_0x7bd5[140]);return})}}function stripTrailingSlash(_0x936fx55){if(_0x936fx55[_0x7bd5[141]](-1) === _0x7bd5[142]){return _0x936fx55[_0x7bd5[141]](0,_0x936fx55[_0x7bd5[66]]- 1)};return _0x936fx55}module[_0x7bd5[143]]= Zendesk
\ No newline at end of file
+var _0x6821=["\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\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","\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","\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\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\x3F\x74\x79\x70\x65\x3D\x75\x6E\x69\x71\x75\x65\x69\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","\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","\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","\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","\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","\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","\x73\x75\x62\x74\x79\x70\x65\x43\x68\x61\x6E\x6E\x65\x6C","\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"];_0x6821[0];var _=require(_0x6821[1]);var util=require(_0x6821[2]);var rp=require(_0x6821[3]);var ZendeskConfiguration=require(_0x6821[5])[_0x6821[4]];var ReportIntegration=require(_0x6821[5])[_0x6821[6]];var VoiceQueue=require(_0x6821[5])[_0x6821[7]];var VoiceExtension=require(_0x6821[5])[_0x6821[8]];var Agent=require(_0x6821[5])[_0x6821[9]];function Zendesk(){console[_0x6821[11]](_0x6821[10])}Zendesk[_0x6821[13]][_0x6821[12]]= function(_0x15a5xa,_0x15a5xb,_0x15a5xc,_0x15a5xd,_0x15a5xe,_0x15a5xf){var _0x15a5x10={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0x15a5xa||  !_0x15a5xb){console[_0x6821[15]](_0x6821[14]);return};ZendeskConfiguration[_0x6821[18]]({where:{id:_0x15a5xb,AccountId:_0x15a5xa},include:[{all:true,include:[{all:true}]}]})[_0x6821[17]](handleEntityNotFound())[_0x6821[17]](handleConnection(_0x15a5x10))[_0x6821[17]](searchMotionAgent(_0x15a5xc,_0x15a5xe))[_0x6821[17]](handleMotionAgent(_0x15a5x10))[_0x6821[17]](searchQueue(_0x15a5xe))[_0x6821[17]](handleQueueRecordings(_0x15a5x10,_0x15a5xe))[_0x6821[17]](searchRoute(_0x15a5xe))[_0x6821[17]](handleOutboundRecordings(_0x15a5x10,_0x15a5xe))[_0x6821[17]](searchAgent(_0x15a5x10))[_0x6821[17]](handleAgent(_0x15a5x10))[_0x6821[17]](searchAdmin(_0x15a5x10))[_0x6821[17]](handleAdmin(_0x15a5x10))[_0x6821[17]](searchEndUser(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xd))[_0x6821[17]](handleEndUser(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xd))[_0x6821[17]](endUserCreation(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xd))[_0x6821[17]](handleEndUserCreation(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xd))[_0x6821[17]](ticketCreation(_0x15a5x10,_0x15a5xe,_0x15a5xf))[_0x6821[17]](handleTicketDisplay(_0x15a5x10))[_0x6821[17]](handleReportIntegration(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xa,_0x15a5xd))[_0x6821[17]](handleEnd(_0x15a5x10))[_0x6821[16]](handleError(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xa))};function handleEntityNotFound(){return function(_0x15a5x12){if(!_0x15a5x12){return null};return _0x15a5x12}}function handleConnection(_0x15a5x10){return function(_0x15a5x14){var _0x15a5x15=getAccountConfiguration(_0x15a5x14.ZendeskAccount);_0x15a5x10[_0x6821[19]]= _0x15a5x14;_0x15a5x10[_0x6821[20]]= _0x15a5x15[_0x6821[20]];_0x15a5x10[_0x6821[21]]= _0x15a5x15[_0x6821[21]];_0x15a5x10[_0x6821[22]]= _0x15a5x14[_0x6821[24]][_0x6821[23]]}}function searchMotionAgent(_0x15a5xc,_0x15a5xe){return function(){var _0x15a5x17=getAgentSearchPropertyFromChannel(_0x15a5xc);if(_0x15a5xe[_0x6821[25]](_0x15a5x17)){return Agent[_0x6821[29]](_0x6821[28])[_0x6821[27]]({where:{name:getValueFromPropertyName(_0x15a5xe,_0x15a5x17)},attributes:[_0x6821[26]]})};return}}function handleMotionAgent(_0x15a5x10){return function(_0x15a5x19){if(_0x15a5x19&& _0x15a5x19[_0x6821[26]]){_0x15a5x10[_0x6821[30]]= _0x15a5x19[_0x6821[26]]};return}}function searchQueue(_0x15a5xe){return function(){if(_0x15a5xe[_0x6821[31]]){return VoiceQueue[_0x6821[27]]({where:{name:_0x15a5xe[_0x6821[31]]},attributes:[_0x6821[32],_0x6821[33]]})}else {return}}}function handleQueueRecordings(_0x15a5x10,_0x15a5xe){return function(_0x15a5x1c){if(_0x15a5xe[_0x6821[31]]){if(_0x15a5x1c&& _0x15a5x1c[_0x6821[33]]){console[_0x6821[11]](_0x6821[34],_0x15a5x1c[_0x6821[32]]);_0x15a5x10[_0x6821[35]]= true}else {_0x15a5x10[_0x6821[35]]= false;console[_0x6821[11]](_0x6821[36])}};return}}function searchRoute(_0x15a5xe){return function(){if(_0x15a5xe[_0x6821[37]]){return VoiceExtension[_0x6821[27]]({where:{id:_0x15a5xe[_0x6821[37]]},attributes:[_0x6821[38],_0x6821[39]]})}else {return}}}function handleOutboundRecordings(_0x15a5x10,_0x15a5xe){return function(_0x15a5x1f){if(_0x15a5xe[_0x6821[37]]){if(_0x15a5x1f&& _0x15a5x1f[_0x6821[39]]){console[_0x6821[11]](_0x6821[40],_0x15a5x1f[_0x6821[38]]);_0x15a5x10[_0x6821[35]]= true}else {_0x15a5x10[_0x6821[35]]= false;console[_0x6821[11]](_0x6821[41])}};return}}function getAccountConfiguration(_0x15a5x21){var _0x15a5x22={uri:stripTrailingSlash(_0x15a5x21[_0x6821[42]]),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":_0x6821[43],"\x41\x63\x63\x65\x70\x74":_0x6821[43]}};var _0x15a5x23=_0x15a5x21[_0x6821[44]];if(_0x15a5x21[_0x6821[45]]=== _0x6821[46]){_0x15a5x23= _0x15a5x23+ _0x6821[47]+ _0x15a5x21[_0x6821[46]]}else {if(_0x15a5x21[_0x6821[45]]=== _0x6821[48]){_0x15a5x23= _0x15a5x23+ _0x6821[49]+ _0x15a5x21[_0x6821[48]]}};_0x15a5x22[_0x6821[21]][_0x6821[50]]= _0x6821[51]+  new Buffer(_0x15a5x23).toString(_0x6821[52]);return _0x15a5x22}function searchAgent(_0x15a5x10){return function(){if(_0x15a5x10[_0x6821[30]]){console[_0x6821[11]](_0x6821[53],_0x15a5x10[_0x6821[30]]);return rp({uri:_0x15a5x10[_0x6821[20]]+ _0x6821[54],qs:{"\x71\x75\x65\x72\x79":util[_0x6821[56]](_0x6821[55],_0x15a5x10[_0x6821[30]])},headers:_0x15a5x10[_0x6821[21]],json:true})};return}}function getAgentSearchPropertyFromChannel(_0x15a5xc){var _0x15a5x26=_0x6821[57];if(_0x15a5xc){switch(_0x15a5xc){case _0x6821[59]:_0x15a5x26= _0x6821[58];break;default:_0x15a5x26= _0x6821[58];console[_0x6821[15]](_0x6821[60],_0x15a5xc)}};return _0x15a5x26}function getValueFromPropertyName(_0x15a5xe,_0x15a5x26,_0x15a5x10){if(_0x15a5x26=== _0x6821[61]){if(_0x15a5x10&& _0x15a5x10[_0x6821[35]]&& _0x15a5x10[_0x6821[22]]){return util[_0x6821[56]](_0x6821[62],stripTrailingSlash(_0x15a5x10[_0x6821[22]]),_0x15a5xe[_0x6821[63]])}else {return null}}else {return _[_0x6821[64]](_0x15a5xe,_0x15a5x26)}}function handleAgent(_0x15a5x10){return function(_0x15a5xe){if(_0x15a5xe&& _0x15a5xe[_0x6821[66]][_0x6821[65]]> 0&& _0x15a5xe[_0x6821[67]]> 0){console[_0x6821[11]](_0x6821[68],_0x15a5x10[_0x6821[30]]);_0x15a5x10[_0x6821[28]]= getMatchObject(_0x15a5xe[_0x6821[66]],_0x6821[32],_0x15a5x10[_0x6821[30]]);return _0x15a5x10[_0x6821[28]]};return}}function getMatchObject(_0x15a5x2a,_0x15a5x26,_0x15a5x2b){var _0x15a5x2c=_[_0x6821[18]](_0x15a5x2a,{property:_0x15a5x2b});if(_0x15a5x2c){return _0x15a5x2c};return _[_0x6821[69]](_0x15a5x2a)}function searchAdmin(_0x15a5x10){return function(_0x15a5xe){if(_0x15a5xe){return};console[_0x6821[11]](_0x6821[70]);return rp({uri:_0x15a5x10[_0x6821[20]]+ _0x6821[71],headers:_0x15a5x10[_0x6821[21]],json:true})}}function handleAdmin(_0x15a5x10){return function(_0x15a5xe){if(!_0x15a5xe){return};if(_0x15a5xe[_0x6821[72]]){console[_0x6821[11]](_0x6821[73]);_0x15a5x10[_0x6821[28]]= _0x15a5xe[_0x6821[72]]};return}}function searchEndUser(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xd){return function(){console[_0x6821[11]](_0x6821[74],getValueFromPropertyName(_0x15a5xe,getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd)));return rp({uri:_0x15a5x10[_0x6821[20]]+ _0x6821[54],qs:{"\x71\x75\x65\x72\x79":util[_0x6821[56]](_0x6821[75],getEndUserSearchQueryFromChannel(_0x15a5xc),getValueFromPropertyName(_0x15a5xe,getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd)))},headers:_0x15a5x10[_0x6821[21]],json:true})}}function getEndUserSearchQueryFromChannel(_0x15a5xc){var _0x15a5x26=_0x6821[57];if(_0x15a5xc){switch(_0x15a5xc){case _0x6821[59]:_0x15a5x26= _0x6821[76];break;default:_0x15a5x26= _0x6821[76];console[_0x6821[15]](_0x6821[60],_0x15a5xc)}};return _0x15a5x26}function getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd){var _0x15a5x26=_0x6821[57];if(_0x15a5xc){switch(_0x15a5xc){case _0x6821[59]:if(_0x15a5xd=== _0x6821[77]){_0x15a5x26= _0x6821[78]}else {if(_0x15a5xd=== _0x6821[31]){_0x15a5x26= _0x6821[79]}};break;default:_0x15a5x26= _0x6821[79];console[_0x6821[15]](_0x6821[60],_0x15a5xc)}};return _0x15a5x26}function getEndUserNamePropertyFromChannel(_0x15a5xc,_0x15a5xd){var _0x15a5x26=_0x6821[57];if(_0x15a5xc){switch(_0x15a5xc){case _0x6821[59]:if(_0x15a5xd=== _0x6821[77]){_0x15a5x26= _0x6821[80]}else {if(_0x15a5xd=== _0x6821[31]){_0x15a5x26= _0x6821[81]}};break;default:_0x15a5x26= _0x6821[81];console[_0x6821[15]](_0x6821[60],_0x15a5xc)}};return _0x15a5x26}function handleEndUser(_0x15a5x10,_0x15a5xc,_0x15a5x34,_0x15a5xd){return function(_0x15a5xe){if(_0x15a5xe[_0x6821[66]][_0x6821[65]]> 0&& _0x15a5xe[_0x6821[67]]> 0){console[_0x6821[11]](_0x6821[82],getValueFromPropertyName(_0x15a5x34,getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd)));_0x15a5x10[_0x6821[83]]= _0x15a5xe[_0x6821[66]][0];return _0x15a5x10[_0x6821[83]]};return}}function endUserCreation(_0x15a5x10,_0x15a5xc,_0x15a5x34,_0x15a5xd){return function(_0x15a5xe){if(_0x15a5xe){return};console[_0x6821[11]](_0x6821[84],getValueFromPropertyName(_0x15a5x34,getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd)));console[_0x6821[11]](getJsonForEndUserCreation(_0x15a5xc,_0x15a5x34,_0x15a5xd));return rp({uri:_0x15a5x10[_0x6821[20]]+ _0x6821[85],method:_0x6821[86],body:{user:getJsonForEndUserCreation(_0x15a5xc,_0x15a5x34,_0x15a5xd)},headers:_0x15a5x10[_0x6821[21]],json:true})}}function getJsonForEndUserCreation(_0x15a5xc,_0x15a5xe,_0x15a5xd){var _0x15a5x37={role:_0x6821[87]};switch(_0x15a5xc){case _0x6821[59]:if(_0x15a5xd=== _0x6821[31]){if(isValidName(_0x15a5xe[_0x6821[81]])){_0x15a5x37[_0x6821[32]]= getValueFromPropertyName(_0x15a5xe,getEndUserNamePropertyFromChannel(_0x15a5xc,_0x15a5xd))}else {_0x15a5x37[_0x6821[32]]= util[_0x6821[56]](_0x6821[88],getValueFromPropertyName(_0x15a5xe,getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd)))}}else {if(_0x15a5xd=== _0x6821[77]){if(isValidName(_0x15a5xe[_0x6821[80]])){_0x15a5x37[_0x6821[32]]= getValueFromPropertyName(_0x15a5xe,getEndUserNamePropertyFromChannel(_0x15a5xc,_0x15a5xd))}else {_0x15a5x37[_0x6821[32]]= util[_0x6821[56]](_0x6821[88],getValueFromPropertyName(_0x15a5xe,getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd)))}}};_0x15a5x37[_0x6821[76]]= getValueFromPropertyName(_0x15a5xe,getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd));break;default:console[_0x6821[15]](_0x6821[60],_0x15a5xc)};return _0x15a5x37}function isValidName(_0x15a5x39){return _0x15a5x39&& _0x15a5x39!== _0x6821[89]}function handleEndUserCreation(_0x15a5x10,_0x15a5xc,_0x15a5x34,_0x15a5xd){return function(_0x15a5xe){if(!_0x15a5xe){return};if(_0x15a5xe[_0x6821[72]]){console[_0x6821[11]](_0x6821[90],getValueFromPropertyName(_0x15a5x34,getEndUserSearchPropertyFromChannel(_0x15a5xc,_0x15a5xd)));_0x15a5x10[_0x6821[83]]= _0x15a5xe[_0x6821[72]]};return}}function ticketCreation(_0x15a5x10,_0x15a5x34,_0x15a5xf){return function(){var _0x15a5x3c={requester_id:_0x15a5x10[_0x6821[83]][_0x6821[38]],submitter_id:_0x15a5x10[_0x6821[28]][_0x6821[38]],assignee_id:_0x15a5x10[_0x6821[28]][_0x6821[38]],tags:createTagsFromConfiguration(_0x15a5x10),subject:createSubjectFromConfiguration(_0x15a5x10,_0x15a5x34,_0x15a5xf),comment:{public:false,body:createDescriptionFromConfiguration(_0x15a5x10,_0x15a5x34,_0x15a5xf)},custom_fields:createCustomFieldsFromConfiguration(_0x15a5x10,_0x15a5x34,_0x15a5xf)};var _0x15a5x3d=createFieldsFromConfiguration(_0x15a5x10);if(_0x15a5x3d[_0x6821[65]]> 0){_[_0x6821[92]](_0x15a5x3d,function(_0x15a5x3e){_0x15a5x3c[_0x15a5x3e[_0x6821[38]]]= _0x15a5x3e[_0x6821[91]]})};console[_0x6821[11]](_0x6821[93],_0x15a5x3c);return rp({uri:_0x15a5x10[_0x6821[20]]+ _0x6821[94],method:_0x6821[86],body:{ticket:_0x15a5x3c},headers:_0x15a5x10[_0x6821[21]],json:true})}}function createTagsFromConfiguration(_0x15a5x10){var _0x15a5x40=[];if(_0x15a5x10[_0x6821[19]][_0x6821[95]][_0x6821[65]]> 0){_0x15a5x40= _[_0x6821[96]](_0x15a5x10[_0x6821[19]].Tags,_0x6821[32])};return _0x15a5x40}function createSubjectFromConfiguration(_0x15a5x10,_0x15a5x34,_0x15a5xf){var _0x15a5x42=_0x6821[57];var _0x15a5x43=[];if(_0x15a5x10[_0x6821[19]][_0x6821[97]][_0x6821[65]]> 0){var _0x15a5x44=_[_0x6821[98]](_0x15a5x10[_0x6821[19]].Subject,[_0x6821[38]]);_[_0x6821[92]](_0x15a5x44,function(_0x15a5x45){if(_0x15a5x45[_0x6821[99]]=== _0x6821[100]){_0x15a5x43[_0x6821[102]](_0x15a5x45[_0x6821[101]])}else {if(_0x15a5x45[_0x6821[99]]=== _0x6821[103]&& _0x15a5x45[_0x6821[104]]){var _0x15a5x46=getValueFromPropertyName(_0x15a5x34,_0x15a5x45[_0x6821[104]],_0x15a5x10);if(_0x15a5x46){_0x15a5x43[_0x6821[102]](_0x15a5x46.toString())}}else {if(_0x15a5x45[_0x6821[99]]=== _0x6821[105]&& _0x15a5x45[_0x6821[106]]&& _0x15a5x45[_0x6821[106]][_0x6821[32]]){_0x15a5xf[_0x15a5x45[_0x6821[106]][_0x6821[32]]]&& _0x15a5x43[_0x6821[102]](_0x15a5xf[_0x15a5x45[_0x6821[106]][_0x6821[32]]].toString())}}}});_0x15a5x42= _0x15a5x43[_0x6821[108]](_0x6821[107])};return _0x15a5x42}function createDescriptionFromConfiguration(_0x15a5x10,_0x15a5x34,_0x15a5xf){var _0x15a5x48=_0x6821[57];var _0x15a5x43=[];if(_0x15a5x10[_0x6821[19]][_0x6821[109]][_0x6821[65]]> 0){var _0x15a5x49=_[_0x6821[98]](_0x15a5x10[_0x6821[19]].Description,[_0x6821[38]]);_[_0x6821[92]](_0x15a5x49,function(_0x15a5x45){if(_0x15a5x45[_0x6821[99]]=== _0x6821[100]){_0x15a5x43[_0x6821[102]](_0x15a5x45[_0x6821[101]])}else {if(_0x15a5x45[_0x6821[99]]=== _0x6821[110]){if(_0x15a5x45[_0x6821[111]]=== _0x6821[100]&& _0x15a5x45[_0x6821[112]]){_0x15a5x43[_0x6821[102]](util[_0x6821[56]](_0x6821[113],_0x15a5x45[_0x6821[112]],_0x15a5x45[_0x6821[114]]))}else {if(_0x15a5x45[_0x6821[111]]=== _0x6821[103]&& _0x15a5x45[_0x6821[104]]&& _0x15a5x45[_0x6821[112]]){var _0x15a5x46=getValueFromPropertyName(_0x15a5x34,_0x15a5x45[_0x6821[104]],_0x15a5x10);if(_0x15a5x46){_0x15a5x43[_0x6821[102]](util[_0x6821[56]](_0x6821[113],_0x15a5x45[_0x6821[112]],_0x15a5x46.toString()))}}else {if(_0x15a5x45[_0x6821[111]]=== _0x6821[105]&& _0x15a5x45[_0x6821[106]]&& _0x15a5x45[_0x6821[106]][_0x6821[32]]&& _0x15a5x45[_0x6821[112]]){_0x15a5xf[_0x15a5x45[_0x6821[106]][_0x6821[32]]]&& _0x15a5x43[_0x6821[102]](util[_0x6821[56]](_0x6821[113],_0x15a5x45[_0x6821[112]],_0x15a5xf[_0x15a5x45[_0x6821[106]][_0x6821[32]]]))}}}}}});_0x15a5x48= _0x15a5x43[_0x6821[108]](_0x6821[115])};return _0x15a5x48}function createCustomFieldsFromConfiguration(_0x15a5x10,_0x15a5x34,_0x15a5xf){var _0x15a5x4b=[];var _0x15a5x4c=[];if(_0x15a5x10[_0x6821[19]][_0x6821[116]][_0x6821[65]]> 0){_0x15a5x4b= _[_0x6821[117]](_0x15a5x10[_0x6821[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x6821[92]](_0x15a5x4b,function(_0x15a5x3e){if(_0x15a5x3e[_0x6821[99]]=== _0x6821[100]&& _0x15a5x3e[_0x6821[118]]){_0x15a5x4c[_0x6821[102]]({id:_0x15a5x3e[_0x6821[118]],value:_0x15a5x3e[_0x6821[101]]})}else {if(_0x15a5x3e[_0x6821[99]]=== _0x6821[103]&& _0x15a5x3e[_0x6821[104]]&& _0x15a5x3e[_0x6821[118]]){var _0x15a5x46=getValueFromPropertyName(_0x15a5x34,_0x15a5x3e[_0x6821[104]],_0x15a5x10);if(_0x15a5x46){_0x15a5x4c[_0x6821[102]]({id:_0x15a5x3e[_0x6821[118]],value:_0x15a5x46.toString()})}}else {if(_0x15a5x3e[_0x6821[99]]=== _0x6821[105]&& _0x15a5x3e[_0x6821[106]]&& _0x15a5x3e[_0x6821[106]][_0x6821[32]]&& _0x15a5x3e[_0x6821[118]]){_0x15a5xf[_0x15a5x3e[_0x6821[106]][_0x6821[32]]]&& _0x15a5x4c[_0x6821[102]]({id:_0x15a5x3e[_0x6821[118]],value:_0x15a5xf[_0x15a5x3e[_0x6821[106]][_0x6821[32]]].toString()})}}}})};return _0x15a5x4c}function createFieldsFromConfiguration(_0x15a5x10){var _0x15a5x3d=[];var _0x15a5x4c=[];if(_0x15a5x10[_0x6821[19]][_0x6821[116]][_0x6821[65]]> 0){_0x15a5x3d= _[_0x6821[117]](_0x15a5x10[_0x6821[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x6821[92]](_0x15a5x3d,function(_0x15a5x3e){if(_0x15a5x3e[_0x6821[99]]=== _0x6821[100]&& _0x15a5x3e[_0x6821[119]]){_0x15a5x4c[_0x6821[102]]({id:_0x15a5x3e[_0x6821[119]],value:_0x15a5x3e[_0x6821[101]]})}})};return _0x15a5x4c}function handleTicketDisplay(_0x15a5x10){return function(_0x15a5xe){if(_0x15a5xe[_0x6821[120]]){console[_0x6821[11]](_0x6821[121]);_0x15a5x10[_0x6821[120]]= _0x15a5xe[_0x6821[120]];var _0x15a5x4f=util[_0x6821[56]](_0x6821[122],_0x15a5x10[_0x6821[28]][_0x6821[38]],_0x15a5x10[_0x6821[120]][_0x6821[38]]);return rp({uri:_0x15a5x10[_0x6821[20]]+ _0x15a5x4f,method:_0x6821[86],headers:_0x15a5x10[_0x6821[21]],json:true})};return}}function handleReportIntegration(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xa,_0x15a5xd){return function(){delete _0x15a5xe[_0x6821[38]];delete _0x15a5xe[_0x6821[123]];delete _0x15a5xe[_0x6821[124]];_0x15a5xe[_0x6821[125]]= _0x6821[126];_0x15a5xe[_0x6821[127]]= _0x15a5xc;_0x15a5xe[_0x6821[128]]= _0x6821[129];_0x15a5xe[_0x6821[130]]= _0x15a5x10[_0x6821[120]][_0x6821[38]];_0x15a5xe[_0x6821[131]]= _0x15a5x10[_0x6821[120]][_0x6821[131]];_0x15a5xe[_0x6821[132]]= _0x15a5xa;_0x15a5xe[_0x6821[133]]= _0x15a5xd;return ReportIntegration[_0x6821[134]](_0x15a5xe)}}function handleEnd(_0x15a5x10,_0x15a5xe,_0x15a5xc){return function(){console[_0x6821[11]](util[_0x6821[56]](_0x6821[135],_0x15a5x10[_0x6821[120]][_0x6821[38]],_0x15a5x10[_0x6821[28]][_0x6821[38]]));_0x15a5x10= undefined;return}}function handleError(_0x15a5x10,_0x15a5xc,_0x15a5xe,_0x15a5xa){return function(_0x15a5x53){console[_0x6821[15]](_0x6821[136]);console[_0x6821[15]](_0x6821[137],_0x15a5x53[_0x6821[138]]);console[_0x6821[15]](_0x6821[139],_0x15a5x53[_0x6821[140]]);_0x15a5x10= undefined;delete _0x15a5xe[_0x6821[38]];delete _0x15a5xe[_0x6821[123]];delete _0x15a5xe[_0x6821[124]];_0x15a5xe[_0x6821[125]]= _0x6821[126];_0x15a5xe[_0x6821[127]]= _0x15a5xc;_0x15a5xe[_0x6821[128]]= _0x6821[141];_0x15a5xe[_0x6821[132]]= _0x15a5xa;ReportIntegration[_0x6821[134]](_0x15a5xe)[_0x6821[17]](function(){return})[_0x6821[16]](function(_0x15a5x53){console[_0x6821[15]](_0x6821[142]);return})}}function stripTrailingSlash(_0x15a5x55){if(_0x15a5x55[_0x6821[143]](-1) === _0x6821[144]){return _0x15a5x55[_0x6821[143]](0,_0x15a5x55[_0x6821[65]]- 1)};return _0x15a5x55}module[_0x6821[145]]= Zendesk
\ No newline at end of file