Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / config / express.js
index 65d125c..1c1a7ef 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfaa3=['./environment','../mysqldb','default','env','production','join','root','public','development','test','appPath','client','use','set','json\x20replacer','toISOString','split','static','views','/server/views','engine','ejs','renderFile','view\x20engine','html','urlencoded','json','50mb','serve-favicon','body-parser','cookie-parser','errorhandler','path','passport','cors','moment'];(function(_0x326e79,_0x33dc91){var _0x37eb89=function(_0xbaef25){while(--_0xbaef25){_0x326e79['push'](_0x326e79['shift']());}};_0x37eb89(++_0x33dc91);}(_0xfaa3,0x1a8));var _0x3faa=function(_0x3b2d00,_0x2748ed){_0x3b2d00=_0x3b2d00-0x0;var _0x3e333a=_0xfaa3[_0x3b2d00];return _0x3e333a;};'use strict';var express=require('express');var favicon=require(_0x3faa('0x0'));var bodyParser=require(_0x3faa('0x1'));var methodOverride=require('method-override');var cookieParser=require(_0x3faa('0x2'));var errorHandler=require(_0x3faa('0x3'));var path=require(_0x3faa('0x4'));var passport=require(_0x3faa('0x5'));var cors=require(_0x3faa('0x6'));var moment=require(_0x3faa('0x7'));var config=require(_0x3faa('0x8'));var db=require(_0x3faa('0x9'))['db'];exports[_0x3faa('0xa')]=function(_0x45c5c0){var _0x486d8b=_0x45c5c0['get'](_0x3faa('0xb'));if(_0x486d8b===_0x3faa('0xc')){_0x45c5c0['set']('appPath',path[_0x3faa('0xd')](config[_0x3faa('0xe')],_0x3faa('0xf')));}if(_0x486d8b===_0x3faa('0x10')||_0x486d8b===_0x3faa('0x11')){_0x45c5c0['set'](_0x3faa('0x12'),path[_0x3faa('0xd')](config[_0x3faa('0xe')],_0x3faa('0x13')));_0x45c5c0[_0x3faa('0x14')](errorHandler());}_0x45c5c0[_0x3faa('0x15')](_0x3faa('0x16'),function(_0x51ea9d,_0x5ee1cd){if(this[_0x51ea9d]instanceof Date){_0x5ee1cd=this[_0x51ea9d][_0x3faa('0x17')]()[_0x3faa('0x18')]('.')[0x0]+'Z';}return _0x5ee1cd;});_0x45c5c0[_0x3faa('0x14')](express[_0x3faa('0x19')](_0x45c5c0['get'](_0x3faa('0x12'))));_0x45c5c0['set'](_0x3faa('0x1a'),config['root']+_0x3faa('0x1b'));_0x45c5c0[_0x3faa('0x1c')]('html',require(_0x3faa('0x1d'))[_0x3faa('0x1e')]);_0x45c5c0[_0x3faa('0x15')](_0x3faa('0x1f'),_0x3faa('0x20'));_0x45c5c0[_0x3faa('0x14')](bodyParser[_0x3faa('0x21')]({'limit':'50mb','extended':!![]}));_0x45c5c0['use'](bodyParser[_0x3faa('0x22')]({'limit':_0x3faa('0x23')}));_0x45c5c0[_0x3faa('0x14')](cors());_0x45c5c0[_0x3faa('0x14')](methodOverride());_0x45c5c0['use'](cookieParser());_0x45c5c0['use'](passport['initialize']());};
\ No newline at end of file
+var _0xbeb4=['./environment','../mysqldb','get','env','production','set','appPath','join','root','public','development','test','client','use','toISOString','split','static','views','/server/views','engine','ejs','renderFile','html','urlencoded','50mb','json','initialize','express','serve-favicon','body-parser','cookie-parser','errorhandler','path','passport','moment'];(function(_0xc261c2,_0x10e34a){var _0x443ac6=function(_0x16e0b6){while(--_0x16e0b6){_0xc261c2['push'](_0xc261c2['shift']());}};_0x443ac6(++_0x10e34a);}(_0xbeb4,0xed));var _0x4beb=function(_0x4a2df0,_0x239ffd){_0x4a2df0=_0x4a2df0-0x0;var _0x8dabf5=_0xbeb4[_0x4a2df0];return _0x8dabf5;};'use strict';var express=require(_0x4beb('0x0'));var favicon=require(_0x4beb('0x1'));var bodyParser=require(_0x4beb('0x2'));var methodOverride=require('method-override');var cookieParser=require(_0x4beb('0x3'));var errorHandler=require(_0x4beb('0x4'));var path=require(_0x4beb('0x5'));var passport=require(_0x4beb('0x6'));var cors=require('cors');var moment=require(_0x4beb('0x7'));var config=require(_0x4beb('0x8'));var db=require(_0x4beb('0x9'))['db'];exports['default']=function(_0x14f096){var _0x28b2eb=_0x14f096[_0x4beb('0xa')](_0x4beb('0xb'));if(_0x28b2eb===_0x4beb('0xc')){_0x14f096[_0x4beb('0xd')](_0x4beb('0xe'),path[_0x4beb('0xf')](config[_0x4beb('0x10')],_0x4beb('0x11')));}if(_0x28b2eb===_0x4beb('0x12')||_0x28b2eb===_0x4beb('0x13')){_0x14f096[_0x4beb('0xd')](_0x4beb('0xe'),path['join'](config['root'],_0x4beb('0x14')));_0x14f096[_0x4beb('0x15')](errorHandler());}_0x14f096[_0x4beb('0xd')]('json\x20replacer',function(_0xd1777,_0xf1019d){if(this[_0xd1777]instanceof Date){_0xf1019d=this[_0xd1777][_0x4beb('0x16')]()[_0x4beb('0x17')]('.')[0x0]+'Z';}return _0xf1019d;});_0x14f096[_0x4beb('0x15')](express[_0x4beb('0x18')](_0x14f096[_0x4beb('0xa')](_0x4beb('0xe'))));_0x14f096[_0x4beb('0xd')](_0x4beb('0x19'),config[_0x4beb('0x10')]+_0x4beb('0x1a'));_0x14f096[_0x4beb('0x1b')]('html',require(_0x4beb('0x1c'))[_0x4beb('0x1d')]);_0x14f096[_0x4beb('0xd')]('view\x20engine',_0x4beb('0x1e'));_0x14f096[_0x4beb('0x15')](bodyParser[_0x4beb('0x1f')]({'limit':_0x4beb('0x20'),'extended':!![]}));_0x14f096[_0x4beb('0x15')](bodyParser[_0x4beb('0x21')]({'limit':_0x4beb('0x20')}));_0x14f096[_0x4beb('0x15')](cors());_0x14f096[_0x4beb('0x15')](methodOverride());_0x14f096[_0x4beb('0x15')](cookieParser());_0x14f096[_0x4beb('0x15')](passport[_0x4beb('0x22')]());};
\ No newline at end of file