Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / config / express.js
index 35a389f..53dcfae 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3c42=['../mysqldb','default','get','env','production','set','join','public','test','appPath','root','client','use','json\x20replacer','toISOString','static','views','/server/views','engine','html','ejs','renderFile','view\x20engine','50mb','json','initialize','serve-favicon','body-parser','method-override','passport','cors','moment','./environment'];(function(_0x3f69b6,_0x340651){var _0x303159=function(_0xeed11d){while(--_0xeed11d){_0x3f69b6['push'](_0x3f69b6['shift']());}};_0x303159(++_0x340651);}(_0x3c42,0x7d));var _0x23c4=function(_0x3cfff0,_0x50d9b6){_0x3cfff0=_0x3cfff0-0x0;var _0x265cd6=_0x3c42[_0x3cfff0];return _0x265cd6;};'use strict';var express=require('express');var favicon=require(_0x23c4('0x0'));var bodyParser=require(_0x23c4('0x1'));var methodOverride=require(_0x23c4('0x2'));var cookieParser=require('cookie-parser');var errorHandler=require('errorhandler');var path=require('path');var passport=require(_0x23c4('0x3'));var cors=require(_0x23c4('0x4'));var moment=require(_0x23c4('0x5'));var config=require(_0x23c4('0x6'));var db=require(_0x23c4('0x7'))['db'];exports[_0x23c4('0x8')]=function(_0x44b981){var _0x2c9684=_0x44b981[_0x23c4('0x9')](_0x23c4('0xa'));if(_0x2c9684===_0x23c4('0xb')){_0x44b981[_0x23c4('0xc')]('appPath',path[_0x23c4('0xd')](config['root'],_0x23c4('0xe')));}if(_0x2c9684==='development'||_0x2c9684===_0x23c4('0xf')){_0x44b981[_0x23c4('0xc')](_0x23c4('0x10'),path['join'](config[_0x23c4('0x11')],_0x23c4('0x12')));_0x44b981[_0x23c4('0x13')](errorHandler());}_0x44b981[_0x23c4('0xc')](_0x23c4('0x14'),function(_0x58cc08,_0x52a6a3){if(this[_0x58cc08]instanceof Date){_0x52a6a3=this[_0x58cc08][_0x23c4('0x15')]()['split']('.')[0x0]+'Z';}return _0x52a6a3;});_0x44b981['use'](express[_0x23c4('0x16')](_0x44b981[_0x23c4('0x9')](_0x23c4('0x10'))));_0x44b981[_0x23c4('0xc')](_0x23c4('0x17'),config[_0x23c4('0x11')]+_0x23c4('0x18'));_0x44b981[_0x23c4('0x19')](_0x23c4('0x1a'),require(_0x23c4('0x1b'))[_0x23c4('0x1c')]);_0x44b981[_0x23c4('0xc')](_0x23c4('0x1d'),_0x23c4('0x1a'));_0x44b981['use'](bodyParser['urlencoded']({'limit':_0x23c4('0x1e'),'extended':!![]}));_0x44b981[_0x23c4('0x13')](bodyParser[_0x23c4('0x1f')]({'limit':_0x23c4('0x1e')}));_0x44b981[_0x23c4('0x13')](cors());_0x44b981[_0x23c4('0x13')](methodOverride());_0x44b981['use'](cookieParser());_0x44b981[_0x23c4('0x13')](passport[_0x23c4('0x20')]());};
\ No newline at end of file
+var _0xaaf7=['get','env','production','set','appPath','join','public','development','root','client','use','json\x20replacer','toISOString','split','static','views','/server/views','html','renderFile','view\x20engine','urlencoded','50mb','json','express','serve-favicon','cookie-parser','errorhandler','path','passport','cors','moment','default'];(function(_0x2e408c,_0x285d0b){var _0x57744a=function(_0x1abbc5){while(--_0x1abbc5){_0x2e408c['push'](_0x2e408c['shift']());}};_0x57744a(++_0x285d0b);}(_0xaaf7,0x1b7));var _0x7aaf=function(_0x18f76d,_0x3b926e){_0x18f76d=_0x18f76d-0x0;var _0x2f55e2=_0xaaf7[_0x18f76d];return _0x2f55e2;};'use strict';var express=require(_0x7aaf('0x0'));var favicon=require(_0x7aaf('0x1'));var bodyParser=require('body-parser');var methodOverride=require('method-override');var cookieParser=require(_0x7aaf('0x2'));var errorHandler=require(_0x7aaf('0x3'));var path=require(_0x7aaf('0x4'));var passport=require(_0x7aaf('0x5'));var cors=require(_0x7aaf('0x6'));var moment=require(_0x7aaf('0x7'));var config=require('./environment');var db=require('../mysqldb')['db'];exports[_0x7aaf('0x8')]=function(_0x54787a){var _0x3a2599=_0x54787a[_0x7aaf('0x9')](_0x7aaf('0xa'));if(_0x3a2599===_0x7aaf('0xb')){_0x54787a[_0x7aaf('0xc')](_0x7aaf('0xd'),path[_0x7aaf('0xe')](config['root'],_0x7aaf('0xf')));}if(_0x3a2599===_0x7aaf('0x10')||_0x3a2599==='test'){_0x54787a[_0x7aaf('0xc')](_0x7aaf('0xd'),path[_0x7aaf('0xe')](config[_0x7aaf('0x11')],_0x7aaf('0x12')));_0x54787a[_0x7aaf('0x13')](errorHandler());}_0x54787a[_0x7aaf('0xc')](_0x7aaf('0x14'),function(_0x11cc61,_0x2d0bfa){if(this[_0x11cc61]instanceof Date){_0x2d0bfa=this[_0x11cc61][_0x7aaf('0x15')]()[_0x7aaf('0x16')]('.')[0x0]+'Z';}return _0x2d0bfa;});_0x54787a['use'](express[_0x7aaf('0x17')](_0x54787a[_0x7aaf('0x9')]('appPath')));_0x54787a[_0x7aaf('0xc')](_0x7aaf('0x18'),config['root']+_0x7aaf('0x19'));_0x54787a['engine'](_0x7aaf('0x1a'),require('ejs')[_0x7aaf('0x1b')]);_0x54787a[_0x7aaf('0xc')](_0x7aaf('0x1c'),'html');_0x54787a[_0x7aaf('0x13')](bodyParser[_0x7aaf('0x1d')]({'limit':_0x7aaf('0x1e'),'extended':!![]}));_0x54787a[_0x7aaf('0x13')](bodyParser[_0x7aaf('0x1f')]({'limit':'50mb'}));_0x54787a['use'](cors());_0x54787a[_0x7aaf('0x13')](methodOverride());_0x54787a[_0x7aaf('0x13')](cookieParser());_0x54787a[_0x7aaf('0x13')](passport['initialize']());};
\ No newline at end of file