Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / services / routing / index.js
index 2be1364..f19590c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8f11=['catch','log','bluebird','./server','./rpc/user','./rpc/interval','./rpc/chatQueue','./rpc/faxQueue','then','initAgents','getOpenchannelQueues','initOpenchannelQueues','initChatQueues','initSmsQueues','getMailQueues','initMailQueues','getFaxQueues','initFaxQueues','initWhatsappQueues','listen'];(function(_0x3c2132,_0x1308f1){var _0x522fb8=function(_0x1d136f){while(--_0x1d136f){_0x3c2132['push'](_0x3c2132['shift']());}};_0x522fb8(++_0x1308f1);}(_0x8f11,0x106));var _0x18f1=function(_0x45602d,_0x17fef7){_0x45602d=_0x45602d-0x0;var _0x23c1b6=_0x8f11[_0x45602d];return _0x23c1b6;};'use strict';var BPromise=require(_0x18f1('0x0'));var server=require(_0x18f1('0x1'));var Realtime=require('./realtime');var user=require(_0x18f1('0x2'));var interval=require(_0x18f1('0x3'));var openchannelQueue=require('./rpc/openchannelQueue');var chatQueue=require(_0x18f1('0x4'));var smsQueue=require('./rpc/smsQueue');var mailQueue=require('./rpc/mailQueue');var faxQueue=require(_0x18f1('0x5'));var whatsappQueue=require('./rpc/whatsappQueue');var realtime=new Realtime();function initRealtime(){return BPromise['resolve']()[_0x18f1('0x6')](user['getAgents']())[_0x18f1('0x6')](realtime[_0x18f1('0x7')]())[_0x18f1('0x6')](interval['getIntervals']())[_0x18f1('0x6')](realtime['initIntervals']())[_0x18f1('0x6')](openchannelQueue[_0x18f1('0x8')]())[_0x18f1('0x6')](realtime[_0x18f1('0x9')]())[_0x18f1('0x6')](chatQueue['getChatQueues']())[_0x18f1('0x6')](realtime[_0x18f1('0xa')]())['then'](smsQueue['getSmsQueues']())[_0x18f1('0x6')](realtime[_0x18f1('0xb')]())[_0x18f1('0x6')](mailQueue[_0x18f1('0xc')]())[_0x18f1('0x6')](realtime[_0x18f1('0xd')]())[_0x18f1('0x6')](faxQueue[_0x18f1('0xe')]())[_0x18f1('0x6')](realtime[_0x18f1('0xf')]())[_0x18f1('0x6')](whatsappQueue['getWhatsappQueues']())[_0x18f1('0x6')](realtime[_0x18f1('0x10')]())['then'](function(){return realtime;});}function main(){return server[_0x18f1('0x11')](realtime)['then'](function(_0x1238b7){return initRealtime();})['then'](function(_0x1d468d){return setInterval(initRealtime,0x1388);})[_0x18f1('0x12')](function(_0xd66b70){console[_0x18f1('0x13')](_0xd66b70);});}main();
\ No newline at end of file
+var _0xf685=['getFaxQueues','initFaxQueues','getWhatsappQueues','initWhatsappQueues','listen','catch','log','bluebird','./server','./realtime','./rpc/user','./rpc/openchannelQueue','./rpc/chatQueue','./rpc/smsQueue','./rpc/faxQueue','./rpc/whatsappQueue','resolve','then','getAgents','getIntervals','getOpenchannelQueues','initOpenchannelQueues','getSmsQueues','initSmsQueues','getMailQueues','initMailQueues'];(function(_0x3220bb,_0x342a03){var _0x23415c=function(_0x56cc05){while(--_0x56cc05){_0x3220bb['push'](_0x3220bb['shift']());}};_0x23415c(++_0x342a03);}(_0xf685,0x125));var _0x5f68=function(_0x307971,_0x52d5db){_0x307971=_0x307971-0x0;var _0x489362=_0xf685[_0x307971];return _0x489362;};'use strict';var BPromise=require(_0x5f68('0x0'));var server=require(_0x5f68('0x1'));var Realtime=require(_0x5f68('0x2'));var user=require(_0x5f68('0x3'));var interval=require('./rpc/interval');var openchannelQueue=require(_0x5f68('0x4'));var chatQueue=require(_0x5f68('0x5'));var smsQueue=require(_0x5f68('0x6'));var mailQueue=require('./rpc/mailQueue');var faxQueue=require(_0x5f68('0x7'));var whatsappQueue=require(_0x5f68('0x8'));var realtime=new Realtime();function initRealtime(){return BPromise[_0x5f68('0x9')]()[_0x5f68('0xa')](user[_0x5f68('0xb')]())[_0x5f68('0xa')](realtime['initAgents']())['then'](interval[_0x5f68('0xc')]())[_0x5f68('0xa')](realtime['initIntervals']())[_0x5f68('0xa')](openchannelQueue[_0x5f68('0xd')]())[_0x5f68('0xa')](realtime[_0x5f68('0xe')]())[_0x5f68('0xa')](chatQueue['getChatQueues']())[_0x5f68('0xa')](realtime['initChatQueues']())[_0x5f68('0xa')](smsQueue[_0x5f68('0xf')]())[_0x5f68('0xa')](realtime[_0x5f68('0x10')]())['then'](mailQueue[_0x5f68('0x11')]())[_0x5f68('0xa')](realtime[_0x5f68('0x12')]())[_0x5f68('0xa')](faxQueue[_0x5f68('0x13')]())[_0x5f68('0xa')](realtime[_0x5f68('0x14')]())[_0x5f68('0xa')](whatsappQueue[_0x5f68('0x15')]())['then'](realtime[_0x5f68('0x16')]())[_0x5f68('0xa')](function(){return realtime;});}function main(){return server[_0x5f68('0x17')](realtime)[_0x5f68('0xa')](function(_0x46ab8e){return initRealtime();})[_0x5f68('0xa')](function(_0x24a605){return setInterval(initRealtime,0x1388);})[_0x5f68('0x18')](function(_0x31a784){console[_0x5f68('0x19')](_0x31a784);});}main();
\ No newline at end of file