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 _0x7e1a=['timeout','listen','port','socket.io','polling','redis','localhost','adapter','socket.io-redis','../../config/triggers','../../config/socketio','default','../../config/express','../../routes','Express\x20server\x20listening\x20on\x20port\x20%d!','lodash','http','express','sticky-session','ioredis','../../config/environment'];(function(_0x22f8ab,_0x15d8ff){var _0x2a70e5=function(_0x5e6895){while(--_0x5e6895){_0x22f8ab['push'](_0x22f8ab['shift']());}};_0x2a70e5(++_0x15d8ff);}(_0x7e1a,0x78));var _0xa7e1=function(_0xbe4f82,_0x31bdce){_0xbe4f82=_0xbe4f82-0x0;var _0x4e55fc=_0x7e1a[_0xbe4f82];return _0x4e55fc;};'use strict';var _=require(_0xa7e1('0x0'));var http=require(_0xa7e1('0x1'));var express=require(_0xa7e1('0x2'));var sticky=require(_0xa7e1('0x3'));var Redis=require(_0xa7e1('0x4'));var config=require(_0xa7e1('0x5'));var app=express();var server=http['createServer'](app);server[_0xa7e1('0x6')]=0xdbba0;if(sticky[_0xa7e1('0x7')](server,config[_0xa7e1('0x8')])){var socketio=require(_0xa7e1('0x9'))(server,{'transports':['websocket',_0xa7e1('0xa')]});config['redis']=_['defaults'](config[_0xa7e1('0xb')],{'host':_0xa7e1('0xc'),'port':0x18eb});socketio[_0xa7e1('0xd')](require(_0xa7e1('0xe'))({'pubClient':new Redis(config['redis']),'subClient':new Redis(config[_0xa7e1('0xb')])}));require(_0xa7e1('0xf'))['default']();require(_0xa7e1('0x10'))[_0xa7e1('0x11')](socketio);require(_0xa7e1('0x12'))[_0xa7e1('0x11')](app);require(_0xa7e1('0x13'))['default'](app);}else{server['once']('listening',function(){console['log'](_0xa7e1('0x14'),config[_0xa7e1('0x8')]);});}exports=module['exports']=app;