Built motion from commit eddce310.|2.6.12
[motion2.git] / server / config / express.js
index 779ce46..f99fd32 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbbbe=['root','/server/views','engine','html','ejs','renderFile','view\x20engine','urlencoded','50mb','json','serve-favicon','body-parser','method-override','cookie-parser','path','passport','cors','moment','./environment','../mysqldb','get','env','set','appPath','public','development','test','join','client','use','toISOString','split','static','views'];(function(_0x53b22e,_0x5e248f){var _0x14a0a4=function(_0x5dcfb9){while(--_0x5dcfb9){_0x53b22e['push'](_0x53b22e['shift']());}};_0x14a0a4(++_0x5e248f);}(_0xbbbe,0x1e6));var _0xebbb=function(_0x481107,_0x30da89){_0x481107=_0x481107-0x0;var _0x5e3922=_0xbbbe[_0x481107];return _0x5e3922;};'use strict';var express=require('express');var favicon=require(_0xebbb('0x0'));var bodyParser=require(_0xebbb('0x1'));var methodOverride=require(_0xebbb('0x2'));var cookieParser=require(_0xebbb('0x3'));var errorHandler=require('errorhandler');var path=require(_0xebbb('0x4'));var passport=require(_0xebbb('0x5'));var cors=require(_0xebbb('0x6'));var moment=require(_0xebbb('0x7'));var config=require(_0xebbb('0x8'));var db=require(_0xebbb('0x9'))['db'];exports['default']=function(_0x27ebc2){var _0x1787d9=_0x27ebc2[_0xebbb('0xa')](_0xebbb('0xb'));if(_0x1787d9==='production'){_0x27ebc2[_0xebbb('0xc')](_0xebbb('0xd'),path['join'](config['root'],_0xebbb('0xe')));}if(_0x1787d9===_0xebbb('0xf')||_0x1787d9===_0xebbb('0x10')){_0x27ebc2['set']('appPath',path[_0xebbb('0x11')](config['root'],_0xebbb('0x12')));_0x27ebc2[_0xebbb('0x13')](errorHandler());}_0x27ebc2[_0xebbb('0xc')]('json\x20replacer',function(_0x5dd784,_0x11a48a){if(this[_0x5dd784]instanceof Date){_0x11a48a=this[_0x5dd784][_0xebbb('0x14')]()[_0xebbb('0x15')]('.')[0x0]+'Z';}return _0x11a48a;});_0x27ebc2[_0xebbb('0x13')](express[_0xebbb('0x16')](_0x27ebc2[_0xebbb('0xa')]('appPath')));_0x27ebc2[_0xebbb('0xc')](_0xebbb('0x17'),config[_0xebbb('0x18')]+_0xebbb('0x19'));_0x27ebc2[_0xebbb('0x1a')](_0xebbb('0x1b'),require(_0xebbb('0x1c'))[_0xebbb('0x1d')]);_0x27ebc2[_0xebbb('0xc')](_0xebbb('0x1e'),_0xebbb('0x1b'));_0x27ebc2[_0xebbb('0x13')](bodyParser[_0xebbb('0x1f')]({'limit':_0xebbb('0x20'),'extended':!![]}));_0x27ebc2[_0xebbb('0x13')](bodyParser[_0xebbb('0x21')]({'limit':'50mb'}));_0x27ebc2[_0xebbb('0x13')](cors());_0x27ebc2['use'](methodOverride());_0x27ebc2[_0xebbb('0x13')](cookieParser());_0x27ebc2[_0xebbb('0x13')](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(_0x40318c,_0x2ac42f){var _0x5783b8=function(_0x2f95f0){while(--_0x2f95f0){_0x40318c['push'](_0x40318c['shift']());}};_0x5783b8(++_0x2ac42f);}(_0x9957,0x93));var _0x7995=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x9957[_0x2dafbe];return _0x58a45a;};'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