Built motion from commit eada615.|0.0.146
[motion.git] / server / config / integrations / zendesk.js
index 9ac86e0..72012f2 100644 (file)
@@ -1 +1 @@
-var _0x6ea0=["\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","\x5A\x65\x6E\x64\x65\x73\x6B\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x50\x61\x73\x73\x65\x64\x20\x70\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x20\x61\x72\x65\x20\x6E\x6F\x74\x20\x65\x6E\x6F\x75\x67\x68\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x74\x69\x63\x6B\x65\x74\x3A\x20\x6D\x69\x73\x73\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64\x20\x6F\x72\x20\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x49\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64","\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x75\x72\x69","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x72\x76\x65\x72\x55\x52\x4C","\x73\x65\x72\x76\x65\x72\x55\x72\x6C","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x71\x75\x65\x75\x65","\x6E\x61\x6D\x65","\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x6F\x72\x6D\x61\x74","\x66\x69\x6E\x64\x4F\x6E\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x51\x75\x65\x75\x65\x20","\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\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","","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x76\x6F\x69\x63\x65","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x55\x52\x4C","\x25\x73\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73\x2F\x25\x73\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x72\x65\x73\x75\x6C\x74","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x73\x75\x6C\x74\x73","\x63\x6F\x75\x6E\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x61\x67\x65\x6E\x74","\x66\x69\x72\x73\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E\x20\x55\x73\x65\x20\x74\x68\x65\x20\x61\x64\x6D\x69\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x75\x73\x65\x72\x73\x2F\x6D\x65\x2E\x6A\x73\x6F\x6E","\x75\x73\x65\x72","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x64\x6D\x69\x6E\x20\x73\x65\x6C\x65\x63\x74\x65\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x74\x79\x70\x65\x3A\x75\x73\x65\x72\x20\x72\x6F\x6C\x65\x3A\x65\x6E\x64\x2D\x75\x73\x65\x72\x20\x25\x73\x3A\x25\x73","\x70\x68\x6F\x6E\x65","\x64\x65\x73\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x75\x6D","\x64\x65\x73\x74\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\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","\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\x20","\x69\x64","\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","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\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"];_0x6ea0[0];var _=require(_0x6ea0[1]);var util=require(_0x6ea0[2]);var rp=require(_0x6ea0[3]);var ZendeskIntegration=require(_0x6ea0[5])[_0x6ea0[4]];var ZendeskConfiguration=require(_0x6ea0[5])[_0x6ea0[6]];var ReportIntegration=require(_0x6ea0[5])[_0x6ea0[7]];var VoiceQueue=require(_0x6ea0[5])[_0x6ea0[8]];function Zendesk(){console[_0x6ea0[10]](_0x6ea0[9])}Zendesk[_0x6ea0[12]][_0x6ea0[11]]= function(_0xdcbcx9,_0xdcbcxa,_0xdcbcxb,_0xdcbcxc,_0xdcbcxd){var _0xdcbcxe={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined};if(!_0xdcbcx9||  !_0xdcbcxa){console[_0x6ea0[14]](_0x6ea0[13]);return};ZendeskConfiguration[_0x6ea0[17]]({where:{id:_0xdcbcxa,AccountId:_0xdcbcx9},include:[{all:true,include:[{all:true}]}]})[_0x6ea0[16]](handleEntityNotFound())[_0x6ea0[16]](handleConnection(_0xdcbcxe))[_0x6ea0[16]](searchQueue(_0xdcbcxc))[_0x6ea0[16]](handleRecordings(_0xdcbcxe))[_0x6ea0[16]](searchAgent(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc))[_0x6ea0[16]](handleAgent(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc))[_0x6ea0[16]](searchAdmin(_0xdcbcxe))[_0x6ea0[16]](handleAdmin(_0xdcbcxe))[_0x6ea0[16]](searchEndUser(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc))[_0x6ea0[16]](handleEndUser(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc))[_0x6ea0[16]](endUserCreation(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc))[_0x6ea0[16]](handleEndUserCreation(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc))[_0x6ea0[16]](ticketCreation(_0xdcbcxe,_0xdcbcxc,_0xdcbcxd))[_0x6ea0[16]](handleTicketDisplay(_0xdcbcxe))[_0x6ea0[16]](handleReportIntegration(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc,_0xdcbcx9))[_0x6ea0[16]](handleEnd(_0xdcbcxe))[_0x6ea0[15]](handleError(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc,_0xdcbcx9))};function handleEntityNotFound(){return function(_0xdcbcx10){if(!_0xdcbcx10){return null};return _0xdcbcx10}}function handleConnection(_0xdcbcxe){return function(_0xdcbcx12){var _0xdcbcx13=getAccountConfiguration(_0xdcbcx12.ZendeskAccount);_0xdcbcxe[_0x6ea0[18]]= _0xdcbcx12;_0xdcbcxe[_0x6ea0[19]]= _0xdcbcx13[_0x6ea0[19]];_0xdcbcxe[_0x6ea0[20]]= _0xdcbcx13[_0x6ea0[20]];_0xdcbcxe[_0x6ea0[21]]= _0xdcbcx12[_0x6ea0[23]][_0x6ea0[22]]}}function searchQueue(_0xdcbcxc){return function(){if(_0xdcbcxc[_0x6ea0[24]]){return VoiceQueue[_0x6ea0[27]]({where:{name:_0xdcbcxc[_0x6ea0[24]]},attributes:[_0x6ea0[25],_0x6ea0[26]]})}else {return}}}function handleRecordings(_0xdcbcxe){return function(_0xdcbcx16){if(_0xdcbcx16&& _0xdcbcx16[_0x6ea0[26]]){console[_0x6ea0[10]](_0x6ea0[28],_0xdcbcx16[_0x6ea0[25]]);_0xdcbcxe[_0x6ea0[29]]= true}else {_0xdcbcxe[_0x6ea0[29]]= false;console[_0x6ea0[10]](_0x6ea0[30]);return}}}function getAccountConfiguration(_0xdcbcx18){var _0xdcbcx19={uri:stripTrailingSlash(_0xdcbcx18[_0x6ea0[31]]),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":_0x6ea0[32],"\x41\x63\x63\x65\x70\x74":_0x6ea0[32]}};var _0xdcbcx1a=_0xdcbcx18[_0x6ea0[33]];if(_0xdcbcx18[_0x6ea0[34]]=== _0x6ea0[35]){_0xdcbcx1a= _0xdcbcx1a+ _0x6ea0[36]+ _0xdcbcx18[_0x6ea0[35]]}else {if(_0xdcbcx18[_0x6ea0[34]]=== _0x6ea0[37]){_0xdcbcx1a= _0xdcbcx1a+ _0x6ea0[38]+ _0xdcbcx18[_0x6ea0[37]]}};_0xdcbcx19[_0x6ea0[20]][_0x6ea0[39]]= _0x6ea0[40]+  new Buffer(_0xdcbcx1a).toString(_0x6ea0[41]);return _0xdcbcx19}function searchAgent(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc){return function(){console[_0x6ea0[10]](_0x6ea0[42],getValueFromPropertyName(_0xdcbcxc,getAgentSearchPropertyFromChannel(_0xdcbcxb)));return rp({uri:_0xdcbcxe[_0x6ea0[19]]+ _0x6ea0[43],qs:{"\x71\x75\x65\x72\x79":util[_0x6ea0[45]](_0x6ea0[44],getValueFromPropertyName(_0xdcbcxc,getAgentSearchPropertyFromChannel(_0xdcbcxb)))},headers:_0xdcbcxe[_0x6ea0[20]],json:true})}}function getAgentSearchPropertyFromChannel(_0xdcbcxb){var _0xdcbcx1d=_0x6ea0[46];if(_0xdcbcxb){switch(_0xdcbcxb){case _0x6ea0[48]:_0xdcbcx1d= _0x6ea0[47];break;default:_0xdcbcx1d= _0x6ea0[47];console[_0x6ea0[14]](_0x6ea0[49],_0xdcbcxb)}};return _0xdcbcx1d}function getValueFromPropertyName(_0xdcbcxc,_0xdcbcx1d,_0xdcbcxe){if(_0xdcbcx1d=== _0x6ea0[50]){if(_0xdcbcxe&& _0xdcbcxe[_0x6ea0[29]]&& _0xdcbcxe[_0x6ea0[21]]){return util[_0x6ea0[45]](_0x6ea0[51],stripTrailingSlash(_0xdcbcxe[_0x6ea0[21]]),_0xdcbcxc[_0x6ea0[52]])}else {return null}}else {return _[_0x6ea0[53]](_0xdcbcxc,_0xdcbcx1d)}}function handleAgent(_0xdcbcxe,_0xdcbcxb,_0xdcbcx20){return function(_0xdcbcxc){if(_0xdcbcxc[_0x6ea0[55]][_0x6ea0[54]]> 0&& _0xdcbcxc[_0x6ea0[56]]> 0){console[_0x6ea0[10]](_0x6ea0[57],getValueFromPropertyName(_0xdcbcx20,getAgentSearchPropertyFromChannel(_0xdcbcxb)));_0xdcbcxe[_0x6ea0[58]]= getMatchObject(_0xdcbcxc[_0x6ea0[55]],_0x6ea0[25],getValueFromPropertyName(_0xdcbcx20,getAgentSearchPropertyFromChannel(_0xdcbcxb)));return _0xdcbcxe[_0x6ea0[58]]};return}}function getMatchObject(_0xdcbcx22,_0xdcbcx1d,_0xdcbcx23){var _0xdcbcx24=_[_0x6ea0[17]](_0xdcbcx22,{property:_0xdcbcx23});if(_0xdcbcx24){return _0xdcbcx24};return _[_0x6ea0[59]](_0xdcbcx22)}function searchAdmin(_0xdcbcxe){return function(_0xdcbcxc){if(_0xdcbcxc){return};console[_0x6ea0[10]](_0x6ea0[60]);return rp({uri:_0xdcbcxe[_0x6ea0[19]]+ _0x6ea0[61],headers:_0xdcbcxe[_0x6ea0[20]],json:true})}}function handleAdmin(_0xdcbcxe){return function(_0xdcbcxc){if(!_0xdcbcxc){return};if(_0xdcbcxc[_0x6ea0[62]]){console[_0x6ea0[10]](_0x6ea0[63]);_0xdcbcxe[_0x6ea0[58]]= _0xdcbcxc[_0x6ea0[62]]};return}}function searchEndUser(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc){return function(){console[_0x6ea0[10]](_0x6ea0[64],getValueFromPropertyName(_0xdcbcxc,getEndUserSearchPropertyFromChannel(_0xdcbcxb)));return rp({uri:_0xdcbcxe[_0x6ea0[19]]+ _0x6ea0[43],qs:{"\x71\x75\x65\x72\x79":util[_0x6ea0[45]](_0x6ea0[65],getEndUserSearchQueryFromChannel(_0xdcbcxb),getValueFromPropertyName(_0xdcbcxc,getEndUserSearchPropertyFromChannel(_0xdcbcxb)))},headers:_0xdcbcxe[_0x6ea0[20]],json:true})}}function getEndUserSearchQueryFromChannel(_0xdcbcxb){var _0xdcbcx1d=_0x6ea0[46];if(_0xdcbcxb){switch(_0xdcbcxb){case _0x6ea0[48]:_0xdcbcx1d= _0x6ea0[66];break;default:_0xdcbcx1d= _0x6ea0[66];console[_0x6ea0[14]](_0x6ea0[49],_0xdcbcxb)}};return _0xdcbcx1d}function getEndUserSearchPropertyFromChannel(_0xdcbcxb){var _0xdcbcx1d=_0x6ea0[46];if(_0xdcbcxb){switch(_0xdcbcxb){case _0x6ea0[48]:_0xdcbcx1d= _0x6ea0[67];break;default:_0xdcbcx1d= _0x6ea0[67];console[_0x6ea0[14]](_0x6ea0[49],_0xdcbcxb)}};return _0xdcbcx1d}function getEndUserNamePropertyFromChannel(_0xdcbcxb){var _0xdcbcx1d=_0x6ea0[46];if(_0xdcbcxb){switch(_0xdcbcxb){case _0x6ea0[48]:_0xdcbcx1d= _0x6ea0[68];break;default:_0xdcbcx1d= _0x6ea0[68];console[_0x6ea0[14]](_0x6ea0[49],_0xdcbcxb)}};return _0xdcbcx1d}function handleEndUser(_0xdcbcxe,_0xdcbcxb,_0xdcbcx20){return function(_0xdcbcxc){if(_0xdcbcxc[_0x6ea0[55]][_0x6ea0[54]]> 0&& _0xdcbcxc[_0x6ea0[56]]> 0){console[_0x6ea0[10]](_0x6ea0[69],getValueFromPropertyName(_0xdcbcx20,getEndUserSearchPropertyFromChannel(_0xdcbcxb)));_0xdcbcxe[_0x6ea0[70]]= _0xdcbcxc[_0x6ea0[55]][0];return _0xdcbcxe[_0x6ea0[70]]};return}}function endUserCreation(_0xdcbcxe,_0xdcbcxb,_0xdcbcx20){return function(_0xdcbcxc){if(_0xdcbcxc){return};console[_0x6ea0[10]](_0x6ea0[71],getValueFromPropertyName(_0xdcbcx20,getEndUserSearchPropertyFromChannel(_0xdcbcxb)));console[_0x6ea0[10]](getJsonForEndUserCreation(_0xdcbcxb,_0xdcbcx20));return rp({uri:_0xdcbcxe[_0x6ea0[19]]+ _0x6ea0[72],method:_0x6ea0[73],body:{user:getJsonForEndUserCreation(_0xdcbcxb,_0xdcbcx20)},headers:_0xdcbcxe[_0x6ea0[20]],json:true})}}function getJsonForEndUserCreation(_0xdcbcxb,_0xdcbcxc){var _0xdcbcx2e={role:_0x6ea0[74]};switch(_0xdcbcxb){case _0x6ea0[48]:if(_0xdcbcxc[_0x6ea0[68]]){_0xdcbcx2e[_0x6ea0[25]]= getValueFromPropertyName(_0xdcbcxc,getEndUserNamePropertyFromChannel(_0xdcbcxb))}else {_0xdcbcx2e[_0x6ea0[25]]= util[_0x6ea0[45]](_0x6ea0[75],getValueFromPropertyName(_0xdcbcxc,getAgentSearchPropertyFromChannel(_0xdcbcxb)))};_0xdcbcx2e[_0x6ea0[66]]= getValueFromPropertyName(_0xdcbcxc,getEndUserSearchPropertyFromChannel(_0xdcbcxb));break;default:console[_0x6ea0[14]](_0x6ea0[49],_0xdcbcxb)};return _0xdcbcx2e}function handleEndUserCreation(_0xdcbcxe,_0xdcbcxb,_0xdcbcx20){return function(_0xdcbcxc){if(!_0xdcbcxc){return};if(_0xdcbcxc[_0x6ea0[62]]){console[_0x6ea0[10]](_0x6ea0[76],getValueFromPropertyName(_0xdcbcx20,getEndUserSearchPropertyFromChannel(_0xdcbcxb)));_0xdcbcxe[_0x6ea0[70]]= _0xdcbcxc[_0x6ea0[62]]};return}}function ticketCreation(_0xdcbcxe,_0xdcbcx20,_0xdcbcxd){return function(){var _0xdcbcx31={requester_id:_0xdcbcxe[_0x6ea0[58]][_0x6ea0[77]],submitter_id:_0xdcbcxe[_0x6ea0[70]][_0x6ea0[77]],assignee_id:_0xdcbcxe[_0x6ea0[70]][_0x6ea0[77]],tags:createTagsFromConfiguration(_0xdcbcxe),subject:createSubjectFromConfiguration(_0xdcbcxe,_0xdcbcx20,_0xdcbcxd),description:createDescriptionFromConfiguration(_0xdcbcxe,_0xdcbcx20,_0xdcbcxd),custom_fields:createCustomFieldsFromConfiguration(_0xdcbcxe,_0xdcbcx20,_0xdcbcxd)};var _0xdcbcx32=createFieldsFromConfiguration(_0xdcbcxe);if(_0xdcbcx32[_0x6ea0[54]]> 0){_[_0x6ea0[79]](_0xdcbcx32,function(_0xdcbcx33){_0xdcbcx31[_0xdcbcx33[_0x6ea0[77]]]= _0xdcbcx33[_0x6ea0[78]]})};console[_0x6ea0[10]](_0x6ea0[80],_0xdcbcx31);return rp({uri:_0xdcbcxe[_0x6ea0[19]]+ _0x6ea0[81],method:_0x6ea0[73],body:{ticket:_0xdcbcx31},headers:_0xdcbcxe[_0x6ea0[20]],json:true})}}function createTagsFromConfiguration(_0xdcbcxe){var _0xdcbcx35=[];if(_0xdcbcxe[_0x6ea0[18]][_0x6ea0[82]][_0x6ea0[54]]> 0){_0xdcbcx35= _[_0x6ea0[83]](_0xdcbcxe[_0x6ea0[18]].Tags,_0x6ea0[25])};return _0xdcbcx35}function createSubjectFromConfiguration(_0xdcbcxe,_0xdcbcx20,_0xdcbcxd){var _0xdcbcx37=_0x6ea0[46];var _0xdcbcx38=[];if(_0xdcbcxe[_0x6ea0[18]][_0x6ea0[84]][_0x6ea0[54]]> 0){var _0xdcbcx39=_[_0x6ea0[85]](_0xdcbcxe[_0x6ea0[18]].Subject,[_0x6ea0[77]]);_[_0x6ea0[79]](_0xdcbcx39,function(_0xdcbcx3a){if(_0xdcbcx3a[_0x6ea0[86]]=== _0x6ea0[87]){_0xdcbcx38[_0x6ea0[89]](_0xdcbcx3a[_0x6ea0[88]])}else {if(_0xdcbcx3a[_0x6ea0[86]]=== _0x6ea0[90]&& _0xdcbcx3a[_0x6ea0[91]]){var _0xdcbcx3b=getValueFromPropertyName(_0xdcbcx20,_0xdcbcx3a[_0x6ea0[91]],_0xdcbcxe);if(_0xdcbcx3b){_0xdcbcx38[_0x6ea0[89]](_0xdcbcx3b.toString())}}else {if(_0xdcbcx3a[_0x6ea0[86]]=== _0x6ea0[92]){var _0xdcbcx3c=_[_0x6ea0[17]](_0xdcbcxd,{"\x6E\x61\x6D\x65":_0xdcbcx3a[_0x6ea0[93]][_0x6ea0[25]]});if(_0xdcbcx3c){_0xdcbcx38[_0x6ea0[89]](_0xdcbcx3c[_0x6ea0[78]].toString())}}}}});_0xdcbcx37= _0xdcbcx38[_0x6ea0[95]](_0x6ea0[94])};return _0xdcbcx37}function createDescriptionFromConfiguration(_0xdcbcxe,_0xdcbcx20,_0xdcbcxd){var _0xdcbcx3e=_0x6ea0[46];var _0xdcbcx38=[];if(_0xdcbcxe[_0x6ea0[18]][_0x6ea0[96]][_0x6ea0[54]]> 0){var _0xdcbcx3f=_[_0x6ea0[85]](_0xdcbcxe[_0x6ea0[18]].Description,[_0x6ea0[77]]);_[_0x6ea0[79]](_0xdcbcx3f,function(_0xdcbcx3a){if(_0xdcbcx3a[_0x6ea0[86]]=== _0x6ea0[87]){_0xdcbcx38[_0x6ea0[89]](_0xdcbcx3a[_0x6ea0[88]])}else {if(_0xdcbcx3a[_0x6ea0[86]]=== _0x6ea0[97]){if(_0xdcbcx3a[_0x6ea0[98]]=== _0x6ea0[87]){_0xdcbcx38[_0x6ea0[89]](util[_0x6ea0[45]](_0x6ea0[99],_0xdcbcx3a[_0x6ea0[100]],_0xdcbcx3a[_0x6ea0[101]]))}else {if(_0xdcbcx3a[_0x6ea0[98]]=== _0x6ea0[90]&& _0xdcbcx3a[_0x6ea0[91]]){var _0xdcbcx3b=getValueFromPropertyName(_0xdcbcx20,_0xdcbcx3a[_0x6ea0[91]],_0xdcbcxe);if(_0xdcbcx3b){_0xdcbcx38[_0x6ea0[89]](util[_0x6ea0[45]](_0x6ea0[99],_0xdcbcx3a[_0x6ea0[100]],_0xdcbcx3b.toString()))}}else {if(_0xdcbcx3a[_0x6ea0[98]]=== _0x6ea0[92]){var _0xdcbcx3c=_[_0x6ea0[17]](_0xdcbcxd,{"\x6E\x61\x6D\x65":_0xdcbcx3a[_0x6ea0[93]][_0x6ea0[25]]});if(_0xdcbcx3c){_0xdcbcx38[_0x6ea0[89]](util[_0x6ea0[45]](_0x6ea0[99],_0xdcbcx3a[_0x6ea0[100]],_0xdcbcx3c[_0x6ea0[78]].toString()))}}}}}}});_0xdcbcx3e= _0xdcbcx38[_0x6ea0[95]](_0x6ea0[102])};return _0xdcbcx3e}function createCustomFieldsFromConfiguration(_0xdcbcxe,_0xdcbcx20,_0xdcbcxd){var _0xdcbcx41=[];var _0xdcbcx42=[];if(_0xdcbcxe[_0x6ea0[18]][_0x6ea0[103]][_0x6ea0[54]]> 0){_0xdcbcx41= _[_0x6ea0[104]](_0xdcbcxe[_0x6ea0[18]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x6ea0[79]](_0xdcbcx41,function(_0xdcbcx33){if(_0xdcbcx33[_0x6ea0[86]]=== _0x6ea0[87]){_0xdcbcx42[_0x6ea0[89]]({id:_0xdcbcx33[_0x6ea0[105]],value:_0xdcbcx33[_0x6ea0[88]]})}else {if(_0xdcbcx33[_0x6ea0[86]]=== _0x6ea0[90]){var _0xdcbcx3b=getValueFromPropertyName(_0xdcbcx20,_0xdcbcx33[_0x6ea0[91]],_0xdcbcxe);if(_0xdcbcx3b){_0xdcbcx42[_0x6ea0[89]]({id:_0xdcbcx33[_0x6ea0[105]],value:_0xdcbcx3b.toString()})}}else {if(_0xdcbcx33[_0x6ea0[86]]=== _0x6ea0[92]){var _0xdcbcx3c=_[_0x6ea0[17]](_0xdcbcxd,{"\x6E\x61\x6D\x65":_0xdcbcx33[_0x6ea0[93]][_0x6ea0[25]]});if(_0xdcbcx3c){_0xdcbcx42[_0x6ea0[89]]({id:_0xdcbcx33[_0x6ea0[105]],value:_0xdcbcx3c[_0x6ea0[78]].toString()})}}}}})};return _0xdcbcx42}function createFieldsFromConfiguration(_0xdcbcxe){var _0xdcbcx32=[];var _0xdcbcx42=[];if(_0xdcbcxe[_0x6ea0[18]][_0x6ea0[103]][_0x6ea0[54]]> 0){_0xdcbcx32= _[_0x6ea0[104]](_0xdcbcxe[_0x6ea0[18]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x6ea0[79]](_0xdcbcx32,function(_0xdcbcx33){if(_0xdcbcx33[_0x6ea0[86]]=== _0x6ea0[87]){_0xdcbcx42[_0x6ea0[89]]({id:_0xdcbcx33[_0x6ea0[106]],value:_0xdcbcx33[_0x6ea0[88]]})}})};return _0xdcbcx42}function handleTicketDisplay(_0xdcbcxe){return function(_0xdcbcxc){if(_0xdcbcxc[_0x6ea0[107]]){console[_0x6ea0[10]](_0x6ea0[108]);_0xdcbcxe[_0x6ea0[107]]= _0xdcbcxc[_0x6ea0[107]];var _0xdcbcx45=util[_0x6ea0[45]](_0x6ea0[109],_0xdcbcxe[_0x6ea0[58]][_0x6ea0[77]],_0xdcbcxe[_0x6ea0[107]][_0x6ea0[77]]);return rp({uri:_0xdcbcxe[_0x6ea0[19]]+ _0xdcbcx45,method:_0x6ea0[73],headers:_0xdcbcxe[_0x6ea0[20]],json:true})};return}}function handleReportIntegration(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc,_0xdcbcx9){return function(){_0xdcbcxc= _0xdcbcxc[_0x6ea0[110]];delete _0xdcbcxc[_0x6ea0[77]];_0xdcbcxc[_0x6ea0[111]]= _0x6ea0[112];_0xdcbcxc[_0x6ea0[113]]= _0xdcbcxb;_0xdcbcxc[_0x6ea0[114]]= _0x6ea0[115];_0xdcbcxc[_0x6ea0[116]]= _0xdcbcxe[_0x6ea0[107]][_0x6ea0[77]];_0xdcbcxc[_0x6ea0[117]]= _0xdcbcxe[_0x6ea0[107]][_0x6ea0[117]];_0xdcbcxc[_0x6ea0[118]]= _0xdcbcx9;return ReportIntegration[_0x6ea0[119]](_0xdcbcxc)}}function handleEnd(_0xdcbcxe,_0xdcbcxc,_0xdcbcxb){return function(){console[_0x6ea0[10]](util[_0x6ea0[45]](_0x6ea0[120],_0xdcbcxe[_0x6ea0[107]][_0x6ea0[77]],_0xdcbcxe[_0x6ea0[58]][_0x6ea0[77]]));_0xdcbcxe= undefined;return}}function handleError(_0xdcbcxe,_0xdcbcxb,_0xdcbcxc,_0xdcbcx9){return function(_0xdcbcx49){console[_0x6ea0[14]](_0x6ea0[121]);console[_0x6ea0[14]](_0x6ea0[122],_0xdcbcx49[_0x6ea0[123]]);console[_0x6ea0[14]](_0x6ea0[124],_0xdcbcx49[_0x6ea0[125]]);_0xdcbcxe= undefined;delete _0xdcbcxc[_0x6ea0[77]];_0xdcbcxc= _0xdcbcxc[_0x6ea0[110]];_0xdcbcxc[_0x6ea0[111]]= _0x6ea0[112];_0xdcbcxc[_0x6ea0[113]]= _0xdcbcxb;_0xdcbcxc[_0x6ea0[114]]= _0x6ea0[126];_0xdcbcxc[_0x6ea0[118]]= _0xdcbcx9;ReportIntegration[_0x6ea0[119]](_0xdcbcxc)[_0x6ea0[16]](function(){return})[_0x6ea0[15]](function(_0xdcbcx49){console[_0x6ea0[14]](_0x6ea0[127]);return})}}function stripTrailingSlash(_0xdcbcx4b){if(_0xdcbcx4b[_0x6ea0[128]](-1) === _0x6ea0[129]){return _0xdcbcx4b[_0x6ea0[128]](0,_0xdcbcx4b[_0x6ea0[54]]- 1)};return _0xdcbcx4b}module[_0x6ea0[130]]= Zendesk
\ No newline at end of file
+var _0xe9a4=["\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"];_0xe9a4[0];var _=require(_0xe9a4[1]);var util=require(_0xe9a4[2]);var rp=require(_0xe9a4[3]);var ZendeskIntegration=require(_0xe9a4[5])[_0xe9a4[4]];var ZendeskConfiguration=require(_0xe9a4[5])[_0xe9a4[6]];var ReportIntegration=require(_0xe9a4[5])[_0xe9a4[7]];var VoiceQueue=require(_0xe9a4[5])[_0xe9a4[8]];var VoiceExtension=require(_0xe9a4[5])[_0xe9a4[9]];var Agent=require(_0xe9a4[5])[_0xe9a4[10]];function Zendesk(){console[_0xe9a4[12]](_0xe9a4[11])}Zendesk[_0xe9a4[14]][_0xe9a4[13]]= function(_0x4c7bxb,_0x4c7bxc,_0x4c7bxd,_0x4c7bxe,_0x4c7bxf,_0x4c7bx10){var _0x4c7bx11={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined,agentName:undefined};if(!_0x4c7bxb||  !_0x4c7bxc){console[_0xe9a4[16]](_0xe9a4[15]);return};ZendeskConfiguration[_0xe9a4[19]]({where:{id:_0x4c7bxc,AccountId:_0x4c7bxb},include:[{all:true,include:[{all:true}]}]})[_0xe9a4[18]](handleEntityNotFound())[_0xe9a4[18]](handleConnection(_0x4c7bx11))[_0xe9a4[18]](searchMotionAgent(_0x4c7bxd,_0x4c7bxf))[_0xe9a4[18]](handleMotionAgent(_0x4c7bx11))[_0xe9a4[18]](searchQueue(_0x4c7bxf))[_0xe9a4[18]](handleQueueRecordings(_0x4c7bx11,_0x4c7bxf))[_0xe9a4[18]](searchRoute(_0x4c7bxf))[_0xe9a4[18]](handleOutboundRecordings(_0x4c7bx11,_0x4c7bxf))[_0xe9a4[18]](searchAgent(_0x4c7bx11))[_0xe9a4[18]](handleAgent(_0x4c7bx11))[_0xe9a4[18]](searchAdmin(_0x4c7bx11))[_0xe9a4[18]](handleAdmin(_0x4c7bx11))[_0xe9a4[18]](searchEndUser(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxe))[_0xe9a4[18]](handleEndUser(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxe))[_0xe9a4[18]](endUserCreation(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxe))[_0xe9a4[18]](handleEndUserCreation(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxe))[_0xe9a4[18]](ticketCreation(_0x4c7bx11,_0x4c7bxf,_0x4c7bx10))[_0xe9a4[18]](handleTicketDisplay(_0x4c7bx11))[_0xe9a4[18]](handleReportIntegration(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxb))[_0xe9a4[18]](handleEnd(_0x4c7bx11))[_0xe9a4[17]](handleError(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxb))};function handleEntityNotFound(){return function(_0x4c7bx13){if(!_0x4c7bx13){return null};return _0x4c7bx13}}function handleConnection(_0x4c7bx11){return function(_0x4c7bx15){var _0x4c7bx16=getAccountConfiguration(_0x4c7bx15.ZendeskAccount);_0x4c7bx11[_0xe9a4[20]]= _0x4c7bx15;_0x4c7bx11[_0xe9a4[21]]= _0x4c7bx16[_0xe9a4[21]];_0x4c7bx11[_0xe9a4[22]]= _0x4c7bx16[_0xe9a4[22]];_0x4c7bx11[_0xe9a4[23]]= _0x4c7bx15[_0xe9a4[25]][_0xe9a4[24]]}}function searchMotionAgent(_0x4c7bxd,_0x4c7bxf){return function(){return Agent[_0xe9a4[29]](_0xe9a4[28])[_0xe9a4[27]]({where:{name:getValueFromPropertyName(_0x4c7bxf,getAgentSearchPropertyFromChannel(_0x4c7bxd))},attributes:[_0xe9a4[26]]})}}function handleMotionAgent(_0x4c7bx11){return function(_0x4c7bx19){if(_0x4c7bx19&& _0x4c7bx19[_0xe9a4[26]]){_0x4c7bx11[_0xe9a4[30]]= _0x4c7bx19[_0xe9a4[26]]};return}}function searchQueue(_0x4c7bxf){return function(){console[_0xe9a4[12]](_0xe9a4[31]);if(_0x4c7bxf[_0xe9a4[32]]){return VoiceQueue[_0xe9a4[27]]({where:{name:_0x4c7bxf[_0xe9a4[32]]},attributes:[_0xe9a4[33],_0xe9a4[34]]})}else {return}}}function handleQueueRecordings(_0x4c7bx11,_0x4c7bxf){return function(_0x4c7bx1c){if(_0x4c7bxf[_0xe9a4[32]]){if(_0x4c7bx1c&& _0x4c7bx1c[_0xe9a4[34]]){console[_0xe9a4[12]](_0xe9a4[35],_0x4c7bx1c[_0xe9a4[33]]);_0x4c7bx11[_0xe9a4[36]]= true}else {_0x4c7bx11[_0xe9a4[36]]= false;console[_0xe9a4[12]](_0xe9a4[37])}};return}}function searchRoute(_0x4c7bxf){return function(){if(_0x4c7bxf[_0xe9a4[38]]){return VoiceExtension[_0xe9a4[27]]({where:{id:_0x4c7bxf[_0xe9a4[38]]},attributes:[_0xe9a4[39],_0xe9a4[40]]})}else {return}}}function handleOutboundRecordings(_0x4c7bx11,_0x4c7bxf){return function(_0x4c7bx1f){if(_0x4c7bxf[_0xe9a4[38]]){if(_0x4c7bx1f&& _0x4c7bx1f[_0xe9a4[40]]){console[_0xe9a4[12]](_0xe9a4[41],_0x4c7bx1f[_0xe9a4[39]]);_0x4c7bx11[_0xe9a4[36]]= true}else {_0x4c7bx11[_0xe9a4[36]]= false;console[_0xe9a4[12]](_0xe9a4[42])}};return}}function getAccountConfiguration(_0x4c7bx21){var _0x4c7bx22={uri:stripTrailingSlash(_0x4c7bx21[_0xe9a4[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":_0xe9a4[44],"\x41\x63\x63\x65\x70\x74":_0xe9a4[44]}};var _0x4c7bx23=_0x4c7bx21[_0xe9a4[45]];if(_0x4c7bx21[_0xe9a4[46]]=== _0xe9a4[47]){_0x4c7bx23= _0x4c7bx23+ _0xe9a4[48]+ _0x4c7bx21[_0xe9a4[47]]}else {if(_0x4c7bx21[_0xe9a4[46]]=== _0xe9a4[49]){_0x4c7bx23= _0x4c7bx23+ _0xe9a4[50]+ _0x4c7bx21[_0xe9a4[49]]}};_0x4c7bx22[_0xe9a4[22]][_0xe9a4[51]]= _0xe9a4[52]+  new Buffer(_0x4c7bx23).toString(_0xe9a4[53]);return _0x4c7bx22}function searchAgent(_0x4c7bx11){return function(){console[_0xe9a4[12]](_0xe9a4[54],_0x4c7bx11[_0xe9a4[30]]);return rp({uri:_0x4c7bx11[_0xe9a4[21]]+ _0xe9a4[55],qs:{"\x71\x75\x65\x72\x79":util[_0xe9a4[57]](_0xe9a4[56],_0x4c7bx11[_0xe9a4[30]])},headers:_0x4c7bx11[_0xe9a4[22]],json:true})}}function getAgentSearchPropertyFromChannel(_0x4c7bxd){var _0x4c7bx26=_0xe9a4[58];if(_0x4c7bxd){switch(_0x4c7bxd){case _0xe9a4[60]:_0x4c7bx26= _0xe9a4[59];break;default:_0x4c7bx26= _0xe9a4[59];console[_0xe9a4[16]](_0xe9a4[61],_0x4c7bxd)}};return _0x4c7bx26}function getValueFromPropertyName(_0x4c7bxf,_0x4c7bx26,_0x4c7bx11){if(_0x4c7bx26=== _0xe9a4[62]){if(_0x4c7bx11&& _0x4c7bx11[_0xe9a4[36]]&& _0x4c7bx11[_0xe9a4[23]]){return util[_0xe9a4[57]](_0xe9a4[63],stripTrailingSlash(_0x4c7bx11[_0xe9a4[23]]),_0x4c7bxf[_0xe9a4[64]])}else {return null}}else {return _[_0xe9a4[65]](_0x4c7bxf,_0x4c7bx26)}}function handleAgent(_0x4c7bx11){return function(_0x4c7bxf){if(_0x4c7bxf[_0xe9a4[67]][_0xe9a4[66]]> 0&& _0x4c7bxf[_0xe9a4[68]]> 0){console[_0xe9a4[12]](_0xe9a4[69],_0x4c7bx11[_0xe9a4[30]]);_0x4c7bx11[_0xe9a4[28]]= getMatchObject(_0x4c7bxf[_0xe9a4[67]],_0xe9a4[33],_0x4c7bx11[_0xe9a4[30]]);return _0x4c7bx11[_0xe9a4[28]]};return}}function getMatchObject(_0x4c7bx2a,_0x4c7bx26,_0x4c7bx2b){var _0x4c7bx2c=_[_0xe9a4[19]](_0x4c7bx2a,{property:_0x4c7bx2b});if(_0x4c7bx2c){return _0x4c7bx2c};return _[_0xe9a4[70]](_0x4c7bx2a)}function searchAdmin(_0x4c7bx11){return function(_0x4c7bxf){if(_0x4c7bxf){return};console[_0xe9a4[12]](_0xe9a4[71]);return rp({uri:_0x4c7bx11[_0xe9a4[21]]+ _0xe9a4[72],headers:_0x4c7bx11[_0xe9a4[22]],json:true})}}function handleAdmin(_0x4c7bx11){return function(_0x4c7bxf){if(!_0x4c7bxf){return};if(_0x4c7bxf[_0xe9a4[73]]){console[_0xe9a4[12]](_0xe9a4[74]);_0x4c7bx11[_0xe9a4[28]]= _0x4c7bxf[_0xe9a4[73]]};return}}function searchEndUser(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxe){return function(){console[_0xe9a4[12]](_0xe9a4[75],getValueFromPropertyName(_0x4c7bxf,getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe)));return rp({uri:_0x4c7bx11[_0xe9a4[21]]+ _0xe9a4[55],qs:{"\x71\x75\x65\x72\x79":util[_0xe9a4[57]](_0xe9a4[76],getEndUserSearchQueryFromChannel(_0x4c7bxd),getValueFromPropertyName(_0x4c7bxf,getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe)))},headers:_0x4c7bx11[_0xe9a4[22]],json:true})}}function getEndUserSearchQueryFromChannel(_0x4c7bxd){var _0x4c7bx26=_0xe9a4[58];if(_0x4c7bxd){switch(_0x4c7bxd){case _0xe9a4[60]:_0x4c7bx26= _0xe9a4[77];break;default:_0x4c7bx26= _0xe9a4[77];console[_0xe9a4[16]](_0xe9a4[61],_0x4c7bxd)}};return _0x4c7bx26}function getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe){var _0x4c7bx26=_0xe9a4[58];if(_0x4c7bxd){switch(_0x4c7bxd){case _0xe9a4[60]:if(_0x4c7bxe=== _0xe9a4[78]){_0x4c7bx26= _0xe9a4[79]}else {if(_0x4c7bxe=== _0xe9a4[32]){_0x4c7bx26= _0xe9a4[80]}};break;default:_0x4c7bx26= _0xe9a4[80];console[_0xe9a4[16]](_0xe9a4[61],_0x4c7bxd)}};return _0x4c7bx26}function getEndUserNamePropertyFromChannel(_0x4c7bxd,_0x4c7bxe){var _0x4c7bx26=_0xe9a4[58];if(_0x4c7bxd){switch(_0x4c7bxd){case _0xe9a4[60]:if(_0x4c7bxe=== _0xe9a4[78]){_0x4c7bx26= _0xe9a4[81]}else {if(_0x4c7bxe=== _0xe9a4[32]){_0x4c7bx26= _0xe9a4[82]}};break;default:_0x4c7bx26= _0xe9a4[82];console[_0xe9a4[16]](_0xe9a4[61],_0x4c7bxd)}};return _0x4c7bx26}function handleEndUser(_0x4c7bx11,_0x4c7bxd,_0x4c7bx34,_0x4c7bxe){return function(_0x4c7bxf){if(_0x4c7bxf[_0xe9a4[67]][_0xe9a4[66]]> 0&& _0x4c7bxf[_0xe9a4[68]]> 0){console[_0xe9a4[12]](_0xe9a4[83],getValueFromPropertyName(_0x4c7bx34,getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe)));_0x4c7bx11[_0xe9a4[84]]= _0x4c7bxf[_0xe9a4[67]][0];return _0x4c7bx11[_0xe9a4[84]]};return}}function endUserCreation(_0x4c7bx11,_0x4c7bxd,_0x4c7bx34,_0x4c7bxe){return function(_0x4c7bxf){if(_0x4c7bxf){return};console[_0xe9a4[12]](_0xe9a4[85],getValueFromPropertyName(_0x4c7bx34,getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe)));console[_0xe9a4[12]](getJsonForEndUserCreation(_0x4c7bxd,_0x4c7bx34,_0x4c7bxe));return rp({uri:_0x4c7bx11[_0xe9a4[21]]+ _0xe9a4[86],method:_0xe9a4[87],body:{user:getJsonForEndUserCreation(_0x4c7bxd,_0x4c7bx34,_0x4c7bxe)},headers:_0x4c7bx11[_0xe9a4[22]],json:true})}}function getJsonForEndUserCreation(_0x4c7bxd,_0x4c7bxf,_0x4c7bxe){var _0x4c7bx37={role:_0xe9a4[88]};switch(_0x4c7bxd){case _0xe9a4[60]:if(_0x4c7bxe=== _0xe9a4[32]){if(isValidName(_0x4c7bxf[_0xe9a4[82]])){_0x4c7bx37[_0xe9a4[33]]= getValueFromPropertyName(_0x4c7bxf,getEndUserNamePropertyFromChannel(_0x4c7bxd,_0x4c7bxe))}else {_0x4c7bx37[_0xe9a4[33]]= util[_0xe9a4[57]](_0xe9a4[89],getValueFromPropertyName(_0x4c7bxf,getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe)))}}else {if(_0x4c7bxe=== _0xe9a4[78]){if(isValidName(_0x4c7bxf[_0xe9a4[81]])){_0x4c7bx37[_0xe9a4[33]]= getValueFromPropertyName(_0x4c7bxf,getEndUserNamePropertyFromChannel(_0x4c7bxd,_0x4c7bxe))}else {_0x4c7bx37[_0xe9a4[33]]= util[_0xe9a4[57]](_0xe9a4[89],getValueFromPropertyName(_0x4c7bxf,getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe)))}}};_0x4c7bx37[_0xe9a4[77]]= getValueFromPropertyName(_0x4c7bxf,getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe));break;default:console[_0xe9a4[16]](_0xe9a4[61],_0x4c7bxd)};return _0x4c7bx37}function isValidName(_0x4c7bx39){return _0x4c7bx39&& _0x4c7bx39!== _0xe9a4[90]}function handleEndUserCreation(_0x4c7bx11,_0x4c7bxd,_0x4c7bx34,_0x4c7bxe){return function(_0x4c7bxf){if(!_0x4c7bxf){return};if(_0x4c7bxf[_0xe9a4[73]]){console[_0xe9a4[12]](_0xe9a4[91],getValueFromPropertyName(_0x4c7bx34,getEndUserSearchPropertyFromChannel(_0x4c7bxd,_0x4c7bxe)));_0x4c7bx11[_0xe9a4[84]]= _0x4c7bxf[_0xe9a4[73]]};return}}function ticketCreation(_0x4c7bx11,_0x4c7bx34,_0x4c7bx10){return function(){var _0x4c7bx3c={requester_id:_0x4c7bx11[_0xe9a4[28]][_0xe9a4[39]],submitter_id:_0x4c7bx11[_0xe9a4[84]][_0xe9a4[39]],assignee_id:_0x4c7bx11[_0xe9a4[84]][_0xe9a4[39]],tags:createTagsFromConfiguration(_0x4c7bx11),subject:createSubjectFromConfiguration(_0x4c7bx11,_0x4c7bx34,_0x4c7bx10),description:createDescriptionFromConfiguration(_0x4c7bx11,_0x4c7bx34,_0x4c7bx10),custom_fields:createCustomFieldsFromConfiguration(_0x4c7bx11,_0x4c7bx34,_0x4c7bx10)};var _0x4c7bx3d=createFieldsFromConfiguration(_0x4c7bx11);if(_0x4c7bx3d[_0xe9a4[66]]> 0){_[_0xe9a4[93]](_0x4c7bx3d,function(_0x4c7bx3e){_0x4c7bx3c[_0x4c7bx3e[_0xe9a4[39]]]= _0x4c7bx3e[_0xe9a4[92]]})};console[_0xe9a4[12]](_0xe9a4[94],_0x4c7bx3c);return rp({uri:_0x4c7bx11[_0xe9a4[21]]+ _0xe9a4[95],method:_0xe9a4[87],body:{ticket:_0x4c7bx3c},headers:_0x4c7bx11[_0xe9a4[22]],json:true})}}function createTagsFromConfiguration(_0x4c7bx11){var _0x4c7bx40=[];if(_0x4c7bx11[_0xe9a4[20]][_0xe9a4[96]][_0xe9a4[66]]> 0){_0x4c7bx40= _[_0xe9a4[97]](_0x4c7bx11[_0xe9a4[20]].Tags,_0xe9a4[33])};return _0x4c7bx40}function createSubjectFromConfiguration(_0x4c7bx11,_0x4c7bx34,_0x4c7bx10){var _0x4c7bx42=_0xe9a4[58];var _0x4c7bx43=[];if(_0x4c7bx11[_0xe9a4[20]][_0xe9a4[98]][_0xe9a4[66]]> 0){var _0x4c7bx44=_[_0xe9a4[99]](_0x4c7bx11[_0xe9a4[20]].Subject,[_0xe9a4[39]]);_[_0xe9a4[93]](_0x4c7bx44,function(_0x4c7bx45){if(_0x4c7bx45[_0xe9a4[100]]=== _0xe9a4[101]){_0x4c7bx43[_0xe9a4[103]](_0x4c7bx45[_0xe9a4[102]])}else {if(_0x4c7bx45[_0xe9a4[100]]=== _0xe9a4[104]&& _0x4c7bx45[_0xe9a4[105]]){var _0x4c7bx46=getValueFromPropertyName(_0x4c7bx34,_0x4c7bx45[_0xe9a4[105]],_0x4c7bx11);if(_0x4c7bx46){_0x4c7bx43[_0xe9a4[103]](_0x4c7bx46.toString())}}else {if(_0x4c7bx45[_0xe9a4[100]]=== _0xe9a4[106]&& _0x4c7bx45[_0xe9a4[107]]&& _0x4c7bx45[_0xe9a4[107]][_0xe9a4[33]]){_0x4c7bx10[_0x4c7bx45[_0xe9a4[107]][_0xe9a4[33]]]&& _0x4c7bx43[_0xe9a4[103]](_0x4c7bx10[_0x4c7bx45[_0xe9a4[107]][_0xe9a4[33]]].toString())}}}});_0x4c7bx42= _0x4c7bx43[_0xe9a4[109]](_0xe9a4[108])};return _0x4c7bx42}function createDescriptionFromConfiguration(_0x4c7bx11,_0x4c7bx34,_0x4c7bx10){var _0x4c7bx48=_0xe9a4[58];var _0x4c7bx43=[];if(_0x4c7bx11[_0xe9a4[20]][_0xe9a4[110]][_0xe9a4[66]]> 0){var _0x4c7bx49=_[_0xe9a4[99]](_0x4c7bx11[_0xe9a4[20]].Description,[_0xe9a4[39]]);_[_0xe9a4[93]](_0x4c7bx49,function(_0x4c7bx45){if(_0x4c7bx45[_0xe9a4[100]]=== _0xe9a4[101]){_0x4c7bx43[_0xe9a4[103]](_0x4c7bx45[_0xe9a4[102]])}else {if(_0x4c7bx45[_0xe9a4[100]]=== _0xe9a4[111]){if(_0x4c7bx45[_0xe9a4[112]]=== _0xe9a4[101]&& _0x4c7bx45[_0xe9a4[113]]){_0x4c7bx43[_0xe9a4[103]](util[_0xe9a4[57]](_0xe9a4[114],_0x4c7bx45[_0xe9a4[113]],_0x4c7bx45[_0xe9a4[115]]))}else {if(_0x4c7bx45[_0xe9a4[112]]=== _0xe9a4[104]&& _0x4c7bx45[_0xe9a4[105]]&& _0x4c7bx45[_0xe9a4[113]]){var _0x4c7bx46=getValueFromPropertyName(_0x4c7bx34,_0x4c7bx45[_0xe9a4[105]],_0x4c7bx11);if(_0x4c7bx46){_0x4c7bx43[_0xe9a4[103]](util[_0xe9a4[57]](_0xe9a4[114],_0x4c7bx45[_0xe9a4[113]],_0x4c7bx46.toString()))}}else {if(_0x4c7bx45[_0xe9a4[112]]=== _0xe9a4[106]&& _0x4c7bx45[_0xe9a4[107]]&& _0x4c7bx45[_0xe9a4[107]][_0xe9a4[33]]&& _0x4c7bx45[_0xe9a4[113]]){_0x4c7bx10[_0x4c7bx45[_0xe9a4[107]][_0xe9a4[33]]]&& _0x4c7bx43[_0xe9a4[103]](util[_0xe9a4[57]](_0xe9a4[114],_0x4c7bx45[_0xe9a4[113]],_0x4c7bx10[_0x4c7bx45[_0xe9a4[107]][_0xe9a4[33]]]))}}}}}});_0x4c7bx48= _0x4c7bx43[_0xe9a4[109]](_0xe9a4[116])};return _0x4c7bx48}function createCustomFieldsFromConfiguration(_0x4c7bx11,_0x4c7bx34,_0x4c7bx10){var _0x4c7bx4b=[];var _0x4c7bx4c=[];if(_0x4c7bx11[_0xe9a4[20]][_0xe9a4[117]][_0xe9a4[66]]> 0){_0x4c7bx4b= _[_0xe9a4[118]](_0x4c7bx11[_0xe9a4[20]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0xe9a4[93]](_0x4c7bx4b,function(_0x4c7bx3e){if(_0x4c7bx3e[_0xe9a4[100]]=== _0xe9a4[101]&& _0x4c7bx3e[_0xe9a4[119]]){_0x4c7bx4c[_0xe9a4[103]]({id:_0x4c7bx3e[_0xe9a4[119]],value:_0x4c7bx3e[_0xe9a4[102]]})}else {if(_0x4c7bx3e[_0xe9a4[100]]=== _0xe9a4[104]&& _0x4c7bx3e[_0xe9a4[105]]&& _0x4c7bx3e[_0xe9a4[119]]){var _0x4c7bx46=getValueFromPropertyName(_0x4c7bx34,_0x4c7bx3e[_0xe9a4[105]],_0x4c7bx11);if(_0x4c7bx46){_0x4c7bx4c[_0xe9a4[103]]({id:_0x4c7bx3e[_0xe9a4[119]],value:_0x4c7bx46.toString()})}}else {if(_0x4c7bx3e[_0xe9a4[100]]=== _0xe9a4[106]&& _0x4c7bx3e[_0xe9a4[107]]&& _0x4c7bx3e[_0xe9a4[107]][_0xe9a4[33]]&& _0x4c7bx3e[_0xe9a4[119]]){_0x4c7bx10[_0x4c7bx3e[_0xe9a4[107]][_0xe9a4[33]]]&& _0x4c7bx4c[_0xe9a4[103]]({id:_0x4c7bx3e[_0xe9a4[119]],value:_0x4c7bx10[_0x4c7bx3e[_0xe9a4[107]][_0xe9a4[33]]].toString()})}}}})};return _0x4c7bx4c}function createFieldsFromConfiguration(_0x4c7bx11){var _0x4c7bx3d=[];var _0x4c7bx4c=[];if(_0x4c7bx11[_0xe9a4[20]][_0xe9a4[117]][_0xe9a4[66]]> 0){_0x4c7bx3d= _[_0xe9a4[118]](_0x4c7bx11[_0xe9a4[20]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0xe9a4[93]](_0x4c7bx3d,function(_0x4c7bx3e){if(_0x4c7bx3e[_0xe9a4[100]]=== _0xe9a4[101]&& _0x4c7bx3e[_0xe9a4[120]]){_0x4c7bx4c[_0xe9a4[103]]({id:_0x4c7bx3e[_0xe9a4[120]],value:_0x4c7bx3e[_0xe9a4[102]]})}})};return _0x4c7bx4c}function handleTicketDisplay(_0x4c7bx11){return function(_0x4c7bxf){if(_0x4c7bxf[_0xe9a4[121]]){console[_0xe9a4[12]](_0xe9a4[122]);_0x4c7bx11[_0xe9a4[121]]= _0x4c7bxf[_0xe9a4[121]];var _0x4c7bx4f=util[_0xe9a4[57]](_0xe9a4[123],_0x4c7bx11[_0xe9a4[28]][_0xe9a4[39]],_0x4c7bx11[_0xe9a4[121]][_0xe9a4[39]]);return rp({uri:_0x4c7bx11[_0xe9a4[21]]+ _0x4c7bx4f,method:_0xe9a4[87],headers:_0x4c7bx11[_0xe9a4[22]],json:true})};return}}function handleReportIntegration(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxb){return function(){delete _0x4c7bxf[_0xe9a4[39]];_0x4c7bxf[_0xe9a4[124]]= _0xe9a4[125];_0x4c7bxf[_0xe9a4[126]]= _0x4c7bxd;_0x4c7bxf[_0xe9a4[127]]= _0xe9a4[128];_0x4c7bxf[_0xe9a4[129]]= _0x4c7bx11[_0xe9a4[121]][_0xe9a4[39]];_0x4c7bxf[_0xe9a4[130]]= _0x4c7bx11[_0xe9a4[121]][_0xe9a4[130]];_0x4c7bxf[_0xe9a4[131]]= _0x4c7bxb;return ReportIntegration[_0xe9a4[132]](_0x4c7bxf)}}function handleEnd(_0x4c7bx11,_0x4c7bxf,_0x4c7bxd){return function(){console[_0xe9a4[12]](util[_0xe9a4[57]](_0xe9a4[133],_0x4c7bx11[_0xe9a4[121]][_0xe9a4[39]],_0x4c7bx11[_0xe9a4[28]][_0xe9a4[39]]));_0x4c7bx11= undefined;return}}function handleError(_0x4c7bx11,_0x4c7bxd,_0x4c7bxf,_0x4c7bxb){return function(_0x4c7bx53){console[_0xe9a4[16]](_0xe9a4[134]);console[_0xe9a4[16]](_0xe9a4[135],_0x4c7bx53[_0xe9a4[136]]);console[_0xe9a4[16]](_0xe9a4[137],_0x4c7bx53[_0xe9a4[138]]);_0x4c7bx11= undefined;delete _0x4c7bxf[_0xe9a4[39]];_0x4c7bxf[_0xe9a4[124]]= _0xe9a4[125];_0x4c7bxf[_0xe9a4[126]]= _0x4c7bxd;_0x4c7bxf[_0xe9a4[127]]= _0xe9a4[139];_0x4c7bxf[_0xe9a4[131]]= _0x4c7bxb;ReportIntegration[_0xe9a4[132]](_0x4c7bxf)[_0xe9a4[18]](function(){return})[_0xe9a4[17]](function(_0x4c7bx53){console[_0xe9a4[16]](_0xe9a4[140]);return})}}function stripTrailingSlash(_0x4c7bx55){if(_0x4c7bx55[_0xe9a4[141]](-1) === _0xe9a4[142]){return _0x4c7bx55[_0xe9a4[141]](0,_0x4c7bx55[_0xe9a4[66]]- 1)};return _0x4c7bx55}module[_0xe9a4[143]]= Zendesk
\ No newline at end of file