Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / express / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x8afa=['../../config/socketio','default','../../config/express','../../routes','once','Express\x20server\x20listening\x20on\x20port\x20%d!','exports','lodash','http','express','sticky-session','ioredis','../../config/environment','createServer','timeout','port','socket.io','websocket','polling','redis','defaults','localhost','adapter','socket.io-redis','../../config/triggers'];(function(_0x65d12e,_0x4b0a30){var _0x4274e0=function(_0x121624){while(--_0x121624){_0x65d12e['push'](_0x65d12e['shift']());}};_0x4274e0(++_0x4b0a30);}(_0x8afa,0x11a));var _0xa8af=function(_0x595eb6,_0x4f5e30){_0x595eb6=_0x595eb6-0x0;var _0xbcde6c=_0x8afa[_0x595eb6];return _0xbcde6c;};'use strict';var _=require(_0xa8af('0x0'));var http=require(_0xa8af('0x1'));var express=require(_0xa8af('0x2'));var sticky=require(_0xa8af('0x3'));var Redis=require(_0xa8af('0x4'));var config=require(_0xa8af('0x5'));var app=express();var server=http[_0xa8af('0x6')](app);server[_0xa8af('0x7')]=0xdbba0;if(sticky['listen'](server,config[_0xa8af('0x8')])){var socketio=require(_0xa8af('0x9'))(server,{'transports':[_0xa8af('0xa'),_0xa8af('0xb')]});config[_0xa8af('0xc')]=_[_0xa8af('0xd')](config[_0xa8af('0xc')],{'host':_0xa8af('0xe'),'port':0x18eb});socketio[_0xa8af('0xf')](require(_0xa8af('0x10'))({'pubClient':new Redis(config[_0xa8af('0xc')]),'subClient':new Redis(config[_0xa8af('0xc')])}));require(_0xa8af('0x11'))['default']();require(_0xa8af('0x12'))[_0xa8af('0x13')](socketio);require(_0xa8af('0x14'))['default'](app);require(_0xa8af('0x15'))[_0xa8af('0x13')](app);}else{server[_0xa8af('0x16')]('listening',function(){console['log'](_0xa8af('0x17'),config['port']);});}exports=module[_0xa8af('0x18')]=app;