Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / config / express.js
index 9fe2f0c..abbce9b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb877=['set','client','use','json\x20replacer','split','static','get','views','engine','html','ejs','renderFile','view\x20engine','urlencoded','50mb','json','initialize','express','serve-favicon','cookie-parser','errorhandler','passport','moment','./environment','env','production','appPath','join','development','test'];(function(_0x207c58,_0x2f2857){var _0x505e8f=function(_0x1bbfdb){while(--_0x1bbfdb){_0x207c58['push'](_0x207c58['shift']());}};_0x505e8f(++_0x2f2857);}(_0xb877,0x15b));var _0x7b87=function(_0x13dc09,_0x162d8c){_0x13dc09=_0x13dc09-0x0;var _0x46e95d=_0xb877[_0x13dc09];return _0x46e95d;};'use strict';var express=require(_0x7b87('0x0'));var favicon=require(_0x7b87('0x1'));var bodyParser=require('body-parser');var methodOverride=require('method-override');var cookieParser=require(_0x7b87('0x2'));var errorHandler=require(_0x7b87('0x3'));var path=require('path');var passport=require(_0x7b87('0x4'));var cors=require('cors');var moment=require(_0x7b87('0x5'));var config=require(_0x7b87('0x6'));var db=require('../mysqldb')['db'];exports['default']=function(_0xfa9f6){var _0x5668d7=_0xfa9f6['get'](_0x7b87('0x7'));if(_0x5668d7===_0x7b87('0x8')){_0xfa9f6['set'](_0x7b87('0x9'),path[_0x7b87('0xa')](config['root'],'public'));}if(_0x5668d7===_0x7b87('0xb')||_0x5668d7===_0x7b87('0xc')){_0xfa9f6[_0x7b87('0xd')](_0x7b87('0x9'),path[_0x7b87('0xa')](config['root'],_0x7b87('0xe')));_0xfa9f6[_0x7b87('0xf')](errorHandler());}_0xfa9f6['set'](_0x7b87('0x10'),function(_0x6be5da,_0x119419){if(this[_0x6be5da]instanceof Date){_0x119419=this[_0x6be5da]['toISOString']()[_0x7b87('0x11')]('.')[0x0]+'Z';}return _0x119419;});_0xfa9f6[_0x7b87('0xf')](express[_0x7b87('0x12')](_0xfa9f6[_0x7b87('0x13')](_0x7b87('0x9'))));_0xfa9f6[_0x7b87('0xd')](_0x7b87('0x14'),config['root']+'/server/views');_0xfa9f6[_0x7b87('0x15')](_0x7b87('0x16'),require(_0x7b87('0x17'))[_0x7b87('0x18')]);_0xfa9f6[_0x7b87('0xd')](_0x7b87('0x19'),_0x7b87('0x16'));_0xfa9f6[_0x7b87('0xf')](bodyParser[_0x7b87('0x1a')]({'limit':_0x7b87('0x1b'),'extended':!![]}));_0xfa9f6[_0x7b87('0xf')](bodyParser[_0x7b87('0x1c')]({'limit':_0x7b87('0x1b')}));_0xfa9f6['use'](cors());_0xfa9f6[_0x7b87('0xf')](methodOverride());_0xfa9f6[_0x7b87('0xf')](cookieParser());_0xfa9f6[_0x7b87('0xf')](passport[_0x7b87('0x1d')]());};
\ 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(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0x9957,0x93));var _0x7995=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0x9957[_0x1facfa];return _0x9ec701;};'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