Built motion from commit e155ad4.|0.0.101
[motion.git] / server / auth / local / index.js
index e4873ea..187deac 100644 (file)
@@ -1 +1 @@
-var _0x4890=["\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"];_0x4890[0];var express=require(_0x4890[1]);var passport=require(_0x4890[2]);var async=require(_0x4890[3]);var auth=require(_0x4890[4]);var User=require(_0x4890[6])[_0x4890[5]];var license=require(_0x4890[7]);var router=express.Router();router[_0x4890[27]](_0x4890[8],function(_0xccc8x8,_0xccc8x9,_0xccc8xa){passport[_0x4890[26]](_0x4890[9],function(_0xccc8xb,_0xccc8xc,_0xccc8xd){var _0xccc8xe=_0xccc8xb||_0xccc8xd;if(_0xccc8xe){return _0xccc8x9[_0x4890[11]](401)[_0x4890[10]](_0xccc8xe)};if(!_0xccc8xc){return _0xccc8x9[_0x4890[11]](404)[_0x4890[10]]({message:_0x4890[12]})};var _0xccc8xf=auth[_0x4890[17]](_0xccc8xc[_0x4890[13]],_0xccc8xc[_0x4890[14]],_0xccc8x8[_0x4890[16]][_0x4890[15]]||false);User[_0x4890[25]](_0xccc8xc[_0x4890[13]])[_0x4890[23]](function(_0xccc8xc){_0xccc8xc[_0x4890[24]]({attributes:[_0x4890[19]]})[_0x4890[23]](function(_0xccc8x10){async[_0x4890[22]](_0xccc8x10,function _0xccc8x11(_0xccc8x12,_0xccc8x13){require(_0x4890[21])[_0x4890[20]](_0xccc8xc[_0x4890[13]],_0xccc8xc[_0x4890[19]],_0xccc8x12[_0x4890[19]],_0xccc8x13)},function _0xccc8x14(){return _0xccc8x9[_0x4890[10]]({token:_0xccc8xf,userId:_0xccc8xc[_0x4890[13]]})})})[_0x4890[18]](function(_0xccc8xb){return _0xccc8xa(_0xccc8xb)})})[_0x4890[18]](function(_0xccc8xb){return _0xccc8xa(_0xccc8xb)});})(_0xccc8x8,_0xccc8x9,_0xccc8xa)});router[_0x4890[33]](_0x4890[28],auth[_0x4890[29]](),function(_0xccc8x8,_0xccc8x9,_0xccc8xa){User[_0x4890[25]](_0xccc8x8[_0x4890[30]][_0x4890[13]])[_0x4890[23]](function(_0xccc8xc){_0xccc8xc[_0x4890[24]]({attributes:[_0x4890[19]]})[_0x4890[23]](function(_0xccc8x10){async[_0x4890[22]](_0xccc8x10,function _0xccc8x11(_0xccc8x12,_0xccc8x13){require(_0x4890[21])[_0x4890[31]](_0xccc8x8[_0x4890[30]][_0x4890[13]],_0xccc8x8[_0x4890[30]][_0x4890[19]],_0xccc8x12[_0x4890[19]],_0xccc8x13)},function _0xccc8x14(){_0xccc8x8[_0x4890[31]]();_0xccc8x9[_0x4890[32]](_0x4890[8]);})})[_0x4890[18]](function(_0xccc8xb){return _0xccc8xa(_0xccc8xb)})})[_0x4890[18]](function(_0xccc8xb){return _0xccc8xa(_0xccc8xb)})});module[_0x4890[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