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 _0x256f=['../components/auth/service','../config/environment','Router','env','production','app','get','Client-Side\x20logger\x20not\x20found!','expressEndpoint','/client-logs','use','isAuthenticated','beaver-logger/server','express'];(function(_0x4099ee,_0x38495a){var _0x1b7bfc=function(_0x5f5388){while(--_0x5f5388){_0x4099ee['push'](_0x4099ee['shift']());}};_0x1b7bfc(++_0x38495a);}(_0x256f,0x178));var _0xf256=function(_0x5b6a9d,_0x2e6019){_0x5b6a9d=_0x5b6a9d-0x0;var _0x1dc718=_0x256f[_0x5b6a9d];return _0x1dc718;};var beaverLogger=require(_0xf256('0x0'));var express=require(_0xf256('0x1'));var auth=require(_0xf256('0x2'));var config=require(_0xf256('0x3'));var router=express[_0xf256('0x4')]();var isProduction=config[_0xf256('0x5')]===_0xf256('0x6')||![];function clientSideLogs(_0x581596,_0x5160,_0x306cc3){var _0x51a4a7=_0x581596[_0xf256('0x7')][_0xf256('0x8')]('client-side-logger');if(!_0x51a4a7){throw new Error(_0xf256('0x9'));}return beaverLogger[_0xf256('0xa')]({'uri':_0xf256('0xb'),'logger':_0x51a4a7,'enableCors':!isProduction})(_0x581596,_0x5160,_0x306cc3);}router[_0xf256('0xc')](auth[_0xf256('0xd')](),clientSideLogs);module['exports']=router;