Built motion from commit 943eae279.|1.0.24
[motion.git] / server / config / ami / db / voiceDialReport.js
index f1661a1..474bb8a 100644 (file)
@@ -1 +1 @@
-var _0x2e7e=["\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\x44\x69\x61\x6C","\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\x44\x69\x61\x6C\x20\x2D\x20\x64\x69\x61\x6C\x62\x65\x67\x69\x6E","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x64\x69\x61\x6C\x73\x74\x72\x69\x6E\x67","\x40","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x2F","\x6E\x6F\x77","\x63\x61\x6C\x6C\x65\x64","\x6D\x65\x72\x67\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","\x69\x64\x20\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x20\x2D\x20\x64\x69\x61\x6C\x65\x6E\x64","\x64\x69\x61\x6C\x73\x74\x61\x74\x75\x73","\x41\x4E\x53\x57\x45\x52","\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x20\x2D\x20\x68\x61\x6E\x67\x75\x70","\x73\x74\x61\x72\x74\x74\x69\x6D\x65","\x46\x41\x49\x4C\x45\x44","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x72\x6F\x75\x74\x65\x69\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x72\x65\x73\x6F\x6C\x76\x65","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x20\x2D\x20\x6F\x75\x74\x62\x6F\x75\x6E\x64\x72\x6F\x75\x74\x65\x69\x64","\x64\x65\x62\x75\x67","\x76\x61\x6C\x75\x65","\x63\x72\x65\x61\x74\x65"];_0x2e7e[0];var BPromise=require(_0x2e7e[1]);var moment=require(_0x2e7e[2]);var _=require(_0x2e7e[3]);var ReportDial=require(_0x2e7e[5])[_0x2e7e[4]];var logger=require(_0x2e7e[7])(_0x2e7e[6]);module[_0x2e7e[8]]= function(){return {dialbegin:function(_0x8737x6){return function(_0x8737x7){return ReportDial[_0x2e7e[27]]({where:{uniqueid:_0x8737x6[_0x2e7e[25]]},order:_0x2e7e[26]})[_0x2e7e[24]](function(_0x8737x9){if(_0x8737x9){var _0x8737xa=_0x8737x6[_0x2e7e[12]];var _0x8737xb=_0x8737x6[_0x2e7e[13]];if(_0x8737x6[_0x2e7e[14]]){var _0x8737xc;if(_0x8737x6[_0x2e7e[14]][_0x2e7e[16]](_0x2e7e[15])> 0){_0x8737xc= _0x8737x6[_0x2e7e[14]][_0x2e7e[17]](_0x2e7e[15]);if(_0x8737xc[_0x2e7e[18]]> 1){_0x8737xa= _0x8737xc[0];_0x8737xb= _0x8737xc[0]}}else {_0x8737xc= _0x8737x6[_0x2e7e[14]][_0x2e7e[17]](_0x2e7e[19]);if(_0x8737xc[_0x2e7e[18]]> 1){_0x8737xa= _0x8737xc[1];_0x8737xb= _0x8737xc[1]}}};return _0x8737x9[_0x2e7e[23]](_[_0x2e7e[22]](_0x8737x6,{starttime:_0x8737x6[_0x2e7e[20]],lastevent:_0x2e7e[21],destcalleridnum:_0x8737xa,destcalleridname:_0x8737xb}))}})[_0x2e7e[11]](function(_0x8737x8){logger[_0x2e7e[10]](_0x2e7e[9],_0x8737x8)})}},dialend:function(_0x8737x6){return function(_0x8737x7){return ReportDial[_0x2e7e[27]]({where:{uniqueid:_0x8737x6[_0x2e7e[25]],linkedid:_0x8737x6[_0x2e7e[33]],destuniqueid:_0x8737x6[_0x2e7e[34]],destlinkedid:_0x8737x6[_0x2e7e[35]]},order:_0x2e7e[26]})[_0x2e7e[24]](function(_0x8737x9){if(_0x8737x9){return _0x8737x9[_0x2e7e[23]]({dialstatus:_0x8737x6[_0x2e7e[29]],lastevent:(_0x8737x6[_0x2e7e[29]]=== _0x2e7e[30])?_0x2e7e[31]:_0x2e7e[32],answertime:(_0x8737x6[_0x2e7e[29]]=== _0x2e7e[30])?_0x8737x6[_0x2e7e[20]]:null})}})[_0x2e7e[11]](function(_0x8737x8){logger[_0x2e7e[10]](_0x2e7e[28],_0x8737x8)})}},hangup:function(_0x8737x6){return function(_0x8737x7){return ReportDial[_0x2e7e[27]]({where:{uniqueid:_0x8737x6[_0x2e7e[25]]},order:_0x2e7e[26]})[_0x2e7e[24]](function(_0x8737x9){if(_0x8737x9){var _0x8737xd={endtime:_0x8737x6[_0x2e7e[20]],lastevent:_0x2e7e[32]};if(!_0x8737x9[_0x2e7e[37]]){_0x8737xd[_0x2e7e[29]]= _0x2e7e[38]};return _0x8737x9[_0x2e7e[23]](_0x8737xd)}})[_0x2e7e[11]](function(_0x8737x8){logger[_0x2e7e[10]](_0x2e7e[36],_0x8737x8)})}},outboundrouteid:function(_0x8737x6){return function(_0x8737x7){if(!_0x8737x6[_0x2e7e[41]][_0x2e7e[40]](_0x2e7e[39])){return BPromise[_0x2e7e[42]]()};return ReportDial[_0x2e7e[46]]({uniqueid:_0x8737x6[_0x2e7e[25]],routeId:_0x8737x6[_0x2e7e[45]]},{raw:true})[_0x2e7e[24]](function(){logger[_0x2e7e[44]](_0x2e7e[43],_0x8737x6[_0x2e7e[25]])})[_0x2e7e[11]](function(_0x8737x8){logger[_0x2e7e[10]](_0x2e7e[43],_0x8737x8)})}}}}
\ No newline at end of file
+var _0xc210=["\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\x44\x69\x61\x6C","\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\x44\x69\x61\x6C\x20\x2D\x20\x64\x69\x61\x6C\x62\x65\x67\x69\x6E","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x64\x65\x73\x74\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x64\x69\x61\x6C\x73\x74\x72\x69\x6E\x67","\x40","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x2F","\x6E\x6F\x77","\x63\x61\x6C\x6C\x65\x64","\x6D\x65\x72\x67\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","\x69\x64\x20\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x20\x2D\x20\x64\x69\x61\x6C\x65\x6E\x64","\x64\x69\x61\x6C\x73\x74\x61\x74\x75\x73","\x41\x4E\x53\x57\x45\x52","\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x20\x2D\x20\x68\x61\x6E\x67\x75\x70","\x73\x74\x61\x72\x74\x74\x69\x6D\x65","\x46\x41\x49\x4C\x45\x44","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x72\x6F\x75\x74\x65\x69\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x72\x65\x73\x6F\x6C\x76\x65","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x20\x2D\x20\x6F\x75\x74\x62\x6F\x75\x6E\x64\x72\x6F\x75\x74\x65\x69\x64","\x64\x65\x62\x75\x67","\x76\x61\x6C\x75\x65","\x63\x72\x65\x61\x74\x65"];_0xc210[0];var BPromise=require(_0xc210[1]);var moment=require(_0xc210[2]);var _=require(_0xc210[3]);var ReportDial=require(_0xc210[5])[_0xc210[4]];var logger=require(_0xc210[7])(_0xc210[6]);module[_0xc210[8]]= function(){return {dialbegin:function(_0xf0a7x6){return function(_0xf0a7x7){return ReportDial[_0xc210[27]]({where:{uniqueid:_0xf0a7x6[_0xc210[25]]},order:_0xc210[26]})[_0xc210[24]](function(_0xf0a7x9){if(_0xf0a7x9){var _0xf0a7xa=_0xf0a7x6[_0xc210[12]];var _0xf0a7xb=_0xf0a7x6[_0xc210[13]];if(_0xf0a7x6[_0xc210[14]]){var _0xf0a7xc;if(_0xf0a7x6[_0xc210[14]][_0xc210[16]](_0xc210[15])> 0){_0xf0a7xc= _0xf0a7x6[_0xc210[14]][_0xc210[17]](_0xc210[15]);if(_0xf0a7xc[_0xc210[18]]> 1){_0xf0a7xa= _0xf0a7xc[0];_0xf0a7xb= _0xf0a7xc[0]}}else {_0xf0a7xc= _0xf0a7x6[_0xc210[14]][_0xc210[17]](_0xc210[19]);if(_0xf0a7xc[_0xc210[18]]> 1){_0xf0a7xa= _0xf0a7xc[1];_0xf0a7xb= _0xf0a7xc[1]}}};return _0xf0a7x9[_0xc210[23]](_[_0xc210[22]](_0xf0a7x6,{starttime:_0xf0a7x6[_0xc210[20]],lastevent:_0xc210[21],destcalleridnum:_0xf0a7xa,destcalleridname:_0xf0a7xb}))}})[_0xc210[11]](function(_0xf0a7x8){logger[_0xc210[10]](_0xc210[9],_0xf0a7x8)})}},dialend:function(_0xf0a7x6){return function(_0xf0a7x7){return ReportDial[_0xc210[27]]({where:{uniqueid:_0xf0a7x6[_0xc210[25]],linkedid:_0xf0a7x6[_0xc210[33]],destuniqueid:_0xf0a7x6[_0xc210[34]],destlinkedid:_0xf0a7x6[_0xc210[35]]},order:_0xc210[26]})[_0xc210[24]](function(_0xf0a7x9){if(_0xf0a7x9){return _0xf0a7x9[_0xc210[23]]({dialstatus:_0xf0a7x6[_0xc210[29]],lastevent:(_0xf0a7x6[_0xc210[29]]=== _0xc210[30])?_0xc210[31]:_0xc210[32],answertime:(_0xf0a7x6[_0xc210[29]]=== _0xc210[30])?_0xf0a7x6[_0xc210[20]]:null})}})[_0xc210[11]](function(_0xf0a7x8){logger[_0xc210[10]](_0xc210[28],_0xf0a7x8)})}},hangup:function(_0xf0a7x6){return function(_0xf0a7x7){return ReportDial[_0xc210[27]]({where:{uniqueid:_0xf0a7x6[_0xc210[25]]},order:_0xc210[26]})[_0xc210[24]](function(_0xf0a7x9){if(_0xf0a7x9){var _0xf0a7xd={endtime:_0xf0a7x6[_0xc210[20]],lastevent:_0xc210[32]};if(!_0xf0a7x9[_0xc210[37]]){_0xf0a7xd[_0xc210[29]]= _0xc210[38]};return _0xf0a7x9[_0xc210[23]](_0xf0a7xd)}})[_0xc210[11]](function(_0xf0a7x8){logger[_0xc210[10]](_0xc210[36],_0xf0a7x8)})}},outboundrouteid:function(_0xf0a7x6){return function(_0xf0a7x7){if(!_0xf0a7x6[_0xc210[41]][_0xc210[40]](_0xc210[39])){return BPromise[_0xc210[42]]()};return ReportDial[_0xc210[46]]({uniqueid:_0xf0a7x6[_0xc210[25]],routeId:_0xf0a7x6[_0xc210[45]]},{raw:true})[_0xc210[24]](function(){logger[_0xc210[44]](_0xc210[43],_0xf0a7x6[_0xc210[25]])})[_0xc210[11]](function(_0xf0a7x8){logger[_0xc210[10]](_0xc210[43],_0xf0a7x8)})}}}}
\ No newline at end of file