Built motion from commit e155ad4.|0.0.101
[motion.git] / server / auth / local / index.js
index 337aa63..187deac 100644 (file)
@@ -1 +1 @@
-var _0x873f=["\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","\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","\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","\x69\x64","\x72\x6F\x6C\x65","\x72\x65\x6D\x65\x6D\x62\x65\x72","\x62\x6F\x64\x79","\x73\x69\x67\x6E\x54\x6F\x6B\x65\x6E","\x63\x61\x74\x63\x68","\x6E\x61\x6D\x65","\x6C\x6F\x67\x69\x6E","\x2E\x2F\x6C\x6F\x63\x61\x6C\x2E\x61\x6D\x69","\x65\x61\x63\x68\x53\x65\x72\x69\x65\x73","\x74\x68\x65\x6E","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\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","\x75\x73\x65\x72","\x6C\x6F\x67\x6F\x75\x74","\x72\x65\x64\x69\x72\x65\x63\x74","\x67\x65\x74","\x65\x78\x70\x6F\x72\x74\x73"];_0x873f[0];var express=require(_0x873f[1]);var passport=require(_0x873f[2]);var async=require(_0x873f[3]);var auth=require(_0x873f[4]);var User=require(_0x873f[6])[_0x873f[5]];var license=require(_0x873f[7]);var router=express.Router();router[_0x873f[27]](_0x873f[8],function(_0xcf36x8,_0xcf36x9,_0xcf36xa){passport[_0x873f[26]](_0x873f[9],function(_0xcf36xb,_0xcf36xc,_0xcf36xd){var _0xcf36xe=_0xcf36xb||_0xcf36xd;if(_0xcf36xe){return _0xcf36x9[_0x873f[11]](401)[_0x873f[10]](_0xcf36xe)};if(!_0xcf36xc){return _0xcf36x9[_0x873f[11]](404)[_0x873f[10]]({message:_0x873f[12]})};var _0xcf36xf=auth[_0x873f[17]](_0xcf36xc[_0x873f[13]],_0xcf36xc[_0x873f[14]],_0xcf36x8[_0x873f[16]][_0x873f[15]]||false);User[_0x873f[25]](_0xcf36xc[_0x873f[13]])[_0x873f[23]](function(_0xcf36xc){_0xcf36xc[_0x873f[24]]({attributes:[_0x873f[19]]})[_0x873f[23]](function(_0xcf36x10){async[_0x873f[22]](_0xcf36x10,function _0xcf36x11(_0xcf36x12,_0xcf36x13){require(_0x873f[21])[_0x873f[20]](_0xcf36xc[_0x873f[13]],_0xcf36xc[_0x873f[19]],_0xcf36x12[_0x873f[19]],_0xcf36x13)},function _0xcf36x14(){return _0xcf36x9[_0x873f[10]]({token:_0xcf36xf,userId:_0xcf36xc[_0x873f[13]]})})})[_0x873f[18]](function(_0xcf36xb){return _0xcf36xa(_0xcf36xb)})})[_0x873f[18]](function(_0xcf36xb){return _0xcf36xa(_0xcf36xb)});})(_0xcf36x8,_0xcf36x9,_0xcf36xa)});router[_0x873f[33]](_0x873f[28],auth[_0x873f[29]](),function(_0xcf36x8,_0xcf36x9,_0xcf36xa){User[_0x873f[25]](_0xcf36x8[_0x873f[30]][_0x873f[13]])[_0x873f[23]](function(_0xcf36xc){_0xcf36xc[_0x873f[24]]({attributes:[_0x873f[19]]})[_0x873f[23]](function(_0xcf36x10){async[_0x873f[22]](_0xcf36x10,function _0xcf36x11(_0xcf36x12,_0xcf36x13){require(_0x873f[21])[_0x873f[31]](_0xcf36x8[_0x873f[30]][_0x873f[13]],_0xcf36x8[_0x873f[30]][_0x873f[19]],_0xcf36x12[_0x873f[19]],_0xcf36x13)},function _0xcf36x14(){_0xcf36x8[_0x873f[31]]();_0xcf36x9[_0x873f[32]](_0x873f[8]);})})[_0x873f[18]](function(_0xcf36xb){return _0xcf36xa(_0xcf36xb)})})[_0x873f[18]](function(_0xcf36xb){return _0xcf36xa(_0xcf36xb)})});module[_0x873f[34]]=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