Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / config / express.js
index b38cc42..abbce9b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x00cf=['ejs','renderFile','view\x20engine','50mb','express','serve-favicon','body-parser','cookie-parser','errorhandler','path','cors','../mysqldb','default','get','env','production','set','appPath','join','root','public','development','test','client','use','split','static','/server/views','engine','html'];(function(_0x2fe204,_0x1984e4){var _0x984dbd=function(_0x118ec3){while(--_0x118ec3){_0x2fe204['push'](_0x2fe204['shift']());}};_0x984dbd(++_0x1984e4);}(_0x00cf,0x1a8));var _0xf00c=function(_0x3e7f7d,_0x497c6f){_0x3e7f7d=_0x3e7f7d-0x0;var _0x21d60d=_0x00cf[_0x3e7f7d];return _0x21d60d;};'use strict';var express=require(_0xf00c('0x0'));var favicon=require(_0xf00c('0x1'));var bodyParser=require(_0xf00c('0x2'));var methodOverride=require('method-override');var cookieParser=require(_0xf00c('0x3'));var errorHandler=require(_0xf00c('0x4'));var path=require(_0xf00c('0x5'));var passport=require('passport');var cors=require(_0xf00c('0x6'));var moment=require('moment');var config=require('./environment');var db=require(_0xf00c('0x7'))['db'];exports[_0xf00c('0x8')]=function(_0xa4e2d8){var _0x583cb8=_0xa4e2d8[_0xf00c('0x9')](_0xf00c('0xa'));if(_0x583cb8===_0xf00c('0xb')){_0xa4e2d8[_0xf00c('0xc')](_0xf00c('0xd'),path[_0xf00c('0xe')](config[_0xf00c('0xf')],_0xf00c('0x10')));}if(_0x583cb8===_0xf00c('0x11')||_0x583cb8===_0xf00c('0x12')){_0xa4e2d8['set'](_0xf00c('0xd'),path[_0xf00c('0xe')](config[_0xf00c('0xf')],_0xf00c('0x13')));_0xa4e2d8[_0xf00c('0x14')](errorHandler());}_0xa4e2d8[_0xf00c('0xc')]('json\x20replacer',function(_0x4a78bd,_0x5f01db){if(this[_0x4a78bd]instanceof Date){_0x5f01db=this[_0x4a78bd]['toISOString']()[_0xf00c('0x15')]('.')[0x0]+'Z';}return _0x5f01db;});_0xa4e2d8[_0xf00c('0x14')](express[_0xf00c('0x16')](_0xa4e2d8[_0xf00c('0x9')](_0xf00c('0xd'))));_0xa4e2d8[_0xf00c('0xc')]('views',config[_0xf00c('0xf')]+_0xf00c('0x17'));_0xa4e2d8[_0xf00c('0x18')](_0xf00c('0x19'),require(_0xf00c('0x1a'))[_0xf00c('0x1b')]);_0xa4e2d8['set'](_0xf00c('0x1c'),_0xf00c('0x19'));_0xa4e2d8[_0xf00c('0x14')](bodyParser['urlencoded']({'limit':'50mb','extended':!![]}));_0xa4e2d8[_0xf00c('0x14')](bodyParser['json']({'limit':_0xf00c('0x1d')}));_0xa4e2d8[_0xf00c('0x14')](cors());_0xa4e2d8[_0xf00c('0x14')](methodOverride());_0xa4e2d8[_0xf00c('0x14')](cookieParser());_0xa4e2d8[_0xf00c('0x14')](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(_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