Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / config / express.js
index 3b80b57..9e2378b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4e68=['development','test','use','json\x20replacer','toISOString','split','static','get','views','html','ejs','view\x20engine','urlencoded','json','50mb','initialize','express','serve-favicon','body-parser','method-override','cookie-parser','errorhandler','path','passport','cors','moment','default','env','production','set','appPath','join','root'];(function(_0x193fb1,_0x306bbd){var _0x33a32c=function(_0x517436){while(--_0x517436){_0x193fb1['push'](_0x193fb1['shift']());}};_0x33a32c(++_0x306bbd);}(_0x4e68,0xf7));var _0x84e6=function(_0x423916,_0x1d41cb){_0x423916=_0x423916-0x0;var _0x1b9782=_0x4e68[_0x423916];return _0x1b9782;};'use strict';var express=require(_0x84e6('0x0'));var favicon=require(_0x84e6('0x1'));var bodyParser=require(_0x84e6('0x2'));var methodOverride=require(_0x84e6('0x3'));var cookieParser=require(_0x84e6('0x4'));var errorHandler=require(_0x84e6('0x5'));var path=require(_0x84e6('0x6'));var passport=require(_0x84e6('0x7'));var cors=require(_0x84e6('0x8'));var moment=require(_0x84e6('0x9'));var config=require('./environment');var db=require('../mysqldb')['db'];exports[_0x84e6('0xa')]=function(_0x4e9742){var _0x46d917=_0x4e9742['get'](_0x84e6('0xb'));if(_0x46d917===_0x84e6('0xc')){_0x4e9742[_0x84e6('0xd')](_0x84e6('0xe'),path[_0x84e6('0xf')](config[_0x84e6('0x10')],'public'));}if(_0x46d917===_0x84e6('0x11')||_0x46d917===_0x84e6('0x12')){_0x4e9742[_0x84e6('0xd')](_0x84e6('0xe'),path[_0x84e6('0xf')](config[_0x84e6('0x10')],'client'));_0x4e9742[_0x84e6('0x13')](errorHandler());}_0x4e9742['set'](_0x84e6('0x14'),function(_0x746007,_0x186039){if(this[_0x746007]instanceof Date){_0x186039=this[_0x746007][_0x84e6('0x15')]()[_0x84e6('0x16')]('.')[0x0]+'Z';}return _0x186039;});_0x4e9742[_0x84e6('0x13')](express[_0x84e6('0x17')](_0x4e9742[_0x84e6('0x18')](_0x84e6('0xe'))));_0x4e9742['set'](_0x84e6('0x19'),config[_0x84e6('0x10')]+'/server/views');_0x4e9742['engine'](_0x84e6('0x1a'),require(_0x84e6('0x1b'))['renderFile']);_0x4e9742[_0x84e6('0xd')](_0x84e6('0x1c'),_0x84e6('0x1a'));_0x4e9742['use'](bodyParser[_0x84e6('0x1d')]({'limit':'50mb','extended':!![]}));_0x4e9742['use'](bodyParser[_0x84e6('0x1e')]({'limit':_0x84e6('0x1f')}));_0x4e9742[_0x84e6('0x13')](cors());_0x4e9742[_0x84e6('0x13')](methodOverride());_0x4e9742[_0x84e6('0x13')](cookieParser());_0x4e9742[_0x84e6('0x13')](passport[_0x84e6('0x20')]());};
\ 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