fd8cbda701a385dae8ba4a395dafa72b59e5339e
[motion.git] / server / config / express.js
1 var _0x9bf9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x73\x65\x72\x76\x65\x2D\x66\x61\x76\x69\x63\x6F\x6E","\x6D\x6F\x72\x67\x61\x6E","\x63\x6F\x6D\x70\x72\x65\x73\x73\x69\x6F\x6E","\x62\x6F\x64\x79\x2D\x70\x61\x72\x73\x65\x72","\x65\x78\x70\x72\x65\x73\x73\x2D\x71\x75\x65\x72\x79\x2D\x69\x6E\x74","\x6D\x65\x74\x68\x6F\x64\x2D\x6F\x76\x65\x72\x72\x69\x64\x65","\x63\x6F\x6F\x6B\x69\x65\x2D\x70\x61\x72\x73\x65\x72","\x65\x72\x72\x6F\x72\x68\x61\x6E\x64\x6C\x65\x72","\x70\x61\x74\x68","\x70\x61\x73\x73\x70\x6F\x72\x74","\x65\x78\x70\x72\x65\x73\x73\x2D\x73\x65\x73\x73\x69\x6F\x6E","\x63\x6F\x6E\x6E\x65\x63\x74\x2D\x66\x6C\x61\x73\x68","\x65\x78\x70\x72\x65\x73\x73\x2D\x6D\x79\x73\x71\x6C\x2D\x73\x65\x73\x73\x69\x6F\x6E","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x65\x6E\x76","\x67\x65\x74","\x76\x69\x65\x77\x73","\x72\x6F\x6F\x74","\x2F\x73\x65\x72\x76\x65\x72\x2F\x76\x69\x65\x77\x73","\x73\x65\x74","\x68\x74\x6D\x6C","\x72\x65\x6E\x64\x65\x72\x46\x69\x6C\x65","\x65\x6A\x73","\x65\x6E\x67\x69\x6E\x65","\x76\x69\x65\x77\x20\x65\x6E\x67\x69\x6E\x65","\x63\x72\x6F\x73\x73\x44\x6F\x6D\x61\x69\x6E","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x43\x72\x6F\x73\x73\x2D\x64\x6F\x6D\x61\x69\x6E\x20\x72\x65\x71\x75\x65\x73\x74\x73\x20\x65\x6E\x61\x62\x6C\x65\x64","\x6C\x6F\x67","\x41\x63\x63\x65\x73\x73\x2D\x43\x6F\x6E\x74\x72\x6F\x6C\x2D\x41\x6C\x6C\x6F\x77\x2D\x4F\x72\x69\x67\x69\x6E","\x2A","\x68\x65\x61\x64\x65\x72","\x41\x63\x63\x65\x73\x73\x2D\x43\x6F\x6E\x74\x72\x6F\x6C\x2D\x41\x6C\x6C\x6F\x77\x2D\x48\x65\x61\x64\x65\x72\x73","\x58\x2D\x52\x65\x71\x75\x65\x73\x74\x65\x64\x2D\x57\x69\x74\x68","\x75\x73\x65","\x35\x30\x6D\x62","\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x6A\x73\x6F\x6E","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65","\x73\x65\x63\x72\x65\x74","\x73\x65\x73\x73\x69\x6F\x6E","\x68\x6F\x73\x74","\x64\x62","\x70\x6F\x72\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x64\x61\x74\x61\x62\x61\x73\x65","\x63\x6F\x6F\x6B\x69\x65","\x6E\x61\x6D\x65","\x70\x72\x6F\x64\x75\x63\x74\x69\x6F\x6E","\x70\x75\x62\x6C\x69\x63","\x66\x61\x76\x69\x63\x6F\x6E\x2E\x69\x63\x6F","\x6A\x6F\x69\x6E","\x73\x74\x61\x74\x69\x63","\x61\x70\x70\x50\x61\x74\x68","\x2F\x70\x75\x62\x6C\x69\x63","\x72\x65\x6D\x6F\x74\x65\x2D\x61\x64\x64\x72\x65\x73\x73","\x78\x2D\x66\x6F\x72\x77\x61\x72\x64\x65\x64\x2D\x66\x6F\x72","\x68\x65\x61\x64\x65\x72\x73","\x72\x65\x6D\x6F\x74\x65\x41\x64\x64\x72\x65\x73\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x69\x70","\x74\x6F\x6B\x65\x6E","\x3A\x6D\x65\x74\x68\x6F\x64\x20\x3A\x72\x65\x6D\x6F\x74\x65\x2D\x61\x64\x64\x72\x65\x73\x73\x20\x3A\x72\x65\x6D\x6F\x74\x65\x2D\x75\x73\x65\x72\x20\x3A\x75\x72\x6C\x20\x3A\x73\x74\x61\x74\x75\x73\x20\x3A\x72\x65\x73\x70\x6F\x6E\x73\x65\x2D\x74\x69\x6D\x65\x20\x6D\x73\x20\x2D\x20\x3A\x72\x65\x73\x5B\x63\x6F\x6E\x74\x65\x6E\x74\x2D\x6C\x65\x6E\x67\x74\x68\x5D","\x64\x65\x76\x65\x6C\x6F\x70\x6D\x65\x6E\x74","\x74\x65\x73\x74","\x63\x6F\x6E\x6E\x65\x63\x74\x2D\x6C\x69\x76\x65\x72\x65\x6C\x6F\x61\x64","\x2E\x74\x6D\x70","\x63\x6C\x69\x65\x6E\x74"];_0x9bf9[0];var express=require(_0x9bf9[1]);var favicon=require(_0x9bf9[2]);var morgan=require(_0x9bf9[3]);var compression=require(_0x9bf9[4]);var bodyParser=require(_0x9bf9[5]);var queryParser=require(_0x9bf9[6]);var methodOverride=require(_0x9bf9[7]);var cookieParser=require(_0x9bf9[8]);var errorHandler=require(_0x9bf9[9]);var path=require(_0x9bf9[10]);var passport=require(_0x9bf9[11]);var session=require(_0x9bf9[12]);var flash=require(_0x9bf9[13]);var SessionStore=require(_0x9bf9[14])(session);var config=require(_0x9bf9[15]);module[_0x9bf9[16]]= function(_0xa711x10){var _0xa711x11=_0xa711x10[_0x9bf9[18]](_0x9bf9[17]);_0xa711x10[_0x9bf9[22]](_0x9bf9[19],config[_0x9bf9[20]]+ _0x9bf9[21]);_0xa711x10[_0x9bf9[26]](_0x9bf9[23],require(_0x9bf9[25])[_0x9bf9[24]]);_0xa711x10[_0x9bf9[22]](_0x9bf9[27],_0x9bf9[23]);if(!config[_0x9bf9[29]](_0x9bf9[28])|| config[_0x9bf9[28]]){console[_0x9bf9[31]](_0x9bf9[30]);_0xa711x10[_0x9bf9[37]](function(_0xa711x12,_0xa711x13,_0xa711x14){_0xa711x13[_0x9bf9[34]](_0x9bf9[32],_0x9bf9[33]);_0xa711x13[_0x9bf9[34]](_0x9bf9[35],_0x9bf9[36]);_0xa711x14()})};_0xa711x10[_0x9bf9[37]](compression());_0xa711x10[_0x9bf9[37]](bodyParser[_0x9bf9[39]]({limit:_0x9bf9[38],extended:false}));_0xa711x10[_0x9bf9[37]](bodyParser[_0x9bf9[40]]({limit:_0x9bf9[38]}));_0xa711x10[_0x9bf9[37]](methodOverride());_0xa711x10[_0x9bf9[37]](cookieParser());_0xa711x10[_0x9bf9[37]](passport[_0x9bf9[41]]());_0xa711x10[_0x9bf9[37]](session({secret:config[_0x9bf9[43]][_0x9bf9[42]],store: new SessionStore({host:config[_0x9bf9[45]][_0x9bf9[44]],port:config[_0x9bf9[45]][_0x9bf9[46]],user:config[_0x9bf9[45]][_0x9bf9[47]],password:config[_0x9bf9[45]][_0x9bf9[48]],database:config[_0x9bf9[45]][_0x9bf9[49]]}),cookie:config[_0x9bf9[43]][_0x9bf9[50]],name:config[_0x9bf9[43]][_0x9bf9[51]],resave:true,saveUninitialized:true}));if(_0x9bf9[52]=== _0xa711x11){_0xa711x10[_0x9bf9[37]](favicon(path[_0x9bf9[55]](config[_0x9bf9[20]],_0x9bf9[53],_0x9bf9[54])));_0xa711x10[_0x9bf9[37]](express[_0x9bf9[56]](path[_0x9bf9[55]](config[_0x9bf9[20]],_0x9bf9[53])));_0xa711x10[_0x9bf9[22]](_0x9bf9[57],config[_0x9bf9[20]]+ _0x9bf9[58]);morgan[_0x9bf9[65]](_0x9bf9[59],function(_0xa711x12,_0xa711x13){return _0xa711x12[_0x9bf9[61]][_0x9bf9[60]]?_0xa711x12[_0x9bf9[61]][_0x9bf9[60]]:_0xa711x12[_0x9bf9[63]][_0x9bf9[62]]|| _0xa711x12[_0x9bf9[64]]});_0xa711x10[_0x9bf9[37]](morgan(_0x9bf9[66]))};if(_0x9bf9[67]=== _0xa711x11|| _0x9bf9[68]=== _0xa711x11){_0xa711x10[_0x9bf9[37]](require(_0x9bf9[69])());_0xa711x10[_0x9bf9[37]](express[_0x9bf9[56]](path[_0x9bf9[55]](config[_0x9bf9[20]],_0x9bf9[70])));_0xa711x10[_0x9bf9[37]](express[_0x9bf9[56]](path[_0x9bf9[55]](config[_0x9bf9[20]],_0x9bf9[71])));_0xa711x10[_0x9bf9[22]](_0x9bf9[57],_0x9bf9[71]);morgan[_0x9bf9[65]](_0x9bf9[59],function(_0xa711x12,_0xa711x13){return _0xa711x12[_0x9bf9[61]][_0x9bf9[60]]?_0xa711x12[_0x9bf9[61]][_0x9bf9[60]]:_0xa711x12[_0x9bf9[63]][_0x9bf9[62]]|| _0xa711x12[_0x9bf9[64]]});_0xa711x10[_0x9bf9[37]](morgan(_0x9bf9[66]));_0xa711x10[_0x9bf9[37]](errorHandler())};_0xa711x10[_0x9bf9[37]](flash())}