Built motion from commit a3effcce5.|1.0.34
[motion.git] / server / config / ami / db / voiceAgentReport.js
index ac94f52..46c5a11 100644 (file)
@@ -1 +1 @@
-var _0xc4b4=["\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"];_0xc4b4[0];var BPromise=require(_0xc4b4[1]);var moment=require(_0xc4b4[2]);var _=require(_0xc4b4[3]);var ReportAgent=require(_0xc4b4[5])[_0xc4b4[4]];var logger=require(_0xc4b4[7])(_0xc4b4[6]);module[_0xc4b4[8]]= function(){return {agentcalled:function(_0xbf03x6){return function(_0xbf03x7){return ReportAgent[_0xc4b4[15]](_[_0xc4b4[14]](_0xbf03x6,{lastevent:_0xc4b4[12],agentcalledAt:_0xbf03x6[_0xc4b4[13]]}))[_0xc4b4[11]](function(_0xbf03x8){logger[_0xc4b4[10]](_0xc4b4[9],_0xbf03x8)})}},agentconnect:function(_0xbf03x6){return function(_0xbf03x7){return ReportAgent[_0xc4b4[23]]({where:{uniqueid:_0xbf03x6[_0xc4b4[21]],destuniqueid:_0xbf03x6[_0xc4b4[22]]}})[_0xc4b4[20]](function(_0xbf03x9){if(_0xbf03x9){return _0xbf03x9[_0xc4b4[19]]({lastevent:_0xc4b4[17],agentconnectAt:_0xbf03x6[_0xc4b4[13]],holdtime:_0xbf03x6[_0xc4b4[18]]})}})[_0xc4b4[11]](function(_0xbf03x8){logger[_0xc4b4[10]](_0xc4b4[16],_0xbf03x8)})}},answered_elsewhere:function(_0xbf03x6){return function(_0xbf03x7){return ReportAgent[_0xc4b4[27]]({lastevent:_0xc4b4[25],agentringnoanswer:true,agentringnoanswerAt:_0xbf03x6[_0xc4b4[13]],reason:_0xc4b4[25],answeredelsewheredestinationuniqueid:_0xbf03x6[_0xc4b4[22]],answeredelsewheremembername:_0xbf03x6[_0xc4b4[26]]},{where:{uniqueid:_0xbf03x6[_0xc4b4[21]],destuniqueid:{$ne:_0xbf03x6[_0xc4b4[22]]},reason:null}})[_0xc4b4[11]](function(_0xbf03x8){logger[_0xc4b4[10]](_0xc4b4[24],_0xbf03x8)})}},agentcomplete:function(_0xbf03x6){return function(_0xbf03x7){return ReportAgent[_0xc4b4[23]]({where:{uniqueid:_0xbf03x6[_0xc4b4[21]],destuniqueid:_0xbf03x6[_0xc4b4[22]]}})[_0xc4b4[20]](function(_0xbf03x9){if(_0xbf03x9){return _0xbf03x9[_0xc4b4[19]]({lastevent:_0xc4b4[29],agentcomplete:true,agentcompleteAt:_0xbf03x6[_0xc4b4[13]],talktime:_0xbf03x6[_0xc4b4[30]],reason:_0xbf03x6[_0xc4b4[31]]})}})[_0xc4b4[11]](function(_0xbf03x8){logger[_0xc4b4[10]](_0xc4b4[28],_0xbf03x8)})}},agentringnoanswer:function(_0xbf03x6){return function(_0xbf03x7){return ReportAgent[_0xc4b4[23]]({where:{uniqueid:_0xbf03x6[_0xc4b4[21]],destuniqueid:_0xbf03x6[_0xc4b4[22]]}})[_0xc4b4[20]](function(_0xbf03x9){if(_0xbf03x9){return _0xbf03x9[_0xc4b4[19]]({lastevent:_0xbf03x6[_0xc4b4[33]],reason:_0xbf03x6[_0xc4b4[33]],agentringnoanswer:true,agentringnoanswerAt:_0xbf03x6[_0xc4b4[13]]})}})[_0xc4b4[11]](function(_0xbf03x8){logger[_0xc4b4[10]](_0xc4b4[32],_0xbf03x8)})}},queuecallerabandon:function(_0xbf03x6){return function(_0xbf03x7){return ReportAgent[_0xc4b4[27]]({lastevent:_0xc4b4[35],agentringnoanswer:true,agentringnoanswerAt:_0xbf03x6[_0xc4b4[13]],reason:_0xc4b4[35]},{where:{uniqueid:_0xbf03x6[_0xc4b4[21]],reason:null},individualHooks:true})[_0xc4b4[20]](function(_0xbf03xa){return {reportAgent:_0xbf03xa,reportQueue:_0xbf03x7}})[_0xc4b4[11]](function(_0xbf03x8){logger[_0xc4b4[10]](_0xc4b4[34],_0xbf03x8)})}},queuecallerunmanaged:function(_0xbf03x6){return function(_0xbf03x7){return ReportAgent[_0xc4b4[27]]({lastevent:_0xc4b4[36],agentringnoanswer:true,agentringnoanswerAt:_0xbf03x6[_0xc4b4[13]],reason:_0xbf03x6[_0xc4b4[37]]},{where:{uniqueid:_0xbf03x6[_0xc4b4[21]],reason:null},individualHooks:true})[_0xc4b4[11]](function(_0xbf03x8){logger[_0xc4b4[10]](_0xc4b4[34],_0xbf03x8)})}}}}
\ No newline at end of file
+var _0xebc3=["\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"];_0xebc3[0];var BPromise=require(_0xebc3[1]);var moment=require(_0xebc3[2]);var _=require(_0xebc3[3]);var ReportAgent=require(_0xebc3[5])[_0xebc3[4]];var logger=require(_0xebc3[7])(_0xebc3[6]);module[_0xebc3[8]]= function(){return {agentcalled:function(_0xe2e7x6){return function(_0xe2e7x7){return ReportAgent[_0xebc3[15]](_[_0xebc3[14]](_0xe2e7x6,{lastevent:_0xebc3[12],agentcalledAt:_0xe2e7x6[_0xebc3[13]]}))[_0xebc3[11]](function(_0xe2e7x8){logger[_0xebc3[10]](_0xebc3[9],_0xe2e7x8)})}},agentconnect:function(_0xe2e7x6){return function(_0xe2e7x7){return ReportAgent[_0xebc3[23]]({where:{uniqueid:_0xe2e7x6[_0xebc3[21]],destuniqueid:_0xe2e7x6[_0xebc3[22]]}})[_0xebc3[20]](function(_0xe2e7x9){if(_0xe2e7x9){return _0xe2e7x9[_0xebc3[19]]({lastevent:_0xebc3[17],agentconnectAt:_0xe2e7x6[_0xebc3[13]],holdtime:_0xe2e7x6[_0xebc3[18]]})}})[_0xebc3[11]](function(_0xe2e7x8){logger[_0xebc3[10]](_0xebc3[16],_0xe2e7x8)})}},answered_elsewhere:function(_0xe2e7x6){return function(_0xe2e7x7){return ReportAgent[_0xebc3[27]]({lastevent:_0xebc3[25],agentringnoanswer:true,agentringnoanswerAt:_0xe2e7x6[_0xebc3[13]],reason:_0xebc3[25],answeredelsewheredestinationuniqueid:_0xe2e7x6[_0xebc3[22]],answeredelsewheremembername:_0xe2e7x6[_0xebc3[26]]},{where:{uniqueid:_0xe2e7x6[_0xebc3[21]],destuniqueid:{$ne:_0xe2e7x6[_0xebc3[22]]},reason:null}})[_0xebc3[11]](function(_0xe2e7x8){logger[_0xebc3[10]](_0xebc3[24],_0xe2e7x8)})}},agentcomplete:function(_0xe2e7x6){return function(_0xe2e7x7){return ReportAgent[_0xebc3[23]]({where:{uniqueid:_0xe2e7x6[_0xebc3[21]],destuniqueid:_0xe2e7x6[_0xebc3[22]]}})[_0xebc3[20]](function(_0xe2e7x9){if(_0xe2e7x9){return _0xe2e7x9[_0xebc3[19]]({lastevent:_0xebc3[29],agentcomplete:true,agentcompleteAt:_0xe2e7x6[_0xebc3[13]],talktime:_0xe2e7x6[_0xebc3[30]],reason:_0xe2e7x6[_0xebc3[31]]})}})[_0xebc3[11]](function(_0xe2e7x8){logger[_0xebc3[10]](_0xebc3[28],_0xe2e7x8)})}},agentringnoanswer:function(_0xe2e7x6){return function(_0xe2e7x7){return ReportAgent[_0xebc3[23]]({where:{uniqueid:_0xe2e7x6[_0xebc3[21]],destuniqueid:_0xe2e7x6[_0xebc3[22]]}})[_0xebc3[20]](function(_0xe2e7x9){if(_0xe2e7x9){return _0xe2e7x9[_0xebc3[19]]({lastevent:_0xe2e7x6[_0xebc3[33]],reason:_0xe2e7x6[_0xebc3[33]],agentringnoanswer:true,agentringnoanswerAt:_0xe2e7x6[_0xebc3[13]]})}})[_0xebc3[11]](function(_0xe2e7x8){logger[_0xebc3[10]](_0xebc3[32],_0xe2e7x8)})}},queuecallerabandon:function(_0xe2e7x6){return function(_0xe2e7x7){return ReportAgent[_0xebc3[27]]({lastevent:_0xebc3[35],agentringnoanswer:true,agentringnoanswerAt:_0xe2e7x6[_0xebc3[13]],reason:_0xebc3[35]},{where:{uniqueid:_0xe2e7x6[_0xebc3[21]],reason:null},individualHooks:true})[_0xebc3[20]](function(_0xe2e7xa){return {reportAgent:_0xe2e7xa,reportQueue:_0xe2e7x7}})[_0xebc3[11]](function(_0xe2e7x8){logger[_0xebc3[10]](_0xebc3[34],_0xe2e7x8)})}},queuecallerunmanaged:function(_0xe2e7x6){return function(_0xe2e7x7){return ReportAgent[_0xebc3[27]]({lastevent:_0xebc3[36],agentringnoanswer:true,agentringnoanswerAt:_0xe2e7x6[_0xebc3[13]],reason:_0xe2e7x6[_0xebc3[37]]},{where:{uniqueid:_0xe2e7x6[_0xebc3[21]],reason:null},individualHooks:true})[_0xebc3[11]](function(_0xe2e7x8){logger[_0xebc3[10]](_0xebc3[34],_0xe2e7x8)})}}}}
\ No newline at end of file