Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / config / express.js
index bee708b..110e20c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf40a=['moment','./environment','../mysqldb','env','production','set','appPath','join','root','public','development','test','use','json\x20replacer','toISOString','static','get','views','/server/views','engine','renderFile','view\x20engine','html','urlencoded','50mb','initialize','express','serve-favicon','body-parser','method-override','errorhandler','path','passport','cors'];(function(_0x29c1cc,_0x5090b2){var _0x56710a=function(_0x2b6926){while(--_0x2b6926){_0x29c1cc['push'](_0x29c1cc['shift']());}};_0x56710a(++_0x5090b2);}(_0xf40a,0x108));var _0xaf40=function(_0x4c60f8,_0x539d3b){_0x4c60f8=_0x4c60f8-0x0;var _0x336f0f=_0xf40a[_0x4c60f8];return _0x336f0f;};'use strict';var express=require(_0xaf40('0x0'));var favicon=require(_0xaf40('0x1'));var bodyParser=require(_0xaf40('0x2'));var methodOverride=require(_0xaf40('0x3'));var cookieParser=require('cookie-parser');var errorHandler=require(_0xaf40('0x4'));var path=require(_0xaf40('0x5'));var passport=require(_0xaf40('0x6'));var cors=require(_0xaf40('0x7'));var moment=require(_0xaf40('0x8'));var config=require(_0xaf40('0x9'));var db=require(_0xaf40('0xa'))['db'];exports['default']=function(_0x25aa7b){var _0x118e6f=_0x25aa7b['get'](_0xaf40('0xb'));if(_0x118e6f===_0xaf40('0xc')){_0x25aa7b[_0xaf40('0xd')](_0xaf40('0xe'),path[_0xaf40('0xf')](config[_0xaf40('0x10')],_0xaf40('0x11')));}if(_0x118e6f===_0xaf40('0x12')||_0x118e6f===_0xaf40('0x13')){_0x25aa7b[_0xaf40('0xd')](_0xaf40('0xe'),path[_0xaf40('0xf')](config[_0xaf40('0x10')],'client'));_0x25aa7b[_0xaf40('0x14')](errorHandler());}_0x25aa7b[_0xaf40('0xd')](_0xaf40('0x15'),function(_0x498e55,_0x8e35b4){if(this[_0x498e55]instanceof Date){_0x8e35b4=this[_0x498e55][_0xaf40('0x16')]()['split']('.')[0x0]+'Z';}return _0x8e35b4;});_0x25aa7b['use'](express[_0xaf40('0x17')](_0x25aa7b[_0xaf40('0x18')](_0xaf40('0xe'))));_0x25aa7b[_0xaf40('0xd')](_0xaf40('0x19'),config['root']+_0xaf40('0x1a'));_0x25aa7b[_0xaf40('0x1b')]('html',require('ejs')[_0xaf40('0x1c')]);_0x25aa7b['set'](_0xaf40('0x1d'),_0xaf40('0x1e'));_0x25aa7b['use'](bodyParser[_0xaf40('0x1f')]({'limit':_0xaf40('0x20'),'extended':!![]}));_0x25aa7b[_0xaf40('0x14')](bodyParser['json']({'limit':_0xaf40('0x20')}));_0x25aa7b[_0xaf40('0x14')](cors());_0x25aa7b[_0xaf40('0x14')](methodOverride());_0x25aa7b[_0xaf40('0x14')](cookieParser());_0x25aa7b[_0xaf40('0x14')](passport[_0xaf40('0x21')]());};
\ No newline at end of file
+var _0x18a3=['errorhandler','path','passport','cors','moment','./environment','../mysqldb','default','env','production','set','appPath','join','root','public','development','test','client','use','json\x20replacer','split','get','views','/server/views','engine','ejs','renderFile','view\x20engine','html','urlencoded','json','50mb','initialize','express','body-parser','method-override','cookie-parser'];(function(_0x25f41c,_0x19b011){var _0x1bcad6=function(_0x2366fc){while(--_0x2366fc){_0x25f41c['push'](_0x25f41c['shift']());}};_0x1bcad6(++_0x19b011);}(_0x18a3,0x193));var _0x318a=function(_0x38aff3,_0x2747eb){_0x38aff3=_0x38aff3-0x0;var _0x3b51a1=_0x18a3[_0x38aff3];return _0x3b51a1;};'use strict';var express=require(_0x318a('0x0'));var favicon=require('serve-favicon');var bodyParser=require(_0x318a('0x1'));var methodOverride=require(_0x318a('0x2'));var cookieParser=require(_0x318a('0x3'));var errorHandler=require(_0x318a('0x4'));var path=require(_0x318a('0x5'));var passport=require(_0x318a('0x6'));var cors=require(_0x318a('0x7'));var moment=require(_0x318a('0x8'));var config=require(_0x318a('0x9'));var db=require(_0x318a('0xa'))['db'];exports[_0x318a('0xb')]=function(_0x40bca3){var _0x4cc959=_0x40bca3['get'](_0x318a('0xc'));if(_0x4cc959===_0x318a('0xd')){_0x40bca3[_0x318a('0xe')](_0x318a('0xf'),path[_0x318a('0x10')](config[_0x318a('0x11')],_0x318a('0x12')));}if(_0x4cc959===_0x318a('0x13')||_0x4cc959===_0x318a('0x14')){_0x40bca3[_0x318a('0xe')](_0x318a('0xf'),path[_0x318a('0x10')](config[_0x318a('0x11')],_0x318a('0x15')));_0x40bca3[_0x318a('0x16')](errorHandler());}_0x40bca3[_0x318a('0xe')](_0x318a('0x17'),function(_0x529021,_0x3bce3e){if(this[_0x529021]instanceof Date){_0x3bce3e=this[_0x529021]['toISOString']()[_0x318a('0x18')]('.')[0x0]+'Z';}return _0x3bce3e;});_0x40bca3['use'](express['static'](_0x40bca3[_0x318a('0x19')](_0x318a('0xf'))));_0x40bca3[_0x318a('0xe')](_0x318a('0x1a'),config[_0x318a('0x11')]+_0x318a('0x1b'));_0x40bca3[_0x318a('0x1c')]('html',require(_0x318a('0x1d'))[_0x318a('0x1e')]);_0x40bca3[_0x318a('0xe')](_0x318a('0x1f'),_0x318a('0x20'));_0x40bca3[_0x318a('0x16')](bodyParser[_0x318a('0x21')]({'limit':'50mb','extended':!![]}));_0x40bca3['use'](bodyParser[_0x318a('0x22')]({'limit':_0x318a('0x23')}));_0x40bca3[_0x318a('0x16')](cors());_0x40bca3[_0x318a('0x16')](methodOverride());_0x40bca3[_0x318a('0x16')](cookieParser());_0x40bca3[_0x318a('0x16')](passport[_0x318a('0x24')]());};
\ No newline at end of file