Built motion from commit 137ed438a.|1.0.25
[motion.git] / server / config / ami / db / voiceDialReport.js
index c88b073..c5046b0 100644 (file)
@@ -1 +1 @@
-var _0xc213=["\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"];_0xc213[0];var BPromise=require(_0xc213[1]);var moment=require(_0xc213[2]);var _=require(_0xc213[3]);var ReportDial=require(_0xc213[5])[_0xc213[4]];var logger=require(_0xc213[7])(_0xc213[6]);module[_0xc213[8]]= function(){return {dialbegin:function(_0xf8efx6){return function(_0xf8efx7){return ReportDial[_0xc213[27]]({where:{uniqueid:_0xf8efx6[_0xc213[25]]},order:_0xc213[26]})[_0xc213[24]](function(_0xf8efx9){if(_0xf8efx9){var _0xf8efxa=_0xf8efx6[_0xc213[12]];var _0xf8efxb=_0xf8efx6[_0xc213[13]];if(_0xf8efx6[_0xc213[14]]){var _0xf8efxc;if(_0xf8efx6[_0xc213[14]][_0xc213[16]](_0xc213[15])> 0){_0xf8efxc= _0xf8efx6[_0xc213[14]][_0xc213[17]](_0xc213[15]);if(_0xf8efxc[_0xc213[18]]> 1){_0xf8efxa= _0xf8efxc[0];_0xf8efxb= _0xf8efxc[0]}}else {_0xf8efxc= _0xf8efx6[_0xc213[14]][_0xc213[17]](_0xc213[19]);if(_0xf8efxc[_0xc213[18]]> 1){_0xf8efxa= _0xf8efxc[1];_0xf8efxb= _0xf8efxc[1]}}};return _0xf8efx9[_0xc213[23]](_[_0xc213[22]](_0xf8efx6,{starttime:_0xf8efx6[_0xc213[20]],lastevent:_0xc213[21],destcalleridnum:_0xf8efxa,destcalleridname:_0xf8efxb}))}})[_0xc213[11]](function(_0xf8efx8){logger[_0xc213[10]](_0xc213[9],_0xf8efx8)})}},dialend:function(_0xf8efx6){return function(_0xf8efx7){return ReportDial[_0xc213[27]]({where:{uniqueid:_0xf8efx6[_0xc213[25]],linkedid:_0xf8efx6[_0xc213[33]],destuniqueid:_0xf8efx6[_0xc213[34]],destlinkedid:_0xf8efx6[_0xc213[35]]},order:_0xc213[26]})[_0xc213[24]](function(_0xf8efx9){if(_0xf8efx9){return _0xf8efx9[_0xc213[23]]({dialstatus:_0xf8efx6[_0xc213[29]],lastevent:(_0xf8efx6[_0xc213[29]]=== _0xc213[30])?_0xc213[31]:_0xc213[32],answertime:(_0xf8efx6[_0xc213[29]]=== _0xc213[30])?_0xf8efx6[_0xc213[20]]:null})}})[_0xc213[11]](function(_0xf8efx8){logger[_0xc213[10]](_0xc213[28],_0xf8efx8)})}},hangup:function(_0xf8efx6){return function(_0xf8efx7){return ReportDial[_0xc213[27]]({where:{uniqueid:_0xf8efx6[_0xc213[25]]},order:_0xc213[26]})[_0xc213[24]](function(_0xf8efx9){if(_0xf8efx9){var _0xf8efxd={endtime:_0xf8efx6[_0xc213[20]],lastevent:_0xc213[32]};if(!_0xf8efx9[_0xc213[37]]){_0xf8efxd[_0xc213[29]]= _0xc213[38]};return _0xf8efx9[_0xc213[23]](_0xf8efxd)}})[_0xc213[11]](function(_0xf8efx8){logger[_0xc213[10]](_0xc213[36],_0xf8efx8)})}},outboundrouteid:function(_0xf8efx6){return function(_0xf8efx7){if(!_0xf8efx6[_0xc213[41]][_0xc213[40]](_0xc213[39])){return BPromise[_0xc213[42]]()};return ReportDial[_0xc213[46]]({uniqueid:_0xf8efx6[_0xc213[25]],routeId:_0xf8efx6[_0xc213[45]]},{raw:true})[_0xc213[24]](function(){logger[_0xc213[44]](_0xc213[43],_0xf8efx6[_0xc213[25]])})[_0xc213[11]](function(_0xf8efx8){logger[_0xc213[10]](_0xc213[43],_0xf8efx8)})}}}}
\ No newline at end of file
+var _0xa8fc=["\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"];_0xa8fc[0];var BPromise=require(_0xa8fc[1]);var moment=require(_0xa8fc[2]);var _=require(_0xa8fc[3]);var ReportDial=require(_0xa8fc[5])[_0xa8fc[4]];var logger=require(_0xa8fc[7])(_0xa8fc[6]);module[_0xa8fc[8]]= function(){return {dialbegin:function(_0xaf50x6){return function(_0xaf50x7){return ReportDial[_0xa8fc[27]]({where:{uniqueid:_0xaf50x6[_0xa8fc[25]]},order:_0xa8fc[26]})[_0xa8fc[24]](function(_0xaf50x9){if(_0xaf50x9){var _0xaf50xa=_0xaf50x6[_0xa8fc[12]];var _0xaf50xb=_0xaf50x6[_0xa8fc[13]];if(_0xaf50x6[_0xa8fc[14]]){var _0xaf50xc;if(_0xaf50x6[_0xa8fc[14]][_0xa8fc[16]](_0xa8fc[15])> 0){_0xaf50xc= _0xaf50x6[_0xa8fc[14]][_0xa8fc[17]](_0xa8fc[15]);if(_0xaf50xc[_0xa8fc[18]]> 1){_0xaf50xa= _0xaf50xc[0];_0xaf50xb= _0xaf50xc[0]}}else {_0xaf50xc= _0xaf50x6[_0xa8fc[14]][_0xa8fc[17]](_0xa8fc[19]);if(_0xaf50xc[_0xa8fc[18]]> 1){_0xaf50xa= _0xaf50xc[1];_0xaf50xb= _0xaf50xc[1]}}};return _0xaf50x9[_0xa8fc[23]](_[_0xa8fc[22]](_0xaf50x6,{starttime:_0xaf50x6[_0xa8fc[20]],lastevent:_0xa8fc[21],destcalleridnum:_0xaf50xa,destcalleridname:_0xaf50xb}))}})[_0xa8fc[11]](function(_0xaf50x8){logger[_0xa8fc[10]](_0xa8fc[9],_0xaf50x8)})}},dialend:function(_0xaf50x6){return function(_0xaf50x7){return ReportDial[_0xa8fc[27]]({where:{uniqueid:_0xaf50x6[_0xa8fc[25]],linkedid:_0xaf50x6[_0xa8fc[33]],destuniqueid:_0xaf50x6[_0xa8fc[34]],destlinkedid:_0xaf50x6[_0xa8fc[35]]},order:_0xa8fc[26]})[_0xa8fc[24]](function(_0xaf50x9){if(_0xaf50x9){return _0xaf50x9[_0xa8fc[23]]({dialstatus:_0xaf50x6[_0xa8fc[29]],lastevent:(_0xaf50x6[_0xa8fc[29]]=== _0xa8fc[30])?_0xa8fc[31]:_0xa8fc[32],answertime:(_0xaf50x6[_0xa8fc[29]]=== _0xa8fc[30])?_0xaf50x6[_0xa8fc[20]]:null})}})[_0xa8fc[11]](function(_0xaf50x8){logger[_0xa8fc[10]](_0xa8fc[28],_0xaf50x8)})}},hangup:function(_0xaf50x6){return function(_0xaf50x7){return ReportDial[_0xa8fc[27]]({where:{uniqueid:_0xaf50x6[_0xa8fc[25]]},order:_0xa8fc[26]})[_0xa8fc[24]](function(_0xaf50x9){if(_0xaf50x9){var _0xaf50xd={endtime:_0xaf50x6[_0xa8fc[20]],lastevent:_0xa8fc[32]};if(!_0xaf50x9[_0xa8fc[37]]){_0xaf50xd[_0xa8fc[29]]= _0xa8fc[38]};return _0xaf50x9[_0xa8fc[23]](_0xaf50xd)}})[_0xa8fc[11]](function(_0xaf50x8){logger[_0xa8fc[10]](_0xa8fc[36],_0xaf50x8)})}},outboundrouteid:function(_0xaf50x6){return function(_0xaf50x7){if(!_0xaf50x6[_0xa8fc[41]][_0xa8fc[40]](_0xa8fc[39])){return BPromise[_0xa8fc[42]]()};return ReportDial[_0xa8fc[46]]({uniqueid:_0xaf50x6[_0xa8fc[25]],routeId:_0xaf50x6[_0xa8fc[45]]},{raw:true})[_0xa8fc[24]](function(){logger[_0xa8fc[44]](_0xa8fc[43],_0xaf50x6[_0xa8fc[25]])})[_0xa8fc[11]](function(_0xaf50x8){logger[_0xa8fc[10]](_0xa8fc[43],_0xaf50x8)})}}}}
\ No newline at end of file