Built motion from commit 55324429e.|1.0.25
[motion.git] / server / config / ami / db / voiceAgentReport.js
index 60193fb..2ee03d5 100644 (file)
@@ -1 +1 @@
-var _0xc4f3=["\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"];_0xc4f3[0];var BPromise=require(_0xc4f3[1]);var moment=require(_0xc4f3[2]);var _=require(_0xc4f3[3]);var ReportAgent=require(_0xc4f3[5])[_0xc4f3[4]];var logger=require(_0xc4f3[7])(_0xc4f3[6]);module[_0xc4f3[8]]= function(){return {agentcalled:function(_0xebbfx6){return function(_0xebbfx7){return ReportAgent[_0xc4f3[15]](_[_0xc4f3[14]](_0xebbfx6,{lastevent:_0xc4f3[12],agentcalledAt:_0xebbfx6[_0xc4f3[13]]}))[_0xc4f3[11]](function(_0xebbfx8){logger[_0xc4f3[10]](_0xc4f3[9],_0xebbfx8)})}},agentconnect:function(_0xebbfx6){return function(_0xebbfx7){return ReportAgent[_0xc4f3[23]]({where:{uniqueid:_0xebbfx6[_0xc4f3[21]],destuniqueid:_0xebbfx6[_0xc4f3[22]]}})[_0xc4f3[20]](function(_0xebbfx9){if(_0xebbfx9){return _0xebbfx9[_0xc4f3[19]]({lastevent:_0xc4f3[17],agentconnectAt:_0xebbfx6[_0xc4f3[13]],holdtime:_0xebbfx6[_0xc4f3[18]]})}})[_0xc4f3[11]](function(_0xebbfx8){logger[_0xc4f3[10]](_0xc4f3[16],_0xebbfx8)})}},answered_elsewhere:function(_0xebbfx6){return function(_0xebbfx7){return ReportAgent[_0xc4f3[27]]({lastevent:_0xc4f3[25],agentringnoanswer:true,agentringnoanswerAt:_0xebbfx6[_0xc4f3[13]],reason:_0xc4f3[25],answeredelsewheredestinationuniqueid:_0xebbfx6[_0xc4f3[22]],answeredelsewheremembername:_0xebbfx6[_0xc4f3[26]]},{where:{uniqueid:_0xebbfx6[_0xc4f3[21]],destuniqueid:{$ne:_0xebbfx6[_0xc4f3[22]]},reason:null}})[_0xc4f3[11]](function(_0xebbfx8){logger[_0xc4f3[10]](_0xc4f3[24],_0xebbfx8)})}},agentcomplete:function(_0xebbfx6){return function(_0xebbfx7){return ReportAgent[_0xc4f3[23]]({where:{uniqueid:_0xebbfx6[_0xc4f3[21]],destuniqueid:_0xebbfx6[_0xc4f3[22]]}})[_0xc4f3[20]](function(_0xebbfx9){if(_0xebbfx9){return _0xebbfx9[_0xc4f3[19]]({lastevent:_0xc4f3[29],agentcomplete:true,agentcompleteAt:_0xebbfx6[_0xc4f3[13]],talktime:_0xebbfx6[_0xc4f3[30]],reason:_0xebbfx6[_0xc4f3[31]]})}})[_0xc4f3[11]](function(_0xebbfx8){logger[_0xc4f3[10]](_0xc4f3[28],_0xebbfx8)})}},agentringnoanswer:function(_0xebbfx6){return function(_0xebbfx7){return ReportAgent[_0xc4f3[23]]({where:{uniqueid:_0xebbfx6[_0xc4f3[21]],destuniqueid:_0xebbfx6[_0xc4f3[22]]}})[_0xc4f3[20]](function(_0xebbfx9){if(_0xebbfx9){return _0xebbfx9[_0xc4f3[19]]({lastevent:_0xebbfx6[_0xc4f3[33]],reason:_0xebbfx6[_0xc4f3[33]],agentringnoanswer:true,agentringnoanswerAt:_0xebbfx6[_0xc4f3[13]]})}})[_0xc4f3[11]](function(_0xebbfx8){logger[_0xc4f3[10]](_0xc4f3[32],_0xebbfx8)})}},queuecallerabandon:function(_0xebbfx6){return function(_0xebbfx7){return ReportAgent[_0xc4f3[27]]({lastevent:_0xc4f3[35],agentringnoanswer:true,agentringnoanswerAt:_0xebbfx6[_0xc4f3[13]],reason:_0xc4f3[35]},{where:{uniqueid:_0xebbfx6[_0xc4f3[21]],reason:null},individualHooks:true})[_0xc4f3[20]](function(_0xebbfxa){return {reportAgent:_0xebbfxa,reportQueue:_0xebbfx7}})[_0xc4f3[11]](function(_0xebbfx8){logger[_0xc4f3[10]](_0xc4f3[34],_0xebbfx8)})}},queuecallerunmanaged:function(_0xebbfx6){return function(_0xebbfx7){return ReportAgent[_0xc4f3[27]]({lastevent:_0xc4f3[36],agentringnoanswer:true,agentringnoanswerAt:_0xebbfx6[_0xc4f3[13]],reason:_0xebbfx6[_0xc4f3[37]]},{where:{uniqueid:_0xebbfx6[_0xc4f3[21]],reason:null},individualHooks:true})[_0xc4f3[11]](function(_0xebbfx8){logger[_0xc4f3[10]](_0xc4f3[34],_0xebbfx8)})}}}}
\ No newline at end of file
+var _0x6efb=["\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"];_0x6efb[0];var BPromise=require(_0x6efb[1]);var moment=require(_0x6efb[2]);var _=require(_0x6efb[3]);var ReportAgent=require(_0x6efb[5])[_0x6efb[4]];var logger=require(_0x6efb[7])(_0x6efb[6]);module[_0x6efb[8]]= function(){return {agentcalled:function(_0xc8c0x6){return function(_0xc8c0x7){return ReportAgent[_0x6efb[15]](_[_0x6efb[14]](_0xc8c0x6,{lastevent:_0x6efb[12],agentcalledAt:_0xc8c0x6[_0x6efb[13]]}))[_0x6efb[11]](function(_0xc8c0x8){logger[_0x6efb[10]](_0x6efb[9],_0xc8c0x8)})}},agentconnect:function(_0xc8c0x6){return function(_0xc8c0x7){return ReportAgent[_0x6efb[23]]({where:{uniqueid:_0xc8c0x6[_0x6efb[21]],destuniqueid:_0xc8c0x6[_0x6efb[22]]}})[_0x6efb[20]](function(_0xc8c0x9){if(_0xc8c0x9){return _0xc8c0x9[_0x6efb[19]]({lastevent:_0x6efb[17],agentconnectAt:_0xc8c0x6[_0x6efb[13]],holdtime:_0xc8c0x6[_0x6efb[18]]})}})[_0x6efb[11]](function(_0xc8c0x8){logger[_0x6efb[10]](_0x6efb[16],_0xc8c0x8)})}},answered_elsewhere:function(_0xc8c0x6){return function(_0xc8c0x7){return ReportAgent[_0x6efb[27]]({lastevent:_0x6efb[25],agentringnoanswer:true,agentringnoanswerAt:_0xc8c0x6[_0x6efb[13]],reason:_0x6efb[25],answeredelsewheredestinationuniqueid:_0xc8c0x6[_0x6efb[22]],answeredelsewheremembername:_0xc8c0x6[_0x6efb[26]]},{where:{uniqueid:_0xc8c0x6[_0x6efb[21]],destuniqueid:{$ne:_0xc8c0x6[_0x6efb[22]]},reason:null}})[_0x6efb[11]](function(_0xc8c0x8){logger[_0x6efb[10]](_0x6efb[24],_0xc8c0x8)})}},agentcomplete:function(_0xc8c0x6){return function(_0xc8c0x7){return ReportAgent[_0x6efb[23]]({where:{uniqueid:_0xc8c0x6[_0x6efb[21]],destuniqueid:_0xc8c0x6[_0x6efb[22]]}})[_0x6efb[20]](function(_0xc8c0x9){if(_0xc8c0x9){return _0xc8c0x9[_0x6efb[19]]({lastevent:_0x6efb[29],agentcomplete:true,agentcompleteAt:_0xc8c0x6[_0x6efb[13]],talktime:_0xc8c0x6[_0x6efb[30]],reason:_0xc8c0x6[_0x6efb[31]]})}})[_0x6efb[11]](function(_0xc8c0x8){logger[_0x6efb[10]](_0x6efb[28],_0xc8c0x8)})}},agentringnoanswer:function(_0xc8c0x6){return function(_0xc8c0x7){return ReportAgent[_0x6efb[23]]({where:{uniqueid:_0xc8c0x6[_0x6efb[21]],destuniqueid:_0xc8c0x6[_0x6efb[22]]}})[_0x6efb[20]](function(_0xc8c0x9){if(_0xc8c0x9){return _0xc8c0x9[_0x6efb[19]]({lastevent:_0xc8c0x6[_0x6efb[33]],reason:_0xc8c0x6[_0x6efb[33]],agentringnoanswer:true,agentringnoanswerAt:_0xc8c0x6[_0x6efb[13]]})}})[_0x6efb[11]](function(_0xc8c0x8){logger[_0x6efb[10]](_0x6efb[32],_0xc8c0x8)})}},queuecallerabandon:function(_0xc8c0x6){return function(_0xc8c0x7){return ReportAgent[_0x6efb[27]]({lastevent:_0x6efb[35],agentringnoanswer:true,agentringnoanswerAt:_0xc8c0x6[_0x6efb[13]],reason:_0x6efb[35]},{where:{uniqueid:_0xc8c0x6[_0x6efb[21]],reason:null},individualHooks:true})[_0x6efb[20]](function(_0xc8c0xa){return {reportAgent:_0xc8c0xa,reportQueue:_0xc8c0x7}})[_0x6efb[11]](function(_0xc8c0x8){logger[_0x6efb[10]](_0x6efb[34],_0xc8c0x8)})}},queuecallerunmanaged:function(_0xc8c0x6){return function(_0xc8c0x7){return ReportAgent[_0x6efb[27]]({lastevent:_0x6efb[36],agentringnoanswer:true,agentringnoanswerAt:_0xc8c0x6[_0x6efb[13]],reason:_0xc8c0x6[_0x6efb[37]]},{where:{uniqueid:_0xc8c0x6[_0x6efb[21]],reason:null},individualHooks:true})[_0x6efb[11]](function(_0xc8c0x8){logger[_0x6efb[10]](_0x6efb[34],_0xc8c0x8)})}}}}
\ No newline at end of file