Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / services / routing / index.js
index c30a0d9..0c816d2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdb17=['then','initAgents','getIntervals','initIntervals','getOpenchannelQueues','initOpenchannelQueues','getChatQueues','initChatQueues','getMailQueues','initFaxQueues','getWhatsappQueues','log','bluebird','./server','./realtime','./rpc/user','./rpc/smsQueue','./rpc/mailQueue','resolve'];(function(_0x281315,_0x94136f){var _0x55c3d0=function(_0x2f3a8e){while(--_0x2f3a8e){_0x281315['push'](_0x281315['shift']());}};_0x55c3d0(++_0x94136f);}(_0xdb17,0x1ae));var _0x7db1=function(_0xcf5c52,_0x2e4153){_0xcf5c52=_0xcf5c52-0x0;var _0x4d39a3=_0xdb17[_0xcf5c52];return _0x4d39a3;};'use strict';var BPromise=require(_0x7db1('0x0'));var server=require(_0x7db1('0x1'));var Realtime=require(_0x7db1('0x2'));var user=require(_0x7db1('0x3'));var interval=require('./rpc/interval');var openchannelQueue=require('./rpc/openchannelQueue');var chatQueue=require('./rpc/chatQueue');var smsQueue=require(_0x7db1('0x4'));var mailQueue=require(_0x7db1('0x5'));var faxQueue=require('./rpc/faxQueue');var whatsappQueue=require('./rpc/whatsappQueue');var realtime=new Realtime();function initRealtime(){return BPromise[_0x7db1('0x6')]()['then'](user['getAgents']())[_0x7db1('0x7')](realtime[_0x7db1('0x8')]())[_0x7db1('0x7')](interval[_0x7db1('0x9')]())[_0x7db1('0x7')](realtime[_0x7db1('0xa')]())['then'](openchannelQueue[_0x7db1('0xb')]())[_0x7db1('0x7')](realtime[_0x7db1('0xc')]())[_0x7db1('0x7')](chatQueue[_0x7db1('0xd')]())['then'](realtime[_0x7db1('0xe')]())[_0x7db1('0x7')](smsQueue['getSmsQueues']())[_0x7db1('0x7')](realtime['initSmsQueues']())[_0x7db1('0x7')](mailQueue[_0x7db1('0xf')]())[_0x7db1('0x7')](realtime['initMailQueues']())['then'](faxQueue['getFaxQueues']())[_0x7db1('0x7')](realtime[_0x7db1('0x10')]())[_0x7db1('0x7')](whatsappQueue[_0x7db1('0x11')]())['then'](realtime['initWhatsappQueues']())[_0x7db1('0x7')](function(){return realtime;});}function main(){return server['listen'](realtime)[_0x7db1('0x7')](function(_0xbd12a5){return initRealtime();})[_0x7db1('0x7')](function(_0x7c1212){return setInterval(initRealtime,0x1388);})['catch'](function(_0x2214c4){console[_0x7db1('0x12')](_0x2214c4);});}main();
\ No newline at end of file
+var _0xe3ba=['./realtime','./rpc/openchannelQueue','./rpc/chatQueue','./rpc/mailQueue','./rpc/faxQueue','resolve','getAgents','then','getOpenchannelQueues','initOpenchannelQueues','getChatQueues','initChatQueues','getSmsQueues','initSmsQueues','getMailQueues','initMailQueues','getWhatsappQueues','listen','log','bluebird','./server'];(function(_0x3f563c,_0x29e611){var _0x2ebc3b=function(_0x197902){while(--_0x197902){_0x3f563c['push'](_0x3f563c['shift']());}};_0x2ebc3b(++_0x29e611);}(_0xe3ba,0xa6));var _0xae3b=function(_0x4b6804,_0x301b24){_0x4b6804=_0x4b6804-0x0;var _0x11b4f1=_0xe3ba[_0x4b6804];return _0x11b4f1;};'use strict';var BPromise=require(_0xae3b('0x0'));var server=require(_0xae3b('0x1'));var Realtime=require(_0xae3b('0x2'));var user=require('./rpc/user');var interval=require('./rpc/interval');var openchannelQueue=require(_0xae3b('0x3'));var chatQueue=require(_0xae3b('0x4'));var smsQueue=require('./rpc/smsQueue');var mailQueue=require(_0xae3b('0x5'));var faxQueue=require(_0xae3b('0x6'));var whatsappQueue=require('./rpc/whatsappQueue');var realtime=new Realtime();function initRealtime(){return BPromise[_0xae3b('0x7')]()['then'](user[_0xae3b('0x8')]())[_0xae3b('0x9')](realtime['initAgents']())['then'](interval['getIntervals']())[_0xae3b('0x9')](realtime['initIntervals']())[_0xae3b('0x9')](openchannelQueue[_0xae3b('0xa')]())[_0xae3b('0x9')](realtime[_0xae3b('0xb')]())[_0xae3b('0x9')](chatQueue[_0xae3b('0xc')]())[_0xae3b('0x9')](realtime[_0xae3b('0xd')]())[_0xae3b('0x9')](smsQueue[_0xae3b('0xe')]())[_0xae3b('0x9')](realtime[_0xae3b('0xf')]())['then'](mailQueue[_0xae3b('0x10')]())[_0xae3b('0x9')](realtime[_0xae3b('0x11')]())[_0xae3b('0x9')](faxQueue['getFaxQueues']())[_0xae3b('0x9')](realtime['initFaxQueues']())[_0xae3b('0x9')](whatsappQueue[_0xae3b('0x12')]())['then'](realtime['initWhatsappQueues']())[_0xae3b('0x9')](function(){return realtime;});}function main(){return server[_0xae3b('0x13')](realtime)[_0xae3b('0x9')](function(_0x572092){return initRealtime();})[_0xae3b('0x9')](function(_0x5a595e){return setInterval(initRealtime,0x1388);})['catch'](function(_0x41bd8c){console[_0xae3b('0x14')](_0x41bd8c);});}main();
\ No newline at end of file