Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / services / express / index.js
index 46556ed..26b9e29 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xac36=['listening','log','Express\x20server\x20listening\x20on\x20port\x20%d!','exports','http','express','sticky-session','ioredis','createServer','timeout','listen','socket.io','polling','defaults','redis','socket.io-redis','../../config/triggers','default','../../config/socketio','../../routes','once'];(function(_0xf01163,_0x5a7cbc){var _0x1231cf=function(_0x10c924){while(--_0x10c924){_0xf01163['push'](_0xf01163['shift']());}};_0x1231cf(++_0x5a7cbc);}(_0xac36,0x1e7));var _0x6ac3=function(_0x53aa4e,_0x45513f){_0x53aa4e=_0x53aa4e-0x0;var _0x35c34c=_0xac36[_0x53aa4e];return _0x35c34c;};'use strict';var _=require('lodash');var http=require(_0x6ac3('0x0'));var express=require(_0x6ac3('0x1'));var sticky=require(_0x6ac3('0x2'));var Redis=require(_0x6ac3('0x3'));var config=require('../../config/environment');var app=express();var server=http[_0x6ac3('0x4')](app);server[_0x6ac3('0x5')]=0xdbba0;if(sticky[_0x6ac3('0x6')](server,config['port'])){var socketio=require(_0x6ac3('0x7'))(server,{'transports':['websocket',_0x6ac3('0x8')]});config['redis']=_[_0x6ac3('0x9')](config[_0x6ac3('0xa')],{'host':'localhost','port':0x18eb});socketio['adapter'](require(_0x6ac3('0xb'))({'pubClient':new Redis(config[_0x6ac3('0xa')]),'subClient':new Redis(config[_0x6ac3('0xa')])}));require(_0x6ac3('0xc'))[_0x6ac3('0xd')]();require(_0x6ac3('0xe'))['default'](socketio);require('../../config/express')[_0x6ac3('0xd')](app);require(_0x6ac3('0xf'))[_0x6ac3('0xd')](app);}else{server[_0x6ac3('0x10')](_0x6ac3('0x11'),function(){console[_0x6ac3('0x12')](_0x6ac3('0x13'),config['port']);});}exports=module[_0x6ac3('0x14')]=app;
\ No newline at end of file
+var _0x98ea=['../../config/express','once','listening','log','Express\x20server\x20listening\x20on\x20port\x20%d!','exports','lodash','http','express','sticky-session','ioredis','../../config/environment','timeout','listen','port','websocket','polling','redis','defaults','adapter','../../config/triggers','default','../../config/socketio'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0x98ea,0x11a));var _0xa98e=function(_0x48da0d,_0x5a8809){_0x48da0d=_0x48da0d-0x0;var _0x4b7ca3=_0x98ea[_0x48da0d];return _0x4b7ca3;};'use strict';var _=require(_0xa98e('0x0'));var http=require(_0xa98e('0x1'));var express=require(_0xa98e('0x2'));var sticky=require(_0xa98e('0x3'));var Redis=require(_0xa98e('0x4'));var config=require(_0xa98e('0x5'));var app=express();var server=http['createServer'](app);server[_0xa98e('0x6')]=0xdbba0;if(sticky[_0xa98e('0x7')](server,config[_0xa98e('0x8')])){var socketio=require('socket.io')(server,{'transports':[_0xa98e('0x9'),_0xa98e('0xa')]});config[_0xa98e('0xb')]=_[_0xa98e('0xc')](config[_0xa98e('0xb')],{'host':'localhost','port':0x18eb});socketio[_0xa98e('0xd')](require('socket.io-redis')({'pubClient':new Redis(config[_0xa98e('0xb')]),'subClient':new Redis(config[_0xa98e('0xb')])}));require(_0xa98e('0xe'))[_0xa98e('0xf')]();require(_0xa98e('0x10'))[_0xa98e('0xf')](socketio);require(_0xa98e('0x11'))[_0xa98e('0xf')](app);require('../../routes')[_0xa98e('0xf')](app);}else{server[_0xa98e('0x12')](_0xa98e('0x13'),function(){console[_0xa98e('0x14')](_0xa98e('0x15'),config[_0xa98e('0x8')]);});}exports=module[_0xa98e('0x16')]=app;
\ No newline at end of file