Built motion from commit (unavailable).|2.5.15
[motion2.git] / server / services / routing / index.js
index d2cc780..e171b98 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf376=['getMailQueues','initMailQueues','getFaxQueues','initFaxQueues','getWhatsappQueues','initWhatsappQueues','listen','log','bluebird','./server','./rpc/user','./rpc/interval','./rpc/openchannelQueue','./rpc/chatQueue','./rpc/mailQueue','./rpc/faxQueue','resolve','then','getIntervals','initIntervals','getOpenchannelQueues','initOpenchannelQueues','getChatQueues','initChatQueues','getSmsQueues','initSmsQueues'];(function(_0x4e676e,_0x2a7c6d){var _0x336a3c=function(_0x4767c4){while(--_0x4767c4){_0x4e676e['push'](_0x4e676e['shift']());}};_0x336a3c(++_0x2a7c6d);}(_0xf376,0x126));var _0x6f37=function(_0x5372a4,_0x57b968){_0x5372a4=_0x5372a4-0x0;var _0x1b3253=_0xf376[_0x5372a4];return _0x1b3253;};'use strict';var BPromise=require(_0x6f37('0x0'));var server=require(_0x6f37('0x1'));var Realtime=require('./realtime');var user=require(_0x6f37('0x2'));var interval=require(_0x6f37('0x3'));var openchannelQueue=require(_0x6f37('0x4'));var chatQueue=require(_0x6f37('0x5'));var smsQueue=require('./rpc/smsQueue');var mailQueue=require(_0x6f37('0x6'));var faxQueue=require(_0x6f37('0x7'));var whatsappQueue=require('./rpc/whatsappQueue');var realtime=new Realtime();function initRealtime(){return BPromise[_0x6f37('0x8')]()['then'](user['getAgents']())['then'](realtime['initAgents']())[_0x6f37('0x9')](interval[_0x6f37('0xa')]())[_0x6f37('0x9')](realtime[_0x6f37('0xb')]())[_0x6f37('0x9')](openchannelQueue[_0x6f37('0xc')]())[_0x6f37('0x9')](realtime[_0x6f37('0xd')]())[_0x6f37('0x9')](chatQueue[_0x6f37('0xe')]())[_0x6f37('0x9')](realtime[_0x6f37('0xf')]())[_0x6f37('0x9')](smsQueue[_0x6f37('0x10')]())[_0x6f37('0x9')](realtime[_0x6f37('0x11')]())[_0x6f37('0x9')](mailQueue[_0x6f37('0x12')]())[_0x6f37('0x9')](realtime[_0x6f37('0x13')]())['then'](faxQueue[_0x6f37('0x14')]())['then'](realtime[_0x6f37('0x15')]())[_0x6f37('0x9')](whatsappQueue[_0x6f37('0x16')]())[_0x6f37('0x9')](realtime[_0x6f37('0x17')]())[_0x6f37('0x9')](function(){return realtime;});}function main(){return server[_0x6f37('0x18')](realtime)[_0x6f37('0x9')](function(_0x27f037){return initRealtime();})[_0x6f37('0x9')](function(_0x21d0cb){return setInterval(initRealtime,0x1388);})['catch'](function(_0x57a2ee){console[_0x6f37('0x19')](_0x57a2ee);});}main();
\ No newline at end of file
+var _0x1dbf=['initFaxQueues','getWhatsappQueues','initWhatsappQueues','listen','catch','bluebird','./server','./rpc/interval','./rpc/openchannelQueue','./rpc/chatQueue','./rpc/smsQueue','./rpc/faxQueue','./rpc/whatsappQueue','resolve','then','getAgents','initAgents','getIntervals','initIntervals','getOpenchannelQueues','initOpenchannelQueues','initChatQueues','getMailQueues','initMailQueues','getFaxQueues'];(function(_0x2f7040,_0x5cf0a5){var _0x24de98=function(_0x3ae4b6){while(--_0x3ae4b6){_0x2f7040['push'](_0x2f7040['shift']());}};_0x24de98(++_0x5cf0a5);}(_0x1dbf,0xe6));var _0xf1db=function(_0x3b2be5,_0x9c01ae){_0x3b2be5=_0x3b2be5-0x0;var _0x14cd8=_0x1dbf[_0x3b2be5];return _0x14cd8;};'use strict';var BPromise=require(_0xf1db('0x0'));var server=require(_0xf1db('0x1'));var Realtime=require('./realtime');var user=require('./rpc/user');var interval=require(_0xf1db('0x2'));var openchannelQueue=require(_0xf1db('0x3'));var chatQueue=require(_0xf1db('0x4'));var smsQueue=require(_0xf1db('0x5'));var mailQueue=require('./rpc/mailQueue');var faxQueue=require(_0xf1db('0x6'));var whatsappQueue=require(_0xf1db('0x7'));var realtime=new Realtime();function initRealtime(){return BPromise[_0xf1db('0x8')]()[_0xf1db('0x9')](user[_0xf1db('0xa')]())[_0xf1db('0x9')](realtime[_0xf1db('0xb')]())[_0xf1db('0x9')](interval[_0xf1db('0xc')]())[_0xf1db('0x9')](realtime[_0xf1db('0xd')]())[_0xf1db('0x9')](openchannelQueue[_0xf1db('0xe')]())[_0xf1db('0x9')](realtime[_0xf1db('0xf')]())[_0xf1db('0x9')](chatQueue['getChatQueues']())[_0xf1db('0x9')](realtime[_0xf1db('0x10')]())['then'](smsQueue['getSmsQueues']())['then'](realtime['initSmsQueues']())['then'](mailQueue[_0xf1db('0x11')]())[_0xf1db('0x9')](realtime[_0xf1db('0x12')]())[_0xf1db('0x9')](faxQueue[_0xf1db('0x13')]())['then'](realtime[_0xf1db('0x14')]())['then'](whatsappQueue[_0xf1db('0x15')]())['then'](realtime[_0xf1db('0x16')]())[_0xf1db('0x9')](function(){return realtime;});}function main(){return server[_0xf1db('0x17')](realtime)[_0xf1db('0x9')](function(_0x901ca7){return initRealtime();})['then'](function(_0x5c83d7){return setInterval(initRealtime,0x1388);})[_0xf1db('0x18')](function(_0x123980){console['log'](_0x123980);});}main();
\ No newline at end of file