Built motion from commit b8fca89.|0.0.57
[motion.git] / server / config / history.js
1 var _0x6822=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x49\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E\x48\x69\x73\x74\x6F\x72\x79","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x6C\x65\x6E\x67\x74\x68","\x6C\x6F\x67","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x5D\x20","\x69\x64","\x20\x72\x6F\x77\x20\x63\x6F\x70\x69\x65\x64","\x20\x72\x6F\x77\x20\x64\x65\x6C\x65\x74\x65\x64","\x74\x68\x65\x6E","\x64\x65\x73\x74\x72\x6F\x79","\x63\x72\x65\x61\x74\x65","\x66\x6F\x72\x45\x61\x63\x68","\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","\x66\x69\x6E\x64\x41\x6C\x6C","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x63\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x64\x69\x61\x6C\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x65\x6D\x62\x65\x72\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x5D\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20\x66\x6F\x75\x6E\x64\x3A\x20","\x5B\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x73\x65\x73\x73\x69\x6F\x6E\x5D\x20","\x65\x78\x70\x6F\x72\x74\x73","\x30\x30\x20\x35\x39\x20\x32\x33\x20\x2A\x20\x2A\x20\x2A","\x73\x74\x61\x72\x74"];_0x6822[0];var moment=require(_0x6822[1]);var ReportAgent=require(_0x6822[3])[_0x6822[2]];var ReportCall=require(_0x6822[3])[_0x6822[4]];var ReportDial=require(_0x6822[3])[_0x6822[5]];var ReportMember=require(_0x6822[3])[_0x6822[6]];var ReportQueue=require(_0x6822[3])[_0x6822[7]];var ReportIntegration=require(_0x6822[3])[_0x6822[8]];var ReportMailSession=require(_0x6822[3])[_0x6822[9]];var ReportAgentHistory=require(_0x6822[3])[_0x6822[11]][_0x6822[10]];var ReportCallHistory=require(_0x6822[3])[_0x6822[11]][_0x6822[12]];var ReportDialHistory=require(_0x6822[3])[_0x6822[11]][_0x6822[13]];var ReportMemberHistory=require(_0x6822[3])[_0x6822[11]][_0x6822[14]];var ReportQueueHistory=require(_0x6822[3])[_0x6822[11]][_0x6822[15]];var ReportIntegrationHistory=require(_0x6822[3])[_0x6822[11]][_0x6822[16]];var ReportMailSessionHistory=require(_0x6822[3])[_0x6822[11]][_0x6822[17]];function ReportAgentInReportAgentHistory(){ReportAgent[_0x6822[34]]({where:{createdAt:{$lte:moment()[_0x6822[33]](_0x6822[32])},reason:{$ne:null}},raw:true})[_0x6822[28]](function(_0x5ed6x12){console[_0x6822[23]](_0x6822[21]+_0x5ed6x12[_0x6822[22]]);_0x5ed6x12[_0x6822[31]](function(_0x5ed6x13,_0x5ed6x14){ReportAgentHistory[_0x6822[30]](_0x5ed6x13)[_0x6822[28]](function(){console[_0x6822[23]](_0x6822[24]+_0x5ed6x13[_0x6822[25]]+_0x6822[26]);ReportAgent[_0x6822[29]]({where:{id:_0x5ed6x13[_0x6822[25]]},individualHooks:true})[_0x6822[28]](function(_0x5ed6x15){console[_0x6822[23]](_0x6822[24]+_0x5ed6x13[_0x6822[25]]+_0x6822[27])})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[18]+_0x5ed6x11)})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[18]+_0x5ed6x11)})})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[19]](_0x6822[18]+_0x5ed6x11)})}function ReportCallInReportCallHistory(){ReportCall[_0x6822[34]]({where:{createdAt:{$lte:moment()[_0x6822[33]](_0x6822[32])}},raw:true})[_0x6822[28]](function(_0x5ed6x12){_0x5ed6x12[_0x6822[31]](function(_0x5ed6x13,_0x5ed6x14){console[_0x6822[23]](_0x6822[36]+_0x5ed6x12[_0x6822[22]]);ReportCallHistory[_0x6822[30]](_0x5ed6x13)[_0x6822[28]](function(){console[_0x6822[23]](_0x6822[37]+_0x5ed6x13[_0x6822[25]]+_0x6822[26]);ReportCall[_0x6822[29]]({where:{id:_0x5ed6x13[_0x6822[25]]},individualHooks:true})[_0x6822[28]](function(_0x5ed6x15){console[_0x6822[23]](_0x6822[38]+_0x5ed6x13[_0x6822[25]]+_0x6822[27])})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[35]+_0x5ed6x11)})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[35]+_0x5ed6x11)})})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[19]](_0x6822[35]+_0x5ed6x11)})}function ReportDialInReportDialHistory(){ReportDial[_0x6822[34]]({where:{createdAt:{$lte:moment()[_0x6822[33]](_0x6822[32])},dialstatus:{$ne:null}},raw:true})[_0x6822[28]](function(_0x5ed6x12){console[_0x6822[23]](_0x6822[40]+_0x5ed6x12[_0x6822[22]]);_0x5ed6x12[_0x6822[31]](function(_0x5ed6x13,_0x5ed6x14){ReportDialHistory[_0x6822[30]](_0x5ed6x13)[_0x6822[28]](function(){console[_0x6822[23]](_0x6822[41]+_0x5ed6x13[_0x6822[25]]+_0x6822[26]);ReportDial[_0x6822[29]]({where:{id:_0x5ed6x13[_0x6822[25]]},individualHooks:true})[_0x6822[28]](function(_0x5ed6x15){console[_0x6822[23]](_0x6822[41]+_0x5ed6x13[_0x6822[25]]+_0x6822[27])})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[39]+_0x5ed6x11)})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[39]+_0x5ed6x11)})})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[19]](_0x6822[39]+_0x5ed6x11)})}function ReportMemberInReportMemberHistory(){ReportMember[_0x6822[34]]({where:{createdAt:{$lte:moment()[_0x6822[33]](_0x6822[32])},exitdate:{$ne:null}},raw:true})[_0x6822[28]](function(_0x5ed6x12){console[_0x6822[23]](_0x6822[43]+_0x5ed6x12[_0x6822[22]]);_0x5ed6x12[_0x6822[31]](function(_0x5ed6x13,_0x5ed6x14){ReportMemberHistory[_0x6822[30]](_0x5ed6x13)[_0x6822[28]](function(){console[_0x6822[23]](_0x6822[44]+_0x5ed6x13[_0x6822[25]]+_0x6822[26]);ReportMember[_0x6822[29]]({where:{id:_0x5ed6x13[_0x6822[25]]},individualHooks:true})[_0x6822[28]](function(_0x5ed6x15){console[_0x6822[23]](_0x6822[44]+_0x5ed6x13[_0x6822[25]]+_0x6822[27])})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[42]+_0x5ed6x11)})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[42]+_0x5ed6x11)})})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[19]](_0x6822[42]+_0x5ed6x11)})}function ReportQueueInReportQueueHistory(){ReportQueue[_0x6822[34]]({where:{createdAt:{$lte:moment()[_0x6822[33]](_0x6822[32])},queuecallerleaveAt:{$ne:null}},raw:true})[_0x6822[28]](function(_0x5ed6x12){console[_0x6822[23]](_0x6822[46]+_0x5ed6x12[_0x6822[22]]);_0x5ed6x12[_0x6822[31]](function(_0x5ed6x13,_0x5ed6x14){ReportQueueHistory[_0x6822[30]](_0x5ed6x13)[_0x6822[28]](function(){console[_0x6822[23]](_0x6822[47]+_0x5ed6x13[_0x6822[25]]+_0x6822[26]);ReportQueue[_0x6822[29]]({where:{id:_0x5ed6x13[_0x6822[25]]},individualHooks:true})[_0x6822[28]](function(_0x5ed6x15){console[_0x6822[23]](_0x6822[47]+_0x5ed6x13[_0x6822[25]]+_0x6822[27])})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[45]+_0x5ed6x11)})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[45]+_0x5ed6x11)})})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[19]](_0x6822[45]+_0x5ed6x11)})}function ReportIntegrationInReportIntegrationHistory(){ReportIntegration[_0x6822[34]]({where:{createdAt:{$lte:moment()[_0x6822[33]](_0x6822[32])}},raw:true})[_0x6822[28]](function(_0x5ed6x12){_0x5ed6x12[_0x6822[31]](function(_0x5ed6x13,_0x5ed6x14){console[_0x6822[23]](_0x6822[49]+_0x5ed6x12[_0x6822[22]]);ReportIntegrationHistory[_0x6822[30]](_0x5ed6x13)[_0x6822[28]](function(){console[_0x6822[23]](_0x6822[37]+_0x5ed6x13[_0x6822[25]]+_0x6822[26]);ReportIntegration[_0x6822[29]]({where:{id:_0x5ed6x13[_0x6822[25]]},individualHooks:true})[_0x6822[28]](function(_0x5ed6x15){console[_0x6822[23]](_0x6822[50]+_0x5ed6x13[_0x6822[25]]+_0x6822[27])})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[48]+_0x5ed6x11)})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[48]+_0x5ed6x11)})})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[19]](_0x6822[48]+_0x5ed6x11)})}function ReportMailSessionInReportMailSessionHistory(){ReportMailSession[_0x6822[34]]({where:{createdAt:{$lte:moment()[_0x6822[33]](_0x6822[32])},mailleaveAt:{$ne:null}},raw:true})[_0x6822[28]](function(_0x5ed6x12){console[_0x6822[23]](_0x6822[52]+_0x5ed6x12[_0x6822[22]]);_0x5ed6x12[_0x6822[31]](function(_0x5ed6x13,_0x5ed6x14){ReportMailSessionHistory[_0x6822[30]](_0x5ed6x13)[_0x6822[28]](function(){console[_0x6822[23]](_0x6822[53]+_0x5ed6x13[_0x6822[25]]+_0x6822[26]);ReportMailSession[_0x6822[29]]({where:{id:_0x5ed6x13[_0x6822[25]]},individualHooks:true})[_0x6822[28]](function(_0x5ed6x15){console[_0x6822[23]](_0x6822[53]+_0x5ed6x13[_0x6822[25]]+_0x6822[27])})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[51]+_0x5ed6x11)})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[23]](_0x6822[51]+_0x5ed6x11)})})})[_0x6822[20]](function(_0x5ed6x11){console[_0x6822[19]](_0x6822[51]+_0x5ed6x11)})}module[_0x6822[54]]=function(_0x5ed6x1c){var _0x5ed6x1d= new _0x5ed6x1c({cronTime:_0x6822[55],onTick:function(){ new ReportAgentInReportAgentHistory(); new ReportCallInReportCallHistory(); new ReportDialInReportDialHistory(); new ReportMemberInReportMemberHistory(); new ReportQueueInReportQueueHistory(); new ReportIntegrationInReportIntegrationHistory(); new ReportMailSessionInReportMailSessionHistory()}});_0x5ed6x1d[_0x6822[56]]()}