Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / client-side-logs.js
index 5785b76..86adbaa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7fac=['isAuthenticated','beaver-logger/server','express','../components/auth/service','../config/environment','Router','env','production','app','expressEndpoint','/client-logs','use'];(function(_0x5a18d4,_0x2c5efb){var _0x276b1d=function(_0x33b710){while(--_0x33b710){_0x5a18d4['push'](_0x5a18d4['shift']());}};_0x276b1d(++_0x2c5efb);}(_0x7fac,0x1b1));var _0xc7fa=function(_0x1895b7,_0x21fbc7){_0x1895b7=_0x1895b7-0x0;var _0x1aecdc=_0x7fac[_0x1895b7];return _0x1aecdc;};var beaverLogger=require(_0xc7fa('0x0'));var express=require(_0xc7fa('0x1'));var auth=require(_0xc7fa('0x2'));var config=require(_0xc7fa('0x3'));var router=express[_0xc7fa('0x4')]();var isProduction=config[_0xc7fa('0x5')]===_0xc7fa('0x6')||![];function clientSideLogs(_0x4b71f2,_0x388d87,_0x2afa07){var _0x4867d0=_0x4b71f2[_0xc7fa('0x7')]['get']('client-side-logger');if(!_0x4867d0){throw new Error('Client-Side\x20logger\x20not\x20found!');}return beaverLogger[_0xc7fa('0x8')]({'uri':_0xc7fa('0x9'),'logger':_0x4867d0,'enableCors':!isProduction})(_0x4b71f2,_0x388d87,_0x2afa07);}router[_0xc7fa('0xa')](auth[_0xc7fa('0xb')](),clientSideLogs);module['exports']=router;
\ No newline at end of file
+var _0xc0f9=['production','app','get','client-side-logger','Client-Side\x20logger\x20not\x20found!','expressEndpoint','isAuthenticated','exports','beaver-logger/server','express','../config/environment','Router','env'];(function(_0x1d2ca4,_0x469af6){var _0x35398a=function(_0x3638f6){while(--_0x3638f6){_0x1d2ca4['push'](_0x1d2ca4['shift']());}};_0x35398a(++_0x469af6);}(_0xc0f9,0xa4));var _0x9c0f=function(_0xc3aae7,_0x3bfa91){_0xc3aae7=_0xc3aae7-0x0;var _0x1f365a=_0xc0f9[_0xc3aae7];return _0x1f365a;};var beaverLogger=require(_0x9c0f('0x0'));var express=require(_0x9c0f('0x1'));var auth=require('../components/auth/service');var config=require(_0x9c0f('0x2'));var router=express[_0x9c0f('0x3')]();var isProduction=config[_0x9c0f('0x4')]===_0x9c0f('0x5')||![];function clientSideLogs(_0x2f42e8,_0x802b80,_0x3d160d){var _0xf96a2e=_0x2f42e8[_0x9c0f('0x6')][_0x9c0f('0x7')](_0x9c0f('0x8'));if(!_0xf96a2e){throw new Error(_0x9c0f('0x9'));}return beaverLogger[_0x9c0f('0xa')]({'uri':'/client-logs','logger':_0xf96a2e,'enableCors':!isProduction})(_0x2f42e8,_0x802b80,_0x3d160d);}router['use'](auth[_0x9c0f('0xb')](),clientSideLogs);module[_0x9c0f('0xc')]=router;
\ No newline at end of file