Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / services / routing / index.js
index 814f224..cb44e68 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0db5=['getFaxQueues','initFaxQueues','getWhatsappQueues','initWhatsappQueues','catch','log','bluebird','./realtime','./rpc/user','./rpc/interval','./rpc/openchannelQueue','./rpc/chatQueue','./rpc/smsQueue','./rpc/mailQueue','./rpc/faxQueue','./rpc/whatsappQueue','resolve','getAgents','then','initAgents','initOpenchannelQueues','initChatQueues','getSmsQueues','getMailQueues'];(function(_0x5470f7,_0x287c0f){var _0x416a91=function(_0x56110b){while(--_0x56110b){_0x5470f7['push'](_0x5470f7['shift']());}};_0x416a91(++_0x287c0f);}(_0x0db5,0x96));var _0x50db=function(_0x56d080,_0x5c0eb4){_0x56d080=_0x56d080-0x0;var _0x1db2f3=_0x0db5[_0x56d080];return _0x1db2f3;};'use strict';var BPromise=require(_0x50db('0x0'));var server=require('./server');var Realtime=require(_0x50db('0x1'));var user=require(_0x50db('0x2'));var interval=require(_0x50db('0x3'));var openchannelQueue=require(_0x50db('0x4'));var chatQueue=require(_0x50db('0x5'));var smsQueue=require(_0x50db('0x6'));var mailQueue=require(_0x50db('0x7'));var faxQueue=require(_0x50db('0x8'));var whatsappQueue=require(_0x50db('0x9'));var realtime=new Realtime();function initRealtime(){return BPromise[_0x50db('0xa')]()['then'](user[_0x50db('0xb')]())[_0x50db('0xc')](realtime[_0x50db('0xd')]())['then'](interval['getIntervals']())[_0x50db('0xc')](realtime['initIntervals']())['then'](openchannelQueue['getOpenchannelQueues']())[_0x50db('0xc')](realtime[_0x50db('0xe')]())[_0x50db('0xc')](chatQueue['getChatQueues']())[_0x50db('0xc')](realtime[_0x50db('0xf')]())['then'](smsQueue[_0x50db('0x10')]())[_0x50db('0xc')](realtime['initSmsQueues']())[_0x50db('0xc')](mailQueue[_0x50db('0x11')]())[_0x50db('0xc')](realtime['initMailQueues']())['then'](faxQueue[_0x50db('0x12')]())[_0x50db('0xc')](realtime[_0x50db('0x13')]())[_0x50db('0xc')](whatsappQueue[_0x50db('0x14')]())[_0x50db('0xc')](realtime[_0x50db('0x15')]())['then'](function(){return realtime;});}function main(){return server['listen'](realtime)[_0x50db('0xc')](function(_0x2370be){return initRealtime();})[_0x50db('0xc')](function(_0x277955){return setInterval(initRealtime,0x1388);})[_0x50db('0x16')](function(_0x516182){console[_0x50db('0x17')](_0x516182);});}main();
\ No newline at end of file
+var _0xeb47=['getFaxQueues','initFaxQueues','getWhatsappQueues','listen','log','./server','./rpc/chatQueue','./rpc/mailQueue','./rpc/faxQueue','./rpc/whatsappQueue','resolve','then','getAgents','initAgents','initIntervals','getOpenchannelQueues','getChatQueues','initChatQueues','getSmsQueues','getMailQueues','initMailQueues'];(function(_0x52e257,_0x16442c){var _0x590908=function(_0x1041dd){while(--_0x1041dd){_0x52e257['push'](_0x52e257['shift']());}};_0x590908(++_0x16442c);}(_0xeb47,0x12b));var _0x7eb4=function(_0x3bdc7e,_0xd106f8){_0x3bdc7e=_0x3bdc7e-0x0;var _0x532758=_0xeb47[_0x3bdc7e];return _0x532758;};'use strict';var BPromise=require('bluebird');var server=require(_0x7eb4('0x0'));var Realtime=require('./realtime');var user=require('./rpc/user');var interval=require('./rpc/interval');var openchannelQueue=require('./rpc/openchannelQueue');var chatQueue=require(_0x7eb4('0x1'));var smsQueue=require('./rpc/smsQueue');var mailQueue=require(_0x7eb4('0x2'));var faxQueue=require(_0x7eb4('0x3'));var whatsappQueue=require(_0x7eb4('0x4'));var realtime=new Realtime();function initRealtime(){return BPromise[_0x7eb4('0x5')]()[_0x7eb4('0x6')](user[_0x7eb4('0x7')]())['then'](realtime[_0x7eb4('0x8')]())['then'](interval['getIntervals']())[_0x7eb4('0x6')](realtime[_0x7eb4('0x9')]())[_0x7eb4('0x6')](openchannelQueue[_0x7eb4('0xa')]())[_0x7eb4('0x6')](realtime['initOpenchannelQueues']())['then'](chatQueue[_0x7eb4('0xb')]())[_0x7eb4('0x6')](realtime[_0x7eb4('0xc')]())['then'](smsQueue[_0x7eb4('0xd')]())[_0x7eb4('0x6')](realtime['initSmsQueues']())[_0x7eb4('0x6')](mailQueue[_0x7eb4('0xe')]())[_0x7eb4('0x6')](realtime[_0x7eb4('0xf')]())[_0x7eb4('0x6')](faxQueue[_0x7eb4('0x10')]())[_0x7eb4('0x6')](realtime[_0x7eb4('0x11')]())[_0x7eb4('0x6')](whatsappQueue[_0x7eb4('0x12')]())[_0x7eb4('0x6')](realtime['initWhatsappQueues']())[_0x7eb4('0x6')](function(){return realtime;});}function main(){return server[_0x7eb4('0x13')](realtime)[_0x7eb4('0x6')](function(_0x8edfa5){return initRealtime();})[_0x7eb4('0x6')](function(_0x471f07){return setInterval(initRealtime,0x1388);})['catch'](function(_0x522fb5){console[_0x7eb4('0x14')](_0x522fb5);});}main();
\ No newline at end of file