Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / client-side-logs.js
index c305c2d..7f24053 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xff1b=['../components/auth/service','../config/environment','Router','env','production','get','Client-Side\x20logger\x20not\x20found!','expressEndpoint','use','isAuthenticated','exports','beaver-logger/server','express'];(function(_0x1e081a,_0x482d6b){var _0x428209=function(_0x524b53){while(--_0x524b53){_0x1e081a['push'](_0x1e081a['shift']());}};_0x428209(++_0x482d6b);}(_0xff1b,0x143));var _0xbff1=function(_0x44b19b,_0x5d33cc){_0x44b19b=_0x44b19b-0x0;var _0x2d7858=_0xff1b[_0x44b19b];return _0x2d7858;};var beaverLogger=require(_0xbff1('0x0'));var express=require(_0xbff1('0x1'));var auth=require(_0xbff1('0x2'));var config=require(_0xbff1('0x3'));var router=express[_0xbff1('0x4')]();var isProduction=config[_0xbff1('0x5')]===_0xbff1('0x6')||![];function clientSideLogs(_0x2abac4,_0x2d2a09,_0x169a02){var _0x13b8f1=_0x2abac4['app'][_0xbff1('0x7')]('client-side-logger');if(!_0x13b8f1){throw new Error(_0xbff1('0x8'));}return beaverLogger[_0xbff1('0x9')]({'uri':'/client-logs','logger':_0x13b8f1,'enableCors':!isProduction})(_0x2abac4,_0x2d2a09,_0x169a02);}router[_0xbff1('0xa')](auth[_0xbff1('0xb')](),clientSideLogs);module[_0xbff1('0xc')]=router;
\ No newline at end of file
+var _0x04cc=['production','get','client-side-logger','Client-Side\x20logger\x20not\x20found!','expressEndpoint','/client-logs','exports','beaver-logger/server','express','../config/environment','Router','env'];(function(_0x30eed8,_0x112840){var _0x410c92=function(_0x2eff26){while(--_0x2eff26){_0x30eed8['push'](_0x30eed8['shift']());}};_0x410c92(++_0x112840);}(_0x04cc,0x14b));var _0xc04c=function(_0x521378,_0x2f8004){_0x521378=_0x521378-0x0;var _0x4b2fc4=_0x04cc[_0x521378];return _0x4b2fc4;};var beaverLogger=require(_0xc04c('0x0'));var express=require(_0xc04c('0x1'));var auth=require('../components/auth/service');var config=require(_0xc04c('0x2'));var router=express[_0xc04c('0x3')]();var isProduction=config[_0xc04c('0x4')]===_0xc04c('0x5')||![];function clientSideLogs(_0x3ab21b,_0x22298b,_0x2a2622){var _0x38a3bf=_0x3ab21b['app'][_0xc04c('0x6')](_0xc04c('0x7'));if(!_0x38a3bf){throw new Error(_0xc04c('0x8'));}return beaverLogger[_0xc04c('0x9')]({'uri':_0xc04c('0xa'),'logger':_0x38a3bf,'enableCors':!isProduction})(_0x3ab21b,_0x22298b,_0x2a2622);}router['use'](auth['isAuthenticated'](),clientSideLogs);module[_0xc04c('0xb')]=router;
\ No newline at end of file