Built motion from commit e155ad4.|0.0.101
[motion.git] / server / config / routing / sms / session.js
index 7e52206..c175261 100644 (file)
@@ -1 +1 @@
-var _0xf91e=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x6D\x73\x52\x6F\x6F\x6D","\x53\x6D\x73\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73\x53\x65\x73\x73\x69\x6F\x6E","\x4E\x65\x77\x20\x53\x6D\x73\x20\x73\x65\x73\x73\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x66\x69\x72\x73\x74","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x73\x6D\x73\x43\x61\x70\x61\x63\x69\x74\x79","\x6C\x65\x6E\x67\x74\x68","\x69\x64","\x72\x6F\x6F\x6D\x69\x64","\x73\x74\x61\x74\x75\x73","\x43\x4C\x4F\x53\x45\x44","\x66\x69\x6C\x74\x65\x72","\x74\x69\x6D\x65\x73\x6C\x6F\x74","\x61\x70\x70\x74\x69\x6D\x65\x6F\x75\x74","\x71\x75\x65\x75\x65\x74\x69\x6D\x65\x6F\x75\x74","\x6E\x61\x6D\x65","\x64\x69\x66\x66\x65\x72\x65\x6E\x63\x65\x42\x79","\x73\x68\x69\x66\x74","\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x70\x75\x73\x68","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x73\x74\x72\x61\x74\x65\x67\x79","\x74\x68\x65\x6E","\x61\x67\x65\x6E\x74\x73","\x6D\x61\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x64","\x63\x68\x61\x6E\x67\x65\x64","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\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","\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65\x69\x64","\x71\x75\x65\x75\x65\x6E\x61\x6D\x65","\x61\x64\x64\x55\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x63\x63\x6F\x75\x6E\x74\x69\x64","\x61\x63\x63\x6F\x75\x6E\x74\x6E\x61\x6D\x65","\x61\x63\x63\x6F\x75\x6E\x74\x6E\x75\x6D\x62\x65\x72","\x71\x75\x65\x75\x65","\x6D\x65\x73\x73\x61\x67\x65\x69\x64","\x66\x6F\x72\x45\x61\x63\x68","\x73\x61\x76\x65\x72\x65\x70\x6F\x72\x74","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0xf91e[0];var _=require(_0xf91e[1]);var moment=require(_0xf91e[2]);var Agent=require(_0xf91e[4])[_0xf91e[3]];var SmsRoom=require(_0xf91e[4])[_0xf91e[5]];var SmsApplication=require(_0xf91e[4])[_0xf91e[6]];var ReportSms=require(_0xf91e[4])[_0xf91e[7]];var ReportSmsRoom=require(_0xf91e[4])[_0xf91e[8]];var ReportSmsSession=require(_0xf91e[4])[_0xf91e[9]];function Session(_0xe521xa,_0xe521xb){console[_0xf91e[11]](_0xf91e[10]);var _0xe521xc=0;var _0xe521xd,_0xe521xe;Agent[_0xf91e[36]]({where:{id:{$in:_[_0xf91e[35]](_0xe521xa[_0xf91e[34]],_0xf91e[17])},online:true,smsPause:false},include:[{model:SmsRoom,attributes:[_0xf91e[17],_0xf91e[19]]}],attributes:[_0xf91e[17],_0xf91e[25],_0xf91e[15]]})[_0xf91e[33]](function(_0xe521x10){var _0xe521x11=_[_0xf91e[21]](_0xe521x10,function(_0xe521x12){if(_0xe521x12[_0xf91e[15]]===0){return true}else {return _0xe521x12[_0xf91e[15]]>_[_0xf91e[21]](_0xe521x12.SmsRooms,function(_0xe521x13){return _0xe521x13[_0xf91e[17]]!==_0xe521xa[_0xf91e[18]]&&_0xe521x13[_0xf91e[19]]!==_0xf91e[20]})[_0xf91e[16]]}});var _0xe521x14=[];var _0xe521x15;var _0xe521x12;_0xe521xa[_0xf91e[22]]=((_0xe521xa[_0xf91e[23]]-_0xe521xc)>_0xe521xa[_0xf91e[24]])?_0xe521xa[_0xf91e[24]]:(_0xe521xa[_0xf91e[23]]-_0xe521xc);switch(_0xe521xa[_0xf91e[32]]){case _0xf91e[30]:_0xe521x15=_[_0xf91e[26]](_0xe521x11,_0xe521x14,_0xf91e[25]);_0xe521x12=_0xe521x15[_0xf91e[27]]();if(_0xe521x12){_0xe521xa[_0xf91e[28]]=[{id:_0xe521x12[_0xf91e[17]],name:_0xe521x12[_0xf91e[25]]}];_0xe521x14[_0xf91e[29]]({id:_0xe521x12[_0xf91e[17]],name:_0xe521x12[_0xf91e[25]]});saveReport(_0xe521xa)}else {_0xe521x14=[];_0xe521x12=_0xe521x11[_0xf91e[27]]();if(_0xe521x12){_0xe521x14[_0xf91e[29]]({id:_0xe521x12[_0xf91e[17]],name:_0xe521x12[_0xf91e[25]]});saveReport(_0xe521xa)}};break;case _0xf91e[31]:_0xe521xa[_0xf91e[28]]=_0xe521x11;saveReport(_0xe521xa);break;default:};_0xe521xe=setTimeout(function(){clearInterval(_0xe521xd);return _0xe521xb(null,false)},_0xe521xa[_0xf91e[23]]*1000);_0xe521xd=setInterval(function(){_0xe521xc+=_0xe521xa[_0xf91e[24]];return Agent[_0xf91e[36]]({where:{id:{$in:_[_0xf91e[35]](_0xe521xa[_0xf91e[34]],_0xf91e[17])},online:true,smsPause:false},include:[{model:SmsRoom,attributes:[_0xf91e[17],_0xf91e[19]]}],attributes:[_0xf91e[17],_0xf91e[25],_0xf91e[15]]})[_0xf91e[33]](function(_0xe521x10){_0xe521x11=_[_0xf91e[21]](_0xe521x10,function(_0xe521x12){if(_0xe521x12[_0xf91e[15]]===0){return true}else {return _0xe521x12[_0xf91e[15]]>_[_0xf91e[21]](_0xe521x12.SmsRooms,function(_0xe521x13){return _0xe521x13[_0xf91e[17]]!==_0xe521xa[_0xf91e[18]]&&_0xe521x13[_0xf91e[19]]!==_0xf91e[20]})[_0xf91e[16]]}});_0xe521xa[_0xf91e[22]]=((_0xe521xa[_0xf91e[23]]-_0xe521xc)>_0xe521xa[_0xf91e[24]])?_0xe521xa[_0xf91e[24]]:(_0xe521xa[_0xf91e[23]]-_0xe521xc);switch(_0xe521xa[_0xf91e[32]]){case _0xf91e[30]:_0xe521x15=_[_0xf91e[26]](_0xe521x11,_0xe521x14,_0xf91e[25]);_0xe521x12=_0xe521x15[_0xf91e[27]]();if(_0xe521x12){_0xe521xa[_0xf91e[28]]=[{id:_0xe521x12[_0xf91e[17]],name:_0xe521x12[_0xf91e[25]]}];_0xe521x14[_0xf91e[29]]({id:_0xe521x12[_0xf91e[17]],name:_0xe521x12[_0xf91e[25]]});saveReport(_0xe521xa)}else {_0xe521x14=[];_0xe521x12=_0xe521x11[_0xf91e[27]]();if(_0xe521x12){_0xe521xa[_0xf91e[28]]=[{id:_0xe521x12[_0xf91e[17]],name:_0xe521x12[_0xf91e[25]]}];_0xe521x14[_0xf91e[29]]({id:_0xe521x12[_0xf91e[17]],name:_0xe521x12[_0xf91e[25]]});saveReport(_0xe521xa)}};break;case _0xf91e[31]:_0xe521xa[_0xf91e[28]]=_0xe521x11;saveReport(_0xe521xa);break;default:}})[_0xf91e[14]](function(_0xe521xf){console[_0xf91e[13]](_0xe521xf)})},_0xe521xa[_0xf91e[24]]*1000)})[_0xf91e[14]](function(_0xe521xf){console[_0xf91e[13]](_0xf91e[12],_0xe521xf)});ReportSms[_0xf91e[50]](function(_0xe521x16){if(_0xe521x16[_0xf91e[38]](_0xf91e[37])){return SmsRoom[_0xf91e[49]](_0xe521x16[_0xf91e[18]])[_0xf91e[33]](function(_0xe521x17){return _0xe521x17[_0xf91e[48]](_0xe521x16[_0xf91e[39]],{individualHooks:true})})[_0xf91e[33]](function(){return ReportSmsRoom[_0xf91e[44]]({application:_0xe521x16[_0xf91e[45]],memberid:_0xe521x16[_0xf91e[39]],membername:_0xe521x16[_0xf91e[40]],queue:_0xe521x16[_0xf91e[46]],queuename:_0xe521x16[_0xf91e[47]],leaveAt:moment()[_0xf91e[42]](_0xf91e[41])},{where:{uniqueid:_0xe521x16[_0xf91e[43]],leaveAt:null},individualHooks:true})})[_0xf91e[33]](function(){return ReportSmsSession[_0xf91e[44]]({memberid:_0xe521x16[_0xf91e[39]],membername:_0xe521x16[_0xf91e[40]],leaveAt:moment()[_0xf91e[42]](_0xf91e[41])},{where:{uniqueid:_0xe521x16[_0xf91e[43]],leaveAt:null},individualHooks:true})})[_0xf91e[33]](function(){clearInterval(_0xe521xd);clearTimeout(_0xe521xe);return _0xe521xb(null,true)})[_0xf91e[14]](function(_0xe521xf){console[_0xf91e[13]](_0xe521xf)})}});return {}}function saveReport(_0xe521xa){var _0xe521x19=[];_0xe521xa[_0xf91e[28]][_0xf91e[56]](function(_0xe521x12,_0xe521x1a){_0xe521x19[_0xf91e[29]]({uniqueid:_0xe521xa[_0xf91e[43]],timeslot:_0xe521xa[_0xf91e[22]],accountid:_0xe521xa[_0xf91e[51]],accountname:_0xe521xa[_0xf91e[52]],accountnumber:_0xe521xa[_0xf91e[53]],application:_0xe521xa[_0xf91e[45]],membername:_0xe521x12[_0xf91e[25]],memberid:_0xe521x12[_0xf91e[17]],queue:_0xe521xa[_0xf91e[54]]||null,queuename:_0xe521xa[_0xf91e[47]]||null,roomid:_0xe521xa[_0xf91e[18]]||null,messageid:_0xe521xa[_0xf91e[55]]||null,calledAt:moment()[_0xf91e[42]](_0xf91e[41])})});if(_0xe521x19[_0xf91e[16]]){return ReportSms[_0xf91e[58]](_0xe521x19,{individualHooks:true})[_0xf91e[14]](function(_0xe521xf){console[_0xf91e[13]](_0xf91e[57],_0xe521xf)})}}module[_0xf91e[59]]=Session
\ No newline at end of file
+var _0x1e5c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x6D\x73\x52\x6F\x6F\x6D","\x53\x6D\x73\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73\x53\x65\x73\x73\x69\x6F\x6E","\x4E\x65\x77\x20\x53\x6D\x73\x20\x73\x65\x73\x73\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x66\x69\x72\x73\x74","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x61\x67\x65\x6E\x74\x73","\x69\x64","\x66\x69\x6E\x64","\x70\x65\x6E\x61\x6C\x74\x79","\x66\x6F\x72\x45\x61\x63\x68","\x6F\x72\x64\x65\x72\x42\x79","\x73\x6D\x73\x43\x61\x70\x61\x63\x69\x74\x79","\x6C\x65\x6E\x67\x74\x68","\x72\x6F\x6F\x6D\x69\x64","\x73\x74\x61\x74\x75\x73","\x43\x4C\x4F\x53\x45\x44","\x66\x69\x6C\x74\x65\x72","\x74\x69\x6D\x65\x73\x6C\x6F\x74","\x61\x70\x70\x74\x69\x6D\x65\x6F\x75\x74","\x71\x75\x65\x75\x65\x74\x69\x6D\x65\x6F\x75\x74","\x6E\x61\x6D\x65","\x64\x69\x66\x66\x65\x72\x65\x6E\x63\x65\x42\x79","\x73\x68\x69\x66\x74","\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x70\x75\x73\x68","\x72\x72\x6D\x65\x6D\x6F\x72\x79","\x62\x65\x65\x70\x61\x6C\x6C","\x73\x74\x72\x61\x74\x65\x67\x79","\x74\x68\x65\x6E","\x6D\x61\x70","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x64","\x63\x68\x61\x6E\x67\x65\x64","\x6D\x65\x6D\x62\x65\x72\x69\x64","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\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","\x75\x6E\x69\x71\x75\x65\x69\x64","\x75\x70\x64\x61\x74\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65\x69\x64","\x71\x75\x65\x75\x65\x6E\x61\x6D\x65","\x61\x64\x64\x55\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x63\x63\x6F\x75\x6E\x74\x69\x64","\x61\x63\x63\x6F\x75\x6E\x74\x6E\x61\x6D\x65","\x61\x63\x63\x6F\x75\x6E\x74\x6E\x75\x6D\x62\x65\x72","\x71\x75\x65\x75\x65","\x6D\x65\x73\x73\x61\x67\x65\x69\x64","\x73\x61\x76\x65\x72\x65\x70\x6F\x72\x74","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];_0x1e5c[0];var _=require(_0x1e5c[1]);var moment=require(_0x1e5c[2]);var Agent=require(_0x1e5c[4])[_0x1e5c[3]];var SmsRoom=require(_0x1e5c[4])[_0x1e5c[5]];var SmsApplication=require(_0x1e5c[4])[_0x1e5c[6]];var ReportSms=require(_0x1e5c[4])[_0x1e5c[7]];var ReportSmsRoom=require(_0x1e5c[4])[_0x1e5c[8]];var ReportSmsSession=require(_0x1e5c[4])[_0x1e5c[9]];function Session(_0x16dexa,_0x16dexb){console[_0x1e5c[11]](_0x1e5c[10]);var _0x16dexc=0;var _0x16dexd,_0x16dexe;Agent[_0x1e5c[40]]({where:{id:{$in:_[_0x1e5c[39]](_0x16dexa[_0x1e5c[15]],_0x1e5c[16])},online:true,smsPause:false},include:[{model:SmsRoom,attributes:[_0x1e5c[16],_0x1e5c[24]]}],attributes:[_0x1e5c[16],_0x1e5c[30],_0x1e5c[21]]})[_0x1e5c[38]](function(_0x16dex10){_[_0x1e5c[19]](_0x16dex10,function(_0x16dex11){var _0x16dex12=_[_0x1e5c[17]](_0x16dexa[_0x1e5c[15]],{"\x69\x64":_0x16dex11[_0x1e5c[16]]});_0x16dex11[_0x1e5c[18]]=_0x16dex12[_0x1e5c[18]]});_0x16dex10=_[_0x1e5c[20]](_0x16dex10,_0x1e5c[18]);var _0x16dex13=_[_0x1e5c[26]](_0x16dex10,function(_0x16dex11){if(_0x16dex11[_0x1e5c[21]]===0){return true}else {return _0x16dex11[_0x1e5c[21]]>_[_0x1e5c[26]](_0x16dex11.SmsRooms,function(_0x16dex14){return _0x16dex14[_0x1e5c[16]]!==_0x16dexa[_0x1e5c[23]]&&_0x16dex14[_0x1e5c[24]]!==_0x1e5c[25]})[_0x1e5c[22]]}});var _0x16dex15=[];var _0x16dex16;var _0x16dex11;_0x16dexa[_0x1e5c[27]]=((_0x16dexa[_0x1e5c[28]]-_0x16dexc)>_0x16dexa[_0x1e5c[29]])?_0x16dexa[_0x1e5c[29]]:(_0x16dexa[_0x1e5c[28]]-_0x16dexc);switch(_0x16dexa[_0x1e5c[37]]){case _0x1e5c[35]:_0x16dex16=_[_0x1e5c[31]](_0x16dex13,_0x16dex15,_0x1e5c[30]);_0x16dex11=_0x16dex16[_0x1e5c[32]]();if(_0x16dex11){_0x16dexa[_0x1e5c[33]]=[{id:_0x16dex11[_0x1e5c[16]],name:_0x16dex11[_0x1e5c[30]]}];_0x16dex15[_0x1e5c[34]]({id:_0x16dex11[_0x1e5c[16]],name:_0x16dex11[_0x1e5c[30]]});saveReport(_0x16dexa)}else {_0x16dex15=[];_0x16dex11=_0x16dex13[_0x1e5c[32]]();if(_0x16dex11){_0x16dex15[_0x1e5c[34]]({id:_0x16dex11[_0x1e5c[16]],name:_0x16dex11[_0x1e5c[30]]});saveReport(_0x16dexa)}};break;case _0x1e5c[36]:_0x16dexa[_0x1e5c[33]]=_0x16dex13;saveReport(_0x16dexa);break;default:};_0x16dexe=setTimeout(function(){clearInterval(_0x16dexd);return _0x16dexb(null,false)},_0x16dexa[_0x1e5c[28]]*1000);_0x16dexd=setInterval(function(){_0x16dexc+=_0x16dexa[_0x1e5c[29]];return Agent[_0x1e5c[40]]({where:{id:{$in:_[_0x1e5c[39]](_0x16dexa[_0x1e5c[15]],_0x1e5c[16])},online:true,smsPause:false},include:[{model:SmsRoom,attributes:[_0x1e5c[16],_0x1e5c[24]]}],attributes:[_0x1e5c[16],_0x1e5c[30],_0x1e5c[21]]})[_0x1e5c[38]](function(_0x16dex10){_[_0x1e5c[19]](_0x16dex10,function(_0x16dex11){var _0x16dex12=_[_0x1e5c[17]](_0x16dexa[_0x1e5c[15]],{"\x69\x64":_0x16dex11[_0x1e5c[16]]});_0x16dex11[_0x1e5c[18]]=_0x16dex12[_0x1e5c[18]]});_0x16dex10=_[_0x1e5c[20]](_0x16dex10,_0x1e5c[18]);_0x16dex13=_[_0x1e5c[26]](_0x16dex10,function(_0x16dex11){if(_0x16dex11[_0x1e5c[21]]===0){return true}else {return _0x16dex11[_0x1e5c[21]]>_[_0x1e5c[26]](_0x16dex11.SmsRooms,function(_0x16dex14){return _0x16dex14[_0x1e5c[16]]!==_0x16dexa[_0x1e5c[23]]&&_0x16dex14[_0x1e5c[24]]!==_0x1e5c[25]})[_0x1e5c[22]]}});_0x16dexa[_0x1e5c[27]]=((_0x16dexa[_0x1e5c[28]]-_0x16dexc)>_0x16dexa[_0x1e5c[29]])?_0x16dexa[_0x1e5c[29]]:(_0x16dexa[_0x1e5c[28]]-_0x16dexc);switch(_0x16dexa[_0x1e5c[37]]){case _0x1e5c[35]:_0x16dex16=_[_0x1e5c[31]](_0x16dex13,_0x16dex15,_0x1e5c[30]);_0x16dex11=_0x16dex16[_0x1e5c[32]]();if(_0x16dex11){_0x16dexa[_0x1e5c[33]]=[{id:_0x16dex11[_0x1e5c[16]],name:_0x16dex11[_0x1e5c[30]]}];_0x16dex15[_0x1e5c[34]]({id:_0x16dex11[_0x1e5c[16]],name:_0x16dex11[_0x1e5c[30]]});saveReport(_0x16dexa)}else {_0x16dex15=[];_0x16dex11=_0x16dex13[_0x1e5c[32]]();if(_0x16dex11){_0x16dexa[_0x1e5c[33]]=[{id:_0x16dex11[_0x1e5c[16]],name:_0x16dex11[_0x1e5c[30]]}];_0x16dex15[_0x1e5c[34]]({id:_0x16dex11[_0x1e5c[16]],name:_0x16dex11[_0x1e5c[30]]});saveReport(_0x16dexa)}};break;case _0x1e5c[36]:_0x16dexa[_0x1e5c[33]]=_0x16dex13;saveReport(_0x16dexa);break;default:}})[_0x1e5c[14]](function(_0x16dexf){console[_0x1e5c[13]](_0x16dexf)})},_0x16dexa[_0x1e5c[29]]*1000)})[_0x1e5c[14]](function(_0x16dexf){console[_0x1e5c[13]](_0x1e5c[12],_0x16dexf)});ReportSms[_0x1e5c[54]](function(_0x16dex17){if(_0x16dex17[_0x1e5c[42]](_0x1e5c[41])){return SmsRoom[_0x1e5c[53]](_0x16dex17[_0x1e5c[23]])[_0x1e5c[38]](function(_0x16dex18){return _0x16dex18[_0x1e5c[52]](_0x16dex17[_0x1e5c[43]],{individualHooks:true})})[_0x1e5c[38]](function(){return ReportSmsRoom[_0x1e5c[48]]({application:_0x16dex17[_0x1e5c[49]],memberid:_0x16dex17[_0x1e5c[43]],membername:_0x16dex17[_0x1e5c[44]],queue:_0x16dex17[_0x1e5c[50]],queuename:_0x16dex17[_0x1e5c[51]],leaveAt:moment()[_0x1e5c[46]](_0x1e5c[45])},{where:{uniqueid:_0x16dex17[_0x1e5c[47]],leaveAt:null},individualHooks:true})})[_0x1e5c[38]](function(){return ReportSmsSession[_0x1e5c[48]]({memberid:_0x16dex17[_0x1e5c[43]],membername:_0x16dex17[_0x1e5c[44]],leaveAt:moment()[_0x1e5c[46]](_0x1e5c[45])},{where:{uniqueid:_0x16dex17[_0x1e5c[47]],leaveAt:null},individualHooks:true})})[_0x1e5c[38]](function(){clearInterval(_0x16dexd);clearTimeout(_0x16dexe);return _0x16dexb(null,true)})[_0x1e5c[14]](function(_0x16dexf){console[_0x1e5c[13]](_0x16dexf)})}});return {}}function saveReport(_0x16dexa){var _0x16dex1a=[];for(var _0x16dex1b=0;_0x16dex1b<_0x16dexa[_0x1e5c[33]][_0x1e5c[22]];_0x16dex1b++){var _0x16dex11=_0x16dexa[_0x1e5c[33]][_0x16dex1b];_0x16dex1a[_0x1e5c[34]]({uniqueid:_0x16dexa[_0x1e5c[47]],timeslot:_0x16dexa[_0x1e5c[27]],accountid:_0x16dexa[_0x1e5c[55]],accountname:_0x16dexa[_0x1e5c[56]],accountnumber:_0x16dexa[_0x1e5c[57]],application:_0x16dexa[_0x1e5c[49]],membername:_0x16dex11[_0x1e5c[30]],memberid:_0x16dex11[_0x1e5c[16]],queue:_0x16dexa[_0x1e5c[58]]||null,queuename:_0x16dexa[_0x1e5c[51]]||null,roomid:_0x16dexa[_0x1e5c[23]]||null,messageid:_0x16dexa[_0x1e5c[59]]||null,calledAt:moment()[_0x1e5c[46]](_0x1e5c[45])})};if(_0x16dex1a[_0x1e5c[22]]){return ReportSms[_0x1e5c[61]](_0x16dex1a,{individualHooks:true})[_0x1e5c[14]](function(_0x16dexf){console[_0x1e5c[13]](_0x1e5c[60],_0x16dexf)})}}module[_0x1e5c[62]]=Session
\ No newline at end of file