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 _0x6c8a=['Router','env','client-side-logger','expressEndpoint','/client-logs','use','isAuthenticated','exports','../components/auth/service'];(function(_0x321b98,_0x4c7b2b){var _0x22948f=function(_0x12ac50){while(--_0x12ac50){_0x321b98['push'](_0x321b98['shift']());}};_0x22948f(++_0x4c7b2b);}(_0x6c8a,0x1c1));var _0xa6c8=function(_0x52db7d,_0x344fce){_0x52db7d=_0x52db7d-0x0;var _0x4a6946=_0x6c8a[_0x52db7d];return _0x4a6946;};var beaverLogger=require('beaver-logger/server');var express=require('express');var auth=require(_0xa6c8('0x0'));var config=require('../config/environment');var router=express[_0xa6c8('0x1')]();var isProduction=config[_0xa6c8('0x2')]==='production'||![];function clientSideLogs(_0x417e52,_0x322dc7,_0x15aef2){var _0x5a4b4a=_0x417e52['app']['get'](_0xa6c8('0x3'));if(!_0x5a4b4a){throw new Error('Client-Side\x20logger\x20not\x20found!');}return beaverLogger[_0xa6c8('0x4')]({'uri':_0xa6c8('0x5'),'logger':_0x5a4b4a,'enableCors':!isProduction})(_0x417e52,_0x322dc7,_0x15aef2);}router[_0xa6c8('0x6')](auth[_0xa6c8('0x7')](),clientSideLogs);module[_0xa6c8('0x8')]=router;