Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / services / routing / index.js
index 072544e..0c816d2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x491f=['getOpenchannelQueues','initOpenchannelQueues','getChatQueues','initSmsQueues','initMailQueues','initFaxQueues','catch','./server','./rpc/user','./rpc/interval','./rpc/chatQueue','./rpc/smsQueue','./rpc/whatsappQueue','then','getAgents','initAgents','getIntervals','initIntervals'];(function(_0x459585,_0x50f6cd){var _0xce2764=function(_0x2111b2){while(--_0x2111b2){_0x459585['push'](_0x459585['shift']());}};_0xce2764(++_0x50f6cd);}(_0x491f,0x1db));var _0xf491=function(_0x13b37b,_0x5dfe13){_0x13b37b=_0x13b37b-0x0;var _0x49784a=_0x491f[_0x13b37b];return _0x49784a;};'use strict';var BPromise=require('bluebird');var server=require(_0xf491('0x0'));var Realtime=require('./realtime');var user=require(_0xf491('0x1'));var interval=require(_0xf491('0x2'));var openchannelQueue=require('./rpc/openchannelQueue');var chatQueue=require(_0xf491('0x3'));var smsQueue=require(_0xf491('0x4'));var mailQueue=require('./rpc/mailQueue');var faxQueue=require('./rpc/faxQueue');var whatsappQueue=require(_0xf491('0x5'));var realtime=new Realtime();function initRealtime(){return BPromise['resolve']()[_0xf491('0x6')](user[_0xf491('0x7')]())['then'](realtime[_0xf491('0x8')]())[_0xf491('0x6')](interval[_0xf491('0x9')]())['then'](realtime[_0xf491('0xa')]())[_0xf491('0x6')](openchannelQueue[_0xf491('0xb')]())[_0xf491('0x6')](realtime[_0xf491('0xc')]())[_0xf491('0x6')](chatQueue[_0xf491('0xd')]())[_0xf491('0x6')](realtime['initChatQueues']())[_0xf491('0x6')](smsQueue['getSmsQueues']())[_0xf491('0x6')](realtime[_0xf491('0xe')]())['then'](mailQueue['getMailQueues']())[_0xf491('0x6')](realtime[_0xf491('0xf')]())[_0xf491('0x6')](faxQueue['getFaxQueues']())[_0xf491('0x6')](realtime[_0xf491('0x10')]())['then'](whatsappQueue['getWhatsappQueues']())[_0xf491('0x6')](realtime['initWhatsappQueues']())[_0xf491('0x6')](function(){return realtime;});}function main(){return server['listen'](realtime)[_0xf491('0x6')](function(_0x514702){return initRealtime();})['then'](function(_0x1a6fde){return setInterval(initRealtime,0x1388);})[_0xf491('0x11')](function(_0x492e5c){console['log'](_0x492e5c);});}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