Built motion from commit e155ad4.|0.0.101
[motion.git] / server / auth / local / index.js
index 2d76812..187deac 100644 (file)
@@ -1 +1 @@
-var _0xc906=["\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"];_0xc906[0];var express=require(_0xc906[1]);var passport=require(_0xc906[2]);var async=require(_0xc906[3]);var auth=require(_0xc906[4]);var User=require(_0xc906[6])[_0xc906[5]];var license=require(_0xc906[7]);var router=express.Router();router[_0xc906[27]](_0xc906[8],function(_0x4c51x8,_0x4c51x9,_0x4c51xa){passport[_0xc906[26]](_0xc906[9],function(_0x4c51xb,_0x4c51xc,_0x4c51xd){var _0x4c51xe=_0x4c51xb||_0x4c51xd;if(_0x4c51xe){return _0x4c51x9[_0xc906[11]](401)[_0xc906[10]](_0x4c51xe)};if(!_0x4c51xc){return _0x4c51x9[_0xc906[11]](404)[_0xc906[10]]({message:_0xc906[12]})};var _0x4c51xf=auth[_0xc906[17]](_0x4c51xc[_0xc906[13]],_0x4c51xc[_0xc906[14]],_0x4c51x8[_0xc906[16]][_0xc906[15]]||false);User[_0xc906[25]](_0x4c51xc[_0xc906[13]])[_0xc906[23]](function(_0x4c51xc){_0x4c51xc[_0xc906[24]]({attributes:[_0xc906[19]]})[_0xc906[23]](function(_0x4c51x10){async[_0xc906[22]](_0x4c51x10,function _0x4c51x11(_0x4c51x12,_0x4c51x13){require(_0xc906[21])[_0xc906[20]](_0x4c51xc[_0xc906[13]],_0x4c51xc[_0xc906[19]],_0x4c51x12[_0xc906[19]],_0x4c51x13)},function _0x4c51x14(){return _0x4c51x9[_0xc906[10]]({token:_0x4c51xf,userId:_0x4c51xc[_0xc906[13]]})})})[_0xc906[18]](function(_0x4c51xb){return _0x4c51xa(_0x4c51xb)})})[_0xc906[18]](function(_0x4c51xb){return _0x4c51xa(_0x4c51xb)});})(_0x4c51x8,_0x4c51x9,_0x4c51xa)});router[_0xc906[33]](_0xc906[28],auth[_0xc906[29]](),function(_0x4c51x8,_0x4c51x9,_0x4c51xa){User[_0xc906[25]](_0x4c51x8[_0xc906[30]][_0xc906[13]])[_0xc906[23]](function(_0x4c51xc){_0x4c51xc[_0xc906[24]]({attributes:[_0xc906[19]]})[_0xc906[23]](function(_0x4c51x10){async[_0xc906[22]](_0x4c51x10,function _0x4c51x11(_0x4c51x12,_0x4c51x13){require(_0xc906[21])[_0xc906[31]](_0x4c51x8[_0xc906[30]][_0xc906[13]],_0x4c51x8[_0xc906[30]][_0xc906[19]],_0x4c51x12[_0xc906[19]],_0x4c51x13)},function _0x4c51x14(){_0x4c51x8[_0xc906[31]]();_0x4c51x9[_0xc906[32]](_0xc906[8]);})})[_0xc906[18]](function(_0x4c51xb){return _0x4c51xa(_0x4c51xb)})})[_0xc906[18]](function(_0x4c51xb){return _0x4c51xa(_0x4c51xb)})});module[_0xc906[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