19b2d1018f8ad25d26325e3a231d71bd9b4d6542
[motion.git] / server / config / history / history.js
1 var _0xa8f8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x6D\x6F\x6D\x65\x6E\x74","\x61\x73\x79\x6E\x63","\x2E\x2F\x72\x65\x70\x6F\x72\x74\x4D\x6F\x76\x65","\x68\x69\x73\x74\x6F\x72\x79","\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","\x65\x78\x70\x6F\x72\x74\x73","\x30\x20\x35\x39\x20\x32\x33\x20\x2A\x20\x2A\x20\x2A","\x4D\x6F\x76\x69\x6E\x67\x20\x64\x61\x74\x61\x20\x69\x6E\x74\x6F\x20\x68\x69\x73\x74\x6F\x72\x79\x2E\x2E\x2E","\x6C\x6F\x67","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6D\x6F\x76\x65","\x74\x68\x65\x6E","\x61\x6C\x6C","\x73\x74\x61\x72\x74"];_0xa8f8[0];var sequelize=require(_0xa8f8[2])[_0xa8f8[1]];var moment=require(_0xa8f8[3]);var async=require(_0xa8f8[4]);var ReportMove=require(_0xa8f8[5]);var Models=require(_0xa8f8[2]);var HistoryModels=require(_0xa8f8[2])[_0xa8f8[6]];var moment=require(_0xa8f8[3]);var defaultCondition={where:{createdAt:{$lte:moment()[_0xa8f8[8]](_0xa8f8[7])}},raw:true};module[_0xa8f8[9]]= function(_0x329fx8){var _0x329fx9= new _0x329fx8({cronTime:_0xa8f8[10],onTick:function(){console[_0xa8f8[12]](_0xa8f8[11]);return Promise[_0xa8f8[17]]([])[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportIntegration,HistoryModels.ReportIntegrationHistory))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportCall,HistoryModels.ReportCallHistory))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportSquareDetail,HistoryModels.ReportSquareDetailHistory))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportTigerDial,HistoryModels.ReportTigerDialHistory))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportDial,HistoryModels.ReportDialHistory))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportCallTransfer,HistoryModels.ReportCallTransferHistory))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportAgent,HistoryModels.ReportAgentHistory,{reason:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportMember,HistoryModels.ReportMemberHistory,{exitAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportQueue,HistoryModels.ReportQueueHistory,{queuecallerleaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportChat,HistoryModels.ReportChatHistory,{reason:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportChatSession,HistoryModels.ReportChatSessionHistory,{leaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportChatRoom,HistoryModels.ReportChatRoomHistory,{leaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportMail,HistoryModels.ReportMailHistory,{reason:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportMailSession,HistoryModels.ReportMailSessionHistory,{leaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportMailRoom,HistoryModels.ReportMailRoomHistory,{leaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportSms,HistoryModels.ReportSmsHistory,{reason:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportSmsSession,HistoryModels.ReportSmsSessionHistory,{leaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportSquare,HistoryModels.ReportSquareHistory,{leaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportFax,HistoryModels.ReportFaxHistory,{reason:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportFaxSession,HistoryModels.ReportFaxSessionHistory,{leaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportFaxRoom,HistoryModels.ReportFaxRoomHistory,{leaveAt:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportOpenchannel,HistoryModels.ReportOpenchannelHistory,{reason:{$ne:null}}))[_0xa8f8[16]](ReportMove[_0xa8f8[15]](Models.ReportOpenchannelSession,HistoryModels.ReportOpenchannelSessionHistory,{leaveAt:{$ne:null}}))[_0xa8f8[14]](function(_0x329fxa){console[_0xa8f8[13]](_0x329fxa)})}});_0x329fx9[_0xa8f8[18]]()}