Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / config / express.js
index 27154ae..900f5b7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x68df=['method-override','errorhandler','path','passport','cors','moment','./environment','../mysqldb','default','env','production','set','appPath','join','public','test','root','client','use','json\x20replacer','toISOString','split','static','get','views','/server/views','engine','html','ejs','renderFile','view\x20engine','urlencoded','50mb','initialize','serve-favicon','body-parser'];(function(_0x5cf94d,_0x3e9b52){var _0x3242a6=function(_0x22e8b8){while(--_0x22e8b8){_0x5cf94d['push'](_0x5cf94d['shift']());}};_0x3242a6(++_0x3e9b52);}(_0x68df,0x1d2));var _0xf68d=function(_0x52684f,_0xff73fc){_0x52684f=_0x52684f-0x0;var _0x4a55f0=_0x68df[_0x52684f];return _0x4a55f0;};'use strict';var express=require('express');var favicon=require(_0xf68d('0x0'));var bodyParser=require(_0xf68d('0x1'));var methodOverride=require(_0xf68d('0x2'));var cookieParser=require('cookie-parser');var errorHandler=require(_0xf68d('0x3'));var path=require(_0xf68d('0x4'));var passport=require(_0xf68d('0x5'));var cors=require(_0xf68d('0x6'));var moment=require(_0xf68d('0x7'));var config=require(_0xf68d('0x8'));var db=require(_0xf68d('0x9'))['db'];exports[_0xf68d('0xa')]=function(_0x22d1ac){var _0x160198=_0x22d1ac['get'](_0xf68d('0xb'));if(_0x160198===_0xf68d('0xc')){_0x22d1ac[_0xf68d('0xd')](_0xf68d('0xe'),path[_0xf68d('0xf')](config['root'],_0xf68d('0x10')));}if(_0x160198==='development'||_0x160198===_0xf68d('0x11')){_0x22d1ac['set'](_0xf68d('0xe'),path[_0xf68d('0xf')](config[_0xf68d('0x12')],_0xf68d('0x13')));_0x22d1ac[_0xf68d('0x14')](errorHandler());}_0x22d1ac['set'](_0xf68d('0x15'),function(_0x14ac9c,_0x3dddc7){if(this[_0x14ac9c]instanceof Date){_0x3dddc7=this[_0x14ac9c][_0xf68d('0x16')]()[_0xf68d('0x17')]('.')[0x0]+'Z';}return _0x3dddc7;});_0x22d1ac[_0xf68d('0x14')](express[_0xf68d('0x18')](_0x22d1ac[_0xf68d('0x19')](_0xf68d('0xe'))));_0x22d1ac[_0xf68d('0xd')](_0xf68d('0x1a'),config[_0xf68d('0x12')]+_0xf68d('0x1b'));_0x22d1ac[_0xf68d('0x1c')](_0xf68d('0x1d'),require(_0xf68d('0x1e'))[_0xf68d('0x1f')]);_0x22d1ac[_0xf68d('0xd')](_0xf68d('0x20'),'html');_0x22d1ac['use'](bodyParser[_0xf68d('0x21')]({'limit':'50mb','extended':!![]}));_0x22d1ac[_0xf68d('0x14')](bodyParser['json']({'limit':_0xf68d('0x22')}));_0x22d1ac['use'](cors());_0x22d1ac['use'](methodOverride());_0x22d1ac[_0xf68d('0x14')](cookieParser());_0x22d1ac[_0xf68d('0x14')](passport[_0xf68d('0x23')]());};
\ No newline at end of file
+var _0xa9e0=['get','production','set','appPath','public','join','root','client','use','toISOString','split','static','views','/server/views','engine','html','ejs','urlencoded','50mb','json','initialize','express','method-override','cookie-parser','passport','./environment','default'];(function(_0x14a862,_0x2b559d){var _0x245eb5=function(_0x6e014c){while(--_0x6e014c){_0x14a862['push'](_0x14a862['shift']());}};_0x245eb5(++_0x2b559d);}(_0xa9e0,0x123));var _0x0a9e=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0xa9e0[_0x6c993a];return _0x27f547;};'use strict';var express=require(_0x0a9e('0x0'));var methodOverride=require(_0x0a9e('0x1'));var cookieParser=require(_0x0a9e('0x2'));var errorHandler=require('errorhandler');var path=require('path');var passport=require(_0x0a9e('0x3'));var cors=require('cors');var config=require(_0x0a9e('0x4'));exports[_0x0a9e('0x5')]=function(_0x2ab90b){var _0x991246=_0x2ab90b[_0x0a9e('0x6')]('env');if(_0x991246===_0x0a9e('0x7')){_0x2ab90b[_0x0a9e('0x8')](_0x0a9e('0x9'),path['join'](config['root'],_0x0a9e('0xa')));}if(_0x991246==='development'||_0x991246==='test'){_0x2ab90b[_0x0a9e('0x8')](_0x0a9e('0x9'),path[_0x0a9e('0xb')](config[_0x0a9e('0xc')],_0x0a9e('0xd')));_0x2ab90b[_0x0a9e('0xe')](errorHandler());}_0x2ab90b['set']('json\x20replacer',function(_0x527cdd,_0x4cfe67){if(this[_0x527cdd]instanceof Date){_0x4cfe67=this[_0x527cdd][_0x0a9e('0xf')]()[_0x0a9e('0x10')]('.')[0x0]+'Z';}return _0x4cfe67;});_0x2ab90b[_0x0a9e('0xe')](express[_0x0a9e('0x11')](_0x2ab90b[_0x0a9e('0x6')](_0x0a9e('0x9'))));_0x2ab90b['set'](_0x0a9e('0x12'),config[_0x0a9e('0xc')]+_0x0a9e('0x13'));_0x2ab90b[_0x0a9e('0x14')](_0x0a9e('0x15'),require(_0x0a9e('0x16'))['renderFile']);_0x2ab90b[_0x0a9e('0x8')]('view\x20engine',_0x0a9e('0x15'));_0x2ab90b['use'](express[_0x0a9e('0x17')]({'limit':_0x0a9e('0x18'),'extended':!![]}));_0x2ab90b['use'](express[_0x0a9e('0x19')]({'limit':'50mb'}));_0x2ab90b[_0x0a9e('0xe')](cors());_0x2ab90b[_0x0a9e('0xe')](methodOverride());_0x2ab90b[_0x0a9e('0xe')](cookieParser());_0x2ab90b[_0x0a9e('0xe')](passport[_0x0a9e('0x1a')]());};
\ No newline at end of file