Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / config / express.js
index 0df7ef8..53dcfae 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x560b=['json','initialize','express','body-parser','method-override','errorhandler','cors','./environment','../mysqldb','default','get','join','public','development','test','set','appPath','root','client','use','split','static','views','/server/views','engine','ejs','view\x20engine','urlencoded','50mb'];(function(_0x5726f1,_0x16d724){var _0x176d6b=function(_0x338f2e){while(--_0x338f2e){_0x5726f1['push'](_0x5726f1['shift']());}};_0x176d6b(++_0x16d724);}(_0x560b,0x15e));var _0xb560=function(_0x20152f,_0xe2ef93){_0x20152f=_0x20152f-0x0;var _0x1a83d5=_0x560b[_0x20152f];return _0x1a83d5;};'use strict';var express=require(_0xb560('0x0'));var favicon=require('serve-favicon');var bodyParser=require(_0xb560('0x1'));var methodOverride=require(_0xb560('0x2'));var cookieParser=require('cookie-parser');var errorHandler=require(_0xb560('0x3'));var path=require('path');var passport=require('passport');var cors=require(_0xb560('0x4'));var moment=require('moment');var config=require(_0xb560('0x5'));var db=require(_0xb560('0x6'))['db'];exports[_0xb560('0x7')]=function(_0x552753){var _0x348b37=_0x552753[_0xb560('0x8')]('env');if(_0x348b37==='production'){_0x552753['set']('appPath',path[_0xb560('0x9')](config['root'],_0xb560('0xa')));}if(_0x348b37===_0xb560('0xb')||_0x348b37===_0xb560('0xc')){_0x552753[_0xb560('0xd')](_0xb560('0xe'),path[_0xb560('0x9')](config[_0xb560('0xf')],_0xb560('0x10')));_0x552753[_0xb560('0x11')](errorHandler());}_0x552753[_0xb560('0xd')]('json\x20replacer',function(_0x44a7b7,_0x966252){if(this[_0x44a7b7]instanceof Date){_0x966252=this[_0x44a7b7]['toISOString']()[_0xb560('0x12')]('.')[0x0]+'Z';}return _0x966252;});_0x552753['use'](express[_0xb560('0x13')](_0x552753[_0xb560('0x8')](_0xb560('0xe'))));_0x552753['set'](_0xb560('0x14'),config[_0xb560('0xf')]+_0xb560('0x15'));_0x552753[_0xb560('0x16')]('html',require(_0xb560('0x17'))['renderFile']);_0x552753[_0xb560('0xd')](_0xb560('0x18'),'html');_0x552753['use'](bodyParser[_0xb560('0x19')]({'limit':_0xb560('0x1a'),'extended':!![]}));_0x552753[_0xb560('0x11')](bodyParser[_0xb560('0x1b')]({'limit':'50mb'}));_0x552753[_0xb560('0x11')](cors());_0x552753[_0xb560('0x11')](methodOverride());_0x552753['use'](cookieParser());_0x552753[_0xb560('0x11')](passport[_0xb560('0x1c')]());};
\ 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