1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xe392=['../../routes','log','Express\x20server\x20listening\x20on\x20port\x20%d!','lodash','express','sticky-session','ioredis','../../config/environment','timeout','listen','port','socket.io','websocket','polling','redis','defaults','localhost','adapter','socket.io-redis','default','../../config/socketio'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xe392,0x114));var _0x2e39=function(_0x3f78cb,_0x5981cc){_0x3f78cb=_0x3f78cb-0x0;var _0x33d903=_0xe392[_0x3f78cb];return _0x33d903;};'use strict';var _=require(_0x2e39('0x0'));var http=require('http');var express=require(_0x2e39('0x1'));var sticky=require(_0x2e39('0x2'));var Redis=require(_0x2e39('0x3'));var config=require(_0x2e39('0x4'));var app=express();var server=http['createServer'](app);server[_0x2e39('0x5')]=0xdbba0;if(sticky[_0x2e39('0x6')](server,config[_0x2e39('0x7')])){var socketio=require(_0x2e39('0x8'))(server,{'transports':[_0x2e39('0x9'),_0x2e39('0xa')]});config[_0x2e39('0xb')]=_[_0x2e39('0xc')](config[_0x2e39('0xb')],{'host':_0x2e39('0xd'),'port':0x18eb});socketio[_0x2e39('0xe')](require(_0x2e39('0xf'))({'pubClient':new Redis(config[_0x2e39('0xb')]),'subClient':new Redis(config['redis'])}));require('../../config/triggers')[_0x2e39('0x10')]();require(_0x2e39('0x11'))[_0x2e39('0x10')](socketio);require('../../config/express')[_0x2e39('0x10')](app);require(_0x2e39('0x12'))[_0x2e39('0x10')](app);}else{server['once']('listening',function(){console[_0x2e39('0x13')](_0x2e39('0x14'),config[_0x2e39('0x7')]);});}exports=module['exports']=app;