Built motion from commit eddce310.|2.6.12
[motion2.git] / server / config / express.js
index 45e58d0..f99fd32 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf16b=['test','root','client','use','toISOString','split','static','get','/server/views','ejs','renderFile','view\x20engine','html','urlencoded','50mb','json','express','serve-favicon','body-parser','method-override','cookie-parser','path','passport','cors','moment','./environment','../mysqldb','default','production','set','appPath','join','public'];(function(_0x4a53d,_0x58a95e){var _0x27410e=function(_0x38fc90){while(--_0x38fc90){_0x4a53d['push'](_0x4a53d['shift']());}};_0x27410e(++_0x58a95e);}(_0xf16b,0x94));var _0xbf16=function(_0x19e06a,_0xe654af){_0x19e06a=_0x19e06a-0x0;var _0x8bc6c7=_0xf16b[_0x19e06a];return _0x8bc6c7;};'use strict';var express=require(_0xbf16('0x0'));var favicon=require(_0xbf16('0x1'));var bodyParser=require(_0xbf16('0x2'));var methodOverride=require(_0xbf16('0x3'));var cookieParser=require(_0xbf16('0x4'));var errorHandler=require('errorhandler');var path=require(_0xbf16('0x5'));var passport=require(_0xbf16('0x6'));var cors=require(_0xbf16('0x7'));var moment=require(_0xbf16('0x8'));var config=require(_0xbf16('0x9'));var db=require(_0xbf16('0xa'))['db'];exports[_0xbf16('0xb')]=function(_0x5661b3){var _0x3ca552=_0x5661b3['get']('env');if(_0x3ca552===_0xbf16('0xc')){_0x5661b3[_0xbf16('0xd')](_0xbf16('0xe'),path[_0xbf16('0xf')](config['root'],_0xbf16('0x10')));}if(_0x3ca552==='development'||_0x3ca552===_0xbf16('0x11')){_0x5661b3[_0xbf16('0xd')](_0xbf16('0xe'),path[_0xbf16('0xf')](config[_0xbf16('0x12')],_0xbf16('0x13')));_0x5661b3[_0xbf16('0x14')](errorHandler());}_0x5661b3[_0xbf16('0xd')]('json\x20replacer',function(_0x2f2b2b,_0x31c1ae){if(this[_0x2f2b2b]instanceof Date){_0x31c1ae=this[_0x2f2b2b][_0xbf16('0x15')]()[_0xbf16('0x16')]('.')[0x0]+'Z';}return _0x31c1ae;});_0x5661b3['use'](express[_0xbf16('0x17')](_0x5661b3[_0xbf16('0x18')](_0xbf16('0xe'))));_0x5661b3[_0xbf16('0xd')]('views',config[_0xbf16('0x12')]+_0xbf16('0x19'));_0x5661b3['engine']('html',require(_0xbf16('0x1a'))[_0xbf16('0x1b')]);_0x5661b3[_0xbf16('0xd')](_0xbf16('0x1c'),_0xbf16('0x1d'));_0x5661b3[_0xbf16('0x14')](bodyParser[_0xbf16('0x1e')]({'limit':_0xbf16('0x1f'),'extended':!![]}));_0x5661b3['use'](bodyParser[_0xbf16('0x20')]({'limit':'50mb'}));_0x5661b3['use'](cors());_0x5661b3['use'](methodOverride());_0x5661b3[_0xbf16('0x14')](cookieParser());_0x5661b3['use'](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