0a00d4e7593d0384d78eef9e5d6645cb83e9c1a8
[motion.git] / server / auth / local / index.js
1 var _0xc397=["\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"];_0xc397[0];var express=require(_0xc397[1]);var passport=require(_0xc397[2]);var async=require(_0xc397[3]);var auth=require(_0xc397[4]);var User=require(_0xc397[6])[_0xc397[5]];var Action=require(_0xc397[6])[_0xc397[7]];var ReportMember=require(_0xc397[6])[_0xc397[8]];var license=require(_0xc397[9]);var channels=[_0xc397[10],_0xc397[11],_0xc397[12],_0xc397[13]];var router=express.Router();router[_0xc397[31]](_0xc397[14],function(_0x9cadxb,_0x9cadxc,_0x9cadxd){passport[_0xc397[30]](_0xc397[15],function(_0x9cadxe,_0x9cadxf,_0x9cadx10){if(_0x9cadxe){return _0x9cadxc[_0xc397[18]](401)[_0xc397[17]]({message:_0x9cadxe[_0xc397[16]]})};if(!_0x9cadxf){return _0x9cadxc[_0xc397[18]](404)[_0xc397[17]]({message:_0xc397[19]})};return Action[_0xc397[29]]({name:_0xc397[27],data1:_0x9cadxf[_0xc397[22]],data2:_0x9cadxf[_0xc397[28]],UserId:_0x9cadxf[_0xc397[22]]})[_0xc397[26]](function(_0x9cadx11){return _0x9cadxc[_0xc397[17]]({role:_0x9cadxf[_0xc397[21]],token:auth[_0xc397[25]](_0x9cadxf[_0xc397[22]],_0x9cadxf[_0xc397[21]],_0x9cadxb[_0xc397[24]][_0xc397[23]]|| false),userId:_0x9cadxf[_0xc397[22]]})})[_0xc397[20]](function(_0x9cadxe){return _0x9cadxd(_0x9cadxe)})})(_0x9cadxb,_0x9cadxc,_0x9cadxd)});router[_0xc397[37]](_0xc397[32],auth[_0xc397[33]](),function(_0x9cadxb,_0x9cadxc,_0x9cadxd){return Action[_0xc397[29]]({name:_0xc397[34],data1:_0x9cadxb[_0xc397[36]][_0xc397[22]],data2:_0x9cadxb[_0xc397[36]][_0xc397[28]],UserId:_0x9cadxb[_0xc397[36]][_0xc397[22]]})[_0xc397[26]](function(){_0x9cadxb[_0xc397[34]]();_0x9cadxc[_0xc397[35]](_0xc397[14])})[_0xc397[20]](function(_0x9cadxe){return _0x9cadxd(_0x9cadxe)})});module[_0xc397[38]]= router