Built motion from commit dbc832960.|1.0.25
[motion.git] / server / auth / local / index.js
index e008caa..9994a85 100644 (file)
@@ -1 +1 @@
-var _0x5d6c=["\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"];_0x5d6c[0];var express=require(_0x5d6c[1]);var passport=require(_0x5d6c[2]);var async=require(_0x5d6c[3]);var Promise=require(_0x5d6c[4]);var nodemailer=require(_0x5d6c[5]);var smtpTransport=require(_0x5d6c[6]);var crypto=require(_0x5d6c[7]);var moment=require(_0x5d6c[8]);var auth=require(_0x5d6c[9]);var User=require(_0x5d6c[11])[_0x5d6c[10]];var Action=require(_0x5d6c[11])[_0x5d6c[12]];var ReportMember=require(_0x5d6c[11])[_0x5d6c[13]];var MailServerOut=require(_0x5d6c[11])[_0x5d6c[14]];var MailAccount=require(_0x5d6c[11])[_0x5d6c[15]];var license=require(_0x5d6c[16]);var channels=[_0x5d6c[17],_0x5d6c[18],_0x5d6c[19],_0x5d6c[20]];var router=express.Router();router[_0x5d6c[55]](_0x5d6c[21],function(_0xedf8x12,_0xedf8x13,_0xedf8x14){passport[_0x5d6c[54]](_0x5d6c[22],function(_0xedf8x15,_0xedf8x16,_0xedf8x17){if(_0xedf8x15){return _0xedf8x13[_0x5d6c[25]](401)[_0x5d6c[24]]({message:_0xedf8x15[_0x5d6c[23]]})};if(!_0xedf8x16){return _0xedf8x13[_0x5d6c[25]](404)[_0x5d6c[24]](_0xedf8x17|| {message:_0x5d6c[26]})};return User[_0x5d6c[53]](_0xedf8x16[_0x5d6c[30]])[_0x5d6c[34]](function(_0xedf8x16){var _0xedf8x18={online:true,lastLoginAt:moment()[_0x5d6c[42]](_0x5d6c[41])};if(_0xedf8x16[_0x5d6c[43]]){_0xedf8x18[_0x5d6c[44]]= true;_0xedf8x18[_0x5d6c[45]]= true;_0xedf8x18[_0x5d6c[46]]= true;_0xedf8x18[_0x5d6c[47]]= true;_0xedf8x18[_0x5d6c[48]]= true;_0xedf8x18[_0x5d6c[49]]= true;_0xedf8x18[_0x5d6c[50]]= _0x5d6c[51]};return _0xedf8x16[_0x5d6c[52]](_0xedf8x18)})[_0x5d6c[34]](function(){if( typeof _0xedf8x12[_0x5d6c[32]][_0x5d6c[35]]=== _0x5d6c[36]&& _0xedf8x12[_0x5d6c[32]][_0x5d6c[35]](_0x5d6c[37])&& _0xedf8x12[_0x5d6c[32]][_0x5d6c[37]]=== false){return};return Action[_0x5d6c[40]]({name:_0x5d6c[38],data1:_0xedf8x16[_0x5d6c[30]],data2:_0xedf8x16[_0x5d6c[39]],UserId:_0xedf8x16[_0x5d6c[30]]})})[_0x5d6c[34]](function(){return _0xedf8x13[_0x5d6c[24]]({role:_0xedf8x16[_0x5d6c[29]],token:auth[_0x5d6c[33]](_0xedf8x16[_0x5d6c[30]],_0xedf8x16[_0x5d6c[29]],_0xedf8x12[_0x5d6c[32]][_0x5d6c[31]]|| false),userId:_0xedf8x16[_0x5d6c[30]]})})[_0x5d6c[28]](function(_0xedf8x15){console[_0x5d6c[27]](_0xedf8x15);return _0xedf8x14(_0xedf8x15)})})(_0xedf8x12,_0xedf8x13,_0xedf8x14)});router[_0x5d6c[55]](_0x5d6c[56],function(_0xedf8x12,_0xedf8x13,_0xedf8x14){var _0xedf8x19,_0xedf8x1a,_0xedf8x1b;return User[_0x5d6c[85]]({where:{email:_0xedf8x12[_0x5d6c[32]][_0x5d6c[64]]}})[_0x5d6c[34]](function(_0xedf8x16){if(!_0xedf8x16){throw  new Error(_0x5d6c[84])};_0xedf8x1a= _0xedf8x16;return MailAccount[_0x5d6c[85]]({include:[{model:MailServerOut}],where:{service:true}})})[_0x5d6c[34]](function(_0xedf8x1f){if(!_0xedf8x1f){throw  new Error(_0x5d6c[81])};_0xedf8x1b= _0xedf8x1f[_0x5d6c[14]];return Promise[_0x5d6c[83]](crypto[_0x5d6c[82]])(20)})[_0x5d6c[34]](function(_0xedf8x1e){_0xedf8x19= _0xedf8x1e.toString(_0x5d6c[75]);_0xedf8x1a[_0x5d6c[76]]= _0xedf8x19;_0xedf8x1a[_0x5d6c[77]]= moment()[_0x5d6c[79]](1,_0x5d6c[78]);return _0xedf8x1a[_0x5d6c[80]]()})[_0x5d6c[34]](function(){var _0xedf8x1c=nodemailer[_0x5d6c[63]](smtpTransport({host:_0xedf8x1b[_0x5d6c[58]],port:_0xedf8x1b[_0x5d6c[59]],secure:_0xedf8x1b[_0x5d6c[60]],pool:true,auth:{user:_0xedf8x1b[_0x5d6c[61]],pass:_0xedf8x1b[_0x5d6c[62]]}}));var _0xedf8x1d={to:_0xedf8x1a[_0x5d6c[64]],from:_0xedf8x1b[_0x5d6c[58]],subject:_0x5d6c[65],text:_0x5d6c[66]+ _0x5d6c[67]+ _0x5d6c[68]+ _0xedf8x12[_0x5d6c[69]][_0x5d6c[58]]+ _0x5d6c[70]+ _0xedf8x19+ _0x5d6c[71]+ _0x5d6c[72]+ _0x5d6c[73]};return _0xedf8x1c[_0x5d6c[74]](_0xedf8x1d)})[_0x5d6c[34]](function(_0xedf8x17){_0xedf8x13[_0x5d6c[57]](200)})[_0x5d6c[28]](function(_0xedf8x15){return handleError(_0xedf8x13,_0xedf8x15)})});router[_0x5d6c[55]](_0x5d6c[86],function(_0xedf8x12,_0xedf8x13,_0xedf8x14){var _0xedf8x1a,_0xedf8x1b;return User[_0x5d6c[85]]({where:{resetPasswordToken:_0xedf8x12[_0x5d6c[95]][_0x5d6c[94]],resetPasswordExpires:{$gt:moment()}}})[_0x5d6c[34]](function(_0xedf8x16){if(!_0xedf8x16){throw  new Error(_0x5d6c[91])};var _0xedf8x20=String(_0xedf8x12[_0x5d6c[32]][_0x5d6c[62]]);if(!(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/[_0x5d6c[92]](_0xedf8x20))){throw  new Error(_0x5d6c[93])};_0xedf8x16[_0x5d6c[62]]= _0xedf8x20;_0xedf8x16[_0x5d6c[76]]= null;_0xedf8x16[_0x5d6c[77]]= null;return _0xedf8x16[_0x5d6c[80]]()})[_0x5d6c[34]](function(_0xedf8x16){_0xedf8x1a= _0xedf8x16;return MailAccount[_0x5d6c[85]]({include:[{model:MailServerOut}],where:{service:true}})})[_0x5d6c[34]](function(_0xedf8x1f){if(!_0xedf8x1f){throw  new Error(_0x5d6c[81])};var _0xedf8x1c=nodemailer[_0x5d6c[63]](smtpTransport({host:_0xedf8x1f[_0x5d6c[14]][_0x5d6c[58]],port:_0xedf8x1f[_0x5d6c[14]][_0x5d6c[59]],secure:_0xedf8x1f[_0x5d6c[14]][_0x5d6c[60]],pool:true,auth:{user:_0xedf8x1f[_0x5d6c[14]][_0x5d6c[61]],pass:_0xedf8x1f[_0x5d6c[14]][_0x5d6c[62]]}}));var _0xedf8x1d={to:_0xedf8x1a[_0x5d6c[64]],from:_0xedf8x1f[_0x5d6c[14]][_0x5d6c[58]],subject:_0x5d6c[87],text:_0x5d6c[88]+ _0x5d6c[89]+ _0xedf8x1a[_0x5d6c[64]]+ _0x5d6c[90]};return _0xedf8x1c[_0x5d6c[74]](_0xedf8x1d)})[_0x5d6c[34]](function(_0xedf8x17){_0xedf8x13[_0x5d6c[57]](200)})[_0x5d6c[28]](function(_0xedf8x15){return handleError(_0xedf8x13,_0xedf8x15)})});router[_0x5d6c[101]](_0x5d6c[96],auth[_0x5d6c[97]](),function(_0xedf8x12,_0xedf8x13,_0xedf8x14){return Action[_0x5d6c[40]]({name:_0x5d6c[98],data1:_0xedf8x12[_0x5d6c[100]][_0x5d6c[30]],data2:_0xedf8x12[_0x5d6c[100]][_0x5d6c[39]],UserId:_0xedf8x12[_0x5d6c[100]][_0x5d6c[30]]})[_0x5d6c[34]](function(){_0xedf8x12[_0x5d6c[98]]();_0xedf8x13[_0x5d6c[99]](_0x5d6c[21])})[_0x5d6c[28]](function(_0xedf8x15){return _0xedf8x14(_0xedf8x15)})});router[_0x5d6c[101]](_0x5d6c[102],auth[_0x5d6c[97]](),auth[_0x5d6c[104]]([],[_0x5d6c[103],_0x5d6c[100]]),function(_0xedf8x12,_0xedf8x13,_0xedf8x14){return Action[_0x5d6c[40]]({name:_0x5d6c[98],data1:_0xedf8x12[_0x5d6c[95]][_0x5d6c[30]],UserId:_0xedf8x12[_0x5d6c[100]][_0x5d6c[30]]})[_0x5d6c[34]](function(){_0xedf8x13[_0x5d6c[57]](200)})[_0x5d6c[28]](function(_0xedf8x15){return _0xedf8x14(_0xedf8x15)})});function handleError(_0xedf8x13,_0xedf8x15){return _0xedf8x13[_0x5d6c[25]](500)[_0x5d6c[105]]({message:_0xedf8x15[_0x5d6c[23]]})}module[_0x5d6c[106]]= router
\ No newline at end of file
+var _0xf634=["\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"];_0xf634[0];var express=require(_0xf634[1]);var passport=require(_0xf634[2]);var async=require(_0xf634[3]);var Promise=require(_0xf634[4]);var nodemailer=require(_0xf634[5]);var smtpTransport=require(_0xf634[6]);var crypto=require(_0xf634[7]);var moment=require(_0xf634[8]);var auth=require(_0xf634[9]);var User=require(_0xf634[11])[_0xf634[10]];var Action=require(_0xf634[11])[_0xf634[12]];var ReportMember=require(_0xf634[11])[_0xf634[13]];var MailServerOut=require(_0xf634[11])[_0xf634[14]];var MailAccount=require(_0xf634[11])[_0xf634[15]];var license=require(_0xf634[16]);var channels=[_0xf634[17],_0xf634[18],_0xf634[19],_0xf634[20]];var router=express.Router();router[_0xf634[55]](_0xf634[21],function(_0xa41bx12,_0xa41bx13,_0xa41bx14){passport[_0xf634[54]](_0xf634[22],function(_0xa41bx15,_0xa41bx16,_0xa41bx17){if(_0xa41bx15){return _0xa41bx13[_0xf634[25]](401)[_0xf634[24]]({message:_0xa41bx15[_0xf634[23]]})};if(!_0xa41bx16){return _0xa41bx13[_0xf634[25]](404)[_0xf634[24]](_0xa41bx17|| {message:_0xf634[26]})};return User[_0xf634[53]](_0xa41bx16[_0xf634[30]])[_0xf634[34]](function(_0xa41bx16){var _0xa41bx18={online:true,lastLoginAt:moment()[_0xf634[42]](_0xf634[41])};if(_0xa41bx16[_0xf634[43]]){_0xa41bx18[_0xf634[44]]= true;_0xa41bx18[_0xf634[45]]= true;_0xa41bx18[_0xf634[46]]= true;_0xa41bx18[_0xf634[47]]= true;_0xa41bx18[_0xf634[48]]= true;_0xa41bx18[_0xf634[49]]= true;_0xa41bx18[_0xf634[50]]= _0xf634[51]};return _0xa41bx16[_0xf634[52]](_0xa41bx18)})[_0xf634[34]](function(){if( typeof _0xa41bx12[_0xf634[32]][_0xf634[35]]=== _0xf634[36]&& _0xa41bx12[_0xf634[32]][_0xf634[35]](_0xf634[37])&& _0xa41bx12[_0xf634[32]][_0xf634[37]]=== false){return};return Action[_0xf634[40]]({name:_0xf634[38],data1:_0xa41bx16[_0xf634[30]],data2:_0xa41bx16[_0xf634[39]],UserId:_0xa41bx16[_0xf634[30]]})})[_0xf634[34]](function(){return _0xa41bx13[_0xf634[24]]({role:_0xa41bx16[_0xf634[29]],token:auth[_0xf634[33]](_0xa41bx16[_0xf634[30]],_0xa41bx16[_0xf634[29]],_0xa41bx12[_0xf634[32]][_0xf634[31]]|| false),userId:_0xa41bx16[_0xf634[30]]})})[_0xf634[28]](function(_0xa41bx15){console[_0xf634[27]](_0xa41bx15);return _0xa41bx14(_0xa41bx15)})})(_0xa41bx12,_0xa41bx13,_0xa41bx14)});router[_0xf634[55]](_0xf634[56],function(_0xa41bx12,_0xa41bx13,_0xa41bx14){var _0xa41bx19,_0xa41bx1a,_0xa41bx1b;return User[_0xf634[85]]({where:{email:_0xa41bx12[_0xf634[32]][_0xf634[64]]}})[_0xf634[34]](function(_0xa41bx16){if(!_0xa41bx16){throw  new Error(_0xf634[84])};_0xa41bx1a= _0xa41bx16;return MailAccount[_0xf634[85]]({include:[{model:MailServerOut}],where:{service:true}})})[_0xf634[34]](function(_0xa41bx1f){if(!_0xa41bx1f){throw  new Error(_0xf634[81])};_0xa41bx1b= _0xa41bx1f[_0xf634[14]];return Promise[_0xf634[83]](crypto[_0xf634[82]])(20)})[_0xf634[34]](function(_0xa41bx1e){_0xa41bx19= _0xa41bx1e.toString(_0xf634[75]);_0xa41bx1a[_0xf634[76]]= _0xa41bx19;_0xa41bx1a[_0xf634[77]]= moment()[_0xf634[79]](1,_0xf634[78]);return _0xa41bx1a[_0xf634[80]]()})[_0xf634[34]](function(){var _0xa41bx1c=nodemailer[_0xf634[63]](smtpTransport({host:_0xa41bx1b[_0xf634[58]],port:_0xa41bx1b[_0xf634[59]],secure:_0xa41bx1b[_0xf634[60]],pool:true,auth:{user:_0xa41bx1b[_0xf634[61]],pass:_0xa41bx1b[_0xf634[62]]}}));var _0xa41bx1d={to:_0xa41bx1a[_0xf634[64]],from:_0xa41bx1b[_0xf634[58]],subject:_0xf634[65],text:_0xf634[66]+ _0xf634[67]+ _0xf634[68]+ _0xa41bx12[_0xf634[69]][_0xf634[58]]+ _0xf634[70]+ _0xa41bx19+ _0xf634[71]+ _0xf634[72]+ _0xf634[73]};return _0xa41bx1c[_0xf634[74]](_0xa41bx1d)})[_0xf634[34]](function(_0xa41bx17){_0xa41bx13[_0xf634[57]](200)})[_0xf634[28]](function(_0xa41bx15){return handleError(_0xa41bx13,_0xa41bx15)})});router[_0xf634[55]](_0xf634[86],function(_0xa41bx12,_0xa41bx13,_0xa41bx14){var _0xa41bx1a,_0xa41bx1b;return User[_0xf634[85]]({where:{resetPasswordToken:_0xa41bx12[_0xf634[95]][_0xf634[94]],resetPasswordExpires:{$gt:moment()}}})[_0xf634[34]](function(_0xa41bx16){if(!_0xa41bx16){throw  new Error(_0xf634[91])};var _0xa41bx20=String(_0xa41bx12[_0xf634[32]][_0xf634[62]]);if(!(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/[_0xf634[92]](_0xa41bx20))){throw  new Error(_0xf634[93])};_0xa41bx16[_0xf634[62]]= _0xa41bx20;_0xa41bx16[_0xf634[76]]= null;_0xa41bx16[_0xf634[77]]= null;return _0xa41bx16[_0xf634[80]]()})[_0xf634[34]](function(_0xa41bx16){_0xa41bx1a= _0xa41bx16;return MailAccount[_0xf634[85]]({include:[{model:MailServerOut}],where:{service:true}})})[_0xf634[34]](function(_0xa41bx1f){if(!_0xa41bx1f){throw  new Error(_0xf634[81])};var _0xa41bx1c=nodemailer[_0xf634[63]](smtpTransport({host:_0xa41bx1f[_0xf634[14]][_0xf634[58]],port:_0xa41bx1f[_0xf634[14]][_0xf634[59]],secure:_0xa41bx1f[_0xf634[14]][_0xf634[60]],pool:true,auth:{user:_0xa41bx1f[_0xf634[14]][_0xf634[61]],pass:_0xa41bx1f[_0xf634[14]][_0xf634[62]]}}));var _0xa41bx1d={to:_0xa41bx1a[_0xf634[64]],from:_0xa41bx1f[_0xf634[14]][_0xf634[58]],subject:_0xf634[87],text:_0xf634[88]+ _0xf634[89]+ _0xa41bx1a[_0xf634[64]]+ _0xf634[90]};return _0xa41bx1c[_0xf634[74]](_0xa41bx1d)})[_0xf634[34]](function(_0xa41bx17){_0xa41bx13[_0xf634[57]](200)})[_0xf634[28]](function(_0xa41bx15){return handleError(_0xa41bx13,_0xa41bx15)})});router[_0xf634[101]](_0xf634[96],auth[_0xf634[97]](),function(_0xa41bx12,_0xa41bx13,_0xa41bx14){return Action[_0xf634[40]]({name:_0xf634[98],data1:_0xa41bx12[_0xf634[100]][_0xf634[30]],data2:_0xa41bx12[_0xf634[100]][_0xf634[39]],UserId:_0xa41bx12[_0xf634[100]][_0xf634[30]]})[_0xf634[34]](function(){_0xa41bx12[_0xf634[98]]();_0xa41bx13[_0xf634[99]](_0xf634[21])})[_0xf634[28]](function(_0xa41bx15){return _0xa41bx14(_0xa41bx15)})});router[_0xf634[101]](_0xf634[102],auth[_0xf634[97]](),auth[_0xf634[104]]([],[_0xf634[103],_0xf634[100]]),function(_0xa41bx12,_0xa41bx13,_0xa41bx14){return Action[_0xf634[40]]({name:_0xf634[98],data1:_0xa41bx12[_0xf634[95]][_0xf634[30]],UserId:_0xa41bx12[_0xf634[100]][_0xf634[30]]})[_0xf634[34]](function(){_0xa41bx13[_0xf634[57]](200)})[_0xf634[28]](function(_0xa41bx15){return _0xa41bx14(_0xa41bx15)})});function handleError(_0xa41bx13,_0xa41bx15){return _0xa41bx13[_0xf634[25]](500)[_0xf634[105]]({message:_0xa41bx15[_0xf634[23]]})}module[_0xf634[106]]= router
\ No newline at end of file