Built motion from commit 7db2bc834.|1.0.35
[motion.git] / server / config / dashboard / dashboard.js
index 677a0c4..b89f538 100644 (file)
@@ -1 +1 @@
-var _0x48af=["\x75\x74\x69\x6C","\x72\x65\x64\x69\x73","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x72\x70\x63\x2F\x63\x6C\x69\x65\x6E\x74","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x67\x63","\x47\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x20\x75\x6E\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x2E\x20\x20\x50\x61\x73\x73\x20\x2D\x2D\x65\x78\x70\x6F\x73\x65\x2D\x67\x63\x20","\x77\x68\x65\x6E\x20\x6C\x61\x75\x6E\x63\x68\x69\x6E\x67\x20\x6E\x6F\x64\x65\x20\x74\x6F\x20\x65\x6E\x61\x62\x6C\x65\x20\x66\x6F\x72\x63\x65\x64\x20\x67\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x2E","\x77\x61\x72\x6E","\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x73\x65\x72\x76\x69\x63\x65\x20\x73\x74\x61\x72\x74\x65\x64\x20\x5B\x50\x49\x44\x3A\x20\x25\x64\x5D","\x70\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x69\x6E\x66\x6F","\x72\x65\x64\x69\x73\x50\x77\x64","\x69\x70","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6D\x61\x69\x6C","\x65\x6D\x69\x74","\x61\x64\x6D\x69\x6E\x73","\x74\x6F","\x75\x73\x65\x72\x73","\x66\x69\x6E\x61\x6C\x6C\x79","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x6D\x61\x69\x6C\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\x63\x61\x74\x63\x68","\x74\x69\x6D\x65\x6F\x75\x74","\x72\x6F\x75\x74\x69\x6E\x67\x53\x74\x61\x74\x73","\x74\x68\x65\x6E","\x77\x61\x69\x74\x69\x6E\x67","\x63\x6F\x75\x6E\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\x72\x65\x71\x75\x65\x73\x74","\x73\x74\x61\x74\x75\x73","\x6B\x65\x79\x42\x79","\x6D\x61\x70\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x72\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x71\x75\x65\x72\x79","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x73\x20\x57\x48\x45\x52\x45\x20\x64\x65\x6C\x65\x74\x65\x64\x41\x74\x20\x49\x53\x20\x4E\x55\x4C\x4C\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x73\x6D\x73","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x73\x6D\x73\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73\x53\x65\x73\x73\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x73\x6D\x73\x5F\x72\x6F\x6F\x6D\x73\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x52\x65\x70\x6F\x72\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x72\x6F\x6F\x6D\x73\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x66\x61\x78","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x66\x61\x78\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x53\x65\x73\x73\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x73\x20\x57\x48\x45\x52\x45\x20\x64\x65\x6C\x65\x74\x65\x64\x41\x74\x20\x49\x53\x20\x4E\x55\x4C\x4C\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x68\x61\x74","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x63\x68\x61\x74\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73\x20\x57\x48\x45\x52\x45\x20\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x3E\x3D\x20\x27\x25\x73\x27\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73"];var util=require(_0x48af[0]);var redis=require(_0x48af[1]);var _=require(_0x48af[2]);var moment=require(_0x48af[3]);var logger=require(_0x48af[5])(_0x48af[4]);var rpcClient=require(_0x48af[6]);var config=require(_0x48af[7]);setInterval(function(){if(global[_0x48af[8]]){global[_0x48af[8]]()}else {logger[_0x48af[11]](_0x48af[9]+ _0x48af[10])}},20000);var mTimeout=null;var cTimeout=null;var fTimeout=null;var oTimeout=null;var sTimeout=null;var timeoutSec=30;logger[_0x48af[15]](util[_0x48af[14]](_0x48af[12],process[_0x48af[13]]));var redisConf;if(config[_0x48af[16]]){redisConf= {password:config[_0x48af[16]]}};var redisClient=redis[_0x48af[18]](6379,config[_0x48af[17]],redisConf);var io=require(_0x48af[19])(redisClient);function mailDashboard(){var _0x2eeex12={roomStatus:{new:0,open:0,pending:0,closed:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0x48af[38]](_0x48af[44],[_0x48af[45]])[_0x48af[32]](function(_0x2eeex15){var _0x2eeex16=_[_0x48af[42]]({new:0,open:0,pending:0,closed:0},_[_0x48af[41]](_[_0x48af[40]](_0x2eeex15,_0x48af[39]),_0x48af[34]));_0x2eeex12[_0x48af[43]]= _0x2eeex16;return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[35],{where:{leaveAt:null,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[33]]= _0x2eeex14};return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[35],{where:{timeout:true,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[30]]= _0x2eeex14}})[_0x48af[29]](function(_0x2eeex13){logger[_0x48af[27]](_0x48af[26]);logger[_0x48af[27]](_0x2eeex13[_0x48af[28]])})[_0x48af[25]](function(){io[_0x48af[23]](_0x48af[22])[_0x48af[21]](_0x48af[20],_0x2eeex12);io[_0x48af[23]](_0x48af[24])[_0x48af[21]](_0x48af[20],_0x2eeex12);mTimeout= setTimeout(mailDashboard,timeoutSec* 1000)})}function smsDashboard(){var _0x2eeex12={roomStatus:{new:0,open:0,pending:0,closed:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0x48af[38]](_0x48af[44],[_0x48af[49]])[_0x48af[32]](function(_0x2eeex15){var _0x2eeex16=_[_0x48af[42]]({new:0,open:0,pending:0,closed:0},_[_0x48af[41]](_[_0x48af[40]](_0x2eeex15,_0x48af[39]),_0x48af[34]));_0x2eeex12[_0x48af[43]]= _0x2eeex16;return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[48],{where:{leaveAt:null,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[33]]= _0x2eeex14};return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[48],{where:{timeout:true,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[30]]= _0x2eeex14}})[_0x48af[29]](function(_0x2eeex13){logger[_0x48af[27]](_0x48af[47]);logger[_0x48af[27]](_0x2eeex13[_0x48af[28]])})[_0x48af[25]](function(){io[_0x48af[23]](_0x48af[22])[_0x48af[21]](_0x48af[46],_0x2eeex12);io[_0x48af[23]](_0x48af[24])[_0x48af[21]](_0x48af[46],_0x2eeex12);sTimeout= setTimeout(smsDashboard,timeoutSec* 1000)})}function openchannelDashboard(){var _0x2eeex12={roomStatus:{new:0,open:0,pending:0,closed:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0x48af[38]](_0x48af[44],[_0x48af[53]])[_0x48af[32]](function(_0x2eeex15){var _0x2eeex16=_[_0x48af[42]]({new:0,open:0,pending:0,closed:0},_[_0x48af[41]](_[_0x48af[40]](_0x2eeex15,_0x48af[39]),_0x48af[34]));_0x2eeex12[_0x48af[43]]= _0x2eeex16;return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[52],{where:{leaveAt:null,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[33]]= _0x2eeex14};return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[52],{where:{timeout:true,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[30]]= _0x2eeex14}})[_0x48af[29]](function(_0x2eeex13){logger[_0x48af[27]](_0x48af[51]);logger[_0x48af[27]](_0x2eeex13[_0x48af[28]])})[_0x48af[25]](function(){io[_0x48af[23]](_0x48af[22])[_0x48af[21]](_0x48af[50],_0x2eeex12);io[_0x48af[23]](_0x48af[24])[_0x48af[21]](_0x48af[50],_0x2eeex12);oTimeout= setTimeout(openchannelDashboard,timeoutSec* 1000)})}function faxDashboard(){var _0x2eeex12={roomStatus:{new:0,open:0,pending:0,closed:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0x48af[38]](_0x48af[44],[_0x48af[57]])[_0x48af[32]](function(_0x2eeex15){var _0x2eeex16=_[_0x48af[42]]({new:0,open:0,pending:0,closed:0},_[_0x48af[41]](_[_0x48af[40]](_0x2eeex15,_0x48af[39]),_0x48af[34]));_0x2eeex12[_0x48af[43]]= _0x2eeex16;return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[56],{where:{leaveAt:null,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[33]]= _0x2eeex14};return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[56],{where:{timeout:true,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[30]]= _0x2eeex14}})[_0x48af[29]](function(_0x2eeex13){logger[_0x48af[27]](_0x48af[55]);logger[_0x48af[27]](_0x2eeex13[_0x48af[28]])})[_0x48af[25]](function(){io[_0x48af[23]](_0x48af[22])[_0x48af[21]](_0x48af[54],_0x2eeex12);io[_0x48af[23]](_0x48af[24])[_0x48af[21]](_0x48af[54],_0x2eeex12);fTimeout= setTimeout(faxDashboard,timeoutSec* 1000)})}function chatDashboard(){var _0x2eeex12={roomStatus:{new:0,open:0,closed:0,abandon:0,unmanaged:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0x48af[38]](_0x48af[44],[util[_0x48af[14]](_0x48af[61],moment()[_0x48af[37]](_0x48af[36])[_0x48af[14]](_0x48af[62]))])[_0x48af[32]](function(_0x2eeex15){var _0x2eeex16=_[_0x48af[42]]({new:0,open:0,closed:0,abandon:0,unmanaged:0},_[_0x48af[41]](_[_0x48af[40]](_0x2eeex15,_0x48af[39]),_0x48af[34]));_0x2eeex12[_0x48af[43]]= _0x2eeex16;return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[60],{where:{leaveAt:null,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[33]]= _0x2eeex14};return rpcClient[_0x48af[38]](_0x48af[34],[_0x48af[60],{where:{timeout:true,createdAt:{$gte:moment()[_0x48af[37]](_0x48af[36])}}}])})[_0x48af[32]](function(_0x2eeex14){if(_0x2eeex14){_0x2eeex12[_0x48af[31]][_0x48af[30]]= _0x2eeex14}})[_0x48af[29]](function(_0x2eeex13){logger[_0x48af[27]](_0x48af[59]);logger[_0x48af[27]](_0x2eeex13[_0x48af[28]])})[_0x48af[25]](function(){io[_0x48af[23]](_0x48af[22])[_0x48af[21]](_0x48af[58],_0x2eeex12);io[_0x48af[23]](_0x48af[24])[_0x48af[21]](_0x48af[58],_0x2eeex12);cTimeout= setTimeout(chatDashboard,timeoutSec* 1000)})}mailDashboard();smsDashboard();openchannelDashboard();faxDashboard();chatDashboard()
\ No newline at end of file
+var _0xc9d8=["\x75\x74\x69\x6C","\x72\x65\x64\x69\x73","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2E\x2F\x72\x70\x63\x2F\x63\x6C\x69\x65\x6E\x74","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x67\x63","\x47\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x20\x75\x6E\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x2E\x20\x20\x50\x61\x73\x73\x20\x2D\x2D\x65\x78\x70\x6F\x73\x65\x2D\x67\x63\x20","\x77\x68\x65\x6E\x20\x6C\x61\x75\x6E\x63\x68\x69\x6E\x67\x20\x6E\x6F\x64\x65\x20\x74\x6F\x20\x65\x6E\x61\x62\x6C\x65\x20\x66\x6F\x72\x63\x65\x64\x20\x67\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x2E","\x77\x61\x72\x6E","\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x73\x65\x72\x76\x69\x63\x65\x20\x73\x74\x61\x72\x74\x65\x64\x20\x5B\x50\x49\x44\x3A\x20\x25\x64\x5D","\x70\x69\x64","\x66\x6F\x72\x6D\x61\x74","\x69\x6E\x66\x6F","\x72\x65\x64\x69\x73\x50\x77\x64","\x69\x70","\x63\x72\x65\x61\x74\x65\x43\x6C\x69\x65\x6E\x74","\x73\x6F\x63\x6B\x65\x74\x2E\x69\x6F\x2D\x65\x6D\x69\x74\x74\x65\x72","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6D\x61\x69\x6C","\x65\x6D\x69\x74","\x61\x64\x6D\x69\x6E\x73","\x74\x6F","\x75\x73\x65\x72\x73","\x66\x69\x6E\x61\x6C\x6C\x79","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x6D\x61\x69\x6C\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\x63\x61\x74\x63\x68","\x74\x69\x6D\x65\x6F\x75\x74","\x72\x6F\x75\x74\x69\x6E\x67\x53\x74\x61\x74\x73","\x74\x68\x65\x6E","\x77\x61\x69\x74\x69\x6E\x67","\x63\x6F\x75\x6E\x74","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\x72\x65\x71\x75\x65\x73\x74","\x73\x74\x61\x74\x75\x73","\x6B\x65\x79\x42\x79","\x6D\x61\x70\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x72\x6F\x6F\x6D\x53\x74\x61\x74\x75\x73","\x71\x75\x65\x72\x79","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x73\x20\x57\x48\x45\x52\x45\x20\x64\x65\x6C\x65\x74\x65\x64\x41\x74\x20\x49\x53\x20\x4E\x55\x4C\x4C\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x73\x6D\x73","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x73\x6D\x73\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73\x53\x65\x73\x73\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x73\x6D\x73\x5F\x72\x6F\x6F\x6D\x73\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x52\x65\x70\x6F\x72\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x72\x6F\x6F\x6D\x73\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x66\x61\x78","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x66\x61\x78\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x53\x65\x73\x73\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x73\x20\x57\x48\x45\x52\x45\x20\x64\x65\x6C\x65\x74\x65\x64\x41\x74\x20\x49\x53\x20\x4E\x55\x4C\x4C\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x68\x61\x74","\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x63\x68\x61\x74\x20\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x71\x75\x65\x72\x79\x69\x6E\x67","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x4C\x4F\x57\x45\x52\x28\x73\x74\x61\x74\x75\x73\x29\x20\x41\x53\x20\x73\x74\x61\x74\x75\x73\x2C\x20\x43\x4F\x55\x4E\x54\x28\x69\x64\x29\x20\x41\x53\x20\x63\x6F\x75\x6E\x74\x20\x46\x52\x4F\x4D\x20\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73\x20\x57\x48\x45\x52\x45\x20\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x3E\x3D\x20\x27\x25\x73\x27\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x73\x74\x61\x74\x75\x73","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73"];var util=require(_0xc9d8[0]);var redis=require(_0xc9d8[1]);var _=require(_0xc9d8[2]);var moment=require(_0xc9d8[3]);var logger=require(_0xc9d8[5])(_0xc9d8[4]);var rpcClient=require(_0xc9d8[6]);var config=require(_0xc9d8[7]);setInterval(function(){if(global[_0xc9d8[8]]){global[_0xc9d8[8]]()}else {logger[_0xc9d8[11]](_0xc9d8[9]+ _0xc9d8[10])}},20000);var mTimeout=null;var cTimeout=null;var fTimeout=null;var oTimeout=null;var sTimeout=null;var timeoutSec=30;logger[_0xc9d8[15]](util[_0xc9d8[14]](_0xc9d8[12],process[_0xc9d8[13]]));var redisConf;if(config[_0xc9d8[16]]){redisConf= {password:config[_0xc9d8[16]]}};var redisClient=redis[_0xc9d8[18]](6379,config[_0xc9d8[17]],redisConf);var io=require(_0xc9d8[19])(redisClient);function mailDashboard(){var _0xd8a4x12={roomStatus:{new:0,open:0,pending:0,closed:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0xc9d8[38]](_0xc9d8[44],[_0xc9d8[45]])[_0xc9d8[32]](function(_0xd8a4x15){var _0xd8a4x16=_[_0xc9d8[42]]({new:0,open:0,pending:0,closed:0},_[_0xc9d8[41]](_[_0xc9d8[40]](_0xd8a4x15,_0xc9d8[39]),_0xc9d8[34]));_0xd8a4x12[_0xc9d8[43]]= _0xd8a4x16;return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[35],{where:{leaveAt:null,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[33]]= _0xd8a4x14};return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[35],{where:{timeout:true,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[30]]= _0xd8a4x14}})[_0xc9d8[29]](function(_0xd8a4x13){logger[_0xc9d8[27]](_0xc9d8[26]);logger[_0xc9d8[27]](_0xd8a4x13[_0xc9d8[28]])})[_0xc9d8[25]](function(){io[_0xc9d8[23]](_0xc9d8[22])[_0xc9d8[21]](_0xc9d8[20],_0xd8a4x12);io[_0xc9d8[23]](_0xc9d8[24])[_0xc9d8[21]](_0xc9d8[20],_0xd8a4x12);mTimeout= setTimeout(mailDashboard,timeoutSec* 1000)})}function smsDashboard(){var _0xd8a4x12={roomStatus:{new:0,open:0,pending:0,closed:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0xc9d8[38]](_0xc9d8[44],[_0xc9d8[49]])[_0xc9d8[32]](function(_0xd8a4x15){var _0xd8a4x16=_[_0xc9d8[42]]({new:0,open:0,pending:0,closed:0},_[_0xc9d8[41]](_[_0xc9d8[40]](_0xd8a4x15,_0xc9d8[39]),_0xc9d8[34]));_0xd8a4x12[_0xc9d8[43]]= _0xd8a4x16;return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[48],{where:{leaveAt:null,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[33]]= _0xd8a4x14};return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[48],{where:{timeout:true,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[30]]= _0xd8a4x14}})[_0xc9d8[29]](function(_0xd8a4x13){logger[_0xc9d8[27]](_0xc9d8[47]);logger[_0xc9d8[27]](_0xd8a4x13[_0xc9d8[28]])})[_0xc9d8[25]](function(){io[_0xc9d8[23]](_0xc9d8[22])[_0xc9d8[21]](_0xc9d8[46],_0xd8a4x12);io[_0xc9d8[23]](_0xc9d8[24])[_0xc9d8[21]](_0xc9d8[46],_0xd8a4x12);sTimeout= setTimeout(smsDashboard,timeoutSec* 1000)})}function openchannelDashboard(){var _0xd8a4x12={roomStatus:{new:0,open:0,pending:0,closed:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0xc9d8[38]](_0xc9d8[44],[_0xc9d8[53]])[_0xc9d8[32]](function(_0xd8a4x15){var _0xd8a4x16=_[_0xc9d8[42]]({new:0,open:0,pending:0,closed:0},_[_0xc9d8[41]](_[_0xc9d8[40]](_0xd8a4x15,_0xc9d8[39]),_0xc9d8[34]));_0xd8a4x12[_0xc9d8[43]]= _0xd8a4x16;return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[52],{where:{leaveAt:null,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[33]]= _0xd8a4x14};return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[52],{where:{timeout:true,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[30]]= _0xd8a4x14}})[_0xc9d8[29]](function(_0xd8a4x13){logger[_0xc9d8[27]](_0xc9d8[51]);logger[_0xc9d8[27]](_0xd8a4x13[_0xc9d8[28]])})[_0xc9d8[25]](function(){io[_0xc9d8[23]](_0xc9d8[22])[_0xc9d8[21]](_0xc9d8[50],_0xd8a4x12);io[_0xc9d8[23]](_0xc9d8[24])[_0xc9d8[21]](_0xc9d8[50],_0xd8a4x12);oTimeout= setTimeout(openchannelDashboard,timeoutSec* 1000)})}function faxDashboard(){var _0xd8a4x12={roomStatus:{new:0,open:0,pending:0,closed:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0xc9d8[38]](_0xc9d8[44],[_0xc9d8[57]])[_0xc9d8[32]](function(_0xd8a4x15){var _0xd8a4x16=_[_0xc9d8[42]]({new:0,open:0,pending:0,closed:0},_[_0xc9d8[41]](_[_0xc9d8[40]](_0xd8a4x15,_0xc9d8[39]),_0xc9d8[34]));_0xd8a4x12[_0xc9d8[43]]= _0xd8a4x16;return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[56],{where:{leaveAt:null,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[33]]= _0xd8a4x14};return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[56],{where:{timeout:true,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[30]]= _0xd8a4x14}})[_0xc9d8[29]](function(_0xd8a4x13){logger[_0xc9d8[27]](_0xc9d8[55]);logger[_0xc9d8[27]](_0xd8a4x13[_0xc9d8[28]])})[_0xc9d8[25]](function(){io[_0xc9d8[23]](_0xc9d8[22])[_0xc9d8[21]](_0xc9d8[54],_0xd8a4x12);io[_0xc9d8[23]](_0xc9d8[24])[_0xc9d8[21]](_0xc9d8[54],_0xd8a4x12);fTimeout= setTimeout(faxDashboard,timeoutSec* 1000)})}function chatDashboard(){var _0xd8a4x12={roomStatus:{new:0,open:0,closed:0,abandon:0,unmanaged:0},routingStats:{waiting:0,timeout:0}};return rpcClient[_0xc9d8[38]](_0xc9d8[44],[util[_0xc9d8[14]](_0xc9d8[61],moment()[_0xc9d8[37]](_0xc9d8[36])[_0xc9d8[14]](_0xc9d8[62]))])[_0xc9d8[32]](function(_0xd8a4x15){var _0xd8a4x16=_[_0xc9d8[42]]({new:0,open:0,closed:0,abandon:0,unmanaged:0},_[_0xc9d8[41]](_[_0xc9d8[40]](_0xd8a4x15,_0xc9d8[39]),_0xc9d8[34]));_0xd8a4x12[_0xc9d8[43]]= _0xd8a4x16;return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[60],{where:{leaveAt:null,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[33]]= _0xd8a4x14};return rpcClient[_0xc9d8[38]](_0xc9d8[34],[_0xc9d8[60],{where:{timeout:true,createdAt:{$gte:moment()[_0xc9d8[37]](_0xc9d8[36])}}}])})[_0xc9d8[32]](function(_0xd8a4x14){if(_0xd8a4x14){_0xd8a4x12[_0xc9d8[31]][_0xc9d8[30]]= _0xd8a4x14}})[_0xc9d8[29]](function(_0xd8a4x13){logger[_0xc9d8[27]](_0xc9d8[59]);logger[_0xc9d8[27]](_0xd8a4x13[_0xc9d8[28]])})[_0xc9d8[25]](function(){io[_0xc9d8[23]](_0xc9d8[22])[_0xc9d8[21]](_0xc9d8[58],_0xd8a4x12);io[_0xc9d8[23]](_0xc9d8[24])[_0xc9d8[21]](_0xc9d8[58],_0xd8a4x12);cTimeout= setTimeout(chatDashboard,timeoutSec* 1000)})}mailDashboard();smsDashboard();openchannelDashboard();faxDashboard();chatDashboard()
\ No newline at end of file