Built motion from commit a3effcce5.|1.0.34
[motion.git] / server / auth / local / index.js
1 var _0xc53f=["\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","\x75\x74\x69\x6C","\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","\x61\x75\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x45\x72\x72\x6F\x72\x20\x64\x75\x72\x69\x6E\x67\x20\x4C\x4F\x47\x49\x4E\x20\x66\x6F\x72\x20\x28\x6E\x61\x6D\x65\x2F\x69\x64\x2F\x72\x6F\x6C\x65\x29\x3A\x20\x25\x73\x2F\x25\x73\x2F\x25\x73\x2C","\x6E\x61\x6D\x65","\x69\x64","\x72\x6F\x6C\x65","\x66\x6F\x72\x6D\x61\x74","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x4C\x4F\x47\x49\x4E\x20\x66\x6F\x72\x20\x28\x6E\x61\x6D\x65\x2F\x69\x64\x2F\x72\x6F\x6C\x65\x29\x3A\x20\x25\x73\x2F\x25\x73\x2F\x25\x73","\x69\x6E\x66\x6F","\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","\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","\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","\x45\x72\x72\x6F\x72\x20\x64\x75\x72\x69\x6E\x67\x20\x52\x45\x43\x4F\x56\x45\x52\x20\x50\x41\x53\x53\x57\x4F\x52\x44\x3A","\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","\x45\x72\x72\x6F\x72\x20\x64\x75\x72\x69\x6E\x67\x20\x52\x45\x53\x45\x54\x20\x50\x41\x53\x53\x57\x4F\x52\x44\x3A","\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","\x45\x72\x72\x6F\x72\x20\x64\x75\x72\x69\x6E\x67\x20\x4C\x4F\x47\x4F\x55\x54\x20\x66\x6F\x72\x20\x28\x6E\x61\x6D\x65\x2F\x69\x64\x2F\x72\x6F\x6C\x65\x29\x3A\x20\x25\x73\x2F\x25\x73\x2F\x25\x73\x2C","\x75\x73\x65\x72","\x4C\x4F\x47\x4F\x55\x54\x20\x66\x6F\x72\x20\x28\x6E\x61\x6D\x65\x2F\x69\x64\x2F\x72\x6F\x6C\x65\x29\x3A\x20\x25\x73\x2F\x25\x73\x2F\x25\x73","\x6C\x6F\x67\x6F\x75\x74","\x72\x65\x64\x69\x72\x65\x63\x74","\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","\x45\x72\x72\x6F\x72\x20\x64\x75\x72\x69\x6E\x67\x20\x4C\x4F\x47\x4F\x55\x54\x20\x42\x59\x20\x28\x6E\x61\x6D\x65\x2F\x69\x64\x2F\x72\x6F\x6C\x65\x29\x3A\x20\x25\x73\x2F\x25\x73\x2F\x25\x73\x20\x66\x6F\x72\x20\x75\x73\x65\x72\x20\x77\x69\x74\x68\x20\x49\x44\x3A\x20\x25\x73","\x4C\x4F\x47\x4F\x55\x54\x20\x42\x59\x20\x28\x6E\x61\x6D\x65\x2F\x69\x64\x2F\x72\x6F\x6C\x65\x29\x3A\x20\x25\x73\x2F\x25\x73\x2F\x25\x73\x20\x66\x6F\x72\x20\x75\x73\x65\x72\x20\x77\x69\x74\x68\x20\x49\x44\x3A\x20\x25\x73","\x73\x65\x6E\x64","\x65\x78\x70\x6F\x72\x74\x73"];_0xc53f[0];var express=require(_0xc53f[1]);var passport=require(_0xc53f[2]);var async=require(_0xc53f[3]);var Promise=require(_0xc53f[4]);var nodemailer=require(_0xc53f[5]);var smtpTransport=require(_0xc53f[6]);var crypto=require(_0xc53f[7]);var moment=require(_0xc53f[8]);var util=require(_0xc53f[9]);var auth=require(_0xc53f[10]);var User=require(_0xc53f[12])[_0xc53f[11]];var Action=require(_0xc53f[12])[_0xc53f[13]];var ReportMember=require(_0xc53f[12])[_0xc53f[14]];var MailServerOut=require(_0xc53f[12])[_0xc53f[15]];var MailAccount=require(_0xc53f[12])[_0xc53f[16]];var license=require(_0xc53f[17]);var logger=require(_0xc53f[19])(_0xc53f[18]);var channels=[_0xc53f[20],_0xc53f[21],_0xc53f[22],_0xc53f[23]];var router=express.Router();router[_0xc53f[61]](_0xc53f[24],function(_0x32e9x14,_0x32e9x15,_0x32e9x16){passport[_0xc53f[60]](_0xc53f[25],function(_0x32e9x17,_0x32e9x18,_0x32e9x19){if(_0x32e9x17){return _0x32e9x15[_0xc53f[28]](401)[_0xc53f[27]]({message:_0x32e9x17[_0xc53f[26]]})};if(!_0x32e9x18){return _0x32e9x15[_0xc53f[28]](404)[_0xc53f[27]](_0x32e9x19|| {message:_0xc53f[29]})};return User[_0xc53f[59]](_0x32e9x18[_0xc53f[32]])[_0xc53f[42]](function(_0x32e9x18){var _0x32e9x1a={online:true,lastLoginAt:moment()[_0xc53f[34]](_0xc53f[48])};if(_0x32e9x18[_0xc53f[49]]){_0x32e9x1a[_0xc53f[50]]= true;_0x32e9x1a[_0xc53f[51]]= true;_0x32e9x1a[_0xc53f[52]]= true;_0x32e9x1a[_0xc53f[53]]= true;_0x32e9x1a[_0xc53f[54]]= true;_0x32e9x1a[_0xc53f[55]]= true;_0x32e9x1a[_0xc53f[56]]= _0xc53f[57]};return _0x32e9x18[_0xc53f[58]](_0x32e9x1a)})[_0xc53f[42]](function(){if( typeof _0x32e9x14[_0xc53f[40]][_0xc53f[43]]=== _0xc53f[44]&& _0x32e9x14[_0xc53f[40]][_0xc53f[43]](_0xc53f[45])&& _0x32e9x14[_0xc53f[40]][_0xc53f[45]]=== false){return};return Action[_0xc53f[47]]({name:_0xc53f[46],data1:_0x32e9x18[_0xc53f[32]],data2:_0x32e9x18[_0xc53f[31]],UserId:_0x32e9x18[_0xc53f[32]]})})[_0xc53f[42]](function(){logger[_0xc53f[38]](util[_0xc53f[34]](_0xc53f[37],_0x32e9x18[_0xc53f[31]],_0x32e9x18[_0xc53f[32]],_0x32e9x18[_0xc53f[33]]));return _0x32e9x15[_0xc53f[27]]({role:_0x32e9x18[_0xc53f[33]],token:auth[_0xc53f[41]](_0x32e9x18[_0xc53f[32]],_0x32e9x18[_0xc53f[33]],_0x32e9x14[_0xc53f[40]][_0xc53f[39]]|| false),userId:_0x32e9x18[_0xc53f[32]]})})[_0xc53f[36]](function(_0x32e9x17){logger[_0xc53f[35]](util[_0xc53f[34]](_0xc53f[30],_0x32e9x18[_0xc53f[31]],_0x32e9x18[_0xc53f[32]],_0x32e9x18[_0xc53f[33]]),_0x32e9x17);return _0x32e9x16(_0x32e9x17)})})(_0x32e9x14,_0x32e9x15,_0x32e9x16)});router[_0xc53f[61]](_0xc53f[62],function(_0x32e9x14,_0x32e9x15,_0x32e9x16){var _0x32e9x1b,_0x32e9x1c,_0x32e9x1d;return User[_0xc53f[92]]({where:{email:_0x32e9x14[_0xc53f[40]][_0xc53f[71]]}})[_0xc53f[42]](function(_0x32e9x18){if(!_0x32e9x18){throw  new Error(_0xc53f[91])};_0x32e9x1c= _0x32e9x18;return MailAccount[_0xc53f[92]]({include:[{model:MailServerOut}],where:{service:true}})})[_0xc53f[42]](function(_0x32e9x21){if(!_0x32e9x21){throw  new Error(_0xc53f[88])};_0x32e9x1d= _0x32e9x21[_0xc53f[15]];return Promise[_0xc53f[90]](crypto[_0xc53f[89]])(20)})[_0xc53f[42]](function(_0x32e9x20){_0x32e9x1b= _0x32e9x20.toString(_0xc53f[82]);_0x32e9x1c[_0xc53f[83]]= _0x32e9x1b;_0x32e9x1c[_0xc53f[84]]= moment()[_0xc53f[86]](1,_0xc53f[85]);return _0x32e9x1c[_0xc53f[87]]()})[_0xc53f[42]](function(){var _0x32e9x1e=nodemailer[_0xc53f[70]](smtpTransport({host:_0x32e9x1d[_0xc53f[65]],port:_0x32e9x1d[_0xc53f[66]],secure:_0x32e9x1d[_0xc53f[67]],pool:true,auth:{user:_0x32e9x1d[_0xc53f[68]],pass:_0x32e9x1d[_0xc53f[69]]}}));var _0x32e9x1f={to:_0x32e9x1c[_0xc53f[71]],from:_0x32e9x1d[_0xc53f[65]],subject:_0xc53f[72],text:_0xc53f[73]+ _0xc53f[74]+ _0xc53f[75]+ _0x32e9x14[_0xc53f[76]][_0xc53f[65]]+ _0xc53f[77]+ _0x32e9x1b+ _0xc53f[78]+ _0xc53f[79]+ _0xc53f[80]};return _0x32e9x1e[_0xc53f[81]](_0x32e9x1f)})[_0xc53f[42]](function(_0x32e9x19){_0x32e9x15[_0xc53f[64]](200)})[_0xc53f[36]](function(_0x32e9x17){logger[_0xc53f[35]](_0xc53f[63],_0x32e9x17);return handleError(_0x32e9x15,_0x32e9x17)})});router[_0xc53f[61]](_0xc53f[93],function(_0x32e9x14,_0x32e9x15,_0x32e9x16){var _0x32e9x1c,_0x32e9x1d;return User[_0xc53f[92]]({where:{resetPasswordToken:_0x32e9x14[_0xc53f[103]][_0xc53f[102]],resetPasswordExpires:{$gt:moment()}}})[_0xc53f[42]](function(_0x32e9x18){if(!_0x32e9x18){throw  new Error(_0xc53f[99])};var _0x32e9x22=String(_0x32e9x14[_0xc53f[40]][_0xc53f[69]]);if(!(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\-_=+\[\{\]\}.])[0-9a-zA-Z~!@#$%^&\-_=+\[\{\]\}.]{8,}$/[_0xc53f[100]](_0x32e9x22))){throw  new Error(_0xc53f[101])};_0x32e9x18[_0xc53f[69]]= _0x32e9x22;_0x32e9x18[_0xc53f[83]]= null;_0x32e9x18[_0xc53f[84]]= null;return _0x32e9x18[_0xc53f[87]]()})[_0xc53f[42]](function(_0x32e9x18){_0x32e9x1c= _0x32e9x18;return MailAccount[_0xc53f[92]]({include:[{model:MailServerOut}],where:{service:true}})})[_0xc53f[42]](function(_0x32e9x21){if(!_0x32e9x21){throw  new Error(_0xc53f[88])};var _0x32e9x1e=nodemailer[_0xc53f[70]](smtpTransport({host:_0x32e9x21[_0xc53f[15]][_0xc53f[65]],port:_0x32e9x21[_0xc53f[15]][_0xc53f[66]],secure:_0x32e9x21[_0xc53f[15]][_0xc53f[67]],pool:true,auth:{user:_0x32e9x21[_0xc53f[15]][_0xc53f[68]],pass:_0x32e9x21[_0xc53f[15]][_0xc53f[69]]}}));var _0x32e9x1f={to:_0x32e9x1c[_0xc53f[71]],from:_0x32e9x21[_0xc53f[15]][_0xc53f[65]],subject:_0xc53f[95],text:_0xc53f[96]+ _0xc53f[97]+ _0x32e9x1c[_0xc53f[71]]+ _0xc53f[98]};return _0x32e9x1e[_0xc53f[81]](_0x32e9x1f)})[_0xc53f[42]](function(_0x32e9x19){_0x32e9x15[_0xc53f[64]](200)})[_0xc53f[36]](function(_0x32e9x17){logger[_0xc53f[35]](_0xc53f[94],_0x32e9x17);return handleError(_0x32e9x15,_0x32e9x17)})});router[_0xc53f[111]](_0xc53f[104],auth[_0xc53f[105]](),function(_0x32e9x14,_0x32e9x15,_0x32e9x16){return Action[_0xc53f[47]]({name:_0xc53f[109],data1:_0x32e9x14[_0xc53f[107]][_0xc53f[32]],data2:_0x32e9x14[_0xc53f[107]][_0xc53f[31]],UserId:_0x32e9x14[_0xc53f[107]][_0xc53f[32]]})[_0xc53f[42]](function(){logger[_0xc53f[38]](util[_0xc53f[34]](_0xc53f[108],_0x32e9x14[_0xc53f[107]][_0xc53f[31]],_0x32e9x14[_0xc53f[107]][_0xc53f[32]],_0x32e9x14[_0xc53f[107]][_0xc53f[33]]));_0x32e9x14[_0xc53f[109]]();_0x32e9x15[_0xc53f[110]](_0xc53f[24])})[_0xc53f[36]](function(_0x32e9x17){logger[_0xc53f[35]](util[_0xc53f[34]](_0xc53f[106],_0x32e9x14[_0xc53f[107]][_0xc53f[31]],_0x32e9x14[_0xc53f[107]][_0xc53f[32]],_0x32e9x14[_0xc53f[107]][_0xc53f[33]]),_0x32e9x17);return _0x32e9x16(_0x32e9x17)})});router[_0xc53f[111]](_0xc53f[112],auth[_0xc53f[105]](),auth[_0xc53f[114]]([],[_0xc53f[113],_0xc53f[107]]),function(_0x32e9x14,_0x32e9x15,_0x32e9x16){return Action[_0xc53f[47]]({name:_0xc53f[109],data1:_0x32e9x14[_0xc53f[103]][_0xc53f[32]],UserId:_0x32e9x14[_0xc53f[107]][_0xc53f[32]]})[_0xc53f[42]](function(){logger[_0xc53f[38]](util[_0xc53f[34]](_0xc53f[116],_0x32e9x14[_0xc53f[107]][_0xc53f[31]],_0x32e9x14[_0xc53f[107]][_0xc53f[32]],_0x32e9x14[_0xc53f[107]][_0xc53f[33]],_0x32e9x14[_0xc53f[103]][_0xc53f[32]]));_0x32e9x15[_0xc53f[64]](200)})[_0xc53f[36]](function(_0x32e9x17){logger[_0xc53f[35]](util[_0xc53f[34]](_0xc53f[115],_0x32e9x14[_0xc53f[107]][_0xc53f[31]],_0x32e9x14[_0xc53f[107]][_0xc53f[32]],_0x32e9x14[_0xc53f[107]][_0xc53f[33]],_0x32e9x14[_0xc53f[103]][_0xc53f[32]]),_0x32e9x17);return _0x32e9x16(_0x32e9x17)})});function handleError(_0x32e9x15,_0x32e9x17){return _0x32e9x15[_0xc53f[28]](500)[_0xc53f[117]]({message:_0x32e9x17[_0xc53f[26]]})}module[_0xc53f[118]]= router