X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fconfig%2Fexpress.js;h=110e20c59d7d57dbc6bfb98cfc67b981fde8bb0b;hb=cf0590116080d9ba42ef56ec3321a2b1292c0360;hp=2e2fd8a92492b7685b63221921c6e2a940cc27f2;hpb=d0e53397894213749637bb93a101e4fc9544eaa3;p=motion2.git diff --git a/server/config/express.js b/server/config/express.js index 2e2fd8a..110e20c 100644 --- a/server/config/express.js +++ b/server/config/express.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xc155=['passport','cors','./environment','default','get','env','production','set','appPath','join','root','public','development','test','use','json\x20replacer','views','/server/views','engine','html','ejs','view\x20engine','urlencoded','initialize','express','method-override','cookie-parser','path'];(function(_0x1e2321,_0x3ae1c5){var _0x1d346d=function(_0x24f171){while(--_0x24f171){_0x1e2321['push'](_0x1e2321['shift']());}};_0x1d346d(++_0x3ae1c5);}(_0xc155,0xc0));var _0x5c15=function(_0xae83bf,_0x147e3a){_0xae83bf=_0xae83bf-0x0;var _0x142d96=_0xc155[_0xae83bf];return _0x142d96;};'use strict';var express=require(_0x5c15('0x0'));var favicon=require('serve-favicon');var bodyParser=require('body-parser');var methodOverride=require(_0x5c15('0x1'));var cookieParser=require(_0x5c15('0x2'));var errorHandler=require('errorhandler');var path=require(_0x5c15('0x3'));var passport=require(_0x5c15('0x4'));var cors=require(_0x5c15('0x5'));var moment=require('moment');var config=require(_0x5c15('0x6'));var db=require('../mysqldb')['db'];exports[_0x5c15('0x7')]=function(_0x1823f8){var _0x4a62fa=_0x1823f8[_0x5c15('0x8')](_0x5c15('0x9'));if(_0x4a62fa===_0x5c15('0xa')){_0x1823f8[_0x5c15('0xb')](_0x5c15('0xc'),path[_0x5c15('0xd')](config[_0x5c15('0xe')],_0x5c15('0xf')));}if(_0x4a62fa===_0x5c15('0x10')||_0x4a62fa===_0x5c15('0x11')){_0x1823f8[_0x5c15('0xb')]('appPath',path['join'](config[_0x5c15('0xe')],'client'));_0x1823f8[_0x5c15('0x12')](errorHandler());}_0x1823f8[_0x5c15('0xb')](_0x5c15('0x13'),function(_0x439996,_0x254067){if(this[_0x439996]instanceof Date){_0x254067=this[_0x439996]['toISOString']()['split']('.')[0x0]+'Z';}return _0x254067;});_0x1823f8[_0x5c15('0x12')](express['static'](_0x1823f8[_0x5c15('0x8')](_0x5c15('0xc'))));_0x1823f8[_0x5c15('0xb')](_0x5c15('0x14'),config[_0x5c15('0xe')]+_0x5c15('0x15'));_0x1823f8[_0x5c15('0x16')](_0x5c15('0x17'),require(_0x5c15('0x18'))['renderFile']);_0x1823f8[_0x5c15('0xb')](_0x5c15('0x19'),'html');_0x1823f8[_0x5c15('0x12')](bodyParser[_0x5c15('0x1a')]({'limit':'50mb','extended':!![]}));_0x1823f8[_0x5c15('0x12')](bodyParser['json']({'limit':'50mb'}));_0x1823f8[_0x5c15('0x12')](cors());_0x1823f8['use'](methodOverride());_0x1823f8[_0x5c15('0x12')](cookieParser());_0x1823f8[_0x5c15('0x12')](passport[_0x5c15('0x1b')]());}; \ 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