Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / services / express / index.js
index 01f3447..c99bd7e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xef2f=['adapter','socket.io-redis','../../config/triggers','default','../../config/socketio','../../config/express','../../routes','once','listening','log','Express\x20server\x20listening\x20on\x20port\x20%d!','exports','lodash','http','express','sticky-session','ioredis','../../config/environment','listen','port','socket.io','websocket','polling','defaults','redis'];(function(_0x391a73,_0x1d926b){var _0xc46f1f=function(_0x27bf33){while(--_0x27bf33){_0x391a73['push'](_0x391a73['shift']());}};_0xc46f1f(++_0x1d926b);}(_0xef2f,0x89));var _0xfef2=function(_0x2cfb58,_0x3d9412){_0x2cfb58=_0x2cfb58-0x0;var _0xd99951=_0xef2f[_0x2cfb58];return _0xd99951;};'use strict';var _=require(_0xfef2('0x0'));var http=require(_0xfef2('0x1'));var express=require(_0xfef2('0x2'));var sticky=require(_0xfef2('0x3'));var Redis=require(_0xfef2('0x4'));var config=require(_0xfef2('0x5'));var app=express();var server=http['createServer'](app);server['timeout']=0xdbba0;if(sticky[_0xfef2('0x6')](server,config[_0xfef2('0x7')])){var socketio=require(_0xfef2('0x8'))(server,{'transports':[_0xfef2('0x9'),_0xfef2('0xa')]});config['redis']=_[_0xfef2('0xb')](config[_0xfef2('0xc')],{'host':'localhost','port':0x18eb});socketio[_0xfef2('0xd')](require(_0xfef2('0xe'))({'pubClient':new Redis(config['redis']),'subClient':new Redis(config['redis'])}));require(_0xfef2('0xf'))[_0xfef2('0x10')]();require(_0xfef2('0x11'))[_0xfef2('0x10')](socketio);require(_0xfef2('0x12'))['default'](app);require(_0xfef2('0x13'))[_0xfef2('0x10')](app);}else{server[_0xfef2('0x14')](_0xfef2('0x15'),function(){console[_0xfef2('0x16')](_0xfef2('0x17'),config[_0xfef2('0x7')]);});}exports=module[_0xfef2('0x18')]=app;
\ No newline at end of file
+var _0x02ba=['socket.io-redis','default','../../config/socketio','../../config/express','once','listening','log','lodash','http','../../config/environment','createServer','timeout','listen','port','socket.io','websocket','polling','redis','localhost'];(function(_0x1bf45a,_0x22784a){var _0x900069=function(_0x5e8624){while(--_0x5e8624){_0x1bf45a['push'](_0x1bf45a['shift']());}};_0x900069(++_0x22784a);}(_0x02ba,0x1a9));var _0xa02b=function(_0x980038,_0x543c9b){_0x980038=_0x980038-0x0;var _0x34ee15=_0x02ba[_0x980038];return _0x34ee15;};'use strict';var _=require(_0xa02b('0x0'));var http=require(_0xa02b('0x1'));var express=require('express');var sticky=require('sticky-session');var Redis=require('ioredis');var config=require(_0xa02b('0x2'));var app=express();var server=http[_0xa02b('0x3')](app);server[_0xa02b('0x4')]=0xdbba0;if(sticky[_0xa02b('0x5')](server,config[_0xa02b('0x6')])){var socketio=require(_0xa02b('0x7'))(server,{'transports':[_0xa02b('0x8'),_0xa02b('0x9')]});config[_0xa02b('0xa')]=_['defaults'](config[_0xa02b('0xa')],{'host':_0xa02b('0xb'),'port':0x18eb});socketio['adapter'](require(_0xa02b('0xc'))({'pubClient':new Redis(config['redis']),'subClient':new Redis(config[_0xa02b('0xa')])}));require('../../config/triggers')[_0xa02b('0xd')]();require(_0xa02b('0xe'))[_0xa02b('0xd')](socketio);require(_0xa02b('0xf'))[_0xa02b('0xd')](app);require('../../routes')[_0xa02b('0xd')](app);}else{server[_0xa02b('0x10')](_0xa02b('0x11'),function(){console[_0xa02b('0x12')]('Express\x20server\x20listening\x20on\x20port\x20%d!',config[_0xa02b('0x6')]);});}exports=module['exports']=app;
\ No newline at end of file