Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / services / express / index.js
index 1262965..879fbbb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa4f5=['port','socket.io','websocket','polling','redis','defaults','adapter','socket.io-redis','../../config/triggers','default','once','listening','log','exports','lodash','sticky-session','ioredis','../../config/environment','createServer','listen'];(function(_0x2dd8f0,_0x36644e){var _0x4ed85d=function(_0x3c868d){while(--_0x3c868d){_0x2dd8f0['push'](_0x2dd8f0['shift']());}};_0x4ed85d(++_0x36644e);}(_0xa4f5,0x112));var _0x5a4f=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xa4f5[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0x5a4f('0x0'));var http=require('http');var express=require('express');var sticky=require(_0x5a4f('0x1'));var Redis=require(_0x5a4f('0x2'));var config=require(_0x5a4f('0x3'));var app=express();var server=http[_0x5a4f('0x4')](app);server['timeout']=0xdbba0;if(sticky[_0x5a4f('0x5')](server,config[_0x5a4f('0x6')])){var socketio=require(_0x5a4f('0x7'))(server,{'transports':[_0x5a4f('0x8'),_0x5a4f('0x9')]});config[_0x5a4f('0xa')]=_[_0x5a4f('0xb')](config[_0x5a4f('0xa')],{'host':'localhost','port':0x18eb});socketio[_0x5a4f('0xc')](require(_0x5a4f('0xd'))({'pubClient':new Redis(config[_0x5a4f('0xa')]),'subClient':new Redis(config[_0x5a4f('0xa')])}));require(_0x5a4f('0xe'))[_0x5a4f('0xf')]();require('../../config/socketio')[_0x5a4f('0xf')](socketio);require('../../config/express')['default'](app);require('../../routes')[_0x5a4f('0xf')](app);}else{server[_0x5a4f('0x10')](_0x5a4f('0x11'),function(){console[_0x5a4f('0x12')]('Express\x20server\x20listening\x20on\x20port\x20%d!',config[_0x5a4f('0x6')]);});}exports=module[_0x5a4f('0x13')]=app;
\ No newline at end of file
+var _0x1ccc=['default','../../config/socketio','../../routes','listening','log','Express\x20server\x20listening\x20on\x20port\x20%d!','port','http','express','ioredis','createServer','listen','socket.io','polling','redis','defaults','adapter','../../config/triggers'];(function(_0x477f90,_0x3abbbe){var _0x1b4acf=function(_0x13e07b){while(--_0x13e07b){_0x477f90['push'](_0x477f90['shift']());}};_0x1b4acf(++_0x3abbbe);}(_0x1ccc,0x127));var _0xc1cc=function(_0x40220a,_0x22feb1){_0x40220a=_0x40220a-0x0;var _0x3903cc=_0x1ccc[_0x40220a];return _0x3903cc;};'use strict';var _=require('lodash');var http=require(_0xc1cc('0x0'));var express=require(_0xc1cc('0x1'));var sticky=require('sticky-session');var Redis=require(_0xc1cc('0x2'));var config=require('../../config/environment');var app=express();var server=http[_0xc1cc('0x3')](app);server['timeout']=0xdbba0;if(sticky[_0xc1cc('0x4')](server,config['port'])){var socketio=require(_0xc1cc('0x5'))(server,{'transports':['websocket',_0xc1cc('0x6')]});config[_0xc1cc('0x7')]=_[_0xc1cc('0x8')](config[_0xc1cc('0x7')],{'host':'localhost','port':0x18eb});socketio[_0xc1cc('0x9')](require('socket.io-redis')({'pubClient':new Redis(config['redis']),'subClient':new Redis(config[_0xc1cc('0x7')])}));require(_0xc1cc('0xa'))[_0xc1cc('0xb')]();require(_0xc1cc('0xc'))[_0xc1cc('0xb')](socketio);require('../../config/express')[_0xc1cc('0xb')](app);require(_0xc1cc('0xd'))[_0xc1cc('0xb')](app);}else{server['once'](_0xc1cc('0xe'),function(){console[_0xc1cc('0xf')](_0xc1cc('0x10'),config[_0xc1cc('0x11')]);});}exports=module['exports']=app;
\ No newline at end of file