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 _0x3f45=['exports','../config/environment','Router','env','app','get','client-side-logger','Client-Side\x20logger\x20not\x20found!','expressEndpoint','/client-logs','use','isAuthenticated'];(function(_0x2bd117,_0x55547b){var _0xd5f26f=function(_0x521336){while(--_0x521336){_0x2bd117['push'](_0x2bd117['shift']());}};_0xd5f26f(++_0x55547b);}(_0x3f45,0x115));var _0x53f4=function(_0x2d3bf8,_0x544a00){_0x2d3bf8=_0x2d3bf8-0x0;var _0x37ec29=_0x3f45[_0x2d3bf8];return _0x37ec29;};var beaverLogger=require('beaver-logger/server');var express=require('express');var auth=require('../components/auth/service');var config=require(_0x53f4('0x0'));var router=express[_0x53f4('0x1')]();var isProduction=config[_0x53f4('0x2')]==='production'||![];function clientSideLogs(_0x12bcf8,_0x2e8942,_0x29e97c){var _0x59f202=_0x12bcf8[_0x53f4('0x3')][_0x53f4('0x4')](_0x53f4('0x5'));if(!_0x59f202){throw new Error(_0x53f4('0x6'));}return beaverLogger[_0x53f4('0x7')]({'uri':_0x53f4('0x8'),'logger':_0x59f202,'enableCors':!isProduction})(_0x12bcf8,_0x2e8942,_0x29e97c);}router[_0x53f4('0x9')](auth[_0x53f4('0xa')](),clientSideLogs);module[_0x53f4('0xb')]=router;