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 _0x259e=['express','../components/auth/service','../config/environment','Router','env','production','client-side-logger','Client-Side\x20logger\x20not\x20found!','expressEndpoint','/client-logs','exports','beaver-logger/server'];(function(_0x135a3a,_0x5a7441){var _0x4bac99=function(_0x4a99e7){while(--_0x4a99e7){_0x135a3a['push'](_0x135a3a['shift']());}};_0x4bac99(++_0x5a7441);}(_0x259e,0x14f));var _0xe259=function(_0x211760,_0x255c9e){_0x211760=_0x211760-0x0;var _0x66e8a=_0x259e[_0x211760];return _0x66e8a;};var beaverLogger=require(_0xe259('0x0'));var express=require(_0xe259('0x1'));var auth=require(_0xe259('0x2'));var config=require(_0xe259('0x3'));var router=express[_0xe259('0x4')]();var isProduction=config[_0xe259('0x5')]===_0xe259('0x6')||![];function clientSideLogs(_0x3dc9ea,_0xed127f,_0x5a402b){var _0x5dd41c=_0x3dc9ea['app']['get'](_0xe259('0x7'));if(!_0x5dd41c){throw new Error(_0xe259('0x8'));}return beaverLogger[_0xe259('0x9')]({'uri':_0xe259('0xa'),'logger':_0x5dd41c,'enableCors':!isProduction})(_0x3dc9ea,_0xed127f,_0x5a402b);}router['use'](auth['isAuthenticated'](),clientSideLogs);module[_0xe259('0xb')]=router;