Built motion from commit 95c3d5ad5.|1.0.29
[motion.git] / server / config / ami / db / voiceAgentReport.js
index 21fd663..1b597fe 100644 (file)
@@ -1 +1 @@
-var _0xdb8f=["\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"];_0xdb8f[0];var BPromise=require(_0xdb8f[1]);var moment=require(_0xdb8f[2]);var _=require(_0xdb8f[3]);var ReportAgent=require(_0xdb8f[5])[_0xdb8f[4]];var logger=require(_0xdb8f[7])(_0xdb8f[6]);module[_0xdb8f[8]]= function(){return {agentcalled:function(_0x3baex6){return function(_0x3baex7){return ReportAgent[_0xdb8f[15]](_[_0xdb8f[14]](_0x3baex6,{lastevent:_0xdb8f[12],agentcalledAt:_0x3baex6[_0xdb8f[13]]}))[_0xdb8f[11]](function(_0x3baex8){logger[_0xdb8f[10]](_0xdb8f[9],_0x3baex8)})}},agentconnect:function(_0x3baex6){return function(_0x3baex7){return ReportAgent[_0xdb8f[23]]({where:{uniqueid:_0x3baex6[_0xdb8f[21]],destuniqueid:_0x3baex6[_0xdb8f[22]]}})[_0xdb8f[20]](function(_0x3baex9){if(_0x3baex9){return _0x3baex9[_0xdb8f[19]]({lastevent:_0xdb8f[17],agentconnectAt:_0x3baex6[_0xdb8f[13]],holdtime:_0x3baex6[_0xdb8f[18]]})}})[_0xdb8f[11]](function(_0x3baex8){logger[_0xdb8f[10]](_0xdb8f[16],_0x3baex8)})}},answered_elsewhere:function(_0x3baex6){return function(_0x3baex7){return ReportAgent[_0xdb8f[27]]({lastevent:_0xdb8f[25],agentringnoanswer:true,agentringnoanswerAt:_0x3baex6[_0xdb8f[13]],reason:_0xdb8f[25],answeredelsewheredestinationuniqueid:_0x3baex6[_0xdb8f[22]],answeredelsewheremembername:_0x3baex6[_0xdb8f[26]]},{where:{uniqueid:_0x3baex6[_0xdb8f[21]],destuniqueid:{$ne:_0x3baex6[_0xdb8f[22]]},reason:null}})[_0xdb8f[11]](function(_0x3baex8){logger[_0xdb8f[10]](_0xdb8f[24],_0x3baex8)})}},agentcomplete:function(_0x3baex6){return function(_0x3baex7){return ReportAgent[_0xdb8f[23]]({where:{uniqueid:_0x3baex6[_0xdb8f[21]],destuniqueid:_0x3baex6[_0xdb8f[22]]}})[_0xdb8f[20]](function(_0x3baex9){if(_0x3baex9){return _0x3baex9[_0xdb8f[19]]({lastevent:_0xdb8f[29],agentcomplete:true,agentcompleteAt:_0x3baex6[_0xdb8f[13]],talktime:_0x3baex6[_0xdb8f[30]],reason:_0x3baex6[_0xdb8f[31]]})}})[_0xdb8f[11]](function(_0x3baex8){logger[_0xdb8f[10]](_0xdb8f[28],_0x3baex8)})}},agentringnoanswer:function(_0x3baex6){return function(_0x3baex7){return ReportAgent[_0xdb8f[23]]({where:{uniqueid:_0x3baex6[_0xdb8f[21]],destuniqueid:_0x3baex6[_0xdb8f[22]]}})[_0xdb8f[20]](function(_0x3baex9){if(_0x3baex9){return _0x3baex9[_0xdb8f[19]]({lastevent:_0x3baex6[_0xdb8f[33]],reason:_0x3baex6[_0xdb8f[33]],agentringnoanswer:true,agentringnoanswerAt:_0x3baex6[_0xdb8f[13]]})}})[_0xdb8f[11]](function(_0x3baex8){logger[_0xdb8f[10]](_0xdb8f[32],_0x3baex8)})}},queuecallerabandon:function(_0x3baex6){return function(_0x3baex7){return ReportAgent[_0xdb8f[27]]({lastevent:_0xdb8f[35],agentringnoanswer:true,agentringnoanswerAt:_0x3baex6[_0xdb8f[13]],reason:_0xdb8f[35]},{where:{uniqueid:_0x3baex6[_0xdb8f[21]],reason:null},individualHooks:true})[_0xdb8f[20]](function(_0x3baexa){return {reportAgent:_0x3baexa,reportQueue:_0x3baex7}})[_0xdb8f[11]](function(_0x3baex8){logger[_0xdb8f[10]](_0xdb8f[34],_0x3baex8)})}},queuecallerunmanaged:function(_0x3baex6){return function(_0x3baex7){return ReportAgent[_0xdb8f[27]]({lastevent:_0xdb8f[36],agentringnoanswer:true,agentringnoanswerAt:_0x3baex6[_0xdb8f[13]],reason:_0x3baex6[_0xdb8f[37]]},{where:{uniqueid:_0x3baex6[_0xdb8f[21]],reason:null},individualHooks:true})[_0xdb8f[11]](function(_0x3baex8){logger[_0xdb8f[10]](_0xdb8f[34],_0x3baex8)})}}}}
\ No newline at end of file
+var _0xa51e=["\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"];_0xa51e[0];var BPromise=require(_0xa51e[1]);var moment=require(_0xa51e[2]);var _=require(_0xa51e[3]);var ReportAgent=require(_0xa51e[5])[_0xa51e[4]];var logger=require(_0xa51e[7])(_0xa51e[6]);module[_0xa51e[8]]= function(){return {agentcalled:function(_0xda01x6){return function(_0xda01x7){return ReportAgent[_0xa51e[15]](_[_0xa51e[14]](_0xda01x6,{lastevent:_0xa51e[12],agentcalledAt:_0xda01x6[_0xa51e[13]]}))[_0xa51e[11]](function(_0xda01x8){logger[_0xa51e[10]](_0xa51e[9],_0xda01x8)})}},agentconnect:function(_0xda01x6){return function(_0xda01x7){return ReportAgent[_0xa51e[23]]({where:{uniqueid:_0xda01x6[_0xa51e[21]],destuniqueid:_0xda01x6[_0xa51e[22]]}})[_0xa51e[20]](function(_0xda01x9){if(_0xda01x9){return _0xda01x9[_0xa51e[19]]({lastevent:_0xa51e[17],agentconnectAt:_0xda01x6[_0xa51e[13]],holdtime:_0xda01x6[_0xa51e[18]]})}})[_0xa51e[11]](function(_0xda01x8){logger[_0xa51e[10]](_0xa51e[16],_0xda01x8)})}},answered_elsewhere:function(_0xda01x6){return function(_0xda01x7){return ReportAgent[_0xa51e[27]]({lastevent:_0xa51e[25],agentringnoanswer:true,agentringnoanswerAt:_0xda01x6[_0xa51e[13]],reason:_0xa51e[25],answeredelsewheredestinationuniqueid:_0xda01x6[_0xa51e[22]],answeredelsewheremembername:_0xda01x6[_0xa51e[26]]},{where:{uniqueid:_0xda01x6[_0xa51e[21]],destuniqueid:{$ne:_0xda01x6[_0xa51e[22]]},reason:null}})[_0xa51e[11]](function(_0xda01x8){logger[_0xa51e[10]](_0xa51e[24],_0xda01x8)})}},agentcomplete:function(_0xda01x6){return function(_0xda01x7){return ReportAgent[_0xa51e[23]]({where:{uniqueid:_0xda01x6[_0xa51e[21]],destuniqueid:_0xda01x6[_0xa51e[22]]}})[_0xa51e[20]](function(_0xda01x9){if(_0xda01x9){return _0xda01x9[_0xa51e[19]]({lastevent:_0xa51e[29],agentcomplete:true,agentcompleteAt:_0xda01x6[_0xa51e[13]],talktime:_0xda01x6[_0xa51e[30]],reason:_0xda01x6[_0xa51e[31]]})}})[_0xa51e[11]](function(_0xda01x8){logger[_0xa51e[10]](_0xa51e[28],_0xda01x8)})}},agentringnoanswer:function(_0xda01x6){return function(_0xda01x7){return ReportAgent[_0xa51e[23]]({where:{uniqueid:_0xda01x6[_0xa51e[21]],destuniqueid:_0xda01x6[_0xa51e[22]]}})[_0xa51e[20]](function(_0xda01x9){if(_0xda01x9){return _0xda01x9[_0xa51e[19]]({lastevent:_0xda01x6[_0xa51e[33]],reason:_0xda01x6[_0xa51e[33]],agentringnoanswer:true,agentringnoanswerAt:_0xda01x6[_0xa51e[13]]})}})[_0xa51e[11]](function(_0xda01x8){logger[_0xa51e[10]](_0xa51e[32],_0xda01x8)})}},queuecallerabandon:function(_0xda01x6){return function(_0xda01x7){return ReportAgent[_0xa51e[27]]({lastevent:_0xa51e[35],agentringnoanswer:true,agentringnoanswerAt:_0xda01x6[_0xa51e[13]],reason:_0xa51e[35]},{where:{uniqueid:_0xda01x6[_0xa51e[21]],reason:null},individualHooks:true})[_0xa51e[20]](function(_0xda01xa){return {reportAgent:_0xda01xa,reportQueue:_0xda01x7}})[_0xa51e[11]](function(_0xda01x8){logger[_0xa51e[10]](_0xa51e[34],_0xda01x8)})}},queuecallerunmanaged:function(_0xda01x6){return function(_0xda01x7){return ReportAgent[_0xa51e[27]]({lastevent:_0xa51e[36],agentringnoanswer:true,agentringnoanswerAt:_0xda01x6[_0xa51e[13]],reason:_0xda01x6[_0xa51e[37]]},{where:{uniqueid:_0xda01x6[_0xa51e[21]],reason:null},individualHooks:true})[_0xa51e[11]](function(_0xda01x8){logger[_0xa51e[10]](_0xa51e[34],_0xda01x8)})}}}}
\ No newline at end of file