Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / express / index.js
index 404220f..b4612f3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x65cf=['once','listening','log','lodash','http','sticky-session','ioredis','../../config/environment','createServer','timeout','listen','port','socket.io','websocket','localhost','adapter','socket.io-redis','redis','default','../../config/socketio','../../config/express','../../routes'];(function(_0x4333c0,_0x1b8b7d){var _0x1ea60b=function(_0x36a1ea){while(--_0x36a1ea){_0x4333c0['push'](_0x4333c0['shift']());}};_0x1ea60b(++_0x1b8b7d);}(_0x65cf,0x14d));var _0xf65c=function(_0xf140ce,_0x43a921){_0xf140ce=_0xf140ce-0x0;var _0x4e8cad=_0x65cf[_0xf140ce];return _0x4e8cad;};'use strict';var _=require(_0xf65c('0x0'));var http=require(_0xf65c('0x1'));var express=require('express');var sticky=require(_0xf65c('0x2'));var Redis=require(_0xf65c('0x3'));var config=require(_0xf65c('0x4'));var app=express();var server=http[_0xf65c('0x5')](app);server[_0xf65c('0x6')]=0xdbba0;if(sticky[_0xf65c('0x7')](server,config[_0xf65c('0x8')])){var socketio=require(_0xf65c('0x9'))(server,{'transports':[_0xf65c('0xa'),'polling']});config['redis']=_['defaults'](config['redis'],{'host':_0xf65c('0xb'),'port':0x18eb});socketio[_0xf65c('0xc')](require(_0xf65c('0xd'))({'pubClient':new Redis(config['redis']),'subClient':new Redis(config[_0xf65c('0xe')])}));require('../../config/triggers')[_0xf65c('0xf')]();require(_0xf65c('0x10'))[_0xf65c('0xf')](socketio);require(_0xf65c('0x11'))[_0xf65c('0xf')](app);require(_0xf65c('0x12'))[_0xf65c('0xf')](app);}else{server[_0xf65c('0x13')](_0xf65c('0x14'),function(){console[_0xf65c('0x15')]('Express\x20server\x20listening\x20on\x20port\x20%d!',config[_0xf65c('0x8')]);});}exports=module['exports']=app;
\ No newline at end of file
+var _0x7bbe=['default','../../config/socketio','../../config/express','../../routes','once','Express\x20server\x20listening\x20on\x20port\x20%d!','exports','lodash','http','sticky-session','ioredis','createServer','listen','port','websocket','polling','redis','defaults','localhost','adapter','socket.io-redis','../../config/triggers'];(function(_0x5831a3,_0x4463b7){var _0x198912=function(_0xa0d267){while(--_0xa0d267){_0x5831a3['push'](_0x5831a3['shift']());}};_0x198912(++_0x4463b7);}(_0x7bbe,0x75));var _0xe7bb=function(_0x22cb5f,_0x2cdd63){_0x22cb5f=_0x22cb5f-0x0;var _0x274d36=_0x7bbe[_0x22cb5f];return _0x274d36;};'use strict';var _=require(_0xe7bb('0x0'));var http=require(_0xe7bb('0x1'));var express=require('express');var sticky=require(_0xe7bb('0x2'));var Redis=require(_0xe7bb('0x3'));var config=require('../../config/environment');var app=express();var server=http[_0xe7bb('0x4')](app);server['timeout']=0xdbba0;if(sticky[_0xe7bb('0x5')](server,config[_0xe7bb('0x6')])){var socketio=require('socket.io')(server,{'transports':[_0xe7bb('0x7'),_0xe7bb('0x8')]});config[_0xe7bb('0x9')]=_[_0xe7bb('0xa')](config[_0xe7bb('0x9')],{'host':_0xe7bb('0xb'),'port':0x18eb});socketio[_0xe7bb('0xc')](require(_0xe7bb('0xd'))({'pubClient':new Redis(config['redis']),'subClient':new Redis(config[_0xe7bb('0x9')])}));require(_0xe7bb('0xe'))[_0xe7bb('0xf')]();require(_0xe7bb('0x10'))[_0xe7bb('0xf')](socketio);require(_0xe7bb('0x11'))[_0xe7bb('0xf')](app);require(_0xe7bb('0x12'))[_0xe7bb('0xf')](app);}else{server[_0xe7bb('0x13')]('listening',function(){console['log'](_0xe7bb('0x14'),config[_0xe7bb('0x6')]);});}exports=module[_0xe7bb('0x15')]=app;
\ No newline at end of file