Built motion from commit 0ad9c269e.|1.0.31
[motion.git] / server / auth / local / index.js
index 73f149d..192ccf5 100644 (file)
@@ -1 +1 @@
-var _0x1516=["\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","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72\x2D\x73\x6D\x74\x70\x2D\x74\x72\x61\x6E\x73\x70\x6F\x72\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x6F\x6D\x65\x6E\x74","\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","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\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","\x65\x72\x72\x6F\x72","\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","\x71\x75\x65\x75\x65\x4C\x6F\x67\x69\x6E","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x6C\x6F\x67\x69\x6E","\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65","\x61\x6C\x6C","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65","\x70\x6F\x73\x74","\x2F\x72\x65\x63\x6F\x76\x65\x72","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x68\x6F\x73\x74","\x70\x6F\x72\x74","\x73\x73\x6C","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x72\x65\x61\x74\x65\x54\x72\x61\x6E\x73\x70\x6F\x72\x74","\x65\x6D\x61\x69\x6C","\x78\x43\x41\x4C\x4C\x59\x20\x4D\x6F\x74\x69\x6F\x6E\x20\x50\x61\x73\x73\x77\x6F\x72\x64\x20\x52\x65\x73\x65\x74","\x59\x6F\x75\x20\x61\x72\x65\x20\x72\x65\x63\x65\x69\x76\x69\x6E\x67\x20\x74\x68\x69\x73\x20\x62\x65\x63\x61\x75\x73\x65\x20\x79\x6F\x75\x20\x28\x6F\x72\x20\x73\x6F\x6D\x65\x6F\x6E\x65\x20\x65\x6C\x73\x65\x29\x20\x68\x61\x76\x65\x20\x72\x65\x71\x75\x65\x73\x74\x65\x64\x20\x74\x68\x65\x20\x72\x65\x73\x65\x74\x20\x6F\x66\x20\x74\x68\x65\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x66\x6F\x72\x20\x79\x6F\x75\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\x0A\x0A","\x50\x6C\x65\x61\x73\x65\x20\x63\x6C\x69\x63\x6B\x20\x6F\x6E\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x6C\x69\x6E\x6B\x2C\x20\x6F\x72\x20\x70\x61\x73\x74\x65\x20\x74\x68\x69\x73\x20\x69\x6E\x74\x6F\x20\x79\x6F\x75\x72\x20\x62\x72\x6F\x77\x73\x65\x72\x20\x74\x6F\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x74\x68\x65\x20\x70\x72\x6F\x63\x65\x73\x73\x3A\x0A\x0A","\x68\x74\x74\x70\x3A\x2F\x2F","\x68\x65\x61\x64\x65\x72\x73","\x2F\x72\x65\x73\x65\x74\x2F","\x0A\x0A","\x54\x68\x65\x20\x6C\x69\x6E\x6B\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x76\x61\x6C\x69\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x6E\x65\x78\x74\x20\x36\x30\x20\x6D\x69\x6E\x75\x74\x65\x73\x2E","\x49\x66\x20\x79\x6F\x75\x20\x64\x69\x64\x20\x6E\x6F\x74\x20\x72\x65\x71\x75\x65\x73\x74\x20\x74\x68\x69\x73\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x69\x67\x6E\x6F\x72\x65\x20\x74\x68\x69\x73\x20\x65\x6D\x61\x69\x6C\x20\x61\x6E\x64\x20\x79\x6F\x75\x72\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x77\x69\x6C\x6C\x20\x72\x65\x6D\x61\x69\x6E\x20\x75\x6E\x63\x68\x61\x6E\x67\x65\x64\x2E\x0A","\x73\x65\x6E\x64\x4D\x61\x69\x6C","\x68\x65\x78","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64\x54\x6F\x6B\x65\x6E","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64\x45\x78\x70\x69\x72\x65\x73","\x68\x6F\x75\x72","\x61\x64\x64","\x73\x61\x76\x65","\x4E\x6F\x20\x53\x4D\x54\x50\x20\x73\x65\x72\x76\x69\x63\x65\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x64","\x72\x61\x6E\x64\x6F\x6D\x42\x79\x74\x65\x73","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x45\x6D\x61\x69\x6C\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x69\x6E\x20\x64\x61\x74\x61\x62\x61\x73\x65\x21","\x66\x69\x6E\x64\x4F\x6E\x65","\x2F\x72\x65\x73\x65\x74\x2F\x3A\x74\x6F\x6B\x65\x6E","\x59\x6F\x75\x72\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x63\x68\x61\x6E\x67\x65\x64","\x48\x65\x6C\x6C\x6F\x2C\x0A\x0A","\x54\x68\x69\x73\x20\x69\x73\x20\x61\x20\x63\x6F\x6E\x66\x69\x72\x6D\x61\x74\x69\x6F\x6E\x20\x74\x68\x61\x74\x20\x74\x68\x65\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x66\x6F\x72\x20\x79\x6F\x75\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x20","\x20\x68\x61\x73\x20\x6A\x75\x73\x74\x20\x62\x65\x65\x6E\x20\x63\x68\x61\x6E\x67\x65\x64\x2E\x0A","\x50\x61\x73\x73\x77\x6F\x72\x64\x20\x72\x65\x73\x65\x74\x20\x74\x6F\x6B\x65\x6E\x20\x69\x73\x20\x69\x6E\x76\x61\x6C\x69\x64\x20\x6F\x72\x20\x68\x61\x73\x20\x65\x78\x70\x69\x72\x65\x64","\x74\x65\x73\x74","\x57\x72\x6F\x6E\x67\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x66\x6F\x72\x6D\x61\x74\x21","\x74\x6F\x6B\x65\x6E","\x70\x61\x72\x61\x6D\x73","\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","\x73\x65\x6E\x64","\x65\x78\x70\x6F\x72\x74\x73"];_0x1516[0];var express=require(_0x1516[1]);var passport=require(_0x1516[2]);var async=require(_0x1516[3]);var Promise=require(_0x1516[4]);var nodemailer=require(_0x1516[5]);var smtpTransport=require(_0x1516[6]);var crypto=require(_0x1516[7]);var moment=require(_0x1516[8]);var auth=require(_0x1516[9]);var User=require(_0x1516[11])[_0x1516[10]];var Action=require(_0x1516[11])[_0x1516[12]];var ReportMember=require(_0x1516[11])[_0x1516[13]];var MailServerOut=require(_0x1516[11])[_0x1516[14]];var license=require(_0x1516[15]);var channels=[_0x1516[16],_0x1516[17],_0x1516[18],_0x1516[19]];var router=express.Router();router[_0x1516[41]](_0x1516[20],function(_0x16fcx11,_0x16fcx12,_0x16fcx13){passport[_0x1516[40]](_0x1516[21],function(_0x16fcx14,_0x16fcx15,_0x16fcx16){if(_0x16fcx14){return _0x16fcx12[_0x1516[24]](401)[_0x1516[23]]({message:_0x16fcx14[_0x1516[22]]})};if(!_0x16fcx15){return _0x16fcx12[_0x1516[24]](404)[_0x1516[23]](_0x16fcx16|| {message:_0x1516[25]})};return Promise[_0x1516[39]]([])[_0x1516[33]](function(){if(_0x16fcx11[_0x1516[31]][_0x1516[35]](_0x1516[34])&& _0x16fcx11[_0x1516[31]][_0x1516[34]]=== false){return};return Action[_0x1516[38]]({name:_0x1516[36],data1:_0x16fcx15[_0x1516[29]],data2:_0x16fcx15[_0x1516[37]],UserId:_0x16fcx15[_0x1516[29]]})})[_0x1516[33]](function(){return _0x16fcx12[_0x1516[23]]({role:_0x16fcx15[_0x1516[28]],token:auth[_0x1516[32]](_0x16fcx15[_0x1516[29]],_0x16fcx15[_0x1516[28]],_0x16fcx11[_0x1516[31]][_0x1516[30]]|| false),userId:_0x16fcx15[_0x1516[29]]})})[_0x1516[27]](function(_0x16fcx14){console[_0x1516[26]](_0x16fcx14);return _0x16fcx13(_0x16fcx14)})})(_0x16fcx11,_0x16fcx12,_0x16fcx13)});router[_0x1516[41]](_0x1516[42],function(_0x16fcx11,_0x16fcx12,_0x16fcx13){var _0x16fcx17,_0x16fcx18,_0x16fcx19;return User[_0x1516[71]]({where:{email:_0x16fcx11[_0x1516[31]][_0x1516[50]]}})[_0x1516[33]](function(_0x16fcx15){if(!_0x16fcx15){throw  new Error(_0x1516[70])};_0x16fcx18= _0x16fcx15;return MailServerOut[_0x1516[71]]({where:{service:true}})})[_0x1516[33]](function(_0x16fcx1d){if(!_0x16fcx1d){throw  new Error(_0x1516[67])};_0x16fcx19= _0x16fcx1d;return Promise[_0x1516[69]](crypto[_0x1516[68]])(20)})[_0x1516[33]](function(_0x16fcx1c){_0x16fcx17= _0x16fcx1c.toString(_0x1516[61]);_0x16fcx18[_0x1516[62]]= _0x16fcx17;_0x16fcx18[_0x1516[63]]= moment()[_0x1516[65]](1,_0x1516[64]);return _0x16fcx18[_0x1516[66]]()})[_0x1516[33]](function(){var _0x16fcx1a=nodemailer[_0x1516[49]](smtpTransport({host:_0x16fcx19[_0x1516[44]],port:_0x16fcx19[_0x1516[45]],secure:_0x16fcx19[_0x1516[46]],pool:true,auth:{user:_0x16fcx19[_0x1516[47]],pass:_0x16fcx19[_0x1516[48]]}}));var _0x16fcx1b={to:_0x16fcx18[_0x1516[50]],from:_0x16fcx19[_0x1516[44]],subject:_0x1516[51],text:_0x1516[52]+ _0x1516[53]+ _0x1516[54]+ _0x16fcx11[_0x1516[55]][_0x1516[44]]+ _0x1516[56]+ _0x16fcx17+ _0x1516[57]+ _0x1516[58]+ _0x1516[59]};return _0x16fcx1a[_0x1516[60]](_0x16fcx1b)})[_0x1516[33]](function(_0x16fcx16){_0x16fcx12[_0x1516[43]](200)})[_0x1516[27]](function(_0x16fcx14){return handleError(_0x16fcx12,_0x16fcx14)})});router[_0x1516[41]](_0x1516[72],function(_0x16fcx11,_0x16fcx12,_0x16fcx13){var _0x16fcx18,_0x16fcx19;return User[_0x1516[71]]({where:{resetPasswordToken:_0x16fcx11[_0x1516[81]][_0x1516[80]],resetPasswordExpires:{$gt:moment()}}})[_0x1516[33]](function(_0x16fcx15){if(!_0x16fcx15){throw  new Error(_0x1516[77])};var _0x16fcx1e=String(_0x16fcx11[_0x1516[31]][_0x1516[48]]);if(!(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/[_0x1516[78]](_0x16fcx1e))){throw  new Error(_0x1516[79])};_0x16fcx15[_0x1516[48]]= _0x16fcx1e;_0x16fcx15[_0x1516[62]]= null;_0x16fcx15[_0x1516[63]]= null;return _0x16fcx15[_0x1516[66]]()})[_0x1516[33]](function(_0x16fcx15){_0x16fcx18= _0x16fcx15;return MailServerOut[_0x1516[71]]({where:{service:true}})})[_0x1516[33]](function(_0x16fcx1d){if(!_0x16fcx1d){throw  new Error(_0x1516[67])};var _0x16fcx1a=nodemailer[_0x1516[49]](smtpTransport({host:_0x16fcx1d[_0x1516[44]],port:_0x16fcx1d[_0x1516[45]],secure:_0x16fcx1d[_0x1516[46]],pool:true,auth:{user:_0x16fcx1d[_0x1516[47]],pass:_0x16fcx1d[_0x1516[48]]}}));var _0x16fcx1b={to:_0x16fcx18[_0x1516[50]],from:_0x16fcx1d[_0x1516[44]],subject:_0x1516[73],text:_0x1516[74]+ _0x1516[75]+ _0x16fcx18[_0x1516[50]]+ _0x1516[76]};return _0x16fcx1a[_0x1516[60]](_0x16fcx1b)})[_0x1516[33]](function(_0x16fcx16){_0x16fcx12[_0x1516[43]](200)})[_0x1516[27]](function(_0x16fcx14){return handleError(_0x16fcx12,_0x16fcx14)})});router[_0x1516[87]](_0x1516[82],auth[_0x1516[83]](),function(_0x16fcx11,_0x16fcx12,_0x16fcx13){return Action[_0x1516[38]]({name:_0x1516[84],data1:_0x16fcx11[_0x1516[86]][_0x1516[29]],data2:_0x16fcx11[_0x1516[86]][_0x1516[37]],UserId:_0x16fcx11[_0x1516[86]][_0x1516[29]]})[_0x1516[33]](function(){_0x16fcx11[_0x1516[84]]();_0x16fcx12[_0x1516[85]](_0x1516[20])})[_0x1516[27]](function(_0x16fcx14){return _0x16fcx13(_0x16fcx14)})});function handleError(_0x16fcx12,_0x16fcx14){return _0x16fcx12[_0x1516[24]](500)[_0x1516[88]]({message:_0x16fcx14[_0x1516[22]]})}module[_0x1516[89]]= router
\ No newline at end of file
+var _0xff33=["\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","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72","\x6E\x6F\x64\x65\x6D\x61\x69\x6C\x65\x72\x2D\x73\x6D\x74\x70\x2D\x74\x72\x61\x6E\x73\x70\x6F\x72\x74","\x63\x72\x79\x70\x74\x6F","\x6D\x6F\x6D\x65\x6E\x74","\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","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\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","\x65\x72\x72\x6F\x72","\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","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65\x4C\x6F\x67\x69\x6E","\x6C\x6F\x67\x69\x6E","\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x6C\x6F\x67\x69\x6E\x49\x6E\x50\x61\x75\x73\x65","\x76\x6F\x69\x63\x65\x50\x61\x75\x73\x65","\x63\x68\x61\x74\x50\x61\x75\x73\x65","\x6D\x61\x69\x6C\x50\x61\x75\x73\x65","\x66\x61\x78\x50\x61\x75\x73\x65","\x73\x6D\x73\x50\x61\x75\x73\x65","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x50\x61\x75\x73\x65","\x70\x61\x75\x73\x65\x54\x79\x70\x65","\x4C\x4F\x47\x49\x4E\x49\x4E\x50\x41\x55\x53\x45","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\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\x72\x65\x63\x6F\x76\x65\x72","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x68\x6F\x73\x74","\x70\x6F\x72\x74","\x73\x73\x6C","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x63\x72\x65\x61\x74\x65\x54\x72\x61\x6E\x73\x70\x6F\x72\x74","\x65\x6D\x61\x69\x6C","\x78\x43\x41\x4C\x4C\x59\x20\x4D\x6F\x74\x69\x6F\x6E\x20\x50\x61\x73\x73\x77\x6F\x72\x64\x20\x52\x65\x73\x65\x74","\x59\x6F\x75\x20\x61\x72\x65\x20\x72\x65\x63\x65\x69\x76\x69\x6E\x67\x20\x74\x68\x69\x73\x20\x62\x65\x63\x61\x75\x73\x65\x20\x79\x6F\x75\x20\x28\x6F\x72\x20\x73\x6F\x6D\x65\x6F\x6E\x65\x20\x65\x6C\x73\x65\x29\x20\x68\x61\x76\x65\x20\x72\x65\x71\x75\x65\x73\x74\x65\x64\x20\x74\x68\x65\x20\x72\x65\x73\x65\x74\x20\x6F\x66\x20\x74\x68\x65\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x66\x6F\x72\x20\x79\x6F\x75\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\x0A\x0A","\x50\x6C\x65\x61\x73\x65\x20\x63\x6C\x69\x63\x6B\x20\x6F\x6E\x20\x74\x68\x65\x20\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x20\x6C\x69\x6E\x6B\x2C\x20\x6F\x72\x20\x70\x61\x73\x74\x65\x20\x74\x68\x69\x73\x20\x69\x6E\x74\x6F\x20\x79\x6F\x75\x72\x20\x62\x72\x6F\x77\x73\x65\x72\x20\x74\x6F\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x74\x68\x65\x20\x70\x72\x6F\x63\x65\x73\x73\x3A\x0A\x0A","\x68\x74\x74\x70\x3A\x2F\x2F","\x68\x65\x61\x64\x65\x72\x73","\x2F\x72\x65\x73\x65\x74\x2F","\x0A\x0A","\x54\x68\x65\x20\x6C\x69\x6E\x6B\x20\x77\x69\x6C\x6C\x20\x62\x65\x20\x76\x61\x6C\x69\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x6E\x65\x78\x74\x20\x36\x30\x20\x6D\x69\x6E\x75\x74\x65\x73\x2E","\x49\x66\x20\x79\x6F\x75\x20\x64\x69\x64\x20\x6E\x6F\x74\x20\x72\x65\x71\x75\x65\x73\x74\x20\x74\x68\x69\x73\x2C\x20\x70\x6C\x65\x61\x73\x65\x20\x69\x67\x6E\x6F\x72\x65\x20\x74\x68\x69\x73\x20\x65\x6D\x61\x69\x6C\x20\x61\x6E\x64\x20\x79\x6F\x75\x72\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x77\x69\x6C\x6C\x20\x72\x65\x6D\x61\x69\x6E\x20\x75\x6E\x63\x68\x61\x6E\x67\x65\x64\x2E\x0A","\x73\x65\x6E\x64\x4D\x61\x69\x6C","\x68\x65\x78","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64\x54\x6F\x6B\x65\x6E","\x72\x65\x73\x65\x74\x50\x61\x73\x73\x77\x6F\x72\x64\x45\x78\x70\x69\x72\x65\x73","\x68\x6F\x75\x72","\x61\x64\x64","\x73\x61\x76\x65","\x4E\x6F\x20\x53\x4D\x54\x50\x20\x73\x65\x72\x76\x69\x63\x65\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x64","\x72\x61\x6E\x64\x6F\x6D\x42\x79\x74\x65\x73","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x45\x6D\x61\x69\x6C\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64\x20\x69\x6E\x20\x64\x61\x74\x61\x62\x61\x73\x65\x21","\x66\x69\x6E\x64\x4F\x6E\x65","\x2F\x72\x65\x73\x65\x74\x2F\x3A\x74\x6F\x6B\x65\x6E","\x59\x6F\x75\x72\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x63\x68\x61\x6E\x67\x65\x64","\x48\x65\x6C\x6C\x6F\x2C\x0A\x0A","\x54\x68\x69\x73\x20\x69\x73\x20\x61\x20\x63\x6F\x6E\x66\x69\x72\x6D\x61\x74\x69\x6F\x6E\x20\x74\x68\x61\x74\x20\x74\x68\x65\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x66\x6F\x72\x20\x79\x6F\x75\x72\x20\x61\x63\x63\x6F\x75\x6E\x74\x20","\x20\x68\x61\x73\x20\x6A\x75\x73\x74\x20\x62\x65\x65\x6E\x20\x63\x68\x61\x6E\x67\x65\x64\x2E\x0A","\x50\x61\x73\x73\x77\x6F\x72\x64\x20\x72\x65\x73\x65\x74\x20\x74\x6F\x6B\x65\x6E\x20\x69\x73\x20\x69\x6E\x76\x61\x6C\x69\x64\x20\x6F\x72\x20\x68\x61\x73\x20\x65\x78\x70\x69\x72\x65\x64","\x74\x65\x73\x74","\x57\x72\x6F\x6E\x67\x20\x70\x61\x73\x73\x77\x6F\x72\x64\x20\x66\x6F\x72\x6D\x61\x74\x21","\x74\x6F\x6B\x65\x6E","\x70\x61\x72\x61\x6D\x73","\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","\x2F\x6C\x6F\x67\x6F\x75\x74\x2F\x61\x67\x65\x6E\x74\x2F\x3A\x69\x64","\x61\x64\x6D\x69\x6E","\x68\x61\x73\x4D\x6F\x64\x75\x6C\x65","\x73\x65\x6E\x64","\x65\x78\x70\x6F\x72\x74\x73"];_0xff33[0];var express=require(_0xff33[1]);var passport=require(_0xff33[2]);var async=require(_0xff33[3]);var Promise=require(_0xff33[4]);var nodemailer=require(_0xff33[5]);var smtpTransport=require(_0xff33[6]);var crypto=require(_0xff33[7]);var moment=require(_0xff33[8]);var auth=require(_0xff33[9]);var User=require(_0xff33[11])[_0xff33[10]];var Action=require(_0xff33[11])[_0xff33[12]];var ReportMember=require(_0xff33[11])[_0xff33[13]];var MailServerOut=require(_0xff33[11])[_0xff33[14]];var MailAccount=require(_0xff33[11])[_0xff33[15]];var license=require(_0xff33[16]);var channels=[_0xff33[17],_0xff33[18],_0xff33[19],_0xff33[20]];var router=express.Router();router[_0xff33[55]](_0xff33[21],function(_0xa022x12,_0xa022x13,_0xa022x14){passport[_0xff33[54]](_0xff33[22],function(_0xa022x15,_0xa022x16,_0xa022x17){if(_0xa022x15){return _0xa022x13[_0xff33[25]](401)[_0xff33[24]]({message:_0xa022x15[_0xff33[23]]})};if(!_0xa022x16){return _0xa022x13[_0xff33[25]](404)[_0xff33[24]](_0xa022x17|| {message:_0xff33[26]})};return User[_0xff33[53]](_0xa022x16[_0xff33[30]])[_0xff33[34]](function(_0xa022x16){var _0xa022x18={online:true,lastLoginAt:moment()[_0xff33[42]](_0xff33[41])};if(_0xa022x16[_0xff33[43]]){_0xa022x18[_0xff33[44]]= true;_0xa022x18[_0xff33[45]]= true;_0xa022x18[_0xff33[46]]= true;_0xa022x18[_0xff33[47]]= true;_0xa022x18[_0xff33[48]]= true;_0xa022x18[_0xff33[49]]= true;_0xa022x18[_0xff33[50]]= _0xff33[51]};return _0xa022x16[_0xff33[52]](_0xa022x18)})[_0xff33[34]](function(){if( typeof _0xa022x12[_0xff33[32]][_0xff33[35]]=== _0xff33[36]&& _0xa022x12[_0xff33[32]][_0xff33[35]](_0xff33[37])&& _0xa022x12[_0xff33[32]][_0xff33[37]]=== false){return};return Action[_0xff33[40]]({name:_0xff33[38],data1:_0xa022x16[_0xff33[30]],data2:_0xa022x16[_0xff33[39]],UserId:_0xa022x16[_0xff33[30]]})})[_0xff33[34]](function(){return _0xa022x13[_0xff33[24]]({role:_0xa022x16[_0xff33[29]],token:auth[_0xff33[33]](_0xa022x16[_0xff33[30]],_0xa022x16[_0xff33[29]],_0xa022x12[_0xff33[32]][_0xff33[31]]|| false),userId:_0xa022x16[_0xff33[30]]})})[_0xff33[28]](function(_0xa022x15){console[_0xff33[27]](_0xa022x15);return _0xa022x14(_0xa022x15)})})(_0xa022x12,_0xa022x13,_0xa022x14)});router[_0xff33[55]](_0xff33[56],function(_0xa022x12,_0xa022x13,_0xa022x14){var _0xa022x19,_0xa022x1a,_0xa022x1b;return User[_0xff33[85]]({where:{email:_0xa022x12[_0xff33[32]][_0xff33[64]]}})[_0xff33[34]](function(_0xa022x16){if(!_0xa022x16){throw  new Error(_0xff33[84])};_0xa022x1a= _0xa022x16;return MailAccount[_0xff33[85]]({include:[{model:MailServerOut}],where:{service:true}})})[_0xff33[34]](function(_0xa022x1f){if(!_0xa022x1f){throw  new Error(_0xff33[81])};_0xa022x1b= _0xa022x1f[_0xff33[14]];return Promise[_0xff33[83]](crypto[_0xff33[82]])(20)})[_0xff33[34]](function(_0xa022x1e){_0xa022x19= _0xa022x1e.toString(_0xff33[75]);_0xa022x1a[_0xff33[76]]= _0xa022x19;_0xa022x1a[_0xff33[77]]= moment()[_0xff33[79]](1,_0xff33[78]);return _0xa022x1a[_0xff33[80]]()})[_0xff33[34]](function(){var _0xa022x1c=nodemailer[_0xff33[63]](smtpTransport({host:_0xa022x1b[_0xff33[58]],port:_0xa022x1b[_0xff33[59]],secure:_0xa022x1b[_0xff33[60]],pool:true,auth:{user:_0xa022x1b[_0xff33[61]],pass:_0xa022x1b[_0xff33[62]]}}));var _0xa022x1d={to:_0xa022x1a[_0xff33[64]],from:_0xa022x1b[_0xff33[58]],subject:_0xff33[65],text:_0xff33[66]+ _0xff33[67]+ _0xff33[68]+ _0xa022x12[_0xff33[69]][_0xff33[58]]+ _0xff33[70]+ _0xa022x19+ _0xff33[71]+ _0xff33[72]+ _0xff33[73]};return _0xa022x1c[_0xff33[74]](_0xa022x1d)})[_0xff33[34]](function(_0xa022x17){_0xa022x13[_0xff33[57]](200)})[_0xff33[28]](function(_0xa022x15){return handleError(_0xa022x13,_0xa022x15)})});router[_0xff33[55]](_0xff33[86],function(_0xa022x12,_0xa022x13,_0xa022x14){var _0xa022x1a,_0xa022x1b;return User[_0xff33[85]]({where:{resetPasswordToken:_0xa022x12[_0xff33[95]][_0xff33[94]],resetPasswordExpires:{$gt:moment()}}})[_0xff33[34]](function(_0xa022x16){if(!_0xa022x16){throw  new Error(_0xff33[91])};var _0xa022x20=String(_0xa022x12[_0xff33[32]][_0xff33[62]]);if(!(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/[_0xff33[92]](_0xa022x20))){throw  new Error(_0xff33[93])};_0xa022x16[_0xff33[62]]= _0xa022x20;_0xa022x16[_0xff33[76]]= null;_0xa022x16[_0xff33[77]]= null;return _0xa022x16[_0xff33[80]]()})[_0xff33[34]](function(_0xa022x16){_0xa022x1a= _0xa022x16;return MailAccount[_0xff33[85]]({include:[{model:MailServerOut}],where:{service:true}})})[_0xff33[34]](function(_0xa022x1f){if(!_0xa022x1f){throw  new Error(_0xff33[81])};var _0xa022x1c=nodemailer[_0xff33[63]](smtpTransport({host:_0xa022x1f[_0xff33[14]][_0xff33[58]],port:_0xa022x1f[_0xff33[14]][_0xff33[59]],secure:_0xa022x1f[_0xff33[14]][_0xff33[60]],pool:true,auth:{user:_0xa022x1f[_0xff33[14]][_0xff33[61]],pass:_0xa022x1f[_0xff33[14]][_0xff33[62]]}}));var _0xa022x1d={to:_0xa022x1a[_0xff33[64]],from:_0xa022x1f[_0xff33[14]][_0xff33[58]],subject:_0xff33[87],text:_0xff33[88]+ _0xff33[89]+ _0xa022x1a[_0xff33[64]]+ _0xff33[90]};return _0xa022x1c[_0xff33[74]](_0xa022x1d)})[_0xff33[34]](function(_0xa022x17){_0xa022x13[_0xff33[57]](200)})[_0xff33[28]](function(_0xa022x15){return handleError(_0xa022x13,_0xa022x15)})});router[_0xff33[101]](_0xff33[96],auth[_0xff33[97]](),function(_0xa022x12,_0xa022x13,_0xa022x14){return Action[_0xff33[40]]({name:_0xff33[98],data1:_0xa022x12[_0xff33[100]][_0xff33[30]],data2:_0xa022x12[_0xff33[100]][_0xff33[39]],UserId:_0xa022x12[_0xff33[100]][_0xff33[30]]})[_0xff33[34]](function(){_0xa022x12[_0xff33[98]]();_0xa022x13[_0xff33[99]](_0xff33[21])})[_0xff33[28]](function(_0xa022x15){return _0xa022x14(_0xa022x15)})});router[_0xff33[101]](_0xff33[102],auth[_0xff33[97]](),auth[_0xff33[104]]([],[_0xff33[103],_0xff33[100]]),function(_0xa022x12,_0xa022x13,_0xa022x14){return Action[_0xff33[40]]({name:_0xff33[98],data1:_0xa022x12[_0xff33[95]][_0xff33[30]],UserId:_0xa022x12[_0xff33[100]][_0xff33[30]]})[_0xff33[34]](function(){_0xa022x13[_0xff33[57]](200)})[_0xff33[28]](function(_0xa022x15){return _0xa022x14(_0xa022x15)})});function handleError(_0xa022x13,_0xa022x15){return _0xa022x13[_0xff33[25]](500)[_0xff33[105]]({message:_0xa022x15[_0xff33[23]]})}module[_0xff33[106]]= router
\ No newline at end of file