Built motion from commit ec3ecc5.|1.0.2
[motion.git] / server / config / express.js
1 var _0x763c=["\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"];_0x763c[0];var express=require(_0x763c[1]);var favicon=require(_0x763c[2]);var morgan=require(_0x763c[3]);var compression=require(_0x763c[4]);var bodyParser=require(_0x763c[5]);var queryParser=require(_0x763c[6]);var methodOverride=require(_0x763c[7]);var cookieParser=require(_0x763c[8]);var errorHandler=require(_0x763c[9]);var path=require(_0x763c[10]);var passport=require(_0x763c[11]);var session=require(_0x763c[12]);var flash=require(_0x763c[13]);var SessionStore=require(_0x763c[14])(session);var config=require(_0x763c[15]);module[_0x763c[16]]= function(_0xfa62x10){var _0xfa62x11=_0xfa62x10[_0x763c[18]](_0x763c[17]);_0xfa62x10[_0x763c[22]](_0x763c[19],config[_0x763c[20]]+ _0x763c[21]);_0xfa62x10[_0x763c[26]](_0x763c[23],require(_0x763c[25])[_0x763c[24]]);_0xfa62x10[_0x763c[22]](_0x763c[27],_0x763c[23]);if(!config[_0x763c[29]](_0x763c[28])|| config[_0x763c[28]]){console[_0x763c[31]](_0x763c[30]);_0xfa62x10[_0x763c[37]](function(_0xfa62x12,_0xfa62x13,_0xfa62x14){_0xfa62x13[_0x763c[34]](_0x763c[32],_0x763c[33]);_0xfa62x13[_0x763c[34]](_0x763c[35],_0x763c[36]);_0xfa62x14()})};_0xfa62x10[_0x763c[37]](compression());_0xfa62x10[_0x763c[37]](bodyParser[_0x763c[39]]({limit:_0x763c[38],extended:false}));_0xfa62x10[_0x763c[37]](bodyParser[_0x763c[40]]({limit:_0x763c[38]}));_0xfa62x10[_0x763c[37]](methodOverride());_0xfa62x10[_0x763c[37]](cookieParser());_0xfa62x10[_0x763c[37]](passport[_0x763c[41]]());_0xfa62x10[_0x763c[37]](session({secret:config[_0x763c[43]][_0x763c[42]],store: new SessionStore({host:config[_0x763c[45]][_0x763c[44]],port:config[_0x763c[45]][_0x763c[46]],user:config[_0x763c[45]][_0x763c[47]],password:config[_0x763c[45]][_0x763c[48]],database:config[_0x763c[45]][_0x763c[49]]}),cookie:config[_0x763c[43]][_0x763c[50]],name:config[_0x763c[43]][_0x763c[51]],resave:true,saveUninitialized:true}));if(_0x763c[52]=== _0xfa62x11){_0xfa62x10[_0x763c[37]](favicon(path[_0x763c[55]](config[_0x763c[20]],_0x763c[53],_0x763c[54])));_0xfa62x10[_0x763c[37]](express[_0x763c[56]](path[_0x763c[55]](config[_0x763c[20]],_0x763c[53])));_0xfa62x10[_0x763c[22]](_0x763c[57],config[_0x763c[20]]+ _0x763c[58]);morgan[_0x763c[65]](_0x763c[59],function(_0xfa62x12,_0xfa62x13){return _0xfa62x12[_0x763c[61]][_0x763c[60]]?_0xfa62x12[_0x763c[61]][_0x763c[60]]:_0xfa62x12[_0x763c[63]][_0x763c[62]]|| _0xfa62x12[_0x763c[64]]});_0xfa62x10[_0x763c[37]](morgan(_0x763c[66]))};if(_0x763c[67]=== _0xfa62x11|| _0x763c[68]=== _0xfa62x11){_0xfa62x10[_0x763c[37]](require(_0x763c[69])());_0xfa62x10[_0x763c[37]](express[_0x763c[56]](path[_0x763c[55]](config[_0x763c[20]],_0x763c[70])));_0xfa62x10[_0x763c[37]](express[_0x763c[56]](path[_0x763c[55]](config[_0x763c[20]],_0x763c[71])));_0xfa62x10[_0x763c[22]](_0x763c[57],_0x763c[71]);morgan[_0x763c[65]](_0x763c[59],function(_0xfa62x12,_0xfa62x13){return _0xfa62x12[_0x763c[61]][_0x763c[60]]?_0xfa62x12[_0x763c[61]][_0x763c[60]]:_0xfa62x12[_0x763c[63]][_0x763c[62]]|| _0xfa62x12[_0x763c[64]]});_0xfa62x10[_0x763c[37]](morgan(_0x763c[66]));_0xfa62x10[_0x763c[37]](errorHandler())};_0xfa62x10[_0x763c[37]](flash())}