Built motion from commit bc7901c9e.|1.0.20
[motion.git] / server / config / express.js
1 var _0x69bd=["\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","\x66\x73","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x6D\x6F\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","\x64\x65\x62\x75\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","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x77\x77\x77","\x6A\x6F\x69\x6E","\x65\x78\x69\x73\x74\x73\x53\x79\x6E\x63","\x2F\x77\x77\x77","\x73\x74\x61\x74\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","\x64\x61\x74\x65\x74\x69\x6D\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\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","\x61\x70\x70\x50\x61\x74\x68","\x2F\x70\x75\x62\x6C\x69\x63","\x5B\x3A\x64\x61\x74\x65\x74\x69\x6D\x65\x5D\x20\x5B\x52\x45\x51\x55\x45\x53\x54\x5D\x20\x5B\x4D\x4F\x54\x49\x4F\x4E\x5D\x20\x2D\x20\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"];_0x69bd[0];var express=require(_0x69bd[1]);var favicon=require(_0x69bd[2]);var morgan=require(_0x69bd[3]);var compression=require(_0x69bd[4]);var bodyParser=require(_0x69bd[5]);var queryParser=require(_0x69bd[6]);var methodOverride=require(_0x69bd[7]);var cookieParser=require(_0x69bd[8]);var errorHandler=require(_0x69bd[9]);var path=require(_0x69bd[10]);var passport=require(_0x69bd[11]);var session=require(_0x69bd[12]);var flash=require(_0x69bd[13]);var SessionStore=require(_0x69bd[14])(session);var config=require(_0x69bd[15]);var fs=require(_0x69bd[16]);var logger=require(_0x69bd[18])(_0x69bd[17]);var moment=require(_0x69bd[19]);module[_0x69bd[20]]= function(_0x9f44x13){var _0x9f44x14=_0x9f44x13[_0x69bd[22]](_0x69bd[21]);_0x9f44x13[_0x69bd[26]](_0x69bd[23],config[_0x69bd[24]]+ _0x69bd[25]);_0x9f44x13[_0x69bd[30]](_0x69bd[27],require(_0x69bd[29])[_0x69bd[28]]);_0x9f44x13[_0x69bd[26]](_0x69bd[31],_0x69bd[27]);if(!config[_0x69bd[33]](_0x69bd[32])|| config[_0x69bd[32]]){logger[_0x69bd[35]](_0x69bd[34]);_0x9f44x13[_0x69bd[41]](function(_0x9f44x15,_0x9f44x16,_0x9f44x17){_0x9f44x16[_0x69bd[38]](_0x69bd[36],_0x69bd[37]);_0x9f44x16[_0x69bd[38]](_0x69bd[39],_0x69bd[40]);_0x9f44x17()})};_0x9f44x13[_0x69bd[41]](compression());_0x9f44x13[_0x69bd[41]](bodyParser[_0x69bd[43]]({limit:_0x69bd[42],extended:false}));_0x9f44x13[_0x69bd[41]](bodyParser[_0x69bd[44]]({limit:_0x69bd[42]}));_0x9f44x13[_0x69bd[41]](methodOverride());_0x9f44x13[_0x69bd[41]](cookieParser());_0x9f44x13[_0x69bd[41]](passport[_0x69bd[45]]());_0x9f44x13[_0x69bd[41]](session({secret:config[_0x69bd[47]][_0x69bd[46]],store: new SessionStore({host:config[_0x69bd[49]][_0x69bd[48]],port:config[_0x69bd[49]][_0x69bd[50]],user:config[_0x69bd[49]][_0x69bd[51]],password:config[_0x69bd[49]][_0x69bd[52]],database:config[_0x69bd[49]][_0x69bd[53]]}),cookie:config[_0x69bd[47]][_0x69bd[54]],name:config[_0x69bd[47]][_0x69bd[55]],resave:true,saveUninitialized:true}));if(fs[_0x69bd[60]](path[_0x69bd[59]](config[_0x69bd[24]],_0x69bd[56],_0x69bd[57],_0x69bd[58]))){_0x9f44x13[_0x69bd[41]](_0x69bd[61],express[_0x69bd[62]](path[_0x69bd[59]](config[_0x69bd[24]],_0x69bd[56],_0x69bd[57],_0x69bd[58])))};morgan[_0x69bd[69]](_0x69bd[63],function(_0x9f44x15,_0x9f44x16){return _0x9f44x15[_0x69bd[65]][_0x69bd[64]]?_0x9f44x15[_0x69bd[65]][_0x69bd[64]]:_0x9f44x15[_0x69bd[67]][_0x69bd[66]]|| _0x9f44x15[_0x69bd[68]]});morgan[_0x69bd[69]](_0x69bd[70],function(_0x9f44x15,_0x9f44x16){return moment()[_0x69bd[72]](_0x69bd[71])});if(_0x69bd[73]=== _0x9f44x14){_0x9f44x13[_0x69bd[41]](favicon(path[_0x69bd[59]](config[_0x69bd[24]],_0x69bd[74],_0x69bd[75])));_0x9f44x13[_0x69bd[41]](express[_0x69bd[62]](path[_0x69bd[59]](config[_0x69bd[24]],_0x69bd[74])));_0x9f44x13[_0x69bd[26]](_0x69bd[76],config[_0x69bd[24]]+ _0x69bd[77]);_0x9f44x13[_0x69bd[41]](morgan(_0x69bd[78]))};if(_0x69bd[79]=== _0x9f44x14|| _0x69bd[80]=== _0x9f44x14){_0x9f44x13[_0x69bd[41]](require(_0x69bd[81])());_0x9f44x13[_0x69bd[41]](express[_0x69bd[62]](path[_0x69bd[59]](config[_0x69bd[24]],_0x69bd[82])));_0x9f44x13[_0x69bd[41]](express[_0x69bd[62]](path[_0x69bd[59]](config[_0x69bd[24]],_0x69bd[83])));_0x9f44x13[_0x69bd[26]](_0x69bd[76],_0x69bd[83]);_0x9f44x13[_0x69bd[41]](morgan(_0x69bd[78]));_0x9f44x13[_0x69bd[41]](errorHandler())};_0x9f44x13[_0x69bd[41]](flash())}