YiAi/YiAiQuickDeploy/dist/common/auth/superAuth.guard.js
2024-07-02 16:38:26 +08:00

1 line
3.0 KiB
JavaScript

'use strict';function _0x42f6(_0x569d1e,_0x3f472e){const _0x46a57d=_0x46a5();return _0x42f6=function(_0x42f6d6,_0x332eac){_0x42f6d6=_0x42f6d6-0x19b;let _0xe925b6=_0x46a57d[_0x42f6d6];return _0xe925b6;},_0x42f6(_0x569d1e,_0x3f472e);}function _0x46a5(){const _0x342a97=['defineProperty','14uFBslD','10zDcOjt','6tEzQix','role','1090fFUgMq','getRequest','@nestjs/common','canActivate','getOwnPropertyDescriptor','13007423JmwaUN','非法操作、非超级管理员无权操作!','UnauthorizedException','super','__esModule','10248552pKtiaY','440392Kkyaps','switchToHttp','JwtAuthGuard','4563558aVggSh','./jwtAuth.guard','Injectable','1256484EHwTcj','function','object','user','405951GdBmYh','__decorate','SuperAuthGuard','8eYYQzw','length','38334dqTtNo'];_0x46a5=function(){return _0x342a97;};return _0x46a5();}const _0x46c344=_0x42f6;(function(_0xe23197,_0x3c70ab){const _0xc8c0c6=_0x42f6,_0x2d1e59=_0xe23197();while(!![]){try{const _0x4e7ff1=-parseInt(_0xc8c0c6(0x19d))/0x1*(-parseInt(_0xc8c0c6(0x1a6))/0x2)+-parseInt(_0xc8c0c6(0x1b9))/0x3*(parseInt(_0xc8c0c6(0x1a0))/0x4)+-parseInt(_0xc8c0c6(0x1a8))/0x5*(-parseInt(_0xc8c0c6(0x1a2))/0x6)+-parseInt(_0xc8c0c6(0x1a4))/0x7*(parseInt(_0xc8c0c6(0x1b3))/0x8)+-parseInt(_0xc8c0c6(0x1b6))/0x9+parseInt(_0xc8c0c6(0x1a5))/0xa*(-parseInt(_0xc8c0c6(0x1ad))/0xb)+parseInt(_0xc8c0c6(0x1b2))/0xc;if(_0x4e7ff1===_0x3c70ab)break;else _0x2d1e59['push'](_0x2d1e59['shift']());}catch(_0x2611b3){_0x2d1e59['push'](_0x2d1e59['shift']());}}}(_0x46a5,0xca000));var __decorate=this&&this[_0x46c344(0x19e)]||function(_0x11acf5,_0x1d142a,_0x5498cf,_0x10e034){const _0x31c94e=_0x46c344;var _0x247677=arguments[_0x31c94e(0x1a1)],_0x364cc1=_0x247677<0x3?_0x1d142a:_0x10e034===null?_0x10e034=Object[_0x31c94e(0x1ac)](_0x1d142a,_0x5498cf):_0x10e034,_0x4970d3;if(typeof Reflect===_0x31c94e(0x19b)&&typeof Reflect['decorate']===_0x31c94e(0x1ba))_0x364cc1=Reflect['decorate'](_0x11acf5,_0x1d142a,_0x5498cf,_0x10e034);else{for(var _0x3f5781=_0x11acf5[_0x31c94e(0x1a1)]-0x1;_0x3f5781>=0x0;_0x3f5781--)if(_0x4970d3=_0x11acf5[_0x3f5781])_0x364cc1=(_0x247677<0x3?_0x4970d3(_0x364cc1):_0x247677>0x3?_0x4970d3(_0x1d142a,_0x5498cf,_0x364cc1):_0x4970d3(_0x1d142a,_0x5498cf))||_0x364cc1;}return _0x247677>0x3&&_0x364cc1&&Object[_0x31c94e(0x1a3)](_0x1d142a,_0x5498cf,_0x364cc1),_0x364cc1;};Object[_0x46c344(0x1a3)](exports,_0x46c344(0x1b1),{'value':!![]}),exports[_0x46c344(0x19f)]=void 0x0;const common_1=require(_0x46c344(0x1aa)),jwtAuth_guard_1=require(_0x46c344(0x1b7));let SuperAuthGuard=class SuperAuthGuard extends jwtAuth_guard_1[_0x46c344(0x1b5)]{async[_0x46c344(0x1ab)](_0x288895){const _0x280de8=_0x46c344,_0x574ed1=await super[_0x280de8(0x1ab)](_0x288895);if(!_0x574ed1)return![];const _0x5824f3=_0x288895[_0x280de8(0x1b4)]()[_0x280de8(0x1a9)](),_0x4c2944=_0x5824f3[_0x280de8(0x19c)];if(_0x4c2944&&_0x4c2944[_0x280de8(0x1a7)]===_0x280de8(0x1b0))return!![];else throw new common_1[(_0x280de8(0x1af))](_0x280de8(0x1ae));}};SuperAuthGuard=__decorate([(0x0,common_1[_0x46c344(0x1b8)])()],SuperAuthGuard),exports['SuperAuthGuard']=SuperAuthGuard;