1 var _0x29fb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x6F\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x43\x6C\x65\x61\x6E\x65\x72\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x52\x65\x6D\x6F\x76\x69\x6E\x67\x20\x69\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x2E\x2E\x2E","\x49\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x3A","\x63\x61\x74\x63\x68","\x49\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x20\x63\x6C\x65\x61\x6E\x69\x6E\x67\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64\x21","\x74\x68\x65\x6E","\x61\x6C\x6C","\x75\x6E\x69\x71\x75\x65\x69\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\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","\x5A\x4F\x4D\x42\x49\x45","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6E\x6F","\x66\x69\x6E\x64\x41\x6C\x6C","\x7A\x6F\x6D\x62\x69\x65","\x63\x6F\x6E\x74\x65\x6E\x74","\x0A","\x73\x70\x6C\x69\x74","\x21","\x6C\x65\x6E\x67\x74\x68","\x70\x6F\x70","\x43\x6F\x6D\x6D\x61\x6E\x64","\x63\x6F\x72\x65\x20\x73\x68\x6F\x77\x20\x63\x68\x61\x6E\x6E\x65\x6C\x73\x20\x63\x6F\x6E\x63\x69\x73\x65","\x61\x63\x74\x69\x6F\x6E","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x65\x78\x70\x6F\x72\x74\x73"];_0x29fb[0];var moment=require(_0x29fb[1]);var _=require(_0x29fb[2]);var Promise=require(_0x29fb[3]);var ReportQueue=require(_0x29fb[5])[_0x29fb[4]];var ReportSquare=require(_0x29fb[5])[_0x29fb[6]];var ReportDial=require(_0x29fb[5])[_0x29fb[7]];function Cleaner(_0x4509x8){console[_0x29fb[9]](_0x29fb[8]);removeInactiveCalls(_0x4509x8);setInterval(function(){removeInactiveCalls(_0x4509x8)},10* 60* 1000)}function removeInactiveCalls(_0x4509x8){console[_0x29fb[9]](_0x29fb[10]);var _0x4509xa=[],_0x4509xb=[];return Promise[_0x29fb[36]](_0x4509x8[_0x29fb[35]])({action:_0x29fb[33],command:_0x29fb[34]})[_0x29fb[14]](function(_0x4509x11){var _0x4509x12;if(_0x4509x11&& _0x4509x11[_0x29fb[27]]){var _0x4509x13=_0x4509x11[_0x29fb[27]][_0x29fb[29]](_0x29fb[28]);_[_0x29fb[23]](_0x4509x13,function(_0x4509x14){if(_0x4509x14){_0x4509x12= _0x4509x14[_0x29fb[29]](_0x29fb[30]);_0x4509x12[_0x29fb[31]]=== 14&& _0x4509xb[_0x29fb[22]](_0x4509x12[_0x29fb[32]]())}})};return ReportQueue[_0x29fb[25]]({where:{$or:[{queuecallerleaveAt:null},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0x29fb[14]](function(_0x4509x10){_[_0x29fb[23]](_0x4509x10,function(_0x4509xe){if(!_[_0x29fb[17]](_0x4509xb,_0x4509xe[_0x29fb[16]])){_0x4509xa[_0x29fb[22]](_0x4509xe[_0x29fb[21]]({queuecallerleaveAt:moment()[_0x29fb[19]](_0x29fb[18]),queuecallerexitAt:moment()[_0x29fb[19]](_0x29fb[18]),queuecallerexit:true,queuecallerexitreason:_0x29fb[26]}))}});return ReportSquare[_0x29fb[25]]({where:{leaveAt:null}})})[_0x29fb[14]](function(_0x4509xf){_[_0x29fb[23]](_0x4509xf,function(_0x4509xe){if(!_[_0x29fb[17]](_0x4509xb,_0x4509xe[_0x29fb[16]])){_0x4509xa[_0x29fb[22]](_0x4509xe[_0x29fb[21]]({leaveAt:moment()[_0x29fb[19]](_0x29fb[18]),network:_0x29fb[24]}))}});return ReportDial[_0x29fb[25]]({where:{endtime:null}})})[_0x29fb[14]](function(_0x4509xd){_[_0x29fb[23]](_0x4509xd,function(_0x4509xe){if(!_[_0x29fb[17]](_0x4509xb,_0x4509xe[_0x29fb[16]])){_0x4509xa[_0x29fb[22]](_0x4509xe[_0x29fb[21]]({endtime:moment()[_0x29fb[19]](_0x29fb[18]),dialstatus:_0x29fb[20]}))}});return _0x4509xa})[_0x29fb[15]]()[_0x29fb[14]](function(){console[_0x29fb[9]](_0x29fb[13])})[_0x29fb[12]](function(_0x4509xc){console[_0x29fb[9]](_0x29fb[11],_0x4509xc)})}module[_0x29fb[37]]= Cleaner