Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / config / express.js
index 8e26820..9e2378b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6fde=['./environment','../mysqldb','get','env','production','appPath','root','public','development','test','set','join','client','use','toISOString','split','views','/server/views','engine','html','ejs','renderFile','json','method-override','errorhandler','passport','moment'];(function(_0x1f06d6,_0x58b95f){var _0xa48fde=function(_0x302836){while(--_0x302836){_0x1f06d6['push'](_0x1f06d6['shift']());}};_0xa48fde(++_0x58b95f);}(_0x6fde,0xef));var _0xe6fd=function(_0x2fe3f2,_0x248d69){_0x2fe3f2=_0x2fe3f2-0x0;var _0x4180ac=_0x6fde[_0x2fe3f2];return _0x4180ac;};'use strict';var express=require('express');var favicon=require('serve-favicon');var bodyParser=require('body-parser');var methodOverride=require(_0xe6fd('0x0'));var cookieParser=require('cookie-parser');var errorHandler=require(_0xe6fd('0x1'));var path=require('path');var passport=require(_0xe6fd('0x2'));var cors=require('cors');var moment=require(_0xe6fd('0x3'));var config=require(_0xe6fd('0x4'));var db=require(_0xe6fd('0x5'))['db'];exports['default']=function(_0x425e22){var _0x2875cb=_0x425e22[_0xe6fd('0x6')](_0xe6fd('0x7'));if(_0x2875cb===_0xe6fd('0x8')){_0x425e22['set'](_0xe6fd('0x9'),path['join'](config[_0xe6fd('0xa')],_0xe6fd('0xb')));}if(_0x2875cb===_0xe6fd('0xc')||_0x2875cb===_0xe6fd('0xd')){_0x425e22[_0xe6fd('0xe')]('appPath',path[_0xe6fd('0xf')](config[_0xe6fd('0xa')],_0xe6fd('0x10')));_0x425e22[_0xe6fd('0x11')](errorHandler());}_0x425e22[_0xe6fd('0xe')]('json\x20replacer',function(_0x5e559b,_0x559322){if(this[_0x5e559b]instanceof Date){_0x559322=this[_0x5e559b][_0xe6fd('0x12')]()[_0xe6fd('0x13')]('.')[0x0]+'Z';}return _0x559322;});_0x425e22['use'](express['static'](_0x425e22['get']('appPath')));_0x425e22[_0xe6fd('0xe')](_0xe6fd('0x14'),config[_0xe6fd('0xa')]+_0xe6fd('0x15'));_0x425e22[_0xe6fd('0x16')](_0xe6fd('0x17'),require(_0xe6fd('0x18'))[_0xe6fd('0x19')]);_0x425e22[_0xe6fd('0xe')]('view\x20engine',_0xe6fd('0x17'));_0x425e22['use'](bodyParser['urlencoded']({'limit':'50mb','extended':!![]}));_0x425e22[_0xe6fd('0x11')](bodyParser[_0xe6fd('0x1a')]({'limit':'50mb'}));_0x425e22[_0xe6fd('0x11')](cors());_0x425e22[_0xe6fd('0x11')](methodOverride());_0x425e22[_0xe6fd('0x11')](cookieParser());_0x425e22['use'](passport['initialize']());};
\ No newline at end of file
+var _0x9957=['root','public','test','join','client','use','json\x20replacer','toISOString','split','static','/server/views','engine','html','ejs','renderFile','view\x20engine','urlencoded','json','50mb','express','method-override','cookie-parser','errorhandler','passport','cors','./environment','default','get','env','production','set','appPath'];(function(_0x531f56,_0x334fcc){var _0x2cd1d4=function(_0x12a368){while(--_0x12a368){_0x531f56['push'](_0x531f56['shift']());}};_0x2cd1d4(++_0x334fcc);}(_0x9957,0x93));var _0x7995=function(_0x4cf98e,_0xba4b79){_0x4cf98e=_0x4cf98e-0x0;var _0x1623ac=_0x9957[_0x4cf98e];return _0x1623ac;};'use strict';var express=require(_0x7995('0x0'));var methodOverride=require(_0x7995('0x1'));var cookieParser=require(_0x7995('0x2'));var errorHandler=require(_0x7995('0x3'));var path=require('path');var passport=require(_0x7995('0x4'));var cors=require(_0x7995('0x5'));var config=require(_0x7995('0x6'));exports[_0x7995('0x7')]=function(_0x576d89){var _0x744bea=_0x576d89[_0x7995('0x8')](_0x7995('0x9'));if(_0x744bea===_0x7995('0xa')){_0x576d89[_0x7995('0xb')](_0x7995('0xc'),path['join'](config[_0x7995('0xd')],_0x7995('0xe')));}if(_0x744bea==='development'||_0x744bea===_0x7995('0xf')){_0x576d89[_0x7995('0xb')](_0x7995('0xc'),path[_0x7995('0x10')](config[_0x7995('0xd')],_0x7995('0x11')));_0x576d89[_0x7995('0x12')](errorHandler());}_0x576d89['set'](_0x7995('0x13'),function(_0x41c652,_0x581f22){if(this[_0x41c652]instanceof Date){_0x581f22=this[_0x41c652][_0x7995('0x14')]()[_0x7995('0x15')]('.')[0x0]+'Z';}return _0x581f22;});_0x576d89[_0x7995('0x12')](express[_0x7995('0x16')](_0x576d89[_0x7995('0x8')](_0x7995('0xc'))));_0x576d89[_0x7995('0xb')]('views',config['root']+_0x7995('0x17'));_0x576d89[_0x7995('0x18')](_0x7995('0x19'),require(_0x7995('0x1a'))[_0x7995('0x1b')]);_0x576d89[_0x7995('0xb')](_0x7995('0x1c'),_0x7995('0x19'));_0x576d89['use'](express[_0x7995('0x1d')]({'limit':'50mb','extended':!![]}));_0x576d89[_0x7995('0x12')](express[_0x7995('0x1e')]({'limit':_0x7995('0x1f')}));_0x576d89[_0x7995('0x12')](cors());_0x576d89[_0x7995('0x12')](methodOverride());_0x576d89[_0x7995('0x12')](cookieParser());_0x576d89['use'](passport['initialize']());};
\ No newline at end of file