Built motion from commit 420f8c692.|1.0.30
[motion.git] / server / config / ami / db / voiceAgentReport.js
index bbb0024..18cb749 100644 (file)
@@ -1 +1 @@
-var _0xfa67=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x63\x61\x6C\x6C\x65\x64","\x6E\x6F\x77","\x6D\x65\x72\x67\x65","\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6E\x6E\x65\x63\x74","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x74\x68\x65\x6E","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x75\x70\x64\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x72\x65\x61\x73\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E"];_0xfa67[0];var BPromise=require(_0xfa67[1]);var moment=require(_0xfa67[2]);var _=require(_0xfa67[3]);var ReportAgent=require(_0xfa67[5])[_0xfa67[4]];var logger=require(_0xfa67[7])(_0xfa67[6]);module[_0xfa67[8]]= function(){return {agentcalled:function(_0x83b4x6){return function(_0x83b4x7){return ReportAgent[_0xfa67[15]](_[_0xfa67[14]](_0x83b4x6,{lastevent:_0xfa67[12],agentcalledAt:_0x83b4x6[_0xfa67[13]]}))[_0xfa67[11]](function(_0x83b4x8){logger[_0xfa67[10]](_0xfa67[9],_0x83b4x8)})}},agentconnect:function(_0x83b4x6){return function(_0x83b4x7){return ReportAgent[_0xfa67[23]]({where:{uniqueid:_0x83b4x6[_0xfa67[21]],destuniqueid:_0x83b4x6[_0xfa67[22]]}})[_0xfa67[20]](function(_0x83b4x9){if(_0x83b4x9){return _0x83b4x9[_0xfa67[19]]({lastevent:_0xfa67[17],agentconnectAt:_0x83b4x6[_0xfa67[13]],holdtime:_0x83b4x6[_0xfa67[18]]})}})[_0xfa67[11]](function(_0x83b4x8){logger[_0xfa67[10]](_0xfa67[16],_0x83b4x8)})}},answered_elsewhere:function(_0x83b4x6){return function(_0x83b4x7){return ReportAgent[_0xfa67[27]]({lastevent:_0xfa67[25],agentringnoanswer:true,agentringnoanswerAt:_0x83b4x6[_0xfa67[13]],reason:_0xfa67[25],answeredelsewheredestinationuniqueid:_0x83b4x6[_0xfa67[22]],answeredelsewheremembername:_0x83b4x6[_0xfa67[26]]},{where:{uniqueid:_0x83b4x6[_0xfa67[21]],destuniqueid:{$ne:_0x83b4x6[_0xfa67[22]]},reason:null}})[_0xfa67[11]](function(_0x83b4x8){logger[_0xfa67[10]](_0xfa67[24],_0x83b4x8)})}},agentcomplete:function(_0x83b4x6){return function(_0x83b4x7){return ReportAgent[_0xfa67[23]]({where:{uniqueid:_0x83b4x6[_0xfa67[21]],destuniqueid:_0x83b4x6[_0xfa67[22]]}})[_0xfa67[20]](function(_0x83b4x9){if(_0x83b4x9){return _0x83b4x9[_0xfa67[19]]({lastevent:_0xfa67[29],agentcomplete:true,agentcompleteAt:_0x83b4x6[_0xfa67[13]],talktime:_0x83b4x6[_0xfa67[30]],reason:_0x83b4x6[_0xfa67[31]]})}})[_0xfa67[11]](function(_0x83b4x8){logger[_0xfa67[10]](_0xfa67[28],_0x83b4x8)})}},agentringnoanswer:function(_0x83b4x6){return function(_0x83b4x7){return ReportAgent[_0xfa67[23]]({where:{uniqueid:_0x83b4x6[_0xfa67[21]],destuniqueid:_0x83b4x6[_0xfa67[22]]}})[_0xfa67[20]](function(_0x83b4x9){if(_0x83b4x9){return _0x83b4x9[_0xfa67[19]]({lastevent:_0x83b4x6[_0xfa67[33]],reason:_0x83b4x6[_0xfa67[33]],agentringnoanswer:true,agentringnoanswerAt:_0x83b4x6[_0xfa67[13]]})}})[_0xfa67[11]](function(_0x83b4x8){logger[_0xfa67[10]](_0xfa67[32],_0x83b4x8)})}},queuecallerabandon:function(_0x83b4x6){return function(_0x83b4x7){return ReportAgent[_0xfa67[27]]({lastevent:_0xfa67[35],agentringnoanswer:true,agentringnoanswerAt:_0x83b4x6[_0xfa67[13]],reason:_0xfa67[35]},{where:{uniqueid:_0x83b4x6[_0xfa67[21]],reason:null},individualHooks:true})[_0xfa67[20]](function(_0x83b4xa){return {reportAgent:_0x83b4xa,reportQueue:_0x83b4x7}})[_0xfa67[11]](function(_0x83b4x8){logger[_0xfa67[10]](_0xfa67[34],_0x83b4x8)})}},queuecallerunmanaged:function(_0x83b4x6){return function(_0x83b4x7){return ReportAgent[_0xfa67[27]]({lastevent:_0xfa67[36],agentringnoanswer:true,agentringnoanswerAt:_0x83b4x6[_0xfa67[13]],reason:_0x83b4x6[_0xfa67[37]]},{where:{uniqueid:_0x83b4x6[_0xfa67[21]],reason:null},individualHooks:true})[_0xfa67[11]](function(_0x83b4x8){logger[_0xfa67[10]](_0xfa67[34],_0x83b4x8)})}}}}
\ No newline at end of file
+var _0x1360=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x63\x61\x6C\x6C\x65\x64","\x6E\x6F\x77","\x6D\x65\x72\x67\x65","\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6E\x6E\x65\x63\x74","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x74\x68\x65\x6E","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x75\x70\x64\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x72\x65\x61\x73\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E"];_0x1360[0];var BPromise=require(_0x1360[1]);var moment=require(_0x1360[2]);var _=require(_0x1360[3]);var ReportAgent=require(_0x1360[5])[_0x1360[4]];var logger=require(_0x1360[7])(_0x1360[6]);module[_0x1360[8]]= function(){return {agentcalled:function(_0xf2ebx6){return function(_0xf2ebx7){return ReportAgent[_0x1360[15]](_[_0x1360[14]](_0xf2ebx6,{lastevent:_0x1360[12],agentcalledAt:_0xf2ebx6[_0x1360[13]]}))[_0x1360[11]](function(_0xf2ebx8){logger[_0x1360[10]](_0x1360[9],_0xf2ebx8)})}},agentconnect:function(_0xf2ebx6){return function(_0xf2ebx7){return ReportAgent[_0x1360[23]]({where:{uniqueid:_0xf2ebx6[_0x1360[21]],destuniqueid:_0xf2ebx6[_0x1360[22]]}})[_0x1360[20]](function(_0xf2ebx9){if(_0xf2ebx9){return _0xf2ebx9[_0x1360[19]]({lastevent:_0x1360[17],agentconnectAt:_0xf2ebx6[_0x1360[13]],holdtime:_0xf2ebx6[_0x1360[18]]})}})[_0x1360[11]](function(_0xf2ebx8){logger[_0x1360[10]](_0x1360[16],_0xf2ebx8)})}},answered_elsewhere:function(_0xf2ebx6){return function(_0xf2ebx7){return ReportAgent[_0x1360[27]]({lastevent:_0x1360[25],agentringnoanswer:true,agentringnoanswerAt:_0xf2ebx6[_0x1360[13]],reason:_0x1360[25],answeredelsewheredestinationuniqueid:_0xf2ebx6[_0x1360[22]],answeredelsewheremembername:_0xf2ebx6[_0x1360[26]]},{where:{uniqueid:_0xf2ebx6[_0x1360[21]],destuniqueid:{$ne:_0xf2ebx6[_0x1360[22]]},reason:null}})[_0x1360[11]](function(_0xf2ebx8){logger[_0x1360[10]](_0x1360[24],_0xf2ebx8)})}},agentcomplete:function(_0xf2ebx6){return function(_0xf2ebx7){return ReportAgent[_0x1360[23]]({where:{uniqueid:_0xf2ebx6[_0x1360[21]],destuniqueid:_0xf2ebx6[_0x1360[22]]}})[_0x1360[20]](function(_0xf2ebx9){if(_0xf2ebx9){return _0xf2ebx9[_0x1360[19]]({lastevent:_0x1360[29],agentcomplete:true,agentcompleteAt:_0xf2ebx6[_0x1360[13]],talktime:_0xf2ebx6[_0x1360[30]],reason:_0xf2ebx6[_0x1360[31]]})}})[_0x1360[11]](function(_0xf2ebx8){logger[_0x1360[10]](_0x1360[28],_0xf2ebx8)})}},agentringnoanswer:function(_0xf2ebx6){return function(_0xf2ebx7){return ReportAgent[_0x1360[23]]({where:{uniqueid:_0xf2ebx6[_0x1360[21]],destuniqueid:_0xf2ebx6[_0x1360[22]]}})[_0x1360[20]](function(_0xf2ebx9){if(_0xf2ebx9){return _0xf2ebx9[_0x1360[19]]({lastevent:_0xf2ebx6[_0x1360[33]],reason:_0xf2ebx6[_0x1360[33]],agentringnoanswer:true,agentringnoanswerAt:_0xf2ebx6[_0x1360[13]]})}})[_0x1360[11]](function(_0xf2ebx8){logger[_0x1360[10]](_0x1360[32],_0xf2ebx8)})}},queuecallerabandon:function(_0xf2ebx6){return function(_0xf2ebx7){return ReportAgent[_0x1360[27]]({lastevent:_0x1360[35],agentringnoanswer:true,agentringnoanswerAt:_0xf2ebx6[_0x1360[13]],reason:_0x1360[35]},{where:{uniqueid:_0xf2ebx6[_0x1360[21]],reason:null},individualHooks:true})[_0x1360[20]](function(_0xf2ebxa){return {reportAgent:_0xf2ebxa,reportQueue:_0xf2ebx7}})[_0x1360[11]](function(_0xf2ebx8){logger[_0x1360[10]](_0x1360[34],_0xf2ebx8)})}},queuecallerunmanaged:function(_0xf2ebx6){return function(_0xf2ebx7){return ReportAgent[_0x1360[27]]({lastevent:_0x1360[36],agentringnoanswer:true,agentringnoanswerAt:_0xf2ebx6[_0x1360[13]],reason:_0xf2ebx6[_0x1360[37]]},{where:{uniqueid:_0xf2ebx6[_0x1360[21]],reason:null},individualHooks:true})[_0x1360[11]](function(_0xf2ebx8){logger[_0x1360[10]](_0x1360[34],_0xf2ebx8)})}}}}
\ No newline at end of file