Built motion from commit 3848e0076.|1.0.27
[motion.git] / server / api / mail_queue / mail_queue.controller.js
index d792bc0..0e65d24 100644 (file)
@@ -1 +1 @@
-var _0x54bc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x51\x75\x65\x72\x79","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x66\x61\x75\x6C\x74","\x73\x63\x6F\x70\x65","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x68\x61\x6E\x64\x6C\x65\x55\x6E\x69\x71\x75\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x4D\x61\x6E\x61\x67\x65\x72","\x61\x67\x65\x6E\x74\x73","\x62\x6F\x64\x79","\x70\x65\x6E\x61\x6C\x74\x79","\x6E\x61\x6D\x65","\x61\x64\x64\x55\x73\x65\x72\x73","\x75\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x64\x65\x73\x74\x72\x6F\x79","\x71\x75\x65\x75\x65","\x68\x61\x6E\x64\x6C\x65\x46\x6F\x72\x65\x69\x67\x6E\x4B\x65\x79\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x54bc[0];var _=require(_0x54bc[1]);var util=require(_0x54bc[2]);var Util=require(_0x54bc[3]);var logger=require(_0x54bc[5])(_0x54bc[4]);var sequelize=require(_0x54bc[7])[_0x54bc[6]];var MailQueue=require(_0x54bc[7])[_0x54bc[8]];var User=require(_0x54bc[7])[_0x54bc[9]];var UserHasMailQueue=require(_0x54bc[7])[_0x54bc[10]];exports[_0x54bc[11]]= function(_0xf46cx9,_0xf46cxa){switch(_0xf46cx9[_0x54bc[19]][_0x54bc[26]]){case _0x54bc[19]:return User[_0x54bc[20]](_0xf46cx9[_0x54bc[19]][_0x54bc[18]],{attributes:[_0x54bc[18]]})[_0x54bc[15]](Util[_0x54bc[17]](_0xf46cx9[_0x54bc[16]]))[_0x54bc[15]](function(_0xf46cxc){_0xf46cxa[_0x54bc[14]](200)[_0x54bc[13]](_0xf46cxc)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)});default:return MailQueue[_0x54bc[25]](_0x54bc[24])[_0x54bc[23]](_[_0x54bc[22]](Util[_0x54bc[21]](_0xf46cx9[_0x54bc[16]]),{distinct:true}))[_0x54bc[15]](function(_0xf46cxc){_0xf46cxa[_0x54bc[14]](200)[_0x54bc[13]](_0xf46cxc)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})}};exports[_0x54bc[27]]= function(_0xf46cx9,_0xf46cxa){return MailQueue[_0x54bc[25]](_0x54bc[24])[_0x54bc[20]](_0xf46cx9[_0x54bc[29]][_0x54bc[18]])[_0x54bc[15]](function(_0xf46cxd){if(!_0xf46cxd){return _0xf46cxa[_0x54bc[28]](404)};return _0xf46cxa[_0x54bc[13]](_0xf46cxd)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})};exports[_0x54bc[30]]= function(_0xf46cx9,_0xf46cxa){var _0xf46cxe;return MailQueue[_0x54bc[30]](_0xf46cx9[_0x54bc[34]])[_0x54bc[15]](function(_0xf46cxd){_0xf46cxe= _0xf46cxd;if(_0xf46cx9[_0x54bc[34]][_0x54bc[33]]){return _0xf46cxe[_0x54bc[37]](_0xf46cx9[_0x54bc[34]][_0x54bc[33]],{penalty:_0xf46cx9[_0x54bc[34]][_0x54bc[35]]|| 0,queue:_0xf46cxe[_0x54bc[36]]})}})[_0x54bc[15]](function(){return _0xf46cxa[_0x54bc[14]](201)[_0x54bc[13]](_0xf46cxe)})[_0x54bc[12]](sequelize.UniqueConstraintError,function(_0xf46cxb){return Util[_0x54bc[32]][_0x54bc[31]](_0xf46cxa,_0xf46cxb)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})};exports[_0x54bc[38]]= function(_0xf46cx9,_0xf46cxa){if(_0xf46cx9[_0x54bc[34]][_0x54bc[18]]){delete _0xf46cx9[_0x54bc[34]][_0x54bc[18]]};return MailQueue[_0x54bc[20]](_0xf46cx9[_0x54bc[29]][_0x54bc[18]])[_0x54bc[15]](function(_0xf46cxd){if(!_0xf46cxd){return _0xf46cxa[_0x54bc[28]](404)};var _0xf46cxf=_[_0x54bc[22]](_0xf46cxd,_0xf46cx9[_0x54bc[34]]);return _0xf46cxf[_0x54bc[39]]()})[_0x54bc[15]](function(_0xf46cxd){return _0xf46cxa[_0x54bc[14]](200)[_0x54bc[13]](_0xf46cxd)})[_0x54bc[12]](sequelize.UniqueConstraintError,function(_0xf46cxb){return Util[_0x54bc[32]][_0x54bc[31]](_0xf46cxa,_0xf46cxb)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})};exports[_0x54bc[40]]= function(_0xf46cx9,_0xf46cxa,_0xf46cx10){return MailQueue[_0x54bc[20]](_0xf46cx9[_0x54bc[29]][_0x54bc[18]])[_0x54bc[15]](function(_0xf46cxd){if(!_0xf46cxd){return _0xf46cxa[_0x54bc[28]](404)};var _0xf46cx11=_[_0x54bc[41]](_0xf46cx9[_0x54bc[34]][_0x54bc[33]],function(_0xf46cx12){return {UserId:_0xf46cx12,penalty:_0xf46cx9[_0x54bc[34]][_0x54bc[35]],MailQueueId:_0xf46cxd[_0x54bc[18]],queue:_0xf46cxd[_0x54bc[36]]}});return UserHasMailQueue[_0x54bc[42]](_0xf46cx11,{individualHooks:true})})[_0x54bc[15]](function(){return _0xf46cxa[_0x54bc[28]](200)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})};exports[_0x54bc[43]]= function(_0xf46cx9,_0xf46cxa){return MailQueue[_0x54bc[20]](_0xf46cx9[_0x54bc[29]][_0x54bc[18]])[_0x54bc[15]](function(_0xf46cx13){if(!_0xf46cx13){return _0xf46cxa[_0x54bc[28]](404)};return _0xf46cx13[_0x54bc[44]](_0xf46cx9[_0x54bc[16]][_0x54bc[33]],{individualHooks:true})})[_0x54bc[15]](function(){return _0xf46cxa[_0x54bc[28]](200)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})};exports[_0x54bc[45]]= function(_0xf46cx9,_0xf46cxa){var _0xf46cxe;return MailQueue[_0x54bc[20]](_0xf46cx9[_0x54bc[29]][_0x54bc[18]])[_0x54bc[15]](function(_0xf46cxd){_0xf46cxe= _0xf46cxd;if(!_0xf46cxd){return _0xf46cxa[_0x54bc[28]](404)};return _0xf46cxd[_0x54bc[45]]()})[_0x54bc[15]](function(){return _0xf46cxa[_0x54bc[28]](204)})[_0x54bc[12]](sequelize.ForeignKeyConstraintError,function(_0xf46cxb){return Util[_0x54bc[32]][_0x54bc[47]](_0xf46cxa,_0x54bc[46],_0xf46cxe[_0x54bc[36]],_0xf46cxb)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})};exports[_0x54bc[48]]= function(_0xf46cx9,_0xf46cxa){return MailQueue[_0x54bc[45]]({where:{id:_0xf46cx9[_0x54bc[16]][_0x54bc[49]]},individualHooks:true})[_0x54bc[15]](function(){return _0xf46cxa[_0x54bc[28]](204)})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})};exports[_0x54bc[50]]= function(_0xf46cx9,_0xf46cxa){return MailQueue[_0x54bc[20]](_0xf46cx9[_0x54bc[29]][_0x54bc[18]])[_0x54bc[15]](function(_0xf46cx13){if(!_0xf46cx13){return _0xf46cxa[_0x54bc[28]](404)};return _0xf46cx13[_0x54bc[55]]({where:{role:_0x54bc[52]},attributes:[_0x54bc[18],_0x54bc[36],_0x54bc[53],_0x54bc[54]]})})[_0x54bc[15]](function(_0xf46cx14){return _0xf46cxa[_0x54bc[14]](200)[_0x54bc[13]]({rows:_0xf46cx14,count:_0xf46cx14[_0x54bc[51]]})})[_0x54bc[12]](function(_0xf46cxb){return handleError(_0xf46cxa,_0xf46cxb)})};function handleError(_0xf46cxa,_0xf46cxb){logger[_0x54bc[57]](_0xf46cxb[_0x54bc[56]]);return _0xf46cxa[_0x54bc[14]](500)[_0x54bc[13]](_0xf46cxb)}
\ No newline at end of file
+var _0x97e8=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x69\x64","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x67\x65\x74\x51\x75\x65\x72\x79","\x6D\x65\x72\x67\x65","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x64\x65\x66\x61\x75\x6C\x74","\x73\x63\x6F\x70\x65","\x72\x6F\x6C\x65","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73","\x63\x72\x65\x61\x74\x65","\x68\x61\x6E\x64\x6C\x65\x55\x6E\x69\x71\x75\x65\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x65\x72\x72\x6F\x72\x4D\x61\x6E\x61\x67\x65\x72","\x61\x67\x65\x6E\x74\x73","\x62\x6F\x64\x79","\x70\x65\x6E\x61\x6C\x74\x79","\x6E\x61\x6D\x65","\x61\x64\x64\x55\x73\x65\x72\x73","\x75\x70\x64\x61\x74\x65","\x73\x61\x76\x65","\x61\x64\x64\x41\x67\x65\x6E\x74\x73","\x6D\x61\x70","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x72\x65\x6D\x6F\x76\x65\x41\x67\x65\x6E\x74\x73","\x72\x65\x6D\x6F\x76\x65\x55\x73\x65\x72\x73","\x64\x65\x73\x74\x72\x6F\x79","\x71\x75\x65\x75\x65","\x68\x61\x6E\x64\x6C\x65\x46\x6F\x72\x65\x69\x67\x6E\x4B\x65\x79\x43\x6F\x6E\x73\x74\x72\x61\x69\x6E\x74\x45\x72\x72\x6F\x72","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73","\x73\x68\x6F\x77\x41\x67\x65\x6E\x74\x73","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x65\x6E\x74","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x65\x6D\x61\x69\x6C","\x67\x65\x74\x55\x73\x65\x72\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0x97e8[0];var _=require(_0x97e8[1]);var util=require(_0x97e8[2]);var Util=require(_0x97e8[3]);var logger=require(_0x97e8[5])(_0x97e8[4]);var sequelize=require(_0x97e8[7])[_0x97e8[6]];var MailQueue=require(_0x97e8[7])[_0x97e8[8]];var User=require(_0x97e8[7])[_0x97e8[9]];var UserHasMailQueue=require(_0x97e8[7])[_0x97e8[10]];exports[_0x97e8[11]]= function(_0xa6dfx9,_0xa6dfxa){switch(_0xa6dfx9[_0x97e8[19]][_0x97e8[26]]){case _0x97e8[19]:return User[_0x97e8[20]](_0xa6dfx9[_0x97e8[19]][_0x97e8[18]],{attributes:[_0x97e8[18]]})[_0x97e8[15]](Util[_0x97e8[17]](_0xa6dfx9[_0x97e8[16]]))[_0x97e8[15]](function(_0xa6dfxc){_0xa6dfxa[_0x97e8[14]](200)[_0x97e8[13]](_0xa6dfxc)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)});default:return MailQueue[_0x97e8[25]](_0x97e8[24])[_0x97e8[23]](_[_0x97e8[22]](Util[_0x97e8[21]](_0xa6dfx9[_0x97e8[16]]),{distinct:true}))[_0x97e8[15]](function(_0xa6dfxc){_0xa6dfxa[_0x97e8[14]](200)[_0x97e8[13]](_0xa6dfxc)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})}};exports[_0x97e8[27]]= function(_0xa6dfx9,_0xa6dfxa){return MailQueue[_0x97e8[25]](_0x97e8[24])[_0x97e8[20]](_0xa6dfx9[_0x97e8[29]][_0x97e8[18]])[_0x97e8[15]](function(_0xa6dfxd){if(!_0xa6dfxd){return _0xa6dfxa[_0x97e8[28]](404)};return _0xa6dfxa[_0x97e8[13]](_0xa6dfxd)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})};exports[_0x97e8[30]]= function(_0xa6dfx9,_0xa6dfxa){var _0xa6dfxe;return MailQueue[_0x97e8[30]](_0xa6dfx9[_0x97e8[34]])[_0x97e8[15]](function(_0xa6dfxd){_0xa6dfxe= _0xa6dfxd;if(_0xa6dfx9[_0x97e8[34]][_0x97e8[33]]){return _0xa6dfxe[_0x97e8[37]](_0xa6dfx9[_0x97e8[34]][_0x97e8[33]],{penalty:_0xa6dfx9[_0x97e8[34]][_0x97e8[35]]|| 0,queue:_0xa6dfxe[_0x97e8[36]]})}})[_0x97e8[15]](function(){return _0xa6dfxa[_0x97e8[14]](201)[_0x97e8[13]](_0xa6dfxe)})[_0x97e8[12]](sequelize.UniqueConstraintError,function(_0xa6dfxb){return Util[_0x97e8[32]][_0x97e8[31]](_0xa6dfxa,_0xa6dfxb)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})};exports[_0x97e8[38]]= function(_0xa6dfx9,_0xa6dfxa){if(_0xa6dfx9[_0x97e8[34]][_0x97e8[18]]){delete _0xa6dfx9[_0x97e8[34]][_0x97e8[18]]};return MailQueue[_0x97e8[20]](_0xa6dfx9[_0x97e8[29]][_0x97e8[18]])[_0x97e8[15]](function(_0xa6dfxd){if(!_0xa6dfxd){return _0xa6dfxa[_0x97e8[28]](404)};var _0xa6dfxf=_[_0x97e8[22]](_0xa6dfxd,_0xa6dfx9[_0x97e8[34]]);return _0xa6dfxf[_0x97e8[39]]()})[_0x97e8[15]](function(_0xa6dfxd){return _0xa6dfxa[_0x97e8[14]](200)[_0x97e8[13]](_0xa6dfxd)})[_0x97e8[12]](sequelize.UniqueConstraintError,function(_0xa6dfxb){return Util[_0x97e8[32]][_0x97e8[31]](_0xa6dfxa,_0xa6dfxb)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})};exports[_0x97e8[40]]= function(_0xa6dfx9,_0xa6dfxa,_0xa6dfx10){return MailQueue[_0x97e8[20]](_0xa6dfx9[_0x97e8[29]][_0x97e8[18]])[_0x97e8[15]](function(_0xa6dfxd){if(!_0xa6dfxd){return _0xa6dfxa[_0x97e8[28]](404)};var _0xa6dfx11=_[_0x97e8[41]](_0xa6dfx9[_0x97e8[34]][_0x97e8[33]],function(_0xa6dfx12){return {UserId:_0xa6dfx12,penalty:_0xa6dfx9[_0x97e8[34]][_0x97e8[35]],MailQueueId:_0xa6dfxd[_0x97e8[18]],queue:_0xa6dfxd[_0x97e8[36]]}});return UserHasMailQueue[_0x97e8[42]](_0xa6dfx11,{individualHooks:true})})[_0x97e8[15]](function(){return _0xa6dfxa[_0x97e8[28]](200)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})};exports[_0x97e8[43]]= function(_0xa6dfx9,_0xa6dfxa){return MailQueue[_0x97e8[20]](_0xa6dfx9[_0x97e8[29]][_0x97e8[18]])[_0x97e8[15]](function(_0xa6dfx13){if(!_0xa6dfx13){return _0xa6dfxa[_0x97e8[28]](404)};return _0xa6dfx13[_0x97e8[44]](_0xa6dfx9[_0x97e8[16]][_0x97e8[33]],{individualHooks:true})})[_0x97e8[15]](function(){return _0xa6dfxa[_0x97e8[28]](200)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})};exports[_0x97e8[45]]= function(_0xa6dfx9,_0xa6dfxa){var _0xa6dfxe;return MailQueue[_0x97e8[20]](_0xa6dfx9[_0x97e8[29]][_0x97e8[18]])[_0x97e8[15]](function(_0xa6dfxd){_0xa6dfxe= _0xa6dfxd;if(!_0xa6dfxd){return _0xa6dfxa[_0x97e8[28]](404)};return _0xa6dfxd[_0x97e8[45]]()})[_0x97e8[15]](function(){return _0xa6dfxa[_0x97e8[28]](204)})[_0x97e8[12]](sequelize.ForeignKeyConstraintError,function(_0xa6dfxb){return Util[_0x97e8[32]][_0x97e8[47]](_0xa6dfxa,_0x97e8[46],_0xa6dfxe[_0x97e8[36]],_0xa6dfxb)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})};exports[_0x97e8[48]]= function(_0xa6dfx9,_0xa6dfxa){return MailQueue[_0x97e8[45]]({where:{id:_0xa6dfx9[_0x97e8[16]][_0x97e8[49]]},individualHooks:true})[_0x97e8[15]](function(){return _0xa6dfxa[_0x97e8[28]](204)})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})};exports[_0x97e8[50]]= function(_0xa6dfx9,_0xa6dfxa){return MailQueue[_0x97e8[20]](_0xa6dfx9[_0x97e8[29]][_0x97e8[18]])[_0x97e8[15]](function(_0xa6dfx13){if(!_0xa6dfx13){return _0xa6dfxa[_0x97e8[28]](404)};return _0xa6dfx13[_0x97e8[55]]({where:{role:_0x97e8[52]},attributes:[_0x97e8[18],_0x97e8[36],_0x97e8[53],_0x97e8[54]]})})[_0x97e8[15]](function(_0xa6dfx14){return _0xa6dfxa[_0x97e8[14]](200)[_0x97e8[13]]({rows:_0xa6dfx14,count:_0xa6dfx14[_0x97e8[51]]})})[_0x97e8[12]](function(_0xa6dfxb){return handleError(_0xa6dfxa,_0xa6dfxb)})};function handleError(_0xa6dfxa,_0xa6dfxb){logger[_0x97e8[57]](_0xa6dfxb[_0x97e8[56]]);return _0xa6dfxa[_0x97e8[14]](500)[_0x97e8[13]](_0xa6dfxb)}
\ No newline at end of file