1 var _0xd0c4=["\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","\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","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\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","\x6C\x6F\x67","\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","\x76\x61\x6C\x75\x65","\x63\x72\x65\x61\x74\x65"];_0xd0c4[0];var BPromise=require(_0xd0c4[1]);var moment=require(_0xd0c4[2]);var _=require(_0xd0c4[3]);var ReportDial=require(_0xd0c4[5])[_0xd0c4[4]];module[_0xd0c4[6]]= function(){return {dialbegin:function(_0xea9ex5){return function(_0xea9ex6){return ReportDial[_0xd0c4[26]]({where:{uniqueid:_0xea9ex5[_0xd0c4[24]]},order:_0xd0c4[25]})[_0xd0c4[23]](function(_0xea9ex8){if(_0xea9ex8){var _0xea9ex9=_0xea9ex5[_0xd0c4[10]];var _0xea9exa=_0xea9ex5[_0xd0c4[11]];if(_0xea9ex5[_0xd0c4[12]]){var _0xea9exb;if(_0xea9ex5[_0xd0c4[12]][_0xd0c4[14]](_0xd0c4[13])> 0){_0xea9exb= _0xea9ex5[_0xd0c4[12]][_0xd0c4[15]](_0xd0c4[13]);if(_0xea9exb[_0xd0c4[16]]> 1){_0xea9ex9= _0xea9exb[0];_0xea9exa= _0xea9exb[0]}}else {_0xea9exb= _0xea9ex5[_0xd0c4[12]][_0xd0c4[15]](_0xd0c4[17]);if(_0xea9exb[_0xd0c4[16]]> 1){_0xea9ex9= _0xea9exb[1];_0xea9exa= _0xea9exb[1]}}};return _0xea9ex8[_0xd0c4[22]](_[_0xd0c4[21]](_0xea9ex5,{starttime:moment()[_0xd0c4[19]](_0xd0c4[18]),lastevent:_0xd0c4[20],destcalleridnum:_0xea9ex9,destcalleridname:_0xea9exa}))}})[_0xd0c4[9]](function(_0xea9ex7){console[_0xd0c4[8]](_0xd0c4[7],_0xea9ex7)})}},dialend:function(_0xea9ex5){return function(_0xea9ex6){return ReportDial[_0xd0c4[26]]({where:{uniqueid:_0xea9ex5[_0xd0c4[24]],linkedid:_0xea9ex5[_0xd0c4[32]],destuniqueid:_0xea9ex5[_0xd0c4[33]],destlinkedid:_0xea9ex5[_0xd0c4[34]]},order:_0xd0c4[25]})[_0xd0c4[23]](function(_0xea9ex8){if(_0xea9ex8){return _0xea9ex8[_0xd0c4[22]]({dialstatus:_0xea9ex5[_0xd0c4[28]],lastevent:(_0xea9ex5[_0xd0c4[28]]=== _0xd0c4[29])?_0xd0c4[30]:_0xd0c4[31],answertime:(_0xea9ex5[_0xd0c4[28]]=== _0xd0c4[29])?moment()[_0xd0c4[19]](_0xd0c4[18]):null})}})[_0xd0c4[9]](function(_0xea9ex7){console[_0xd0c4[8]](_0xd0c4[27],_0xea9ex7)})}},hangup:function(_0xea9ex5){return function(_0xea9ex6){return ReportDial[_0xd0c4[26]]({where:{uniqueid:_0xea9ex5[_0xd0c4[24]]},order:_0xd0c4[25]})[_0xd0c4[23]](function(_0xea9ex8){if(_0xea9ex8){var _0xea9exc={endtime:moment()[_0xd0c4[19]](_0xd0c4[18]),lastevent:_0xd0c4[31]};if(!_0xea9ex8[_0xd0c4[37]]){_0xea9exc[_0xd0c4[28]]= _0xd0c4[38]};return _0xea9ex8[_0xd0c4[22]](_0xea9exc)}})[_0xd0c4[9]](function(_0xea9ex7){console[_0xd0c4[36]](_0xd0c4[35],_0xea9ex7)})}},outboundrouteid:function(_0xea9ex5){return function(_0xea9ex6){if(!_0xea9ex5[_0xd0c4[41]][_0xd0c4[40]](_0xd0c4[39])){return BPromise[_0xd0c4[42]]()};return ReportDial[_0xd0c4[45]]({uniqueid:_0xea9ex5[_0xd0c4[24]],routeId:_0xea9ex5[_0xd0c4[44]]},{raw:true})[_0xd0c4[23]](function(){console[_0xd0c4[36]](_0xd0c4[43],_0xea9ex5[_0xd0c4[24]])})[_0xd0c4[9]](function(_0xea9ex7){console[_0xd0c4[8]](_0xd0c4[43],_0xea9ex7)})}}}}