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