Built motion from commit (unavailable).|2.0.77
[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 _0xd94a=['socket.io','websocket','polling','adapter','socket.io-redis','localhost','../../config/triggers','default','../../config/socketio','../../config/express','once','listening','log','Express\x20server\x20listening\x20on\x20port\x20%d!','exports','http','express','sticky-session','../../config/environment','createServer','timeout','listen','port'];(function(_0x3713e2,_0x381fd6){var _0x4e81d8=function(_0x4835e5){while(--_0x4835e5){_0x3713e2['push'](_0x3713e2['shift']());}};_0x4e81d8(++_0x381fd6);}(_0xd94a,0x1f2));var _0xad94=function(_0x11035a,_0x36d2ba){_0x11035a=_0x11035a-0x0;var _0x75ab79=_0xd94a[_0x11035a];return _0x75ab79;};'use strict';var http=require(_0xad94('0x0'));var express=require(_0xad94('0x1'));var sticky=require(_0xad94('0x2'));var config=require(_0xad94('0x3'));var app=express();var server=http[_0xad94('0x4')](app);server[_0xad94('0x5')]=0xdbba0;if(sticky[_0xad94('0x6')](server,config[_0xad94('0x7')])){var socketio=require(_0xad94('0x8'))(server,{'transports':[_0xad94('0x9'),_0xad94('0xa')]});socketio[_0xad94('0xb')](require(_0xad94('0xc'))({'host':_0xad94('0xd'),'port':0x18eb}));require(_0xad94('0xe'))[_0xad94('0xf')]();require(_0xad94('0x10'))[_0xad94('0xf')](socketio);require(_0xad94('0x11'))['default'](app);require('../../routes')[_0xad94('0xf')](app);}else{server[_0xad94('0x12')](_0xad94('0x13'),function(){console[_0xad94('0x14')](_0xad94('0x15'),config[_0xad94('0x7')]);});}exports=module[_0xad94('0x16')]=app;