Built motion from commit a8d3a8d.|0.0.25
[motion.git] / server / auth / local / index.js
1 var _0xd2cd=["\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"];_0xd2cd[0];var express=require(_0xd2cd[1]);var passport=require(_0xd2cd[2]);var async=require(_0xd2cd[3]);var auth=require(_0xd2cd[4]);var User=require(_0xd2cd[6])[_0xd2cd[5]];var license=require(_0xd2cd[7]);var router=express.Router();router[_0xd2cd[27]](_0xd2cd[8],function(_0x1074x8,_0x1074x9,_0x1074xa){passport[_0xd2cd[26]](_0xd2cd[9],function(_0x1074xb,_0x1074xc,_0x1074xd){var _0x1074xe=_0x1074xb||_0x1074xd;if(_0x1074xe){return _0x1074x9[_0xd2cd[11]](401)[_0xd2cd[10]](_0x1074xe)};if(!_0x1074xc){return _0x1074x9[_0xd2cd[11]](404)[_0xd2cd[10]]({message:_0xd2cd[12]})};var _0x1074xf=auth[_0xd2cd[17]](_0x1074xc[_0xd2cd[13]],_0x1074xc[_0xd2cd[14]],_0x1074x8[_0xd2cd[16]][_0xd2cd[15]]||false);User[_0xd2cd[25]](_0x1074xc[_0xd2cd[13]])[_0xd2cd[23]](function(_0x1074xc){_0x1074xc[_0xd2cd[24]]({attributes:[_0xd2cd[19]]})[_0xd2cd[23]](function(_0x1074x10){async[_0xd2cd[22]](_0x1074x10,function _0x1074x11(_0x1074x12,_0x1074x13){require(_0xd2cd[21])[_0xd2cd[20]](_0x1074xc[_0xd2cd[13]],_0x1074xc[_0xd2cd[19]],_0x1074x12[_0xd2cd[19]],_0x1074x13)},function _0x1074x14(){return _0x1074x9[_0xd2cd[10]]({token:_0x1074xf,userId:_0x1074xc[_0xd2cd[13]]})})})[_0xd2cd[18]](function(_0x1074xb){return _0x1074xa(_0x1074xb)})})[_0xd2cd[18]](function(_0x1074xb){return _0x1074xa(_0x1074xb)});})(_0x1074x8,_0x1074x9,_0x1074xa)});router[_0xd2cd[33]](_0xd2cd[28],auth[_0xd2cd[29]](),function(_0x1074x8,_0x1074x9,_0x1074xa){User[_0xd2cd[25]](_0x1074x8[_0xd2cd[30]][_0xd2cd[13]])[_0xd2cd[23]](function(_0x1074xc){_0x1074xc[_0xd2cd[24]]({attributes:[_0xd2cd[19]]})[_0xd2cd[23]](function(_0x1074x10){async[_0xd2cd[22]](_0x1074x10,function _0x1074x11(_0x1074x12,_0x1074x13){require(_0xd2cd[21])[_0xd2cd[31]](_0x1074x8[_0xd2cd[30]][_0xd2cd[13]],_0x1074x8[_0xd2cd[30]][_0xd2cd[19]],_0x1074x12[_0xd2cd[19]],_0x1074x13)},function _0x1074x14(){_0x1074x8[_0xd2cd[31]]();_0x1074x9[_0xd2cd[32]](_0xd2cd[8]);})})[_0xd2cd[18]](function(_0x1074xb){return _0x1074xa(_0x1074xb)})})[_0xd2cd[18]](function(_0x1074xb){return _0x1074xa(_0x1074xb)})});module[_0xd2cd[34]]=router;