Built motion from commit bfa6da2.|0.0.130
[motion.git] / server / config / integrations / zendesk.js
index ec43a75..391bbbb 100644 (file)
@@ -1 +1 @@
-var _0x27c5=["\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","\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","\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\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","\x6E\x61\x6D\x65","\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","\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"];_0x27c5[0];var _=require(_0x27c5[1]);var util=require(_0x27c5[2]);var rp=require(_0x27c5[3]);var ZendeskIntegration=require(_0x27c5[5])[_0x27c5[4]];var ZendeskConfiguration=require(_0x27c5[5])[_0x27c5[6]];var ReportIntegration=require(_0x27c5[5])[_0x27c5[7]];function Zendesk(){console[_0x27c5[9]](_0x27c5[8])}Zendesk[_0x27c5[11]][_0x27c5[10]]=function(_0xbcc7x8,_0xbcc7x9,_0xbcc7xa,_0xbcc7xb,_0xbcc7xc){var _0xbcc7xd={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined};if(!_0xbcc7x8|| !_0xbcc7x9){console[_0x27c5[13]](_0x27c5[12]);return};ZendeskConfiguration[_0x27c5[16]]({where:{id:_0xbcc7x9,AccountId:_0xbcc7x8},include:[{all:true,include:[{all:true}]}]})[_0x27c5[15]](handleEntityNotFound())[_0x27c5[15]](handleConnection(_0xbcc7xd))[_0x27c5[15]](searchAgent(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb))[_0x27c5[15]](handleAgent(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb))[_0x27c5[15]](searchAdmin(_0xbcc7xd))[_0x27c5[15]](handleAdmin(_0xbcc7xd))[_0x27c5[15]](searchEndUser(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb))[_0x27c5[15]](handleEndUser(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb))[_0x27c5[15]](endUserCreation(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb))[_0x27c5[15]](handleEndUserCreation(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb))[_0x27c5[15]](ticketCreation(_0xbcc7xd,_0xbcc7xb,_0xbcc7xc))[_0x27c5[15]](handleTicketDisplay(_0xbcc7xd))[_0x27c5[15]](handleReportIntegration(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb,_0xbcc7x8))[_0x27c5[15]](handleEnd(_0xbcc7xd))[_0x27c5[14]](handleError(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb,_0xbcc7x8))};function handleEntityNotFound(){return function(_0xbcc7xf){if(!_0xbcc7xf){return null};return _0xbcc7xf}}function handleConnection(_0xbcc7xd){return function(_0xbcc7x11){var _0xbcc7x12=getAccountConfiguration(_0xbcc7x11.ZendeskAccount);_0xbcc7xd[_0x27c5[17]]=_0xbcc7x11;_0xbcc7xd[_0x27c5[18]]=_0xbcc7x12[_0x27c5[18]];_0xbcc7xd[_0x27c5[19]]=_0xbcc7x12[_0x27c5[19]]}}function getAccountConfiguration(_0xbcc7x14){var _0xbcc7x15={uri:stripTrailingSlash(_0xbcc7x14[_0x27c5[20]]),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":_0x27c5[21],"\x41\x63\x63\x65\x70\x74":_0x27c5[21]}};var _0xbcc7x16=_0xbcc7x14[_0x27c5[22]];if(_0xbcc7x14[_0x27c5[23]]===_0x27c5[24]){_0xbcc7x16=_0xbcc7x16+_0x27c5[25]+_0xbcc7x14[_0x27c5[24]]}else {if(_0xbcc7x14[_0x27c5[23]]===_0x27c5[26]){_0xbcc7x16=_0xbcc7x16+_0x27c5[27]+_0xbcc7x14[_0x27c5[26]]}};_0xbcc7x15[_0x27c5[19]][_0x27c5[28]]=_0x27c5[29]+ new Buffer(_0xbcc7x16).toString(_0x27c5[30]);return _0xbcc7x15}function searchAgent(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb){return function(){console[_0x27c5[9]](_0x27c5[31],getValueFromPropertyName(_0xbcc7xb,getAgentSearchPropertyFromChannel(_0xbcc7xa)));return rp({uri:_0xbcc7xd[_0x27c5[18]]+_0x27c5[32],qs:{"\x71\x75\x65\x72\x79":util[_0x27c5[34]](_0x27c5[33],getValueFromPropertyName(_0xbcc7xb,getAgentSearchPropertyFromChannel(_0xbcc7xa)))},headers:_0xbcc7xd[_0x27c5[19]],json:true})}}function getAgentSearchPropertyFromChannel(_0xbcc7xa){var _0xbcc7x19=_0x27c5[35];if(_0xbcc7xa){switch(_0xbcc7xa){case _0x27c5[37]:_0xbcc7x19=_0x27c5[36];break;default:_0xbcc7x19=_0x27c5[36];console[_0x27c5[13]](_0x27c5[38],_0xbcc7xa)}};return _0xbcc7x19}function getValueFromPropertyName(_0xbcc7xb,_0xbcc7x19){return _[_0x27c5[39]](_0xbcc7xb,_0xbcc7x19)}function handleAgent(_0xbcc7xd,_0xbcc7xa,_0xbcc7x1c){return function(_0xbcc7xb){if(_0xbcc7xb[_0x27c5[41]][_0x27c5[40]]>0&&_0xbcc7xb[_0x27c5[42]]>0){console[_0x27c5[9]](_0x27c5[43],getValueFromPropertyName(_0xbcc7x1c,getAgentSearchPropertyFromChannel(_0xbcc7xa)));_0xbcc7xd[_0x27c5[44]]=getMatchObject(_0xbcc7xb[_0x27c5[41]],_0x27c5[45],getValueFromPropertyName(_0xbcc7x1c,getAgentSearchPropertyFromChannel(_0xbcc7xa)));return _0xbcc7xd[_0x27c5[44]]};return}}function getMatchObject(_0xbcc7x1e,_0xbcc7x19,_0xbcc7x1f){var _0xbcc7x20=_[_0x27c5[16]](_0xbcc7x1e,{property:_0xbcc7x1f});if(_0xbcc7x20){return _0xbcc7x20};return _[_0x27c5[46]](_0xbcc7x1e)}function searchAdmin(_0xbcc7xd){return function(_0xbcc7xb){if(_0xbcc7xb){return};console[_0x27c5[9]](_0x27c5[47]);return rp({uri:_0xbcc7xd[_0x27c5[18]]+_0x27c5[48],headers:_0xbcc7xd[_0x27c5[19]],json:true})}}function handleAdmin(_0xbcc7xd){return function(_0xbcc7xb){if(!_0xbcc7xb){return};if(_0xbcc7xb[_0x27c5[49]]){console[_0x27c5[9]](_0x27c5[50]);_0xbcc7xd[_0x27c5[44]]=_0xbcc7xb[_0x27c5[49]]};return}}function searchEndUser(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb){return function(){console[_0x27c5[9]](_0x27c5[51],getValueFromPropertyName(_0xbcc7xb,getEndUserSearchPropertyFromChannel(_0xbcc7xa)));return rp({uri:_0xbcc7xd[_0x27c5[18]]+_0x27c5[32],qs:{"\x71\x75\x65\x72\x79":util[_0x27c5[34]](_0x27c5[52],getEndUserSearchQueryFromChannel(_0xbcc7xa),getValueFromPropertyName(_0xbcc7xb,getEndUserSearchPropertyFromChannel(_0xbcc7xa)))},headers:_0xbcc7xd[_0x27c5[19]],json:true})}}function getEndUserSearchQueryFromChannel(_0xbcc7xa){var _0xbcc7x19=_0x27c5[35];if(_0xbcc7xa){switch(_0xbcc7xa){case _0x27c5[37]:_0xbcc7x19=_0x27c5[53];break;default:_0xbcc7x19=_0x27c5[53];console[_0x27c5[13]](_0x27c5[38],_0xbcc7xa)}};return _0xbcc7x19}function getEndUserSearchPropertyFromChannel(_0xbcc7xa){var _0xbcc7x19=_0x27c5[35];if(_0xbcc7xa){switch(_0xbcc7xa){case _0x27c5[37]:_0xbcc7x19=_0x27c5[54];break;default:_0xbcc7x19=_0x27c5[54];console[_0x27c5[13]](_0x27c5[38],_0xbcc7xa)}};return _0xbcc7x19}function getEndUserNamePropertyFromChannel(_0xbcc7xa){var _0xbcc7x19=_0x27c5[35];if(_0xbcc7xa){switch(_0xbcc7xa){case _0x27c5[37]:_0xbcc7x19=_0x27c5[55];break;default:_0xbcc7x19=_0x27c5[55];console[_0x27c5[13]](_0x27c5[38],_0xbcc7xa)}};return _0xbcc7x19}function handleEndUser(_0xbcc7xd,_0xbcc7xa,_0xbcc7x1c){return function(_0xbcc7xb){if(_0xbcc7xb[_0x27c5[41]][_0x27c5[40]]>0&&_0xbcc7xb[_0x27c5[42]]>0){console[_0x27c5[9]](_0x27c5[56],getValueFromPropertyName(_0xbcc7x1c,getEndUserSearchPropertyFromChannel(_0xbcc7xa)));_0xbcc7xd[_0x27c5[57]]=_0xbcc7xb[_0x27c5[41]][0];return _0xbcc7xd[_0x27c5[57]]};return}}function endUserCreation(_0xbcc7xd,_0xbcc7xa,_0xbcc7x1c){return function(_0xbcc7xb){if(_0xbcc7xb){return};console[_0x27c5[9]](_0x27c5[58],getValueFromPropertyName(_0xbcc7x1c,getEndUserSearchPropertyFromChannel(_0xbcc7xa)));console[_0x27c5[9]](getJsonForEndUserCreation(_0xbcc7xa,_0xbcc7x1c));return rp({uri:_0xbcc7xd[_0x27c5[18]]+_0x27c5[59],method:_0x27c5[60],body:{user:getJsonForEndUserCreation(_0xbcc7xa,_0xbcc7x1c)},headers:_0xbcc7xd[_0x27c5[19]],json:true})}}function getJsonForEndUserCreation(_0xbcc7xa,_0xbcc7xb){var _0xbcc7x2a={role:_0x27c5[61]};switch(_0xbcc7xa){case _0x27c5[37]:if(_0xbcc7xb[_0x27c5[55]]){_0xbcc7x2a[_0x27c5[45]]=getValueFromPropertyName(_0xbcc7xb,getEndUserNamePropertyFromChannel(_0xbcc7xa))}else {_0xbcc7x2a[_0x27c5[45]]=util[_0x27c5[34]](_0x27c5[62],getValueFromPropertyName(_0xbcc7xb,getAgentSearchPropertyFromChannel(_0xbcc7xa)))};_0xbcc7x2a[_0x27c5[53]]=getValueFromPropertyName(_0xbcc7xb,getEndUserSearchPropertyFromChannel(_0xbcc7xa));break;default:console[_0x27c5[13]](_0x27c5[38],_0xbcc7xa)};return _0xbcc7x2a}function handleEndUserCreation(_0xbcc7xd,_0xbcc7xa,_0xbcc7x1c){return function(_0xbcc7xb){if(!_0xbcc7xb){return};if(_0xbcc7xb[_0x27c5[49]]){console[_0x27c5[9]](_0x27c5[63],getValueFromPropertyName(_0xbcc7x1c,getEndUserSearchPropertyFromChannel(_0xbcc7xa)));_0xbcc7xd[_0x27c5[57]]=_0xbcc7xb[_0x27c5[49]]};return}}function ticketCreation(_0xbcc7xd,_0xbcc7x1c,_0xbcc7xc){return function(){var _0xbcc7x2d={requester_id:_0xbcc7xd[_0x27c5[44]][_0x27c5[64]],submitter_id:_0xbcc7xd[_0x27c5[57]][_0x27c5[64]],assignee_id:_0xbcc7xd[_0x27c5[57]][_0x27c5[64]],tags:createTagsFromConfiguration(_0xbcc7xd),subject:createSubjectFromConfiguration(_0xbcc7xd,_0xbcc7x1c,_0xbcc7xc),description:createDescriptionFromConfiguration(_0xbcc7xd,_0xbcc7x1c,_0xbcc7xc),custom_fields:createCustomFieldsFromConfiguration(_0xbcc7xd,_0xbcc7x1c,_0xbcc7xc)};var _0xbcc7x2e=createFieldsFromConfiguration(_0xbcc7xd);if(_0xbcc7x2e[_0x27c5[40]]>0){_[_0x27c5[66]](_0xbcc7x2e,function(_0xbcc7x2f){_0xbcc7x2d[_0xbcc7x2f[_0x27c5[64]]]=_0xbcc7x2f[_0x27c5[65]]})};console[_0x27c5[9]](_0x27c5[67],_0xbcc7x2d);return rp({uri:_0xbcc7xd[_0x27c5[18]]+_0x27c5[68],method:_0x27c5[60],body:{ticket:_0xbcc7x2d},headers:_0xbcc7xd[_0x27c5[19]],json:true})}}function createTagsFromConfiguration(_0xbcc7xd){var _0xbcc7x31=[];if(_0xbcc7xd[_0x27c5[17]][_0x27c5[69]][_0x27c5[40]]>0){_0xbcc7x31=_[_0x27c5[70]](_0xbcc7xd[_0x27c5[17]].Tags,_0x27c5[45])};return _0xbcc7x31}function createSubjectFromConfiguration(_0xbcc7xd,_0xbcc7x1c,_0xbcc7xc){var _0xbcc7x33=_0x27c5[35];var _0xbcc7x34=[];if(_0xbcc7xd[_0x27c5[17]][_0x27c5[71]][_0x27c5[40]]>0){var _0xbcc7x35=_[_0x27c5[72]](_0xbcc7xd[_0x27c5[17]].Subject,[_0x27c5[64]]);_[_0x27c5[66]](_0xbcc7x35,function(_0xbcc7x36){if(_0xbcc7x36[_0x27c5[73]]===_0x27c5[74]){_0xbcc7x34[_0x27c5[76]](_0xbcc7x36[_0x27c5[75]])}else {if(_0xbcc7x36[_0x27c5[73]]===_0x27c5[77]&&_0xbcc7x36[_0x27c5[78]]){var _0xbcc7x37=getValueFromPropertyName(_0xbcc7x1c,_0xbcc7x36[_0x27c5[78]]);if(_0xbcc7x37){_0xbcc7x34[_0x27c5[76]](_0xbcc7x37.toString())}}else {if(_0xbcc7x36[_0x27c5[73]]===_0x27c5[79]){var _0xbcc7x38=_[_0x27c5[16]](_0xbcc7xc,{"\x6E\x61\x6D\x65":_0xbcc7x36[_0x27c5[80]][_0x27c5[45]]});if(_0xbcc7x38){_0xbcc7x34[_0x27c5[76]](_0xbcc7x38[_0x27c5[65]].toString())}}}}});_0xbcc7x33=_0xbcc7x34[_0x27c5[82]](_0x27c5[81])};return _0xbcc7x33}function createDescriptionFromConfiguration(_0xbcc7xd,_0xbcc7x1c,_0xbcc7xc){var _0xbcc7x3a=_0x27c5[35];var _0xbcc7x34=[];if(_0xbcc7xd[_0x27c5[17]][_0x27c5[83]][_0x27c5[40]]>0){var _0xbcc7x3b=_[_0x27c5[72]](_0xbcc7xd[_0x27c5[17]].Description,[_0x27c5[64]]);_[_0x27c5[66]](_0xbcc7x3b,function(_0xbcc7x36){if(_0xbcc7x36[_0x27c5[73]]===_0x27c5[74]){_0xbcc7x34[_0x27c5[76]](_0xbcc7x36[_0x27c5[75]])}else {if(_0xbcc7x36[_0x27c5[73]]===_0x27c5[84]){if(_0xbcc7x36[_0x27c5[85]]===_0x27c5[74]){_0xbcc7x34[_0x27c5[76]](util[_0x27c5[34]](_0x27c5[86],_0xbcc7x36[_0x27c5[87]],_0xbcc7x36[_0x27c5[88]]))}else {if(_0xbcc7x36[_0x27c5[85]]===_0x27c5[77]&&_0xbcc7x36[_0x27c5[78]]){var _0xbcc7x37=getValueFromPropertyName(_0xbcc7x1c,_0xbcc7x36[_0x27c5[78]]);if(_0xbcc7x37){_0xbcc7x34[_0x27c5[76]](util[_0x27c5[34]](_0x27c5[86],_0xbcc7x36[_0x27c5[87]],_0xbcc7x37.toString()))}}else {if(_0xbcc7x36[_0x27c5[85]]===_0x27c5[79]){var _0xbcc7x38=_[_0x27c5[16]](_0xbcc7xc,{"\x6E\x61\x6D\x65":_0xbcc7x36[_0x27c5[80]][_0x27c5[45]]});if(_0xbcc7x38){_0xbcc7x34[_0x27c5[76]](util[_0x27c5[34]](_0x27c5[86],_0xbcc7x36[_0x27c5[87]],_0xbcc7x38[_0x27c5[65]].toString()))}}}}}}});_0xbcc7x3a=_0xbcc7x34[_0x27c5[82]](_0x27c5[89])};return _0xbcc7x3a}function createCustomFieldsFromConfiguration(_0xbcc7xd,_0xbcc7x1c,_0xbcc7xc){var _0xbcc7x3d=[];var _0xbcc7x3e=[];if(_0xbcc7xd[_0x27c5[17]][_0x27c5[90]][_0x27c5[40]]>0){_0xbcc7x3d=_[_0x27c5[91]](_0xbcc7xd[_0x27c5[17]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x27c5[66]](_0xbcc7x3d,function(_0xbcc7x2f){if(_0xbcc7x2f[_0x27c5[73]]===_0x27c5[74]){_0xbcc7x3e[_0x27c5[76]]({id:_0xbcc7x2f[_0x27c5[92]],value:_0xbcc7x2f[_0x27c5[75]]})}else {if(_0xbcc7x2f[_0x27c5[73]]===_0x27c5[77]){var _0xbcc7x37=getValueFromPropertyName(_0xbcc7x1c,_0xbcc7x2f[_0x27c5[78]]);if(_0xbcc7x37){_0xbcc7x3e[_0x27c5[76]]({id:_0xbcc7x2f[_0x27c5[92]],value:_0xbcc7x37.toString()})}}else {if(_0xbcc7x2f[_0x27c5[73]]===_0x27c5[79]){var _0xbcc7x38=_[_0x27c5[16]](_0xbcc7xc,{"\x6E\x61\x6D\x65":_0xbcc7x2f[_0x27c5[80]][_0x27c5[45]]});if(_0xbcc7x38){_0xbcc7x3e[_0x27c5[76]]({id:_0xbcc7x2f[_0x27c5[92]],value:_0xbcc7x38[_0x27c5[65]].toString()})}}}}})};return _0xbcc7x3e}function createFieldsFromConfiguration(_0xbcc7xd){var _0xbcc7x2e=[];var _0xbcc7x3e=[];if(_0xbcc7xd[_0x27c5[17]][_0x27c5[90]][_0x27c5[40]]>0){_0xbcc7x2e=_[_0x27c5[91]](_0xbcc7xd[_0x27c5[17]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x27c5[66]](_0xbcc7x2e,function(_0xbcc7x2f){if(_0xbcc7x2f[_0x27c5[73]]===_0x27c5[74]){_0xbcc7x3e[_0x27c5[76]]({id:_0xbcc7x2f[_0x27c5[93]],value:_0xbcc7x2f[_0x27c5[75]]})}})};return _0xbcc7x3e}function handleTicketDisplay(_0xbcc7xd){return function(_0xbcc7xb){if(_0xbcc7xb[_0x27c5[94]]){console[_0x27c5[9]](_0x27c5[95]);_0xbcc7xd[_0x27c5[94]]=_0xbcc7xb[_0x27c5[94]];var _0xbcc7x41=util[_0x27c5[34]](_0x27c5[96],_0xbcc7xd[_0x27c5[44]][_0x27c5[64]],_0xbcc7xd[_0x27c5[94]][_0x27c5[64]]);return rp({uri:_0xbcc7xd[_0x27c5[18]]+_0xbcc7x41,method:_0x27c5[60],headers:_0xbcc7xd[_0x27c5[19]],json:true})};return}}function handleReportIntegration(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb,_0xbcc7x8){return function(){_0xbcc7xb=_0xbcc7xb[_0x27c5[97]];delete _0xbcc7xb[_0x27c5[64]];_0xbcc7xb[_0x27c5[98]]=_0x27c5[99];_0xbcc7xb[_0x27c5[100]]=_0xbcc7xa;_0xbcc7xb[_0x27c5[101]]=_0x27c5[102];_0xbcc7xb[_0x27c5[103]]=_0xbcc7xd[_0x27c5[94]][_0x27c5[64]];_0xbcc7xb[_0x27c5[104]]=_0xbcc7x8;return ReportIntegration[_0x27c5[105]](_0xbcc7xb)}}function handleEnd(_0xbcc7xd,_0xbcc7xb,_0xbcc7xa){return function(){console[_0x27c5[9]](util[_0x27c5[34]](_0x27c5[106],_0xbcc7xd[_0x27c5[94]][_0x27c5[64]],_0xbcc7xd[_0x27c5[44]][_0x27c5[64]]));_0xbcc7xd=undefined;return}}function handleError(_0xbcc7xd,_0xbcc7xa,_0xbcc7xb,_0xbcc7x8){return function(_0xbcc7x45){console[_0x27c5[13]](_0x27c5[107]);console[_0x27c5[13]](_0x27c5[108],_0xbcc7x45[_0x27c5[109]]);console[_0x27c5[13]](_0x27c5[110],_0xbcc7x45[_0x27c5[111]]);_0xbcc7xd=undefined;delete _0xbcc7xb[_0x27c5[64]];_0xbcc7xb=_0xbcc7xb[_0x27c5[97]];_0xbcc7xb[_0x27c5[98]]=_0x27c5[99];_0xbcc7xb[_0x27c5[100]]=_0xbcc7xa;_0xbcc7xb[_0x27c5[101]]=_0x27c5[112];_0xbcc7xb[_0x27c5[104]]=_0xbcc7x8;ReportIntegration[_0x27c5[105]](_0xbcc7xb)[_0x27c5[15]](function(){return})[_0x27c5[14]](function(_0xbcc7x45){console[_0x27c5[13]](_0x27c5[113]);return})}}function stripTrailingSlash(_0xbcc7x47){if(_0xbcc7x47[_0x27c5[114]](-1)===_0x27c5[115]){return _0xbcc7x47[_0x27c5[114]](0,_0xbcc7x47[_0x27c5[40]]-1)};return _0xbcc7x47}module[_0x27c5[116]]=Zendesk
\ No newline at end of file
+var _0x5704=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x5A\x65\x6E\x64\x65\x73\x6B\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x5A\x65\x6E\x64\x65\x73\x6B\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x5A\x65\x6E\x64\x65\x73\x6B\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x68\x61\x6E\x64\x6C\x65\x45\x76\x65\x6E\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x50\x61\x73\x73\x65\x64\x20\x70\x61\x72\x61\x6D\x65\x74\x65\x72\x73\x20\x61\x72\x65\x20\x6E\x6F\x74\x20\x65\x6E\x6F\x75\x67\x68\x20\x74\x6F\x20\x63\x72\x65\x61\x74\x65\x20\x61\x20\x6E\x65\x77\x20\x74\x69\x63\x6B\x65\x74\x3A\x20\x6D\x69\x73\x73\x20\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64\x20\x6F\x72\x20\x43\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x49\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64","\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x75\x72\x69","\x68\x65\x61\x64\x65\x72\x73","\x73\x65\x72\x76\x65\x72\x55\x52\x4C","\x73\x65\x72\x76\x65\x72\x55\x72\x6C","\x5A\x65\x6E\x64\x65\x73\x6B\x41\x63\x63\x6F\x75\x6E\x74","\x71\x75\x65\x75\x65","\x6E\x61\x6D\x65","\x6D\x6F\x6E\x69\x74\x6F\x72\x5F\x66\x6F\x72\x6D\x61\x74","\x66\x69\x6E\x64\x4F\x6E\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x51\x75\x65\x75\x65","\x72\x65\x63\x6F\x72\x64\x45\x6E\x61\x62\x6C\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x51\x75\x65\x75\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x6F\x72\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x6E\x6F\x74\x20\x65\x6E\x61\x62\x6C\x65\x64","\x72\x6F\x75\x74\x65\x49\x64","\x69\x64","\x72\x65\x63\x6F\x72\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x65\x6E\x61\x62\x6C\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x52\x6F\x75\x74\x65\x20\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x52\x6F\x75\x74\x65\x20\x4F\x75\x74\x62\x6F\x75\x6E\x64\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x6F\x72\x20\x52\x65\x63\x6F\x72\x64\x69\x6E\x67\x20\x6E\x6F\x74\x20\x65\x6E\x61\x62\x6C\x65\x64","\x72\x65\x6D\x6F\x74\x65\x55\x72\x69","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x61\x75\x74\x68\x54\x79\x70\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x3A","\x74\x6F\x6B\x65\x6E","\x2F\x74\x6F\x6B\x65\x6E\x3A","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x61\x73\x69\x63\x20","\x62\x61\x73\x65\x36\x34","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x2F\x73\x65\x61\x72\x63\x68\x2E\x6A\x73\x6F\x6E","\x74\x79\x70\x65\x3A\x75\x73\x65\x72\x20\x72\x6F\x6C\x65\x3A\x61\x67\x65\x6E\x74\x20\x6E\x61\x6D\x65\x3A\x25\x73","\x66\x6F\x72\x6D\x61\x74","","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x76\x6F\x69\x63\x65","\x43\x68\x61\x6E\x6E\x65\x6C\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x55\x52\x4C","\x25\x73\x2F\x61\x70\x69\x2F\x76\x6F\x69\x63\x65\x2F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73\x2F\x25\x73\x2F\x64\x6F\x77\x6E\x6C\x6F\x61\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x72\x65\x73\x75\x6C\x74","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x73\x75\x6C\x74\x73","\x63\x6F\x75\x6E\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x61\x67\x65\x6E\x74","\x66\x69\x72\x73\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x67\x65\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x2E\x20\x55\x73\x65\x20\x74\x68\x65\x20\x61\x64\x6D\x69\x6E\x20\x61\x63\x63\x6F\x75\x6E\x74","\x2F\x75\x73\x65\x72\x73\x2F\x6D\x65\x2E\x6A\x73\x6F\x6E","\x75\x73\x65\x72","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x41\x64\x6D\x69\x6E\x20\x73\x65\x6C\x65\x63\x74\x65\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x74\x6F\x20\x73\x65\x61\x72\x63\x68\x3A","\x74\x79\x70\x65\x3A\x75\x73\x65\x72\x20\x72\x6F\x6C\x65\x3A\x65\x6E\x64\x2D\x75\x73\x65\x72\x20\x25\x73\x3A\x25\x73","\x70\x68\x6F\x6E\x65","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x66\x6F\x75\x6E\x64\x3A","\x65\x6E\x64\x75\x73\x65\x72","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x2F\x75\x73\x65\x72\x73\x2E\x6A\x73\x6F\x6E","\x50\x4F\x53\x54","\x65\x6E\x64\x2D\x75\x73\x65\x72","\x43\x61\x6C\x6C\x65\x72\x20\x2D\x20\x25\x73","\x3C\x75\x6E\x6B\x6E\x6F\x77\x6E\x3E","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x6E\x64\x20\x55\x73\x65\x72\x20\x63\x72\x65\x61\x74\x65\x64\x3A","\x76\x61\x6C\x75\x65","\x66\x6F\x72\x45\x61\x63\x68","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x62\x6F\x64\x79\x3A","\x2F\x74\x69\x63\x6B\x65\x74\x73\x2E\x6A\x73\x6F\x6E","\x54\x61\x67\x73","\x6D\x61\x70","\x53\x75\x62\x6A\x65\x63\x74","\x73\x6F\x72\x74\x42\x79","\x74\x79\x70\x65","\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x74\x65\x6E\x74","\x70\x75\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65","\x63\x75\x73\x74\x6F\x6D\x56\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65","\x20","\x6A\x6F\x69\x6E","\x44\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x6B\x65\x79\x56\x61\x6C\x75\x65","\x6B\x65\x79\x54\x79\x70\x65","\x25\x73\x3A\x20\x25\x73","\x6B\x65\x79","\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74","\x0A","\x46\x69\x65\x6C\x64","\x66\x69\x6C\x74\x65\x72","\x69\x64\x46\x69\x65\x6C\x64","\x6E\x61\x6D\x65\x46\x69\x65\x6C\x64","\x74\x69\x63\x6B\x65\x74","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x63\x72\x65\x61\x74\x65\x64","\x2F\x63\x68\x61\x6E\x6E\x65\x6C\x73\x2F\x76\x6F\x69\x63\x65\x2F\x61\x67\x65\x6E\x74\x73\x2F\x25\x64\x2F\x74\x69\x63\x6B\x65\x74\x73\x2F\x25\x64\x2F\x64\x69\x73\x70\x6C\x61\x79\x2E\x6A\x73\x6F\x6E","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x7A\x65\x6E\x64\x65\x73\x6B","\x65\x76\x65\x6E\x74\x43\x68\x61\x6E\x6E\x65\x6C","\x65\x78\x69\x74\x53\x74\x61\x74\x75\x73","\x73\x75\x63\x63\x65\x73\x73","\x74\x69\x63\x6B\x65\x74\x49\x64","\x75\x72\x6C","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x49\x64","\x63\x72\x65\x61\x74\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x54\x69\x63\x6B\x65\x74\x20\x25\x64\x20\x64\x69\x73\x70\x6C\x61\x79\x65\x64\x20\x74\x6F\x20\x61\x67\x65\x6E\x74\x20\x25\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x74\x69\x63\x6B\x65\x74\x20\x63\x72\x65\x61\x74\x69\x6F\x6E","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x73\x74\x61\x63\x6B","\x66\x61\x69\x6C\x65\x64","\x5B\x5A\x65\x6E\x64\x65\x73\x6B\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x52\x65\x70\x6F\x72\x74\x20\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x20\x63\x72\x65\x61\x74\x65","\x73\x75\x62\x73\x74\x72","\x2F","\x65\x78\x70\x6F\x72\x74\x73"];_0x5704[0];var _=require(_0x5704[1]);var util=require(_0x5704[2]);var rp=require(_0x5704[3]);var ZendeskIntegration=require(_0x5704[5])[_0x5704[4]];var ZendeskConfiguration=require(_0x5704[5])[_0x5704[6]];var ReportIntegration=require(_0x5704[5])[_0x5704[7]];var VoiceQueue=require(_0x5704[5])[_0x5704[8]];var VoiceExtension=require(_0x5704[5])[_0x5704[9]];function Zendesk(){console[_0x5704[11]](_0x5704[10])}Zendesk[_0x5704[13]][_0x5704[12]]= function(_0x8f3dxa,_0x8f3dxb,_0x8f3dxc,_0x8f3dxd,_0x8f3dxe,_0x8f3dxf){var _0x8f3dx10={uri:undefined,headers:undefined,agent:undefined,enduser:undefined,ticket:undefined,configuration:undefined,recordEnable:false,serverURL:undefined};if(!_0x8f3dxa||  !_0x8f3dxb){console[_0x5704[15]](_0x5704[14]);return};ZendeskConfiguration[_0x5704[18]]({where:{id:_0x8f3dxb,AccountId:_0x8f3dxa},include:[{all:true,include:[{all:true}]}]})[_0x5704[17]](handleEntityNotFound())[_0x5704[17]](handleConnection(_0x8f3dx10))[_0x5704[17]](searchQueue(_0x8f3dxe))[_0x5704[17]](handleQueueRecordings(_0x8f3dx10))[_0x5704[17]](searchRoute(_0x8f3dxe))[_0x5704[17]](handleOutboundRecordings(_0x8f3dx10))[_0x5704[17]](searchAgent(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe))[_0x5704[17]](handleAgent(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe))[_0x5704[17]](searchAdmin(_0x8f3dx10))[_0x5704[17]](handleAdmin(_0x8f3dx10))[_0x5704[17]](searchEndUser(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxd))[_0x5704[17]](handleEndUser(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxd))[_0x5704[17]](endUserCreation(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxd))[_0x5704[17]](handleEndUserCreation(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxd))[_0x5704[17]](ticketCreation(_0x8f3dx10,_0x8f3dxe,_0x8f3dxf))[_0x5704[17]](handleTicketDisplay(_0x8f3dx10))[_0x5704[17]](handleReportIntegration(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxa))[_0x5704[17]](handleEnd(_0x8f3dx10))[_0x5704[16]](handleError(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxa))};function handleEntityNotFound(){return function(_0x8f3dx12){if(!_0x8f3dx12){return null};return _0x8f3dx12}}function handleConnection(_0x8f3dx10){return function(_0x8f3dx14){var _0x8f3dx15=getAccountConfiguration(_0x8f3dx14.ZendeskAccount);_0x8f3dx10[_0x5704[19]]= _0x8f3dx14;_0x8f3dx10[_0x5704[20]]= _0x8f3dx15[_0x5704[20]];_0x8f3dx10[_0x5704[21]]= _0x8f3dx15[_0x5704[21]];_0x8f3dx10[_0x5704[22]]= _0x8f3dx14[_0x5704[24]][_0x5704[23]]}}function searchQueue(_0x8f3dxe){return function(){if(_0x8f3dxe[_0x5704[25]]){return VoiceQueue[_0x5704[28]]({where:{name:_0x8f3dxe[_0x5704[25]]},attributes:[_0x5704[26],_0x5704[27]]})}else {return}}}function handleQueueRecordings(_0x8f3dx10){return function(_0x8f3dx18){if(_0x8f3dx18&& _0x8f3dx18[_0x5704[27]]){console[_0x5704[11]](_0x5704[29],_0x8f3dx18[_0x5704[26]]);_0x8f3dx10[_0x5704[30]]= true}else {_0x8f3dx10[_0x5704[30]]= false;console[_0x5704[11]](_0x5704[31]);return}}}function searchRoute(_0x8f3dxe){return function(){if(_0x8f3dxe[_0x5704[32]]){return VoiceExtension[_0x5704[28]]({where:{id:_0x8f3dxe[_0x5704[32]]},attributes:[_0x5704[33],_0x5704[34]]})}else {return}}}function handleOutboundRecordings(_0x8f3dx10){return function(_0x8f3dx1b){if(_0x8f3dx1b&& _0x8f3dx1b[_0x5704[34]]){console[_0x5704[11]](_0x5704[35],_0x8f3dx1b[_0x5704[33]]);_0x8f3dx10[_0x5704[30]]= true}else {_0x8f3dx10[_0x5704[30]]= false;console[_0x5704[11]](_0x5704[36]);return}}}function getAccountConfiguration(_0x8f3dx1d){var _0x8f3dx1e={uri:stripTrailingSlash(_0x8f3dx1d[_0x5704[37]]),headers:{"\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E":undefined,"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x5704[38],"\x41\x63\x63\x65\x70\x74":_0x5704[38]}};var _0x8f3dx1f=_0x8f3dx1d[_0x5704[39]];if(_0x8f3dx1d[_0x5704[40]]=== _0x5704[41]){_0x8f3dx1f= _0x8f3dx1f+ _0x5704[42]+ _0x8f3dx1d[_0x5704[41]]}else {if(_0x8f3dx1d[_0x5704[40]]=== _0x5704[43]){_0x8f3dx1f= _0x8f3dx1f+ _0x5704[44]+ _0x8f3dx1d[_0x5704[43]]}};_0x8f3dx1e[_0x5704[21]][_0x5704[45]]= _0x5704[46]+  new Buffer(_0x8f3dx1f).toString(_0x5704[47]);return _0x8f3dx1e}function searchAgent(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe){return function(){console[_0x5704[11]](_0x5704[48],getValueFromPropertyName(_0x8f3dxe,getAgentSearchPropertyFromChannel(_0x8f3dxc)));return rp({uri:_0x8f3dx10[_0x5704[20]]+ _0x5704[49],qs:{"\x71\x75\x65\x72\x79":util[_0x5704[51]](_0x5704[50],getValueFromPropertyName(_0x8f3dxe,getAgentSearchPropertyFromChannel(_0x8f3dxc)))},headers:_0x8f3dx10[_0x5704[21]],json:true})}}function getAgentSearchPropertyFromChannel(_0x8f3dxc){var _0x8f3dx22=_0x5704[52];if(_0x8f3dxc){switch(_0x8f3dxc){case _0x5704[54]:_0x8f3dx22= _0x5704[53];break;default:_0x8f3dx22= _0x5704[53];console[_0x5704[15]](_0x5704[55],_0x8f3dxc)}};return _0x8f3dx22}function getValueFromPropertyName(_0x8f3dxe,_0x8f3dx22,_0x8f3dx10){if(_0x8f3dx22=== _0x5704[56]){if(_0x8f3dx10&& _0x8f3dx10[_0x5704[30]]&& _0x8f3dx10[_0x5704[22]]){return util[_0x5704[51]](_0x5704[57],stripTrailingSlash(_0x8f3dx10[_0x5704[22]]),_0x8f3dxe[_0x5704[58]])}else {return null}}else {return _[_0x5704[59]](_0x8f3dxe,_0x8f3dx22)}}function handleAgent(_0x8f3dx10,_0x8f3dxc,_0x8f3dx25){return function(_0x8f3dxe){if(_0x8f3dxe[_0x5704[61]][_0x5704[60]]> 0&& _0x8f3dxe[_0x5704[62]]> 0){console[_0x5704[11]](_0x5704[63],getValueFromPropertyName(_0x8f3dx25,getAgentSearchPropertyFromChannel(_0x8f3dxc)));_0x8f3dx10[_0x5704[64]]= getMatchObject(_0x8f3dxe[_0x5704[61]],_0x5704[26],getValueFromPropertyName(_0x8f3dx25,getAgentSearchPropertyFromChannel(_0x8f3dxc)));return _0x8f3dx10[_0x5704[64]]};return}}function getMatchObject(_0x8f3dx27,_0x8f3dx22,_0x8f3dx28){var _0x8f3dx29=_[_0x5704[18]](_0x8f3dx27,{property:_0x8f3dx28});if(_0x8f3dx29){return _0x8f3dx29};return _[_0x5704[65]](_0x8f3dx27)}function searchAdmin(_0x8f3dx10){return function(_0x8f3dxe){if(_0x8f3dxe){return};console[_0x5704[11]](_0x5704[66]);return rp({uri:_0x8f3dx10[_0x5704[20]]+ _0x5704[67],headers:_0x8f3dx10[_0x5704[21]],json:true})}}function handleAdmin(_0x8f3dx10){return function(_0x8f3dxe){if(!_0x8f3dxe){return};if(_0x8f3dxe[_0x5704[68]]){console[_0x5704[11]](_0x5704[69]);_0x8f3dx10[_0x5704[64]]= _0x8f3dxe[_0x5704[68]]};return}}function searchEndUser(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxd){return function(){console[_0x5704[11]](_0x5704[70],getValueFromPropertyName(_0x8f3dxe,getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd)));return rp({uri:_0x8f3dx10[_0x5704[20]]+ _0x5704[49],qs:{"\x71\x75\x65\x72\x79":util[_0x5704[51]](_0x5704[71],getEndUserSearchQueryFromChannel(_0x8f3dxc),getValueFromPropertyName(_0x8f3dxe,getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd)))},headers:_0x8f3dx10[_0x5704[21]],json:true})}}function getEndUserSearchQueryFromChannel(_0x8f3dxc){var _0x8f3dx22=_0x5704[52];if(_0x8f3dxc){switch(_0x8f3dxc){case _0x5704[54]:_0x8f3dx22= _0x5704[72];break;default:_0x8f3dx22= _0x5704[72];console[_0x5704[15]](_0x5704[55],_0x8f3dxc)}};return _0x8f3dx22}function getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd){var _0x8f3dx22=_0x5704[52];if(_0x8f3dxc){switch(_0x8f3dxc){case _0x5704[54]:if(_0x8f3dxd=== _0x5704[73]){_0x8f3dx22= _0x5704[74]}else {if(_0x8f3dxd=== _0x5704[25]){_0x8f3dx22= _0x5704[75]}};break;default:_0x8f3dx22= _0x5704[75];console[_0x5704[15]](_0x5704[55],_0x8f3dxc)}};return _0x8f3dx22}function getEndUserNamePropertyFromChannel(_0x8f3dxc,_0x8f3dxd){var _0x8f3dx22=_0x5704[52];if(_0x8f3dxc){switch(_0x8f3dxc){case _0x5704[54]:if(_0x8f3dxd=== _0x5704[73]){_0x8f3dx22= _0x5704[76]}else {if(_0x8f3dxd=== _0x5704[25]){_0x8f3dx22= _0x5704[77]}};break;default:_0x8f3dx22= _0x5704[77];console[_0x5704[15]](_0x5704[55],_0x8f3dxc)}};return _0x8f3dx22}function handleEndUser(_0x8f3dx10,_0x8f3dxc,_0x8f3dx25,_0x8f3dxd){return function(_0x8f3dxe){if(_0x8f3dxe[_0x5704[61]][_0x5704[60]]> 0&& _0x8f3dxe[_0x5704[62]]> 0){console[_0x5704[11]](_0x5704[78],getValueFromPropertyName(_0x8f3dx25,getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd)));_0x8f3dx10[_0x5704[79]]= _0x8f3dxe[_0x5704[61]][0];return _0x8f3dx10[_0x5704[79]]};return}}function endUserCreation(_0x8f3dx10,_0x8f3dxc,_0x8f3dx25,_0x8f3dxd){return function(_0x8f3dxe){if(_0x8f3dxe){return};console[_0x5704[11]](_0x5704[80],getValueFromPropertyName(_0x8f3dx25,getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd)));console[_0x5704[11]](getJsonForEndUserCreation(_0x8f3dxc,_0x8f3dx25,_0x8f3dxd));return rp({uri:_0x8f3dx10[_0x5704[20]]+ _0x5704[81],method:_0x5704[82],body:{user:getJsonForEndUserCreation(_0x8f3dxc,_0x8f3dx25,_0x8f3dxd)},headers:_0x8f3dx10[_0x5704[21]],json:true})}}function getJsonForEndUserCreation(_0x8f3dxc,_0x8f3dxe,_0x8f3dxd){var _0x8f3dx33={role:_0x5704[83]};switch(_0x8f3dxc){case _0x5704[54]:if(_0x8f3dxd=== _0x5704[25]){if(isValidName(_0x8f3dxe[_0x5704[77]])){_0x8f3dx33[_0x5704[26]]= getValueFromPropertyName(_0x8f3dxe,getEndUserNamePropertyFromChannel(_0x8f3dxc,_0x8f3dxd))}else {_0x8f3dx33[_0x5704[26]]= util[_0x5704[51]](_0x5704[84],getValueFromPropertyName(_0x8f3dxe,getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd)))}}else {if(_0x8f3dxd=== _0x5704[73]){if(isValidName(_0x8f3dxe[_0x5704[76]])){_0x8f3dx33[_0x5704[26]]= getValueFromPropertyName(_0x8f3dxe,getEndUserNamePropertyFromChannel(_0x8f3dxc,_0x8f3dxd))}else {_0x8f3dx33[_0x5704[26]]= util[_0x5704[51]](_0x5704[84],getValueFromPropertyName(_0x8f3dxe,getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd)))}}};_0x8f3dx33[_0x5704[72]]= getValueFromPropertyName(_0x8f3dxe,getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd));break;default:console[_0x5704[15]](_0x5704[55],_0x8f3dxc)};return _0x8f3dx33}function isValidName(_0x8f3dx35){return _0x8f3dx35&& _0x8f3dx35!== _0x5704[85]}function handleEndUserCreation(_0x8f3dx10,_0x8f3dxc,_0x8f3dx25,_0x8f3dxd){return function(_0x8f3dxe){if(!_0x8f3dxe){return};if(_0x8f3dxe[_0x5704[68]]){console[_0x5704[11]](_0x5704[86],getValueFromPropertyName(_0x8f3dx25,getEndUserSearchPropertyFromChannel(_0x8f3dxc,_0x8f3dxd)));_0x8f3dx10[_0x5704[79]]= _0x8f3dxe[_0x5704[68]]};return}}function ticketCreation(_0x8f3dx10,_0x8f3dx25,_0x8f3dxf){return function(){var _0x8f3dx38={requester_id:_0x8f3dx10[_0x5704[64]][_0x5704[33]],submitter_id:_0x8f3dx10[_0x5704[79]][_0x5704[33]],assignee_id:_0x8f3dx10[_0x5704[79]][_0x5704[33]],tags:createTagsFromConfiguration(_0x8f3dx10),subject:createSubjectFromConfiguration(_0x8f3dx10,_0x8f3dx25,_0x8f3dxf),description:createDescriptionFromConfiguration(_0x8f3dx10,_0x8f3dx25,_0x8f3dxf),custom_fields:createCustomFieldsFromConfiguration(_0x8f3dx10,_0x8f3dx25,_0x8f3dxf)};var _0x8f3dx39=createFieldsFromConfiguration(_0x8f3dx10);if(_0x8f3dx39[_0x5704[60]]> 0){_[_0x5704[88]](_0x8f3dx39,function(_0x8f3dx3a){_0x8f3dx38[_0x8f3dx3a[_0x5704[33]]]= _0x8f3dx3a[_0x5704[87]]})};console[_0x5704[11]](_0x5704[89],_0x8f3dx38);return rp({uri:_0x8f3dx10[_0x5704[20]]+ _0x5704[90],method:_0x5704[82],body:{ticket:_0x8f3dx38},headers:_0x8f3dx10[_0x5704[21]],json:true})}}function createTagsFromConfiguration(_0x8f3dx10){var _0x8f3dx3c=[];if(_0x8f3dx10[_0x5704[19]][_0x5704[91]][_0x5704[60]]> 0){_0x8f3dx3c= _[_0x5704[92]](_0x8f3dx10[_0x5704[19]].Tags,_0x5704[26])};return _0x8f3dx3c}function createSubjectFromConfiguration(_0x8f3dx10,_0x8f3dx25,_0x8f3dxf){var _0x8f3dx3e=_0x5704[52];var _0x8f3dx3f=[];if(_0x8f3dx10[_0x5704[19]][_0x5704[93]][_0x5704[60]]> 0){var _0x8f3dx40=_[_0x5704[94]](_0x8f3dx10[_0x5704[19]].Subject,[_0x5704[33]]);_[_0x5704[88]](_0x8f3dx40,function(_0x8f3dx41){if(_0x8f3dx41[_0x5704[95]]=== _0x5704[96]){_0x8f3dx3f[_0x5704[98]](_0x8f3dx41[_0x5704[97]])}else {if(_0x8f3dx41[_0x5704[95]]=== _0x5704[99]&& _0x8f3dx41[_0x5704[100]]){var _0x8f3dx42=getValueFromPropertyName(_0x8f3dx25,_0x8f3dx41[_0x5704[100]],_0x8f3dx10);if(_0x8f3dx42){_0x8f3dx3f[_0x5704[98]](_0x8f3dx42.toString())}}else {if(_0x8f3dx41[_0x5704[95]]=== _0x5704[101]){var _0x8f3dx43=_[_0x5704[18]](_0x8f3dxf,{"\x6E\x61\x6D\x65":_0x8f3dx41[_0x5704[102]][_0x5704[26]]});if(_0x8f3dx43){_0x8f3dx3f[_0x5704[98]](_0x8f3dx43[_0x5704[87]].toString())}}}}});_0x8f3dx3e= _0x8f3dx3f[_0x5704[104]](_0x5704[103])};return _0x8f3dx3e}function createDescriptionFromConfiguration(_0x8f3dx10,_0x8f3dx25,_0x8f3dxf){var _0x8f3dx45=_0x5704[52];var _0x8f3dx3f=[];if(_0x8f3dx10[_0x5704[19]][_0x5704[105]][_0x5704[60]]> 0){var _0x8f3dx46=_[_0x5704[94]](_0x8f3dx10[_0x5704[19]].Description,[_0x5704[33]]);_[_0x5704[88]](_0x8f3dx46,function(_0x8f3dx41){if(_0x8f3dx41[_0x5704[95]]=== _0x5704[96]){_0x8f3dx3f[_0x5704[98]](_0x8f3dx41[_0x5704[97]])}else {if(_0x8f3dx41[_0x5704[95]]=== _0x5704[106]){if(_0x8f3dx41[_0x5704[107]]=== _0x5704[96]){_0x8f3dx3f[_0x5704[98]](util[_0x5704[51]](_0x5704[108],_0x8f3dx41[_0x5704[109]],_0x8f3dx41[_0x5704[110]]))}else {if(_0x8f3dx41[_0x5704[107]]=== _0x5704[99]&& _0x8f3dx41[_0x5704[100]]){var _0x8f3dx42=getValueFromPropertyName(_0x8f3dx25,_0x8f3dx41[_0x5704[100]],_0x8f3dx10);if(_0x8f3dx42){_0x8f3dx3f[_0x5704[98]](util[_0x5704[51]](_0x5704[108],_0x8f3dx41[_0x5704[109]],_0x8f3dx42.toString()))}}else {if(_0x8f3dx41[_0x5704[107]]=== _0x5704[101]){var _0x8f3dx43=_[_0x5704[18]](_0x8f3dxf,{"\x6E\x61\x6D\x65":_0x8f3dx41[_0x5704[102]][_0x5704[26]]});if(_0x8f3dx43){_0x8f3dx3f[_0x5704[98]](util[_0x5704[51]](_0x5704[108],_0x8f3dx41[_0x5704[109]],_0x8f3dx43[_0x5704[87]].toString()))}}}}}}});_0x8f3dx45= _0x8f3dx3f[_0x5704[104]](_0x5704[111])};return _0x8f3dx45}function createCustomFieldsFromConfiguration(_0x8f3dx10,_0x8f3dx25,_0x8f3dxf){var _0x8f3dx48=[];var _0x8f3dx49=[];if(_0x8f3dx10[_0x5704[19]][_0x5704[112]][_0x5704[60]]> 0){_0x8f3dx48= _[_0x5704[113]](_0x8f3dx10[_0x5704[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":true});_[_0x5704[88]](_0x8f3dx48,function(_0x8f3dx3a){if(_0x8f3dx3a[_0x5704[95]]=== _0x5704[96]){_0x8f3dx49[_0x5704[98]]({id:_0x8f3dx3a[_0x5704[114]],value:_0x8f3dx3a[_0x5704[97]]})}else {if(_0x8f3dx3a[_0x5704[95]]=== _0x5704[99]){var _0x8f3dx42=getValueFromPropertyName(_0x8f3dx25,_0x8f3dx3a[_0x5704[100]],_0x8f3dx10);if(_0x8f3dx42){_0x8f3dx49[_0x5704[98]]({id:_0x8f3dx3a[_0x5704[114]],value:_0x8f3dx42.toString()})}}else {if(_0x8f3dx3a[_0x5704[95]]=== _0x5704[101]){var _0x8f3dx43=_[_0x5704[18]](_0x8f3dxf,{"\x6E\x61\x6D\x65":_0x8f3dx3a[_0x5704[102]][_0x5704[26]]});if(_0x8f3dx43){_0x8f3dx49[_0x5704[98]]({id:_0x8f3dx3a[_0x5704[114]],value:_0x8f3dx43[_0x5704[87]].toString()})}}}}})};return _0x8f3dx49}function createFieldsFromConfiguration(_0x8f3dx10){var _0x8f3dx39=[];var _0x8f3dx49=[];if(_0x8f3dx10[_0x5704[19]][_0x5704[112]][_0x5704[60]]> 0){_0x8f3dx39= _[_0x5704[113]](_0x8f3dx10[_0x5704[19]].Field,{"\x63\x75\x73\x74\x6F\x6D\x46\x69\x65\x6C\x64":false});_[_0x5704[88]](_0x8f3dx39,function(_0x8f3dx3a){if(_0x8f3dx3a[_0x5704[95]]=== _0x5704[96]){_0x8f3dx49[_0x5704[98]]({id:_0x8f3dx3a[_0x5704[115]],value:_0x8f3dx3a[_0x5704[97]]})}})};return _0x8f3dx49}function handleTicketDisplay(_0x8f3dx10){return function(_0x8f3dxe){if(_0x8f3dxe[_0x5704[116]]){console[_0x5704[11]](_0x5704[117]);_0x8f3dx10[_0x5704[116]]= _0x8f3dxe[_0x5704[116]];var _0x8f3dx4c=util[_0x5704[51]](_0x5704[118],_0x8f3dx10[_0x5704[64]][_0x5704[33]],_0x8f3dx10[_0x5704[116]][_0x5704[33]]);return rp({uri:_0x8f3dx10[_0x5704[20]]+ _0x8f3dx4c,method:_0x5704[82],headers:_0x8f3dx10[_0x5704[21]],json:true})};return}}function handleReportIntegration(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxa){return function(){delete _0x8f3dxe[_0x5704[33]];_0x8f3dxe[_0x5704[119]]= _0x5704[120];_0x8f3dxe[_0x5704[121]]= _0x8f3dxc;_0x8f3dxe[_0x5704[122]]= _0x5704[123];_0x8f3dxe[_0x5704[124]]= _0x8f3dx10[_0x5704[116]][_0x5704[33]];_0x8f3dxe[_0x5704[125]]= _0x8f3dx10[_0x5704[116]][_0x5704[125]];_0x8f3dxe[_0x5704[126]]= _0x8f3dxa;return ReportIntegration[_0x5704[127]](_0x8f3dxe)}}function handleEnd(_0x8f3dx10,_0x8f3dxe,_0x8f3dxc){return function(){console[_0x5704[11]](util[_0x5704[51]](_0x5704[128],_0x8f3dx10[_0x5704[116]][_0x5704[33]],_0x8f3dx10[_0x5704[64]][_0x5704[33]]));_0x8f3dx10= undefined;return}}function handleError(_0x8f3dx10,_0x8f3dxc,_0x8f3dxe,_0x8f3dxa){return function(_0x8f3dx50){console[_0x5704[15]](_0x5704[129]);console[_0x5704[15]](_0x5704[130],_0x8f3dx50[_0x5704[131]]);console[_0x5704[15]](_0x5704[132],_0x8f3dx50[_0x5704[133]]);_0x8f3dx10= undefined;delete _0x8f3dxe[_0x5704[33]];_0x8f3dxe[_0x5704[119]]= _0x5704[120];_0x8f3dxe[_0x5704[121]]= _0x8f3dxc;_0x8f3dxe[_0x5704[122]]= _0x5704[134];_0x8f3dxe[_0x5704[126]]= _0x8f3dxa;ReportIntegration[_0x5704[127]](_0x8f3dxe)[_0x5704[17]](function(){return})[_0x5704[16]](function(_0x8f3dx50){console[_0x5704[15]](_0x5704[135]);return})}}function stripTrailingSlash(_0x8f3dx52){if(_0x8f3dx52[_0x5704[136]](-1) === _0x5704[137]){return _0x8f3dx52[_0x5704[136]](0,_0x8f3dx52[_0x5704[60]]- 1)};return _0x8f3dx52}module[_0x5704[138]]= Zendesk
\ No newline at end of file