Built motion from commit 9362eee.|1.0.9
[motion.git] / server / config / integrations / zendesk.js
index 4d8f153..be5f0f1 100644 (file)
@@ -1 +1 @@
-var _0x265a=["\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","\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","\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","\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"];_0x265a[0];var _=require(_0x265a[1]);var util=require(_0x265a[2]);var rp=require(_0x265a[3]);var ZendeskIntegration=require(_0x265a[5])[_0x265a[4]];var ZendeskConfiguration=require(_0x265a[5])[_0x265a[6]];var ReportIntegration=require(_0x265a[5])[_0x265a[7]];var VoiceQueue=require(_0x265a[5])[_0x265a[8]];var VoiceExtension=require(_0x265a[5])[_0x265a[9]];var Agent=require(_0x265a[5])[_0x265a[10]];function Zendesk(){console[_0x265a[12]](_0x265a[11])}Zendesk[_0x265a[14]][_0x265a[13]]= function(_0xc24cxb,_0xc24cxc,_0xc24cxd,_0xc24cxe,_0xc24cxf,_0xc24cx10){var _0xc24cx11={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0xc24cxb||  !_0xc24cxc){console[_0x265a[16]](_0x265a[15]);return};ZendeskConfiguration[_0x265a[19]]({where:{id:_0xc24cxc,AccountId:_0xc24cxb},include:[{all:true,include:[{all:true}]}]})[_0x265a[18]](handleEntityNotFound())[_0x265a[18]](handleConnection(_0xc24cx11))[_0x265a[18]](searchMotionAgent(_0xc24cxd,_0xc24cxf))[_0x265a[18]](handleMotionAgent(_0xc24cx11))[_0x265a[18]](searchQueue(_0xc24cxf))[_0x265a[18]](handleQueueRecordings(_0xc24cx11))[_0x265a[18]](searchRoute(_0xc24cxf))[_0x265a[18]](handleOutboundRecordings(_0xc24cx11))[_0x265a[18]](searchAgent(_0xc24cx11))[_0x265a[18]](handleAgent(_0xc24cx11))[_0x265a[18]](searchAdmin(_0xc24cx11))[_0x265a[18]](handleAdmin(_0xc24cx11))[_0x265a[18]](searchEndUser(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxe))[_0x265a[18]](handleEndUser(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxe))[_0x265a[18]](endUserCreation(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxe))[_0x265a[18]](handleEndUserCreation(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxe))[_0x265a[18]](ticketCreation(_0xc24cx11,_0xc24cxf,_0xc24cx10))[_0x265a[18]](handleTicketDisplay(_0xc24cx11))[_0x265a[18]](handleReportIntegration(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxb))[_0x265a[18]](handleEnd(_0xc24cx11))[_0x265a[17]](handleError(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxb))};function handleEntityNotFound(){return function(_0xc24cx13){if(!_0xc24cx13){return null};return _0xc24cx13}}function handleConnection(_0xc24cx11){return function(_0xc24cx15){var _0xc24cx16=getAccountConfiguration(_0xc24cx15.ZendeskAccount);_0xc24cx11[_0x265a[20]]= _0xc24cx15;_0xc24cx11[_0x265a[21]]= _0xc24cx16[_0x265a[21]];_0xc24cx11[_0x265a[22]]= _0xc24cx16[_0x265a[22]];_0xc24cx11[_0x265a[23]]= _0xc24cx15[_0x265a[25]][_0x265a[24]]}}function searchMotionAgent(_0xc24cxd,_0xc24cxf){return function(){return Agent[_0x265a[29]](_0x265a[28])[_0x265a[27]]({where:{name:getValueFromPropertyName(_0xc24cxf,getAgentSearchPropertyFromChannel(_0xc24cxd))},attributes:[_0x265a[26]]})}}function handleMotionAgent(_0xc24cx11){return function(_0xc24cx19){if(_0xc24cx19&& _0xc24cx19[_0x265a[26]]){_0xc24cx11[_0x265a[30]]= _0xc24cx19[_0x265a[26]]};return}}function searchQueue(_0xc24cxf){return function(){if(_0xc24cxf[_0x265a[31]]){return VoiceQueue[_0x265a[27]]({where:{name:_0xc24cxf[_0x265a[31]]},attributes:[_0x265a[32],_0x265a[33]]})}else {return}}}function handleQueueRecordings(_0xc24cx11){return function(_0xc24cx1c){if(_0xc24cx1c&& _0xc24cx1c[_0x265a[33]]){console[_0x265a[12]](_0x265a[34],_0xc24cx1c[_0x265a[32]]);_0xc24cx11[_0x265a[35]]= true}else {_0xc24cx11[_0x265a[35]]= false;console[_0x265a[12]](_0x265a[36]);return}}}function searchRoute(_0xc24cxf){return function(){if(_0xc24cxf[_0x265a[37]]){return VoiceExtension[_0x265a[27]]({where:{id:_0xc24cxf[_0x265a[37]]},attributes:[_0x265a[38],_0x265a[39]]})}else {return}}}function handleOutboundRecordings(_0xc24cx11){return function(_0xc24cx1f){if(_0xc24cx1f&& _0xc24cx1f[_0x265a[39]]){console[_0x265a[12]](_0x265a[40],_0xc24cx1f[_0x265a[38]]);_0xc24cx11[_0x265a[35]]= true}else {_0xc24cx11[_0x265a[35]]= false;console[_0x265a[12]](_0x265a[41]);return}}}function getAccountConfiguration(_0xc24cx21){var _0xc24cx22={uri:stripTrailingSlash(_0xc24cx21[_0x265a[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":_0x265a[43],"\x41\x63\x63\x65\x70\x74":_0x265a[43]}};var _0xc24cx23=_0xc24cx21[_0x265a[44]];if(_0xc24cx21[_0x265a[45]]=== _0x265a[46]){_0xc24cx23= _0xc24cx23+ _0x265a[47]+ _0xc24cx21[_0x265a[46]]}else {if(_0xc24cx21[_0x265a[45]]=== _0x265a[48]){_0xc24cx23= _0xc24cx23+ _0x265a[49]+ _0xc24cx21[_0x265a[48]]}};_0xc24cx22[_0x265a[22]][_0x265a[50]]= _0x265a[51]+  new Buffer(_0xc24cx23).toString(_0x265a[52]);return _0xc24cx22}function searchAgent(_0xc24cx11){return function(){console[_0x265a[12]](_0x265a[53],_0xc24cx11[_0x265a[30]]);return rp({uri:_0xc24cx11[_0x265a[21]]+ _0x265a[54],qs:{"\x71\x75\x65\x72\x79":util[_0x265a[56]](_0x265a[55],_0xc24cx11[_0x265a[30]])},headers:_0xc24cx11[_0x265a[22]],json:true})}}function getAgentSearchPropertyFromChannel(_0xc24cxd){var _0xc24cx26=_0x265a[57];if(_0xc24cxd){switch(_0xc24cxd){case _0x265a[59]:_0xc24cx26= _0x265a[58];break;default:_0xc24cx26= _0x265a[58];console[_0x265a[16]](_0x265a[60],_0xc24cxd)}};return _0xc24cx26}function getValueFromPropertyName(_0xc24cxf,_0xc24cx26,_0xc24cx11){if(_0xc24cx26=== _0x265a[61]){if(_0xc24cx11&& _0xc24cx11[_0x265a[35]]&& _0xc24cx11[_0x265a[23]]){return util[_0x265a[56]](_0x265a[62],stripTrailingSlash(_0xc24cx11[_0x265a[23]]),_0xc24cxf[_0x265a[63]])}else {return null}}else {return _[_0x265a[64]](_0xc24cxf,_0xc24cx26)}}function handleAgent(_0xc24cx11){return function(_0xc24cxf){if(_0xc24cxf[_0x265a[66]][_0x265a[65]]> 0&& _0xc24cxf[_0x265a[67]]> 0){console[_0x265a[12]](_0x265a[68],_0xc24cx11[_0x265a[30]]);_0xc24cx11[_0x265a[28]]= getMatchObject(_0xc24cxf[_0x265a[66]],_0x265a[32],_0xc24cx11[_0x265a[30]]);return _0xc24cx11[_0x265a[28]]};return}}function getMatchObject(_0xc24cx2a,_0xc24cx26,_0xc24cx2b){var _0xc24cx2c=_[_0x265a[19]](_0xc24cx2a,{property:_0xc24cx2b});if(_0xc24cx2c){return _0xc24cx2c};return _[_0x265a[69]](_0xc24cx2a)}function searchAdmin(_0xc24cx11){return function(_0xc24cxf){if(_0xc24cxf){return};console[_0x265a[12]](_0x265a[70]);return rp({uri:_0xc24cx11[_0x265a[21]]+ _0x265a[71],headers:_0xc24cx11[_0x265a[22]],json:true})}}function handleAdmin(_0xc24cx11){return function(_0xc24cxf){if(!_0xc24cxf){return};if(_0xc24cxf[_0x265a[72]]){console[_0x265a[12]](_0x265a[73]);_0xc24cx11[_0x265a[28]]= _0xc24cxf[_0x265a[72]]};return}}function searchEndUser(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxe){return function(){console[_0x265a[12]](_0x265a[74],getValueFromPropertyName(_0xc24cxf,getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe)));return rp({uri:_0xc24cx11[_0x265a[21]]+ _0x265a[54],qs:{"\x71\x75\x65\x72\x79":util[_0x265a[56]](_0x265a[75],getEndUserSearchQueryFromChannel(_0xc24cxd),getValueFromPropertyName(_0xc24cxf,getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe)))},headers:_0xc24cx11[_0x265a[22]],json:true})}}function getEndUserSearchQueryFromChannel(_0xc24cxd){var _0xc24cx26=_0x265a[57];if(_0xc24cxd){switch(_0xc24cxd){case _0x265a[59]:_0xc24cx26= _0x265a[76];break;default:_0xc24cx26= _0x265a[76];console[_0x265a[16]](_0x265a[60],_0xc24cxd)}};return _0xc24cx26}function getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe){var _0xc24cx26=_0x265a[57];if(_0xc24cxd){switch(_0xc24cxd){case _0x265a[59]:if(_0xc24cxe=== _0x265a[77]){_0xc24cx26= _0x265a[78]}else {if(_0xc24cxe=== _0x265a[31]){_0xc24cx26= _0x265a[79]}};break;default:_0xc24cx26= _0x265a[79];console[_0x265a[16]](_0x265a[60],_0xc24cxd)}};return _0xc24cx26}function getEndUserNamePropertyFromChannel(_0xc24cxd,_0xc24cxe){var _0xc24cx26=_0x265a[57];if(_0xc24cxd){switch(_0xc24cxd){case _0x265a[59]:if(_0xc24cxe=== _0x265a[77]){_0xc24cx26= _0x265a[80]}else {if(_0xc24cxe=== _0x265a[31]){_0xc24cx26= _0x265a[81]}};break;default:_0xc24cx26= _0x265a[81];console[_0x265a[16]](_0x265a[60],_0xc24cxd)}};return _0xc24cx26}function handleEndUser(_0xc24cx11,_0xc24cxd,_0xc24cx34,_0xc24cxe){return function(_0xc24cxf){if(_0xc24cxf[_0x265a[66]][_0x265a[65]]> 0&& _0xc24cxf[_0x265a[67]]> 0){console[_0x265a[12]](_0x265a[82],getValueFromPropertyName(_0xc24cx34,getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe)));_0xc24cx11[_0x265a[83]]= _0xc24cxf[_0x265a[66]][0];return _0xc24cx11[_0x265a[83]]};return}}function endUserCreation(_0xc24cx11,_0xc24cxd,_0xc24cx34,_0xc24cxe){return function(_0xc24cxf){if(_0xc24cxf){return};console[_0x265a[12]](_0x265a[84],getValueFromPropertyName(_0xc24cx34,getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe)));console[_0x265a[12]](getJsonForEndUserCreation(_0xc24cxd,_0xc24cx34,_0xc24cxe));return rp({uri:_0xc24cx11[_0x265a[21]]+ _0x265a[85],method:_0x265a[86],body:{user:getJsonForEndUserCreation(_0xc24cxd,_0xc24cx34,_0xc24cxe)},headers:_0xc24cx11[_0x265a[22]],json:true})}}function getJsonForEndUserCreation(_0xc24cxd,_0xc24cxf,_0xc24cxe){var _0xc24cx37={role:_0x265a[87]};switch(_0xc24cxd){case _0x265a[59]:if(_0xc24cxe=== _0x265a[31]){if(isValidName(_0xc24cxf[_0x265a[81]])){_0xc24cx37[_0x265a[32]]= getValueFromPropertyName(_0xc24cxf,getEndUserNamePropertyFromChannel(_0xc24cxd,_0xc24cxe))}else {_0xc24cx37[_0x265a[32]]= util[_0x265a[56]](_0x265a[88],getValueFromPropertyName(_0xc24cxf,getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe)))}}else {if(_0xc24cxe=== _0x265a[77]){if(isValidName(_0xc24cxf[_0x265a[80]])){_0xc24cx37[_0x265a[32]]= getValueFromPropertyName(_0xc24cxf,getEndUserNamePropertyFromChannel(_0xc24cxd,_0xc24cxe))}else {_0xc24cx37[_0x265a[32]]= util[_0x265a[56]](_0x265a[88],getValueFromPropertyName(_0xc24cxf,getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe)))}}};_0xc24cx37[_0x265a[76]]= getValueFromPropertyName(_0xc24cxf,getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe));break;default:console[_0x265a[16]](_0x265a[60],_0xc24cxd)};return _0xc24cx37}function isValidName(_0xc24cx39){return _0xc24cx39&& _0xc24cx39!== _0x265a[89]}function handleEndUserCreation(_0xc24cx11,_0xc24cxd,_0xc24cx34,_0xc24cxe){return function(_0xc24cxf){if(!_0xc24cxf){return};if(_0xc24cxf[_0x265a[72]]){console[_0x265a[12]](_0x265a[90],getValueFromPropertyName(_0xc24cx34,getEndUserSearchPropertyFromChannel(_0xc24cxd,_0xc24cxe)));_0xc24cx11[_0x265a[83]]= _0xc24cxf[_0x265a[72]]};return}}function ticketCreation(_0xc24cx11,_0xc24cx34,_0xc24cx10){return function(){var _0xc24cx3c={requester_id:_0xc24cx11[_0x265a[28]][_0x265a[38]],submitter_id:_0xc24cx11[_0x265a[83]][_0x265a[38]],assignee_id:_0xc24cx11[_0x265a[83]][_0x265a[38]],tags:createTagsFromConfiguration(_0xc24cx11),subject:createSubjectFromConfiguration(_0xc24cx11,_0xc24cx34,_0xc24cx10),description:createDescriptionFromConfiguration(_0xc24cx11,_0xc24cx34,_0xc24cx10),custom_fields:createCustomFieldsFromConfiguration(_0xc24cx11,_0xc24cx34,_0xc24cx10)};var _0xc24cx3d=createFieldsFromConfiguration(_0xc24cx11);if(_0xc24cx3d[_0x265a[65]]> 0){_[_0x265a[92]](_0xc24cx3d,function(_0xc24cx3e){_0xc24cx3c[_0xc24cx3e[_0x265a[38]]]= _0xc24cx3e[_0x265a[91]]})};console[_0x265a[12]](_0x265a[93],_0xc24cx3c);return rp({uri:_0xc24cx11[_0x265a[21]]+ _0x265a[94],method:_0x265a[86],body:{ticket:_0xc24cx3c},headers:_0xc24cx11[_0x265a[22]],json:true})}}function createTagsFromConfiguration(_0xc24cx11){var _0xc24cx40=[];if(_0xc24cx11[_0x265a[20]][_0x265a[95]][_0x265a[65]]> 0){_0xc24cx40= _[_0x265a[96]](_0xc24cx11[_0x265a[20]].Tags,_0x265a[32])};return _0xc24cx40}function createSubjectFromConfiguration(_0xc24cx11,_0xc24cx34,_0xc24cx10){var _0xc24cx42=_0x265a[57];var _0xc24cx43=[];if(_0xc24cx11[_0x265a[20]][_0x265a[97]][_0x265a[65]]> 0){var _0xc24cx44=_[_0x265a[98]](_0xc24cx11[_0x265a[20]].Subject,[_0x265a[38]]);_[_0x265a[92]](_0xc24cx44,function(_0xc24cx45){if(_0xc24cx45[_0x265a[99]]=== _0x265a[100]){_0xc24cx43[_0x265a[102]](_0xc24cx45[_0x265a[101]])}else {if(_0xc24cx45[_0x265a[99]]=== _0x265a[103]&& _0xc24cx45[_0x265a[104]]){var _0xc24cx46=getValueFromPropertyName(_0xc24cx34,_0xc24cx45[_0x265a[104]],_0xc24cx11);if(_0xc24cx46){_0xc24cx43[_0x265a[102]](_0xc24cx46.toString())}}else {if(_0xc24cx45[_0x265a[99]]=== _0x265a[105]){var _0xc24cx47=_[_0x265a[19]](_0xc24cx10,{"\x6E\x61\x6D\x65":_0xc24cx45[_0x265a[106]][_0x265a[32]]});if(_0xc24cx47){_0xc24cx43[_0x265a[102]](_0xc24cx47[_0x265a[91]].toString())}}}}});_0xc24cx42= _0xc24cx43[_0x265a[108]](_0x265a[107])};return _0xc24cx42}function createDescriptionFromConfiguration(_0xc24cx11,_0xc24cx34,_0xc24cx10){var _0xc24cx49=_0x265a[57];var _0xc24cx43=[];if(_0xc24cx11[_0x265a[20]][_0x265a[109]][_0x265a[65]]> 0){var _0xc24cx4a=_[_0x265a[98]](_0xc24cx11[_0x265a[20]].Description,[_0x265a[38]]);_[_0x265a[92]](_0xc24cx4a,function(_0xc24cx45){if(_0xc24cx45[_0x265a[99]]=== _0x265a[100]){_0xc24cx43[_0x265a[102]](_0xc24cx45[_0x265a[101]])}else {if(_0xc24cx45[_0x265a[99]]=== _0x265a[110]){if(_0xc24cx45[_0x265a[111]]=== _0x265a[100]){_0xc24cx43[_0x265a[102]](util[_0x265a[56]](_0x265a[112],_0xc24cx45[_0x265a[113]],_0xc24cx45[_0x265a[114]]))}else {if(_0xc24cx45[_0x265a[111]]=== _0x265a[103]&& _0xc24cx45[_0x265a[104]]){var _0xc24cx46=getValueFromPropertyName(_0xc24cx34,_0xc24cx45[_0x265a[104]],_0xc24cx11);if(_0xc24cx46){_0xc24cx43[_0x265a[102]](util[_0x265a[56]](_0x265a[112],_0xc24cx45[_0x265a[113]],_0xc24cx46.toString()))}}else {if(_0xc24cx45[_0x265a[111]]=== _0x265a[105]){var _0xc24cx47=_[_0x265a[19]](_0xc24cx10,{"\x6E\x61\x6D\x65":_0xc24cx45[_0x265a[106]][_0x265a[32]]});if(_0xc24cx47){_0xc24cx43[_0x265a[102]](util[_0x265a[56]](_0x265a[112],_0xc24cx45[_0x265a[113]],_0xc24cx47[_0x265a[91]].toString()))}}}}}}});_0xc24cx49= _0xc24cx43[_0x265a[108]](_0x265a[115])};return _0xc24cx49}function createCustomFieldsFromConfiguration(_0xc24cx11,_0xc24cx34,_0xc24cx10){var _0xc24cx4c=[];var _0xc24cx4d=[];if(_0xc24cx11[_0x265a[20]][_0x265a[116]][_0x265a[65]]> 0){_0xc24cx4c= _[_0x265a[117]](_0xc24cx11[_0x265a[20]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x265a[92]](_0xc24cx4c,function(_0xc24cx3e){if(_0xc24cx3e[_0x265a[99]]=== _0x265a[100]){_0xc24cx4d[_0x265a[102]]({id:_0xc24cx3e[_0x265a[118]],value:_0xc24cx3e[_0x265a[101]]})}else {if(_0xc24cx3e[_0x265a[99]]=== _0x265a[103]){var _0xc24cx46=getValueFromPropertyName(_0xc24cx34,_0xc24cx3e[_0x265a[104]],_0xc24cx11);if(_0xc24cx46){_0xc24cx4d[_0x265a[102]]({id:_0xc24cx3e[_0x265a[118]],value:_0xc24cx46.toString()})}}else {if(_0xc24cx3e[_0x265a[99]]=== _0x265a[105]){var _0xc24cx47=_[_0x265a[19]](_0xc24cx10,{"\x6E\x61\x6D\x65":_0xc24cx3e[_0x265a[106]][_0x265a[32]]});if(_0xc24cx47){_0xc24cx4d[_0x265a[102]]({id:_0xc24cx3e[_0x265a[118]],value:_0xc24cx47[_0x265a[91]].toString()})}}}}})};return _0xc24cx4d}function createFieldsFromConfiguration(_0xc24cx11){var _0xc24cx3d=[];var _0xc24cx4d=[];if(_0xc24cx11[_0x265a[20]][_0x265a[116]][_0x265a[65]]> 0){_0xc24cx3d= _[_0x265a[117]](_0xc24cx11[_0x265a[20]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x265a[92]](_0xc24cx3d,function(_0xc24cx3e){if(_0xc24cx3e[_0x265a[99]]=== _0x265a[100]){_0xc24cx4d[_0x265a[102]]({id:_0xc24cx3e[_0x265a[119]],value:_0xc24cx3e[_0x265a[101]]})}})};return _0xc24cx4d}function handleTicketDisplay(_0xc24cx11){return function(_0xc24cxf){if(_0xc24cxf[_0x265a[120]]){console[_0x265a[12]](_0x265a[121]);_0xc24cx11[_0x265a[120]]= _0xc24cxf[_0x265a[120]];var _0xc24cx50=util[_0x265a[56]](_0x265a[122],_0xc24cx11[_0x265a[28]][_0x265a[38]],_0xc24cx11[_0x265a[120]][_0x265a[38]]);return rp({uri:_0xc24cx11[_0x265a[21]]+ _0xc24cx50,method:_0x265a[86],headers:_0xc24cx11[_0x265a[22]],json:true})};return}}function handleReportIntegration(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxb){return function(){delete _0xc24cxf[_0x265a[38]];_0xc24cxf[_0x265a[123]]= _0x265a[124];_0xc24cxf[_0x265a[125]]= _0xc24cxd;_0xc24cxf[_0x265a[126]]= _0x265a[127];_0xc24cxf[_0x265a[128]]= _0xc24cx11[_0x265a[120]][_0x265a[38]];_0xc24cxf[_0x265a[129]]= _0xc24cx11[_0x265a[120]][_0x265a[129]];_0xc24cxf[_0x265a[130]]= _0xc24cxb;return ReportIntegration[_0x265a[131]](_0xc24cxf)}}function handleEnd(_0xc24cx11,_0xc24cxf,_0xc24cxd){return function(){console[_0x265a[12]](util[_0x265a[56]](_0x265a[132],_0xc24cx11[_0x265a[120]][_0x265a[38]],_0xc24cx11[_0x265a[28]][_0x265a[38]]));_0xc24cx11= undefined;return}}function handleError(_0xc24cx11,_0xc24cxd,_0xc24cxf,_0xc24cxb){return function(_0xc24cx54){console[_0x265a[16]](_0x265a[133]);console[_0x265a[16]](_0x265a[134],_0xc24cx54[_0x265a[135]]);console[_0x265a[16]](_0x265a[136],_0xc24cx54[_0x265a[137]]);_0xc24cx11= undefined;delete _0xc24cxf[_0x265a[38]];_0xc24cxf[_0x265a[123]]= _0x265a[124];_0xc24cxf[_0x265a[125]]= _0xc24cxd;_0xc24cxf[_0x265a[126]]= _0x265a[138];_0xc24cxf[_0x265a[130]]= _0xc24cxb;ReportIntegration[_0x265a[131]](_0xc24cxf)[_0x265a[18]](function(){return})[_0x265a[17]](function(_0xc24cx54){console[_0x265a[16]](_0x265a[139]);return})}}function stripTrailingSlash(_0xc24cx56){if(_0xc24cx56[_0x265a[140]](-1) === _0x265a[141]){return _0xc24cx56[_0x265a[140]](0,_0xc24cx56[_0x265a[65]]- 1)};return _0xc24cx56}module[_0x265a[142]]= Zendesk
\ No newline at end of file
+var _0x6bcb=["\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","\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"];_0x6bcb[0];var _=require(_0x6bcb[1]);var util=require(_0x6bcb[2]);var rp=require(_0x6bcb[3]);var ZendeskConfiguration=require(_0x6bcb[5])[_0x6bcb[4]];var ReportIntegration=require(_0x6bcb[5])[_0x6bcb[6]];var VoiceQueue=require(_0x6bcb[5])[_0x6bcb[7]];var VoiceExtension=require(_0x6bcb[5])[_0x6bcb[8]];var Agent=require(_0x6bcb[5])[_0x6bcb[9]];function Zendesk(){console[_0x6bcb[11]](_0x6bcb[10])}Zendesk[_0x6bcb[13]][_0x6bcb[12]]= function(_0x1f48xa,_0x1f48xb,_0x1f48xc,_0x1f48xd,_0x1f48xe,_0x1f48xf){var _0x1f48x10={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0x1f48xa||  !_0x1f48xb){console[_0x6bcb[15]](_0x6bcb[14]);return};ZendeskConfiguration[_0x6bcb[18]]({where:{id:_0x1f48xb,AccountId:_0x1f48xa},include:[{all:true,include:[{all:true}]}]})[_0x6bcb[17]](handleEntityNotFound())[_0x6bcb[17]](handleConnection(_0x1f48x10))[_0x6bcb[17]](searchMotionAgent(_0x1f48xc,_0x1f48xe))[_0x6bcb[17]](handleMotionAgent(_0x1f48x10))[_0x6bcb[17]](searchQueue(_0x1f48xe))[_0x6bcb[17]](handleQueueRecordings(_0x1f48x10,_0x1f48xe))[_0x6bcb[17]](searchRoute(_0x1f48xe))[_0x6bcb[17]](handleOutboundRecordings(_0x1f48x10,_0x1f48xe))[_0x6bcb[17]](searchAgent(_0x1f48x10))[_0x6bcb[17]](handleAgent(_0x1f48x10))[_0x6bcb[17]](searchAdmin(_0x1f48x10))[_0x6bcb[17]](handleAdmin(_0x1f48x10))[_0x6bcb[17]](searchEndUser(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xd))[_0x6bcb[17]](handleEndUser(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xd))[_0x6bcb[17]](endUserCreation(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xd))[_0x6bcb[17]](handleEndUserCreation(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xd))[_0x6bcb[17]](ticketCreation(_0x1f48x10,_0x1f48xe,_0x1f48xf))[_0x6bcb[17]](handleTicketDisplay(_0x1f48x10))[_0x6bcb[17]](handleReportIntegration(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xa,_0x1f48xd))[_0x6bcb[17]](handleEnd(_0x1f48x10))[_0x6bcb[16]](handleError(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xa))};function handleEntityNotFound(){return function(_0x1f48x12){if(!_0x1f48x12){return null};return _0x1f48x12}}function handleConnection(_0x1f48x10){return function(_0x1f48x14){var _0x1f48x15=getAccountConfiguration(_0x1f48x14.ZendeskAccount);_0x1f48x10[_0x6bcb[19]]= _0x1f48x14;_0x1f48x10[_0x6bcb[20]]= _0x1f48x15[_0x6bcb[20]];_0x1f48x10[_0x6bcb[21]]= _0x1f48x15[_0x6bcb[21]];_0x1f48x10[_0x6bcb[22]]= _0x1f48x14[_0x6bcb[24]][_0x6bcb[23]]}}function searchMotionAgent(_0x1f48xc,_0x1f48xe){return function(){return Agent[_0x6bcb[28]](_0x6bcb[27])[_0x6bcb[26]]({where:{name:getValueFromPropertyName(_0x1f48xe,getAgentSearchPropertyFromChannel(_0x1f48xc))},attributes:[_0x6bcb[25]]})}}function handleMotionAgent(_0x1f48x10){return function(_0x1f48x18){if(_0x1f48x18&& _0x1f48x18[_0x6bcb[25]]){_0x1f48x10[_0x6bcb[29]]= _0x1f48x18[_0x6bcb[25]]};return}}function searchQueue(_0x1f48xe){return function(){if(_0x1f48xe[_0x6bcb[30]]){return VoiceQueue[_0x6bcb[26]]({where:{name:_0x1f48xe[_0x6bcb[30]]},attributes:[_0x6bcb[31],_0x6bcb[32]]})}else {return}}}function handleQueueRecordings(_0x1f48x10,_0x1f48xe){return function(_0x1f48x1b){if(_0x1f48xe[_0x6bcb[30]]){if(_0x1f48x1b&& _0x1f48x1b[_0x6bcb[32]]){console[_0x6bcb[11]](_0x6bcb[33],_0x1f48x1b[_0x6bcb[31]]);_0x1f48x10[_0x6bcb[34]]= true}else {_0x1f48x10[_0x6bcb[34]]= false;console[_0x6bcb[11]](_0x6bcb[35])}};return}}function searchRoute(_0x1f48xe){return function(){if(_0x1f48xe[_0x6bcb[36]]){return VoiceExtension[_0x6bcb[26]]({where:{id:_0x1f48xe[_0x6bcb[36]]},attributes:[_0x6bcb[37],_0x6bcb[38]]})}else {return}}}function handleOutboundRecordings(_0x1f48x10,_0x1f48xe){return function(_0x1f48x1e){if(_0x1f48xe[_0x6bcb[36]]){if(_0x1f48x1e&& _0x1f48x1e[_0x6bcb[38]]){console[_0x6bcb[11]](_0x6bcb[39],_0x1f48x1e[_0x6bcb[37]]);_0x1f48x10[_0x6bcb[34]]= true}else {_0x1f48x10[_0x6bcb[34]]= false;console[_0x6bcb[11]](_0x6bcb[40])}};return}}function getAccountConfiguration(_0x1f48x20){var _0x1f48x21={uri:stripTrailingSlash(_0x1f48x20[_0x6bcb[41]]),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":_0x6bcb[42],"\x41\x63\x63\x65\x70\x74":_0x6bcb[42]}};var _0x1f48x22=_0x1f48x20[_0x6bcb[43]];if(_0x1f48x20[_0x6bcb[44]]=== _0x6bcb[45]){_0x1f48x22= _0x1f48x22+ _0x6bcb[46]+ _0x1f48x20[_0x6bcb[45]]}else {if(_0x1f48x20[_0x6bcb[44]]=== _0x6bcb[47]){_0x1f48x22= _0x1f48x22+ _0x6bcb[48]+ _0x1f48x20[_0x6bcb[47]]}};_0x1f48x21[_0x6bcb[21]][_0x6bcb[49]]= _0x6bcb[50]+  new Buffer(_0x1f48x22).toString(_0x6bcb[51]);return _0x1f48x21}function searchAgent(_0x1f48x10){return function(){console[_0x6bcb[11]](_0x6bcb[52],_0x1f48x10[_0x6bcb[29]]);return rp({uri:_0x1f48x10[_0x6bcb[20]]+ _0x6bcb[53],qs:{"\x71\x75\x65\x72\x79":util[_0x6bcb[55]](_0x6bcb[54],_0x1f48x10[_0x6bcb[29]])},headers:_0x1f48x10[_0x6bcb[21]],json:true})}}function getAgentSearchPropertyFromChannel(_0x1f48xc){var _0x1f48x25=_0x6bcb[56];if(_0x1f48xc){switch(_0x1f48xc){case _0x6bcb[58]:_0x1f48x25= _0x6bcb[57];break;default:_0x1f48x25= _0x6bcb[57];console[_0x6bcb[15]](_0x6bcb[59],_0x1f48xc)}};return _0x1f48x25}function getValueFromPropertyName(_0x1f48xe,_0x1f48x25,_0x1f48x10){if(_0x1f48x25=== _0x6bcb[60]){if(_0x1f48x10&& _0x1f48x10[_0x6bcb[34]]&& _0x1f48x10[_0x6bcb[22]]){return util[_0x6bcb[55]](_0x6bcb[61],stripTrailingSlash(_0x1f48x10[_0x6bcb[22]]),_0x1f48xe[_0x6bcb[62]])}else {return null}}else {return _[_0x6bcb[63]](_0x1f48xe,_0x1f48x25)}}function handleAgent(_0x1f48x10){return function(_0x1f48xe){if(_0x1f48xe[_0x6bcb[65]][_0x6bcb[64]]> 0&& _0x1f48xe[_0x6bcb[66]]> 0){console[_0x6bcb[11]](_0x6bcb[67],_0x1f48x10[_0x6bcb[29]]);_0x1f48x10[_0x6bcb[27]]= getMatchObject(_0x1f48xe[_0x6bcb[65]],_0x6bcb[31],_0x1f48x10[_0x6bcb[29]]);return _0x1f48x10[_0x6bcb[27]]};return}}function getMatchObject(_0x1f48x29,_0x1f48x25,_0x1f48x2a){var _0x1f48x2b=_[_0x6bcb[18]](_0x1f48x29,{property:_0x1f48x2a});if(_0x1f48x2b){return _0x1f48x2b};return _[_0x6bcb[68]](_0x1f48x29)}function searchAdmin(_0x1f48x10){return function(_0x1f48xe){if(_0x1f48xe){return};console[_0x6bcb[11]](_0x6bcb[69]);return rp({uri:_0x1f48x10[_0x6bcb[20]]+ _0x6bcb[70],headers:_0x1f48x10[_0x6bcb[21]],json:true})}}function handleAdmin(_0x1f48x10){return function(_0x1f48xe){if(!_0x1f48xe){return};if(_0x1f48xe[_0x6bcb[71]]){console[_0x6bcb[11]](_0x6bcb[72]);_0x1f48x10[_0x6bcb[27]]= _0x1f48xe[_0x6bcb[71]]};return}}function searchEndUser(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xd){return function(){console[_0x6bcb[11]](_0x6bcb[73],getValueFromPropertyName(_0x1f48xe,getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd)));return rp({uri:_0x1f48x10[_0x6bcb[20]]+ _0x6bcb[53],qs:{"\x71\x75\x65\x72\x79":util[_0x6bcb[55]](_0x6bcb[74],getEndUserSearchQueryFromChannel(_0x1f48xc),getValueFromPropertyName(_0x1f48xe,getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd)))},headers:_0x1f48x10[_0x6bcb[21]],json:true})}}function getEndUserSearchQueryFromChannel(_0x1f48xc){var _0x1f48x25=_0x6bcb[56];if(_0x1f48xc){switch(_0x1f48xc){case _0x6bcb[58]:_0x1f48x25= _0x6bcb[75];break;default:_0x1f48x25= _0x6bcb[75];console[_0x6bcb[15]](_0x6bcb[59],_0x1f48xc)}};return _0x1f48x25}function getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd){var _0x1f48x25=_0x6bcb[56];if(_0x1f48xc){switch(_0x1f48xc){case _0x6bcb[58]:if(_0x1f48xd=== _0x6bcb[76]){_0x1f48x25= _0x6bcb[77]}else {if(_0x1f48xd=== _0x6bcb[30]){_0x1f48x25= _0x6bcb[78]}};break;default:_0x1f48x25= _0x6bcb[78];console[_0x6bcb[15]](_0x6bcb[59],_0x1f48xc)}};return _0x1f48x25}function getEndUserNamePropertyFromChannel(_0x1f48xc,_0x1f48xd){var _0x1f48x25=_0x6bcb[56];if(_0x1f48xc){switch(_0x1f48xc){case _0x6bcb[58]:if(_0x1f48xd=== _0x6bcb[76]){_0x1f48x25= _0x6bcb[79]}else {if(_0x1f48xd=== _0x6bcb[30]){_0x1f48x25= _0x6bcb[80]}};break;default:_0x1f48x25= _0x6bcb[80];console[_0x6bcb[15]](_0x6bcb[59],_0x1f48xc)}};return _0x1f48x25}function handleEndUser(_0x1f48x10,_0x1f48xc,_0x1f48x33,_0x1f48xd){return function(_0x1f48xe){if(_0x1f48xe[_0x6bcb[65]][_0x6bcb[64]]> 0&& _0x1f48xe[_0x6bcb[66]]> 0){console[_0x6bcb[11]](_0x6bcb[81],getValueFromPropertyName(_0x1f48x33,getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd)));_0x1f48x10[_0x6bcb[82]]= _0x1f48xe[_0x6bcb[65]][0];return _0x1f48x10[_0x6bcb[82]]};return}}function endUserCreation(_0x1f48x10,_0x1f48xc,_0x1f48x33,_0x1f48xd){return function(_0x1f48xe){if(_0x1f48xe){return};console[_0x6bcb[11]](_0x6bcb[83],getValueFromPropertyName(_0x1f48x33,getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd)));console[_0x6bcb[11]](getJsonForEndUserCreation(_0x1f48xc,_0x1f48x33,_0x1f48xd));return rp({uri:_0x1f48x10[_0x6bcb[20]]+ _0x6bcb[84],method:_0x6bcb[85],body:{user:getJsonForEndUserCreation(_0x1f48xc,_0x1f48x33,_0x1f48xd)},headers:_0x1f48x10[_0x6bcb[21]],json:true})}}function getJsonForEndUserCreation(_0x1f48xc,_0x1f48xe,_0x1f48xd){var _0x1f48x36={role:_0x6bcb[86]};switch(_0x1f48xc){case _0x6bcb[58]:if(_0x1f48xd=== _0x6bcb[30]){if(isValidName(_0x1f48xe[_0x6bcb[80]])){_0x1f48x36[_0x6bcb[31]]= getValueFromPropertyName(_0x1f48xe,getEndUserNamePropertyFromChannel(_0x1f48xc,_0x1f48xd))}else {_0x1f48x36[_0x6bcb[31]]= util[_0x6bcb[55]](_0x6bcb[87],getValueFromPropertyName(_0x1f48xe,getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd)))}}else {if(_0x1f48xd=== _0x6bcb[76]){if(isValidName(_0x1f48xe[_0x6bcb[79]])){_0x1f48x36[_0x6bcb[31]]= getValueFromPropertyName(_0x1f48xe,getEndUserNamePropertyFromChannel(_0x1f48xc,_0x1f48xd))}else {_0x1f48x36[_0x6bcb[31]]= util[_0x6bcb[55]](_0x6bcb[87],getValueFromPropertyName(_0x1f48xe,getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd)))}}};_0x1f48x36[_0x6bcb[75]]= getValueFromPropertyName(_0x1f48xe,getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd));break;default:console[_0x6bcb[15]](_0x6bcb[59],_0x1f48xc)};return _0x1f48x36}function isValidName(_0x1f48x38){return _0x1f48x38&& _0x1f48x38!== _0x6bcb[88]}function handleEndUserCreation(_0x1f48x10,_0x1f48xc,_0x1f48x33,_0x1f48xd){return function(_0x1f48xe){if(!_0x1f48xe){return};if(_0x1f48xe[_0x6bcb[71]]){console[_0x6bcb[11]](_0x6bcb[89],getValueFromPropertyName(_0x1f48x33,getEndUserSearchPropertyFromChannel(_0x1f48xc,_0x1f48xd)));_0x1f48x10[_0x6bcb[82]]= _0x1f48xe[_0x6bcb[71]]};return}}function ticketCreation(_0x1f48x10,_0x1f48x33,_0x1f48xf){return function(){var _0x1f48x3b={requester_id:_0x1f48x10[_0x6bcb[82]][_0x6bcb[37]],submitter_id:_0x1f48x10[_0x6bcb[27]][_0x6bcb[37]],assignee_id:_0x1f48x10[_0x6bcb[27]][_0x6bcb[37]],tags:createTagsFromConfiguration(_0x1f48x10),subject:createSubjectFromConfiguration(_0x1f48x10,_0x1f48x33,_0x1f48xf),comment:{public:false,body:createDescriptionFromConfiguration(_0x1f48x10,_0x1f48x33,_0x1f48xf)},custom_fields:createCustomFieldsFromConfiguration(_0x1f48x10,_0x1f48x33,_0x1f48xf)};var _0x1f48x3c=createFieldsFromConfiguration(_0x1f48x10);if(_0x1f48x3c[_0x6bcb[64]]> 0){_[_0x6bcb[91]](_0x1f48x3c,function(_0x1f48x3d){_0x1f48x3b[_0x1f48x3d[_0x6bcb[37]]]= _0x1f48x3d[_0x6bcb[90]]})};console[_0x6bcb[11]](_0x6bcb[92],_0x1f48x3b);return rp({uri:_0x1f48x10[_0x6bcb[20]]+ _0x6bcb[93],method:_0x6bcb[85],body:{ticket:_0x1f48x3b},headers:_0x1f48x10[_0x6bcb[21]],json:true})}}function createTagsFromConfiguration(_0x1f48x10){var _0x1f48x3f=[];if(_0x1f48x10[_0x6bcb[19]][_0x6bcb[94]][_0x6bcb[64]]> 0){_0x1f48x3f= _[_0x6bcb[95]](_0x1f48x10[_0x6bcb[19]].Tags,_0x6bcb[31])};return _0x1f48x3f}function createSubjectFromConfiguration(_0x1f48x10,_0x1f48x33,_0x1f48xf){var _0x1f48x41=_0x6bcb[56];var _0x1f48x42=[];if(_0x1f48x10[_0x6bcb[19]][_0x6bcb[96]][_0x6bcb[64]]> 0){var _0x1f48x43=_[_0x6bcb[97]](_0x1f48x10[_0x6bcb[19]].Subject,[_0x6bcb[37]]);_[_0x6bcb[91]](_0x1f48x43,function(_0x1f48x44){if(_0x1f48x44[_0x6bcb[98]]=== _0x6bcb[99]){_0x1f48x42[_0x6bcb[101]](_0x1f48x44[_0x6bcb[100]])}else {if(_0x1f48x44[_0x6bcb[98]]=== _0x6bcb[102]&& _0x1f48x44[_0x6bcb[103]]){var _0x1f48x45=getValueFromPropertyName(_0x1f48x33,_0x1f48x44[_0x6bcb[103]],_0x1f48x10);if(_0x1f48x45){_0x1f48x42[_0x6bcb[101]](_0x1f48x45.toString())}}else {if(_0x1f48x44[_0x6bcb[98]]=== _0x6bcb[104]&& _0x1f48x44[_0x6bcb[105]]&& _0x1f48x44[_0x6bcb[105]][_0x6bcb[31]]){_0x1f48xf[_0x1f48x44[_0x6bcb[105]][_0x6bcb[31]]]&& _0x1f48x42[_0x6bcb[101]](_0x1f48xf[_0x1f48x44[_0x6bcb[105]][_0x6bcb[31]]].toString())}}}});_0x1f48x41= _0x1f48x42[_0x6bcb[107]](_0x6bcb[106])};return _0x1f48x41}function createDescriptionFromConfiguration(_0x1f48x10,_0x1f48x33,_0x1f48xf){var _0x1f48x47=_0x6bcb[56];var _0x1f48x42=[];if(_0x1f48x10[_0x6bcb[19]][_0x6bcb[108]][_0x6bcb[64]]> 0){var _0x1f48x48=_[_0x6bcb[97]](_0x1f48x10[_0x6bcb[19]].Description,[_0x6bcb[37]]);_[_0x6bcb[91]](_0x1f48x48,function(_0x1f48x44){if(_0x1f48x44[_0x6bcb[98]]=== _0x6bcb[99]){_0x1f48x42[_0x6bcb[101]](_0x1f48x44[_0x6bcb[100]])}else {if(_0x1f48x44[_0x6bcb[98]]=== _0x6bcb[109]){if(_0x1f48x44[_0x6bcb[110]]=== _0x6bcb[99]&& _0x1f48x44[_0x6bcb[111]]){_0x1f48x42[_0x6bcb[101]](util[_0x6bcb[55]](_0x6bcb[112],_0x1f48x44[_0x6bcb[111]],_0x1f48x44[_0x6bcb[113]]))}else {if(_0x1f48x44[_0x6bcb[110]]=== _0x6bcb[102]&& _0x1f48x44[_0x6bcb[103]]&& _0x1f48x44[_0x6bcb[111]]){var _0x1f48x45=getValueFromPropertyName(_0x1f48x33,_0x1f48x44[_0x6bcb[103]],_0x1f48x10);if(_0x1f48x45){_0x1f48x42[_0x6bcb[101]](util[_0x6bcb[55]](_0x6bcb[112],_0x1f48x44[_0x6bcb[111]],_0x1f48x45.toString()))}}else {if(_0x1f48x44[_0x6bcb[110]]=== _0x6bcb[104]&& _0x1f48x44[_0x6bcb[105]]&& _0x1f48x44[_0x6bcb[105]][_0x6bcb[31]]&& _0x1f48x44[_0x6bcb[111]]){_0x1f48xf[_0x1f48x44[_0x6bcb[105]][_0x6bcb[31]]]&& _0x1f48x42[_0x6bcb[101]](util[_0x6bcb[55]](_0x6bcb[112],_0x1f48x44[_0x6bcb[111]],_0x1f48xf[_0x1f48x44[_0x6bcb[105]][_0x6bcb[31]]]))}}}}}});_0x1f48x47= _0x1f48x42[_0x6bcb[107]](_0x6bcb[114])};return _0x1f48x47}function createCustomFieldsFromConfiguration(_0x1f48x10,_0x1f48x33,_0x1f48xf){var _0x1f48x4a=[];var _0x1f48x4b=[];if(_0x1f48x10[_0x6bcb[19]][_0x6bcb[115]][_0x6bcb[64]]> 0){_0x1f48x4a= _[_0x6bcb[116]](_0x1f48x10[_0x6bcb[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x6bcb[91]](_0x1f48x4a,function(_0x1f48x3d){if(_0x1f48x3d[_0x6bcb[98]]=== _0x6bcb[99]&& _0x1f48x3d[_0x6bcb[117]]){_0x1f48x4b[_0x6bcb[101]]({id:_0x1f48x3d[_0x6bcb[117]],value:_0x1f48x3d[_0x6bcb[100]]})}else {if(_0x1f48x3d[_0x6bcb[98]]=== _0x6bcb[102]&& _0x1f48x3d[_0x6bcb[103]]&& _0x1f48x3d[_0x6bcb[117]]){var _0x1f48x45=getValueFromPropertyName(_0x1f48x33,_0x1f48x3d[_0x6bcb[103]],_0x1f48x10);if(_0x1f48x45){_0x1f48x4b[_0x6bcb[101]]({id:_0x1f48x3d[_0x6bcb[117]],value:_0x1f48x45.toString()})}}else {if(_0x1f48x3d[_0x6bcb[98]]=== _0x6bcb[104]&& _0x1f48x3d[_0x6bcb[105]]&& _0x1f48x3d[_0x6bcb[105]][_0x6bcb[31]]&& _0x1f48x3d[_0x6bcb[117]]){_0x1f48xf[_0x1f48x3d[_0x6bcb[105]][_0x6bcb[31]]]&& _0x1f48x4b[_0x6bcb[101]]({id:_0x1f48x3d[_0x6bcb[117]],value:_0x1f48xf[_0x1f48x3d[_0x6bcb[105]][_0x6bcb[31]]].toString()})}}}})};return _0x1f48x4b}function createFieldsFromConfiguration(_0x1f48x10){var _0x1f48x3c=[];var _0x1f48x4b=[];if(_0x1f48x10[_0x6bcb[19]][_0x6bcb[115]][_0x6bcb[64]]> 0){_0x1f48x3c= _[_0x6bcb[116]](_0x1f48x10[_0x6bcb[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x6bcb[91]](_0x1f48x3c,function(_0x1f48x3d){if(_0x1f48x3d[_0x6bcb[98]]=== _0x6bcb[99]&& _0x1f48x3d[_0x6bcb[118]]){_0x1f48x4b[_0x6bcb[101]]({id:_0x1f48x3d[_0x6bcb[118]],value:_0x1f48x3d[_0x6bcb[100]]})}})};return _0x1f48x4b}function handleTicketDisplay(_0x1f48x10){return function(_0x1f48xe){if(_0x1f48xe[_0x6bcb[119]]){console[_0x6bcb[11]](_0x6bcb[120]);_0x1f48x10[_0x6bcb[119]]= _0x1f48xe[_0x6bcb[119]];var _0x1f48x4e=util[_0x6bcb[55]](_0x6bcb[121],_0x1f48x10[_0x6bcb[27]][_0x6bcb[37]],_0x1f48x10[_0x6bcb[119]][_0x6bcb[37]]);return rp({uri:_0x1f48x10[_0x6bcb[20]]+ _0x1f48x4e,method:_0x6bcb[85],headers:_0x1f48x10[_0x6bcb[21]],json:true})};return}}function handleReportIntegration(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xa,_0x1f48xd){return function(){delete _0x1f48xe[_0x6bcb[37]];delete _0x1f48xe[_0x6bcb[122]];delete _0x1f48xe[_0x6bcb[123]];_0x1f48xe[_0x6bcb[124]]= _0x6bcb[125];_0x1f48xe[_0x6bcb[126]]= _0x1f48xc;_0x1f48xe[_0x6bcb[127]]= _0x6bcb[128];_0x1f48xe[_0x6bcb[129]]= _0x1f48x10[_0x6bcb[119]][_0x6bcb[37]];_0x1f48xe[_0x6bcb[130]]= _0x1f48x10[_0x6bcb[119]][_0x6bcb[130]];_0x1f48xe[_0x6bcb[131]]= _0x1f48xa;_0x1f48xe[_0x6bcb[132]]= _0x1f48xd;return ReportIntegration[_0x6bcb[133]](_0x1f48xe)}}function handleEnd(_0x1f48x10,_0x1f48xe,_0x1f48xc){return function(){console[_0x6bcb[11]](util[_0x6bcb[55]](_0x6bcb[134],_0x1f48x10[_0x6bcb[119]][_0x6bcb[37]],_0x1f48x10[_0x6bcb[27]][_0x6bcb[37]]));_0x1f48x10= undefined;return}}function handleError(_0x1f48x10,_0x1f48xc,_0x1f48xe,_0x1f48xa){return function(_0x1f48x52){console[_0x6bcb[15]](_0x6bcb[135]);console[_0x6bcb[15]](_0x6bcb[136],_0x1f48x52[_0x6bcb[137]]);console[_0x6bcb[15]](_0x6bcb[138],_0x1f48x52[_0x6bcb[139]]);_0x1f48x10= undefined;delete _0x1f48xe[_0x6bcb[37]];delete _0x1f48xe[_0x6bcb[122]];delete _0x1f48xe[_0x6bcb[123]];_0x1f48xe[_0x6bcb[124]]= _0x6bcb[125];_0x1f48xe[_0x6bcb[126]]= _0x1f48xc;_0x1f48xe[_0x6bcb[127]]= _0x6bcb[140];_0x1f48xe[_0x6bcb[131]]= _0x1f48xa;ReportIntegration[_0x6bcb[133]](_0x1f48xe)[_0x6bcb[17]](function(){return})[_0x6bcb[16]](function(_0x1f48x52){console[_0x6bcb[15]](_0x6bcb[141]);return})}}function stripTrailingSlash(_0x1f48x54){if(_0x1f48x54[_0x6bcb[142]](-1) === _0x6bcb[143]){return _0x1f48x54[_0x6bcb[142]](0,_0x1f48x54[_0x6bcb[64]]- 1)};return _0x1f48x54}module[_0x6bcb[144]]= Zendesk
\ No newline at end of file