Built motion from commit 98bf79a.|0.0.48
[motion.git] / server / config / express.js
1 var _0xacf6=["\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","\x75\x73\x65","\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","\x64\x65\x76","\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"];_0xacf6[0];var express=require(_0xacf6[1]);var favicon=require(_0xacf6[2]);var morgan=require(_0xacf6[3]);var compression=require(_0xacf6[4]);var bodyParser=require(_0xacf6[5]);var queryParser=require(_0xacf6[6]);var methodOverride=require(_0xacf6[7]);var cookieParser=require(_0xacf6[8]);var errorHandler=require(_0xacf6[9]);var path=require(_0xacf6[10]);var passport=require(_0xacf6[11]);var session=require(_0xacf6[12]);var flash=require(_0xacf6[13]);var SessionStore=require(_0xacf6[14]);var session=require(_0xacf6[12]);var config=require(_0xacf6[15]);module[_0xacf6[16]]=function(_0x2a30x10){var _0x2a30x11=_0x2a30x10[_0xacf6[18]](_0xacf6[17]);_0x2a30x10[_0xacf6[22]](_0xacf6[19],config[_0xacf6[20]]+_0xacf6[21]);_0x2a30x10[_0xacf6[26]](_0xacf6[23],require(_0xacf6[25])[_0xacf6[24]]);_0x2a30x10[_0xacf6[22]](_0xacf6[27],_0xacf6[23]);_0x2a30x10[_0xacf6[28]](compression());_0x2a30x10[_0xacf6[28]](bodyParser[_0xacf6[29]]({extended:false}));_0x2a30x10[_0xacf6[28]](bodyParser[_0xacf6[30]]());_0x2a30x10[_0xacf6[28]](methodOverride());_0x2a30x10[_0xacf6[28]](cookieParser());_0x2a30x10[_0xacf6[28]](passport[_0xacf6[31]]());_0x2a30x10[_0xacf6[28]](session({secret:config[_0xacf6[33]][_0xacf6[32]],store: new SessionStore({host:config[_0xacf6[35]][_0xacf6[34]],port:config[_0xacf6[35]][_0xacf6[36]],user:config[_0xacf6[35]][_0xacf6[37]],password:config[_0xacf6[35]][_0xacf6[38]],database:config[_0xacf6[35]][_0xacf6[39]]}),cookie:config[_0xacf6[33]][_0xacf6[40]],name:config[_0xacf6[33]][_0xacf6[41]],resave:true,saveUninitialized:true}));if(_0xacf6[42]===_0x2a30x11){_0x2a30x10[_0xacf6[28]](favicon(path[_0xacf6[45]](config[_0xacf6[20]],_0xacf6[43],_0xacf6[44])));_0x2a30x10[_0xacf6[28]](express[_0xacf6[46]](path[_0xacf6[45]](config[_0xacf6[20]],_0xacf6[43])));_0x2a30x10[_0xacf6[22]](_0xacf6[47],config[_0xacf6[20]]+_0xacf6[48]);_0x2a30x10[_0xacf6[28]](morgan(_0xacf6[49]))};if(_0xacf6[50]===_0x2a30x11||_0xacf6[51]===_0x2a30x11){_0x2a30x10[_0xacf6[28]](require(_0xacf6[52])());_0x2a30x10[_0xacf6[28]](express[_0xacf6[46]](path[_0xacf6[45]](config[_0xacf6[20]],_0xacf6[53])));_0x2a30x10[_0xacf6[28]](express[_0xacf6[46]](path[_0xacf6[45]](config[_0xacf6[20]],_0xacf6[54])));_0x2a30x10[_0xacf6[22]](_0xacf6[47],_0xacf6[54]);_0x2a30x10[_0xacf6[28]](morgan(_0xacf6[49]));_0x2a30x10[_0xacf6[28]](errorHandler())};_0x2a30x10[_0xacf6[28]](flash())}