Built motion from commit d3a776a.|0.0.126
[motion.git] / server / auth / local / index.js
index ee509b6..71196f3 100644 (file)
@@ -1 +1 @@
-var _0xb2bd=["\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"];_0xb2bd[0];var express=require(_0xb2bd[1]);var passport=require(_0xb2bd[2]);var async=require(_0xb2bd[3]);var auth=require(_0xb2bd[4]);var User=require(_0xb2bd[6])[_0xb2bd[5]];var license=require(_0xb2bd[7]);var router=express.Router();router[_0xb2bd[27]](_0xb2bd[8],function(_0xf0c6x8,_0xf0c6x9,_0xf0c6xa){passport[_0xb2bd[26]](_0xb2bd[9],function(_0xf0c6xb,_0xf0c6xc,_0xf0c6xd){var _0xf0c6xe=_0xf0c6xb||_0xf0c6xd;if(_0xf0c6xe){return _0xf0c6x9[_0xb2bd[11]](401)[_0xb2bd[10]](_0xf0c6xe)};if(!_0xf0c6xc){return _0xf0c6x9[_0xb2bd[11]](404)[_0xb2bd[10]]({message:_0xb2bd[12]})};var _0xf0c6xf=auth[_0xb2bd[17]](_0xf0c6xc[_0xb2bd[13]],_0xf0c6xc[_0xb2bd[14]],_0xf0c6x8[_0xb2bd[16]][_0xb2bd[15]]||false);User[_0xb2bd[25]](_0xf0c6xc[_0xb2bd[13]])[_0xb2bd[23]](function(_0xf0c6xc){_0xf0c6xc[_0xb2bd[24]]({attributes:[_0xb2bd[19]]})[_0xb2bd[23]](function(_0xf0c6x10){async[_0xb2bd[22]](_0xf0c6x10,function _0xf0c6x11(_0xf0c6x12,_0xf0c6x13){require(_0xb2bd[21])[_0xb2bd[20]](_0xf0c6xc[_0xb2bd[13]],_0xf0c6xc[_0xb2bd[19]],_0xf0c6x12[_0xb2bd[19]],_0xf0c6x13)},function _0xf0c6x14(){return _0xf0c6x9[_0xb2bd[10]]({token:_0xf0c6xf,userId:_0xf0c6xc[_0xb2bd[13]]})})})[_0xb2bd[18]](function(_0xf0c6xb){return _0xf0c6xa(_0xf0c6xb)})})[_0xb2bd[18]](function(_0xf0c6xb){return _0xf0c6xa(_0xf0c6xb)});})(_0xf0c6x8,_0xf0c6x9,_0xf0c6xa)});router[_0xb2bd[33]](_0xb2bd[28],auth[_0xb2bd[29]](),function(_0xf0c6x8,_0xf0c6x9,_0xf0c6xa){User[_0xb2bd[25]](_0xf0c6x8[_0xb2bd[30]][_0xb2bd[13]])[_0xb2bd[23]](function(_0xf0c6xc){_0xf0c6xc[_0xb2bd[24]]({attributes:[_0xb2bd[19]]})[_0xb2bd[23]](function(_0xf0c6x10){async[_0xb2bd[22]](_0xf0c6x10,function _0xf0c6x11(_0xf0c6x12,_0xf0c6x13){require(_0xb2bd[21])[_0xb2bd[31]](_0xf0c6x8[_0xb2bd[30]][_0xb2bd[13]],_0xf0c6x8[_0xb2bd[30]][_0xb2bd[19]],_0xf0c6x12[_0xb2bd[19]],_0xf0c6x13)},function _0xf0c6x14(){_0xf0c6x8[_0xb2bd[31]]();_0xf0c6x9[_0xb2bd[32]](_0xb2bd[8]);})})[_0xb2bd[18]](function(_0xf0c6xb){return _0xf0c6xa(_0xf0c6xb)})})[_0xb2bd[18]](function(_0xf0c6xb){return _0xf0c6xa(_0xf0c6xb)})});module[_0xb2bd[34]]=router;
\ No newline at end of file
+var _0x8912=["\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","\x6D\x65\x73\x73\x61\x67\x65","\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"];_0x8912[0];var express=require(_0x8912[1]);var passport=require(_0x8912[2]);var async=require(_0x8912[3]);var auth=require(_0x8912[4]);var User=require(_0x8912[6])[_0x8912[5]];var Action=require(_0x8912[6])[_0x8912[7]];var ReportMember=require(_0x8912[6])[_0x8912[8]];var license=require(_0x8912[9]);var channels=[_0x8912[10],_0x8912[11],_0x8912[12],_0x8912[13]];var router=express.Router();router[_0x8912[31]](_0x8912[14],function(_0xe4d1xb,_0xe4d1xc,_0xe4d1xd){passport[_0x8912[30]](_0x8912[15],function(_0xe4d1xe,_0xe4d1xf,_0xe4d1x10){if(_0xe4d1xe){return _0xe4d1xc[_0x8912[18]](401)[_0x8912[17]]({message:_0xe4d1xe[_0x8912[16]]})};if(!_0xe4d1xf){return _0xe4d1xc[_0x8912[18]](404)[_0x8912[17]]({message:_0x8912[19]})};return Action[_0x8912[29]]({name:_0x8912[27],data1:_0xe4d1xf[_0x8912[22]],data2:_0xe4d1xf[_0x8912[28]],UserId:_0xe4d1xf[_0x8912[22]]})[_0x8912[26]](function(_0xe4d1x11){return _0xe4d1xc[_0x8912[17]]({role:_0xe4d1xf[_0x8912[21]],token:auth[_0x8912[25]](_0xe4d1xf[_0x8912[22]],_0xe4d1xf[_0x8912[21]],_0xe4d1xb[_0x8912[24]][_0x8912[23]]|| false),userId:_0xe4d1xf[_0x8912[22]]})})[_0x8912[20]](function(_0xe4d1xe){return _0xe4d1xd(_0xe4d1xe)})})(_0xe4d1xb,_0xe4d1xc,_0xe4d1xd)});router[_0x8912[37]](_0x8912[32],auth[_0x8912[33]](),function(_0xe4d1xb,_0xe4d1xc,_0xe4d1xd){return Action[_0x8912[29]]({name:_0x8912[34],data1:_0xe4d1xb[_0x8912[36]][_0x8912[22]],data2:_0xe4d1xb[_0x8912[36]][_0x8912[28]],UserId:_0xe4d1xb[_0x8912[36]][_0x8912[22]]})[_0x8912[26]](function(){_0xe4d1xb[_0x8912[34]]();_0xe4d1xc[_0x8912[35]](_0x8912[14])})[_0x8912[20]](function(_0xe4d1xe){return _0xe4d1xd(_0xe4d1xe)})});module[_0x8912[38]]= router
\ No newline at end of file