Built motion from commit e155ad4.|0.0.101
[motion.git] / server / auth / local / index.js
index fb4d169..187deac 100644 (file)
@@ -1 +1 @@
-var _0xcaa1=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x63\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x76\x6F\x69\x63\x65","\x63\x68\x61\x74","\x6D\x61\x69\x6C","\x66\x61\x78","\x2F","\x6C\x6F\x63\x61\x6C\x2D\x6C\x6F\x67\x69\x6E","\x6A\x73\x6F\x6E","\x73\x74\x61\x74\x75\x73","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x77\x65\x6E\x74\x20\x77\x72\x6F\x6E\x67\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x74\x72\x79\x20\x61\x67\x61\x69\x6E\x2E","\x63\x61\x74\x63\x68","\x72\x6F\x6C\x65","\x69\x64","\x72\x65\x6D\x65\x6D\x62\x65\x72","\x62\x6F\x64\x79","\x73\x69\x67\x6E\x54\x6F\x6B\x65\x6E","\x74\x68\x65\x6E","\x6C\x6F\x67\x69\x6E","\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x6C\x6F\x67\x6F\x75\x74","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x6C\x6F\x67\x6F\x75\x74","\x72\x65\x64\x69\x72\x65\x63\x74","\x75\x73\x65\x72","\x67\x65\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0xcaa1[0];var express=require(_0xcaa1[1]);var passport=require(_0xcaa1[2]);var async=require(_0xcaa1[3]);var auth=require(_0xcaa1[4]);var User=require(_0xcaa1[6])[_0xcaa1[5]];var Action=require(_0xcaa1[6])[_0xcaa1[7]];var ReportMember=require(_0xcaa1[6])[_0xcaa1[8]];var license=require(_0xcaa1[9]);var channels=[_0xcaa1[10],_0xcaa1[11],_0xcaa1[12],_0xcaa1[13]];var router=express.Router();router[_0xcaa1[30]](_0xcaa1[14],function(_0xbfb3xb,_0xbfb3xc,_0xbfb3xd){passport[_0xcaa1[29]](_0xcaa1[15],function(_0xbfb3xe,_0xbfb3xf,_0xbfb3x10){var _0xbfb3x11=_0xbfb3xe||_0xbfb3x10;if(_0xbfb3x11){return _0xbfb3xc[_0xcaa1[17]](401)[_0xcaa1[16]](_0xbfb3x11)};if(!_0xbfb3xf){return _0xbfb3xc[_0xcaa1[17]](404)[_0xcaa1[16]]({message:_0xcaa1[18]})};return Action[_0xcaa1[28]]({name:_0xcaa1[26],data1:_0xbfb3xf[_0xcaa1[21]],data2:_0xbfb3xf[_0xcaa1[27]],UserId:_0xbfb3xf[_0xcaa1[21]]})[_0xcaa1[25]](function(_0xbfb3x12){return _0xbfb3xc[_0xcaa1[16]]({role:_0xbfb3xf[_0xcaa1[20]],token:auth[_0xcaa1[24]](_0xbfb3xf[_0xcaa1[21]],_0xbfb3xf[_0xcaa1[20]],_0xbfb3xb[_0xcaa1[23]][_0xcaa1[22]]||false),userId:_0xbfb3xf[_0xcaa1[21]]})})[_0xcaa1[19]](function(_0xbfb3xe){return _0xbfb3xd(_0xbfb3xe)})})(_0xbfb3xb,_0xbfb3xc,_0xbfb3xd)});router[_0xcaa1[36]](_0xcaa1[31],auth[_0xcaa1[32]](),function(_0xbfb3xb,_0xbfb3xc,_0xbfb3xd){return Action[_0xcaa1[28]]({name:_0xcaa1[33],data1:_0xbfb3xb[_0xcaa1[35]][_0xcaa1[21]],data2:_0xbfb3xb[_0xcaa1[35]][_0xcaa1[27]],UserId:_0xbfb3xb[_0xcaa1[35]][_0xcaa1[21]]})[_0xcaa1[25]](function(){_0xbfb3xb[_0xcaa1[33]]();_0xbfb3xc[_0xcaa1[34]](_0xcaa1[14])})[_0xcaa1[19]](function(_0xbfb3xe){return _0xbfb3xd(_0xbfb3xe)})});module[_0xcaa1[37]]=router
\ No newline at end of file
+var _0x5d37=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x72\x65\x73\x73","\x70\x61\x73\x73\x70\x6F\x72\x74","\x61\x73\x79\x6E\x63","\x2E\x2E\x2F\x61\x75\x74\x68\x2E\x73\x65\x72\x76\x69\x63\x65","\x55\x73\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x63\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x73\x65\x72\x76\x69\x63\x65","\x76\x6F\x69\x63\x65","\x63\x68\x61\x74","\x6D\x61\x69\x6C","\x66\x61\x78","\x2F","\x6C\x6F\x63\x61\x6C\x2D\x6C\x6F\x67\x69\x6E","\x6A\x73\x6F\x6E","\x73\x74\x61\x74\x75\x73","\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x77\x65\x6E\x74\x20\x77\x72\x6F\x6E\x67\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x74\x72\x79\x20\x61\x67\x61\x69\x6E\x2E","\x63\x61\x74\x63\x68","\x72\x6F\x6C\x65","\x69\x64","\x72\x65\x6D\x65\x6D\x62\x65\x72","\x62\x6F\x64\x79","\x73\x69\x67\x6E\x54\x6F\x6B\x65\x6E","\x74\x68\x65\x6E","\x6C\x6F\x67\x69\x6E","\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x6C\x6F\x67\x6F\x75\x74","\x69\x73\x41\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x64","\x6C\x6F\x67\x6F\x75\x74","\x72\x65\x64\x69\x72\x65\x63\x74","\x75\x73\x65\x72","\x67\x65\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x5d37[0];var express=require(_0x5d37[1]);var passport=require(_0x5d37[2]);var async=require(_0x5d37[3]);var auth=require(_0x5d37[4]);var User=require(_0x5d37[6])[_0x5d37[5]];var Action=require(_0x5d37[6])[_0x5d37[7]];var ReportMember=require(_0x5d37[6])[_0x5d37[8]];var license=require(_0x5d37[9]);var channels=[_0x5d37[10],_0x5d37[11],_0x5d37[12],_0x5d37[13]];var router=express.Router();router[_0x5d37[30]](_0x5d37[14],function(_0x2171xb,_0x2171xc,_0x2171xd){passport[_0x5d37[29]](_0x5d37[15],function(_0x2171xe,_0x2171xf,_0x2171x10){var _0x2171x11=_0x2171xe||_0x2171x10;if(_0x2171x11){return _0x2171xc[_0x5d37[17]](401)[_0x5d37[16]](_0x2171x11)};if(!_0x2171xf){return _0x2171xc[_0x5d37[17]](404)[_0x5d37[16]]({message:_0x5d37[18]})};return Action[_0x5d37[28]]({name:_0x5d37[26],data1:_0x2171xf[_0x5d37[21]],data2:_0x2171xf[_0x5d37[27]],UserId:_0x2171xf[_0x5d37[21]]})[_0x5d37[25]](function(_0x2171x12){return _0x2171xc[_0x5d37[16]]({role:_0x2171xf[_0x5d37[20]],token:auth[_0x5d37[24]](_0x2171xf[_0x5d37[21]],_0x2171xf[_0x5d37[20]],_0x2171xb[_0x5d37[23]][_0x5d37[22]]||false),userId:_0x2171xf[_0x5d37[21]]})})[_0x5d37[19]](function(_0x2171xe){return _0x2171xd(_0x2171xe)})})(_0x2171xb,_0x2171xc,_0x2171xd)});router[_0x5d37[36]](_0x5d37[31],auth[_0x5d37[32]](),function(_0x2171xb,_0x2171xc,_0x2171xd){return Action[_0x5d37[28]]({name:_0x5d37[33],data1:_0x2171xb[_0x5d37[35]][_0x5d37[21]],data2:_0x2171xb[_0x5d37[35]][_0x5d37[27]],UserId:_0x2171xb[_0x5d37[35]][_0x5d37[21]]})[_0x5d37[25]](function(){_0x2171xb[_0x5d37[33]]();_0x2171xc[_0x5d37[34]](_0x5d37[14])})[_0x5d37[19]](function(_0x2171xe){return _0x2171xd(_0x2171xe)})});module[_0x5d37[37]]=router
\ No newline at end of file