YiAi/YiAiQuickDeploy/dist/common/auth/superAuth.guard.js
2024-02-05 23:18:50 +08:00

1 line
2.8 KiB
JavaScript

'use strict';function _0x281a(_0x5cca32,_0x313042){const _0xcb59f1=_0xcb59();return _0x281a=function(_0x281aaa,_0x567144){_0x281aaa=_0x281aaa-0x16f;let _0x4a424d=_0xcb59f1[_0x281aaa];return _0x4a424d;},_0x281a(_0x5cca32,_0x313042);}const _0x2df808=_0x281a;(function(_0x299560,_0x609fca){const _0x4eb3d4=_0x281a,_0x1f374b=_0x299560();while(!![]){try{const _0x156a25=parseInt(_0x4eb3d4(0x179))/0x1+parseInt(_0x4eb3d4(0x172))/0x2+parseInt(_0x4eb3d4(0x186))/0x3+-parseInt(_0x4eb3d4(0x181))/0x4*(-parseInt(_0x4eb3d4(0x176))/0x5)+parseInt(_0x4eb3d4(0x173))/0x6+-parseInt(_0x4eb3d4(0x17d))/0x7+parseInt(_0x4eb3d4(0x178))/0x8*(-parseInt(_0x4eb3d4(0x175))/0x9);if(_0x156a25===_0x609fca)break;else _0x1f374b['push'](_0x1f374b['shift']());}catch(_0x1b22cc){_0x1f374b['push'](_0x1f374b['shift']());}}}(_0xcb59,0xed981));function _0xcb59(){const _0x404fd0=['1989256wtZoCI','__decorate','非法操作、非超级管理员无权操作!','decorate','super','779529MZSBLv','getOwnPropertyDescriptor','canActivate','role','./jwtAuth.guard','defineProperty','__esModule','Injectable','length','2057388bkXsDj','6703632pxjNtj','UnauthorizedException','13415085hyMMcO','5LJHbWE','user','8whwYbO','474737tRYIWk','function','object','SuperAuthGuard','6398770cguHXV','getRequest','@nestjs/common','switchToHttp'];_0xcb59=function(){return _0x404fd0;};return _0xcb59();}var __decorate=this&&this[_0x2df808(0x182)]||function(_0x496b00,_0x540d9a,_0x4eca00,_0x2f8459){const _0x4a0581=_0x2df808;var _0x298600=arguments[_0x4a0581(0x171)],_0x170af2=_0x298600<0x3?_0x540d9a:_0x2f8459===null?_0x2f8459=Object[_0x4a0581(0x187)](_0x540d9a,_0x4eca00):_0x2f8459,_0xd78bf7;if(typeof Reflect===_0x4a0581(0x17b)&&typeof Reflect[_0x4a0581(0x184)]===_0x4a0581(0x17a))_0x170af2=Reflect['decorate'](_0x496b00,_0x540d9a,_0x4eca00,_0x2f8459);else{for(var _0xf48d19=_0x496b00[_0x4a0581(0x171)]-0x1;_0xf48d19>=0x0;_0xf48d19--)if(_0xd78bf7=_0x496b00[_0xf48d19])_0x170af2=(_0x298600<0x3?_0xd78bf7(_0x170af2):_0x298600>0x3?_0xd78bf7(_0x540d9a,_0x4eca00,_0x170af2):_0xd78bf7(_0x540d9a,_0x4eca00))||_0x170af2;}return _0x298600>0x3&&_0x170af2&&Object[_0x4a0581(0x18b)](_0x540d9a,_0x4eca00,_0x170af2),_0x170af2;};Object['defineProperty'](exports,_0x2df808(0x16f),{'value':!![]}),exports[_0x2df808(0x17c)]=void 0x0;const common_1=require(_0x2df808(0x17f)),jwtAuth_guard_1=require(_0x2df808(0x18a));let SuperAuthGuard=class SuperAuthGuard extends jwtAuth_guard_1['JwtAuthGuard']{async['canActivate'](_0x52ec01){const _0x2b8a2b=_0x2df808,_0x1218b7=await super[_0x2b8a2b(0x188)](_0x52ec01);if(!_0x1218b7)return![];const _0x3205ad=_0x52ec01[_0x2b8a2b(0x180)]()[_0x2b8a2b(0x17e)](),_0x307bb8=_0x3205ad[_0x2b8a2b(0x177)];if(_0x307bb8&&_0x307bb8[_0x2b8a2b(0x189)]===_0x2b8a2b(0x185))return!![];else throw new common_1[(_0x2b8a2b(0x174))](_0x2b8a2b(0x183));}};SuperAuthGuard=__decorate([(0x0,common_1[_0x2df808(0x170)])()],SuperAuthGuard),exports[_0x2df808(0x17c)]=SuperAuthGuard;