Built motion from commit a5685af.|0.0.128
[motion.git] / server / api / report_agent / report_agent.controller.js
index 2af163b..bec219a 100644 (file)
@@ -1 +1 @@
-var _0x1ee2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65"];_0x1ee2[0];var _=require(_0x1ee2[1]);var ReportAgent=require(_0x1ee2[3])[_0x1ee2[2]];var ReportAgentHistory=require(_0x1ee2[3])[_0x1ee2[5]][_0x1ee2[4]];var Util=require(_0x1ee2[6]);exports[_0x1ee2[7]]= function(_0xfaa8x5,_0xfaa8x6,_0xfaa8x7){var _0xfaa8x8={};if(_0xfaa8x5[_0x1ee2[9]][_0x1ee2[8]]=== _0x1ee2[10]){_0xfaa8x8[_0x1ee2[11]]= _0xfaa8x5[_0x1ee2[9]][_0x1ee2[12]]};return ReportAgent[_0x1ee2[19]](Util[_0x1ee2[18]](_0xfaa8x5[_0x1ee2[17]],_0xfaa8x8))[_0x1ee2[16]](function(_0xfaa8xa){return _0xfaa8x6[_0x1ee2[15]](200)[_0x1ee2[14]](_0xfaa8xa)})[_0x1ee2[13]](function(_0xfaa8x9){return handleError(_0xfaa8x6,_0xfaa8x9)})};exports[_0x1ee2[20]]= function(_0xfaa8x5,_0xfaa8x6){return ReportAgentHistory[_0x1ee2[20]]()[_0x1ee2[16]](function(_0xfaa8xb){return _0xfaa8x6[_0x1ee2[15]](200)[_0x1ee2[14]](_0xfaa8xb)})[_0x1ee2[13]](function(_0xfaa8x9){return handleError(_0xfaa8x6,_0xfaa8x9)})};function handleError(_0xfaa8x6,_0xfaa8x9){return _0xfaa8x6[_0x1ee2[15]](500)[_0x1ee2[14]](_0xfaa8x9)}
\ No newline at end of file
+var _0xfcba=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x72\x6F\x6C\x65","\x75\x73\x65\x72","\x61\x67\x65\x6E\x74","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x6E\x61\x6D\x65","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x72\x6F\x77\x73","\x6D\x61\x70","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x63\x74\x69\x76\x65\x43\x61\x6C\x6C\x73","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x6C\x65\x6E\x67\x74\x68","\x6D\x65\x72\x67\x65","\x61\x6C\x6C","\x64\x65\x73\x63\x72\x69\x62\x65"];_0xfcba[0];var _=require(_0xfcba[1]);var ReportAgent=require(_0xfcba[3])[_0xfcba[2]];var User=require(_0xfcba[3])[_0xfcba[4]];var VoiceQueue=require(_0xfcba[3])[_0xfcba[5]];var ReportAgentHistory=require(_0xfcba[3])[_0xfcba[7]][_0xfcba[6]];var Util=require(_0xfcba[8]);exports[_0xfcba[9]]= function(_0xf7f8x7,_0xf7f8x8,_0xf7f8x9){var _0xf7f8xa={};if(_0xf7f8x7[_0xfcba[11]][_0xfcba[10]]=== _0xfcba[12]){_0xf7f8xa[_0xfcba[13]]= _0xf7f8x7[_0xfcba[11]][_0xfcba[14]]};return ReportAgent[_0xfcba[21]](Util[_0xfcba[20]](_0xf7f8x7[_0xfcba[19]],_0xf7f8xa))[_0xfcba[18]](function(_0xf7f8xc){return _0xf7f8x8[_0xfcba[17]](200)[_0xfcba[16]](_0xf7f8xc)})[_0xfcba[15]](function(_0xf7f8xb){return handleError(_0xf7f8x8,_0xf7f8xb)})};function getVoiceQueues(_0xf7f8xe){return function(){switch(_0xf7f8xe[_0xfcba[10]]){case _0xfcba[11]:return User[_0xfcba[26]](_0xf7f8xe[_0xfcba[25]],{attributes:[_0xfcba[25]]})[_0xfcba[18]](Util[_0xfcba[24]]())[_0xfcba[18]](function(_0xf7f8xf){return _[_0xfcba[23]](_0xf7f8xf[_0xfcba[22]],_0xfcba[14])});case _0xfcba[12]:return User[_0xfcba[26]](_0xf7f8xe[_0xfcba[25]])[_0xfcba[18]](function(_0xf7f8x10){return _0xf7f8x10[_0xfcba[27]]({attributes:[_0xfcba[14]]})})[_0xfcba[18]](function(_0xf7f8xf){return _[_0xfcba[23]](_0xf7f8xf,_0xfcba[14])});default:return VoiceQueue[_0xfcba[28]]()[_0xfcba[18]](function(_0xf7f8x11){return {rows:_0xf7f8x11}})[_0xfcba[18]](function(_0xf7f8xf){return _[_0xfcba[23]](_0xf7f8xf[_0xfcba[22]],_0xfcba[14])})}}}exports[_0xfcba[29]]= function(_0xf7f8x7,_0xf7f8x8){var _0xf7f8xa={};if(_0xf7f8x7[_0xfcba[11]][_0xfcba[10]]=== _0xfcba[12]){_0xf7f8xa[_0xfcba[13]]= _0xf7f8x7[_0xfcba[11]][_0xfcba[30]]};return Promise[_0xfcba[33]]([])[_0xfcba[18]](getVoiceQueues(_0xf7f8x7[_0xfcba[11]]))[_0xfcba[18]](function(_0xf7f8xf){return ReportAgent[_0xfcba[28]](Util[_0xfcba[20]](_0xf7f8x7[_0xfcba[19]],_[_0xfcba[32]](_0xf7f8xa,{agentcomplete:false,agentringnoanswer:false,agentdump:false})))})[_0xfcba[18]](function(_0xf7f8x12){return _0xf7f8x8[_0xfcba[17]](200)[_0xfcba[16]]({rows:_0xf7f8x12,count:_0xf7f8x12[_0xfcba[31]]})})[_0xfcba[15]](function(_0xf7f8xb){return handleError(_0xf7f8x8,_0xf7f8xb)})};exports[_0xfcba[34]]= function(_0xf7f8x7,_0xf7f8x8){return ReportAgentHistory[_0xfcba[34]]()[_0xfcba[18]](function(_0xf7f8x13){return _0xf7f8x8[_0xfcba[17]](200)[_0xfcba[16]](_0xf7f8x13)})[_0xfcba[15]](function(_0xf7f8xb){return handleError(_0xf7f8x8,_0xf7f8xb)})};function handleError(_0xf7f8x8,_0xf7f8xb){return _0xf7f8x8[_0xfcba[17]](500)[_0xfcba[16]](_0xf7f8xb)}
\ No newline at end of file