@profoundlogic/coderflow-server 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/coder-server.js +1 -1
- package/dist/config.js +1 -1
- package/dist/lib/agent-keepalive.js +1 -1
- package/dist/lib/agent-models.js +1 -1
- package/dist/lib/api-keys.js +1 -1
- package/dist/lib/apiKeys.js +1 -1
- package/dist/lib/app-server-ports.js +1 -1
- package/dist/lib/auto-judge.js +1 -1
- package/dist/lib/automation-service.js +1 -1
- package/dist/lib/basic-auth.js +1 -1
- package/dist/lib/bindings.js +1 -1
- package/dist/lib/build-history.js +1 -1
- package/dist/lib/build-output-service.js +1 -1
- package/dist/lib/build-scheduler.js +1 -1
- package/dist/lib/build-service.js +1 -1
- package/dist/lib/ca-certificates.js +1 -1
- package/dist/lib/claude-oauth-refresh.js +1 -1
- package/dist/lib/cli/build.js +1 -1
- package/dist/lib/cli/cleanup-users.js +1 -1
- package/dist/lib/cli/config-command.js +1 -1
- package/dist/lib/cli/config.js +1 -1
- package/dist/lib/cli/create-user.js +1 -1
- package/dist/lib/cli/grant-admin.js +1 -1
- package/dist/lib/cli/init.js +1 -1
- package/dist/lib/cli/jira.js +1 -1
- package/dist/lib/cli/license.js +1 -1
- package/dist/lib/cli/list-roles.js +1 -1
- package/dist/lib/cli/list-users.js +1 -1
- package/dist/lib/cli/server-manager.js +1 -1
- package/dist/lib/cli/set-password.js +1 -1
- package/dist/lib/config-migration.js +1 -1
- package/dist/lib/container-credential-sync.js +1 -1
- package/dist/lib/container-tokens.js +1 -1
- package/dist/lib/data-dir.js +1 -1
- package/dist/lib/deployment-history.js +1 -1
- package/dist/lib/deployment-service.js +1 -1
- package/dist/lib/docker-utils.js +1 -1
- package/dist/lib/email.js +1 -1
- package/dist/lib/emailTemplates.js +1 -1
- package/dist/lib/entitlement.js +1 -1
- package/dist/lib/external-connections.js +1 -1
- package/dist/lib/fetch-utils.js +1 -1
- package/dist/lib/git-commit-details-route.js +1 -1
- package/dist/lib/git-history-diff-guardrails.js +1 -1
- package/dist/lib/git-provider-service.js +1 -1
- package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
- package/dist/lib/git-provider-setup/index.js +1 -1
- package/dist/lib/git-provider-setup/setup-factory.js +1 -1
- package/dist/lib/git-provider-setup/setup-interface.js +1 -1
- package/dist/lib/git-providers/azure-devops-provider.js +1 -1
- package/dist/lib/git-providers/github-app-provider.js +1 -1
- package/dist/lib/git-providers/index.js +1 -1
- package/dist/lib/git-providers/provider-factory.js +1 -1
- package/dist/lib/git-providers/provider-interface.js +1 -1
- package/dist/lib/github-urls.js +1 -1
- package/dist/lib/group-objective-linking.js +1 -1
- package/dist/lib/ibmi-sync.js +1 -1
- package/dist/lib/jira-client.js +1 -1
- package/dist/lib/judge-blinding.js +1 -1
- package/dist/lib/logger.js +1 -1
- package/dist/lib/migration-to-scoped-rbac.js +1 -1
- package/dist/lib/model-fetcher.js +1 -1
- package/dist/lib/notifications.js +1 -1
- package/dist/lib/objective-context.js +1 -1
- package/dist/lib/oidc-auth.js +1 -1
- package/dist/lib/oidc-device-flow.js +1 -1
- package/dist/lib/passwordTokens.js +1 -1
- package/dist/lib/permission-resolver.js +1 -1
- package/dist/lib/pin-cascade.js +1 -1
- package/dist/lib/provider-accounts.js +1 -1
- package/dist/lib/provider-oauth.js +1 -1
- package/dist/lib/provider-profile.js +1 -1
- package/dist/lib/provider-token-refresh.js +1 -1
- package/dist/lib/rbac-user-state.js +1 -1
- package/dist/lib/request-url.js +1 -1
- package/dist/lib/rewind.js +1 -1
- package/dist/lib/role-definitions.js +1 -1
- package/dist/lib/roles.js +1 -1
- package/dist/lib/secrets.js +1 -1
- package/dist/lib/setup-repo-git-auth.js +1 -1
- package/dist/lib/state-capture.js +1 -1
- package/dist/lib/static-files.js +1 -1
- package/dist/lib/task-name-format.js +1 -1
- package/dist/lib/task-name-generator.js +1 -1
- package/dist/lib/task-source-metadata.js +1 -1
- package/dist/lib/teams.js +1 -1
- package/dist/lib/user-git-oauth.js +1 -1
- package/dist/lib/user-git-tokens.js +1 -1
- package/dist/lib/users.js +1 -1
- package/dist/middleware/requireAuth.js +1 -1
- package/dist/middleware/requireInit.js +1 -1
- package/dist/middleware/requirePermission.js +1 -1
- package/dist/package.json +1 -1
- package/dist/playwright.config.js +1 -1
- package/dist/playwright.task-terminal.config.js +1 -1
- package/dist/routes/apiKeys.js +1 -1
- package/dist/routes/auth-oidc.js +1 -1
- package/dist/routes/auth.js +1 -1
- package/dist/routes/automations.js +1 -1
- package/dist/routes/bindings.js +1 -1
- package/dist/routes/build.js +1 -1
- package/dist/routes/containers.js +1 -1
- package/dist/routes/deploy-task.js +1 -1
- package/dist/routes/environment-management.js +1 -1
- package/dist/routes/environments.js +1 -1
- package/dist/routes/external-skills.js +1 -1
- package/dist/routes/git-credentials.js +1 -1
- package/dist/routes/git-oauth.js +1 -1
- package/dist/routes/git-provider-setup.js +1 -1
- package/dist/routes/health.js +1 -1
- package/dist/routes/jira.js +1 -1
- package/dist/routes/objective-management.js +1 -1
- package/dist/routes/password.js +1 -1
- package/dist/routes/prompt.js +1 -1
- package/dist/routes/provider-auth.js +1 -1
- package/dist/routes/qa.js +1 -1
- package/dist/routes/roles.js +1 -1
- package/dist/routes/settings.js +1 -1
- package/dist/routes/skill-management.js +1 -1
- package/dist/routes/skills.js +1 -1
- package/dist/routes/tasks.js +1 -1
- package/dist/routes/teams.js +1 -1
- package/dist/routes/templates.js +1 -1
- package/dist/routes/test-task.js +1 -1
- package/dist/routes/test.js +1 -1
- package/dist/routes/users.js +1 -1
- package/dist/routes/visualizations.js +1 -1
- package/dist/scripts/create-user.js +1 -1
- package/dist/scripts/migrate-config-to-data-dir.js +1 -1
- package/dist/start.js +1 -1
- package/dist/web-ui/public/activity-detail-modal.js +1 -1
- package/dist/web-ui/public/activity-feed.js +1 -1
- package/dist/web-ui/public/activity-formatters.js +1 -1
- package/dist/web-ui/public/agent-event-parser.js +1 -1
- package/dist/web-ui/public/app.js +1 -1
- package/dist/web-ui/public/approve-dialog.js +1 -1
- package/dist/web-ui/public/automation-links.js +1 -1
- package/dist/web-ui/public/automation-schedule.js +1 -1
- package/dist/web-ui/public/comments-widget.js +1 -1
- package/dist/web-ui/public/diff-utils.js +1 -1
- package/dist/web-ui/public/environments.js +1 -1
- package/dist/web-ui/public/feedback-widget.js +1 -1
- package/dist/web-ui/public/file-selection-tree.js +1 -1
- package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
- package/dist/web-ui/public/git-history.js +1 -1
- package/dist/web-ui/public/git-status.js +1 -1
- package/dist/web-ui/public/ibmi-file-filter.js +1 -1
- package/dist/web-ui/public/index.js +1 -1
- package/dist/web-ui/public/login.js +1 -1
- package/dist/web-ui/public/markdown-editor.js +1 -1
- package/dist/web-ui/public/markdown-file-editor.js +1 -1
- package/dist/web-ui/public/modal-maximize.js +1 -1
- package/dist/web-ui/public/notifications.js +1 -1
- package/dist/web-ui/public/permissions.js +1 -1
- package/dist/web-ui/public/pr-dialog.js +1 -1
- package/dist/web-ui/public/roles.js +1 -1
- package/dist/web-ui/public/server-health.js +1 -1
- package/dist/web-ui/public/settings.js +1 -1
- package/dist/web-ui/public/setup-password.js +1 -1
- package/dist/web-ui/public/skills.js +1 -1
- package/dist/web-ui/public/sse-client.js +1 -1
- package/dist/web-ui/public/sse-shared-worker.js +1 -1
- package/dist/web-ui/public/task.js +1 -1
- package/dist/web-ui/public/teams.js +1 -1
- package/dist/web-ui/public/terminal.js +1 -1
- package/dist/web-ui/public/theme.js +1 -1
- package/dist/web-ui/public/users.js +1 -1
- package/dist/web-ui/public/variant-grouping.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xe127c7,_0x4c87fe){const _0x1c45b8={_0x1660f3:0x162,_0x56adee:0x1a9,_0x3ee5d4:0x1ac,_0x348276:0x180,_0x2d4561:0x168,_0xa50da5:0x138,_0x4d10d2:0x170,_0x589425:0x165,_0xf94d78:0x237,_0x259820:0x145,_0x178500:0x153,_0x11c5ab:0x14e,_0x1d4cba:0x180,_0xcdf894:0x14d,_0x1f7039:0x153,_0x5331b9:0x156,_0x2f910e:0x134,_0x209055:0x141,_0x5155b8:0x198,_0x72f420:0x23a,_0x239698:0x27a,_0x51e5f9:0x233},_0x373074={_0x41200f:0x37},_0x1a6ba4=_0xe127c7();function _0x4c3586(_0x1594e7,_0x4eabdb,_0x4016ca,_0x30815c){return _0x2b2b(_0x4eabdb-_0x373074._0x41200f,_0x30815c);}function _0x5de019(_0x2e876f,_0x4d6b49,_0x52b301,_0x3efebb){return _0x2b2b(_0x3efebb- -0x350,_0x2e876f);}while(!![]){try{const _0x524aa1=-parseInt(_0x5de019(-_0x1c45b8._0x1660f3,-_0x1c45b8._0x56adee,-_0x1c45b8._0x3ee5d4,-_0x1c45b8._0x348276))/(0x17ad+-0x26a+0x3*-0x716)*(parseInt(_0x5de019(-_0x1c45b8._0x2d4561,-_0x1c45b8._0xa50da5,-_0x1c45b8._0x4d10d2,-_0x1c45b8._0x589425))/(-0x2*0xb5a+-0x1d2f+0x33e5*0x1))+parseInt(_0x4c3586(0x22a,0x240,_0x1c45b8._0xf94d78,0x223))/(-0xcb4+-0x1c2a+0x28e1)+parseInt(_0x5de019(-_0x1c45b8._0x259820,-_0x1c45b8._0x178500,-_0x1c45b8._0x11c5ab,-0x123))/(0xbf2+-0x1*-0x16f+-0xd5d)*(-parseInt(_0x5de019(-_0x1c45b8._0x1d4cba,-_0x1c45b8._0xcdf894,-_0x1c45b8._0x1f7039,-0x168))/(0xd4c+-0x1450+0x709))+-parseInt(_0x5de019(-_0x1c45b8._0x5331b9,-_0x1c45b8._0x2f910e,-0x146,-_0x1c45b8._0x209055))/(0x1b01+-0x347+-0x1*0x17b4)+parseInt(_0x5de019(-0x177,-0x18c,-_0x1c45b8._0x5155b8,-0x16f))/(-0x3ab*0x2+-0x31e+0xa7b)+parseInt(_0x4c3586(0x21c,_0x1c45b8._0x72f420,0x230,0x264))/(-0x256+0x3*0x729+-0x7*0x2bb)+parseInt(_0x4c3586(_0x1c45b8._0x239698,0x252,0x273,_0x1c45b8._0x51e5f9))/(0x1bbe+0x162c+0x31e1*-0x1);if(_0x524aa1===_0x4c87fe)break;else _0x1a6ba4['push'](_0x1a6ba4['shift']());}catch(_0x10201e){_0x1a6ba4['push'](_0x1a6ba4['shift']());}}}(_0x15c3,-0x2182*-0x35+0x9a571+0x1*-0xba415));function _0x2b2b(_0x521c4f,_0x27cbaf){_0x521c4f=_0x521c4f-(0xf7c+0x25a1+-0x334e);const _0x12c7c8=_0x15c3();let _0x1b4d66=_0x12c7c8[_0x521c4f];if(_0x2b2b['YeCUcV']===undefined){var _0x3e2dbd=function(_0x515407){const _0x29fdbc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xcd3a4a='',_0xdc76bc='';for(let _0x2038d6=-0x1c85*0x1+-0x649+0x36*0xa5,_0xbee857,_0x54f794,_0x2742cd=-0x1638+-0x17*0x3b+0x1b85*0x1;_0x54f794=_0x515407['charAt'](_0x2742cd++);~_0x54f794&&(_0xbee857=_0x2038d6%(0x143*-0x19+0x767+0x1828)?_0xbee857*(-0x262f+0x1*-0xb+0x267a)+_0x54f794:_0x54f794,_0x2038d6++%(0xcd6*-0x1+0x8da+-0x1*-0x400))?_0xcd3a4a+=String['fromCharCode'](-0x63*-0x51+-0x22*0x107+0x1f*0x26&_0xbee857>>(-(-0x2*0x137b+-0x1626+0x3d1e)*_0x2038d6&-0x1d4d+-0xe1*0x22+0x3b35)):0x2*0x3a7+0x804+0x35*-0x4a){_0x54f794=_0x29fdbc['indexOf'](_0x54f794);}for(let _0x5a730f=0x1a7f+0xf31+-0x29b0,_0x5292a0=_0xcd3a4a['length'];_0x5a730f<_0x5292a0;_0x5a730f++){_0xdc76bc+='%'+('00'+_0xcd3a4a['charCodeAt'](_0x5a730f)['toString'](-0x1*0x248e+-0x176+0x985*0x4))['slice'](-(-0x1bba+0x2317*-0x1+-0x3ed3*-0x1));}return decodeURIComponent(_0xdc76bc);};_0x2b2b['KfSdka']=_0x3e2dbd,_0x2b2b['AhijQx']={},_0x2b2b['YeCUcV']=!![];}const _0x20b09f=_0x12c7c8[-0x5*0x5db+0x4fa+0x184d],_0x1841bf=_0x521c4f+_0x20b09f,_0x410ce7=_0x2b2b['AhijQx'][_0x1841bf];return!_0x410ce7?(_0x1b4d66=_0x2b2b['KfSdka'](_0x1b4d66),_0x2b2b['AhijQx'][_0x1841bf]=_0x1b4d66):_0x1b4d66=_0x410ce7,_0x1b4d66;}import{logger}from'../lib/logger.js';function _0x15c3(){const _0x2bb4db=['DvLJse4','rK5TDLi','BwvZC2fNzq','zw52','DgvKvMLH','q2LJruy','iefqssbRzxK','C3rHDhvZ','mtaYndGXmZH6CMHmq3G','s0fzA0W','C3vIC3rYAw5N','AxnZAw9UignOzq','yxv0AgvUDgLJyq','lI4VBgLIl3bLCG','v3nKCKO','sw50zxjUywWGCW','DgLVBIbYzxf1Aq','BwLZC2LVBI1Yzq','tK9erv9ftLy','C25Psvm','DgvZDc11C2vY','DMvYAwz5igfKBq','se5gvNi','zw1HAwW','zcbYzxf1zxn0','CYb0AgLZihjLCW','mtiYmJqZmLDxsfbvra','AgvHzgvYCW','mJnUswrUAK4','zxjYB3i','DgHLBNrPy2f0zq','rKDHtwq','shjUsMm','yxbPx2TLEq','svLMDgq','DxnLCKLK','AMLjEfi','zcbVCIbLEhbPCG','Cvn6CfC','CwXpz0W','r25cBK4','C2vZC2LVBG','reLtqujmrv9bvq','vgHLihbYB3zPza','Aw4GCgvYBwLZCW','mJa5nduXowXrCerZwa','zvn5qMW','wNvPC3q','zwqGqvbjigTLEq','qvbjigTLEsbHDq','v1P5EKO','AhjNvxy','mtbpq0HHr0y','BMfTzq','D2fYBG','mZyZmJrcAw5fCNC','sw52ywXPzcbbua','vgriA2m','wevsCwm','qxv0AgvUDgLJyq','sMn3wKC','ssbRzxKGyxr0zq','DgvZDa','AvzzDNu','zxj2zxiGzxjYBW','zgvIDwC','C29SDMvYlMPZ','zsbSB2DNzwqGAq','ww91ig11C3qGyG','Bwv0Ag9K','DxnLCG','Cgf0Aa','BguUy29T','q3LYAem','yxv0Ag9YAxPHDa','ANnVBG','vgvZDcbvC2vY','rMfPBgvKihrVia','yxjzsNC','ndq5otKYwNn5twnU','s3rWyMi','twjzwMu','CMvXDwLYzwq','BIb0BYbHy2nLCW','B3vYy2u','mZi3mti5wfjIugrN','ssbRzxK','C3nOx3vZzxjUyq','CMvK','vw5HDxrOB3jPEG','rM53Afm','mtuWmJaZnhjptu1bwa','Dhj1zq','BIbVCIbWCM92Aq','DxnLCM5HBwu'];_0x15c3=function(){return _0x2bb4db;};return _0x15c3();}import{validateApiKey}from'../lib/apiKeys.js';import{findUserById}from'../lib/users.js';export async function requireAuth(_0x5693c7,_0x219140,_0x4cb3dd){const _0x146ee5={_0x280bae:0x55f,_0x3eb438:0x5b3,_0x1283b6:0x598,_0x136972:0x5b2,_0x1c4d69:0x198,_0x5c4cd2:0x183,_0x5ec692:0x1c7,_0x3a2ffa:0x14e,_0x899967:0x177,_0x563f4e:0x173,_0x544fab:0x184,_0x266e46:0x197,_0x55b587:0x1bd,_0x5f0252:0x19b,_0xbc52e5:0x5c0,_0x1d0cfb:0x5bd,_0x41e4de:0x5a6,_0x99d392:0x5c5,_0x583386:0x59c,_0x40d892:0x176,_0xbd6fca:0x17d,_0x3401ab:0x594,_0x529194:0x5a1,_0x239fdf:0x57d,_0x2db3b7:0x56e,_0x1adf15:0x135,_0x15471e:0x148,_0x1df961:0x5c0,_0x40f3c1:0x5bf,_0x2b00bd:0x5dd,_0x2344a2:0x159,_0x34d55c:0x170,_0x4f8e7b:0x16c,_0x4f2377:0x1b4,_0x1d1475:0x185,_0x414566:0x16f,_0x5a329a:0x1b6,_0x549f0a:0x185,_0x18e0ab:0x1ac,_0x42f38f:0x5f3,_0x5e0a42:0x5dc,_0x25c820:0x1ab,_0x1b5c0a:0x18a,_0x2d7124:0x17f,_0x4518a8:0x143,_0x2b57ca:0x55e,_0x1af7e7:0x586,_0x2276aa:0x58b,_0x46c8bf:0x566,_0x2735a6:0x58f,_0x462ba4:0x573,_0x28d595:0x56e,_0x4274ae:0x5ba,_0x511576:0x5dd,_0x15f71a:0x5c3,_0x1c6545:0x177,_0x1eac47:0x5ea,_0x176b6e:0x598,_0x1c6429:0x17e,_0x33457c:0x153,_0x5b50f3:0x167,_0x4388b1:0x142,_0x5603dd:0x150,_0x4e899f:0x187,_0x548d39:0x1a7,_0xf2f707:0x15a,_0x374478:0x120,_0x28295c:0x5a2,_0x22c3ad:0x1b4,_0x4e98db:0x19a,_0x3b5eac:0x16a,_0x339744:0x14e,_0x42bdb8:0x168,_0x455a5e:0x59e,_0x5422f2:0x123,_0x1c9c82:0x1a1,_0x586338:0x186,_0x5c90de:0x18b,_0x1b31d4:0x5ae,_0x405208:0x5b9,_0x4c2066:0x17c,_0x4761c1:0x16f,_0x9e32bf:0x5a9,_0x597d70:0x5a8,_0xdea4d7:0x5d1,_0x5e8029:0x587,_0x230217:0x5b5,_0x50244a:0x132,_0x51dbf7:0x162,_0x285d62:0x19d,_0x26ff45:0x169,_0xcc25cd:0x164,_0xc7c5f1:0x150,_0x2f8c93:0x5ca,_0x333279:0x5a1,_0x53fbd4:0x5ac,_0x21b383:0x5c6,_0x416846:0x5c1,_0x18abca:0x141,_0x20c890:0x14b,_0x1c2bfb:0x161,_0x352d21:0x157,_0xe32a6e:0x17c,_0x5914a8:0x196,_0x2f067d:0x15c,_0x25d9f7:0x16f,_0x396e02:0x15b,_0x5edb52:0x14c,_0x5071a4:0x181,_0x5726c8:0x159,_0x75b841:0x166,_0x25f4dc:0x17c,_0x2d922b:0x187,_0x1d3b05:0x180,_0x59c02f:0x17d,_0x46d0f4:0x16d,_0x4b2fef:0x130,_0x31a51c:0x184,_0x3ec513:0x172,_0x4c9c97:0x57b,_0xa4c9c9:0x580,_0x182ba7:0x18d,_0x5dcb2a:0x5d8,_0x3dd2ce:0x58d,_0x1b1507:0x592,_0xd19f8b:0x595,_0x2bcb1f:0x16e,_0x1a8359:0x56b,_0xd6a0cd:0x58c,_0x292bf0:0x5a5,_0x33bede:0x14d,_0xc1f7f5:0x590,_0x12fded:0x59b,_0x38806a:0x56e,_0x44ea5c:0x574,_0x21f055:0x58a,_0x2759a6:0x5ad,_0x3c83ad:0x58e,_0x490a29:0x58a,_0x1153e5:0x563,_0x1cc1a8:0x12c,_0x40a710:0x147,_0xd27f5c:0x151,_0x3ac1c9:0x5d7,_0x4231db:0x5d3,_0x3fb0f9:0x167,_0x25721a:0x17a,_0x520488:0x5b9,_0x569c29:0x15d,_0x2dd61b:0x156,_0x2f899e:0x15d,_0x1d4317:0x58a,_0x529683:0x193,_0x4abf52:0x196,_0x4b6efd:0x1b7,_0x29e0dd:0x17a,_0x54ac52:0x58a,_0x351654:0x590,_0x444c80:0x598,_0x19e98b:0x598,_0x4512a9:0x16e,_0xaac059:0x169,_0x279e57:0x5ae,_0x388e80:0x15d,_0xdc85a3:0x152,_0x420cc3:0x178,_0x2d8029:0x18c,_0x41ef85:0x58d,_0x2944a8:0x5c3,_0x4325c5:0x13c,_0x5039cb:0x5c0,_0x4343dc:0x598,_0x43d9b3:0x607,_0x4a9ff1:0x5dc,_0x134a47:0x163,_0x46e4a0:0x189,_0x4e7e66:0x5cf,_0x7cf729:0x5ea,_0xf8e3f3:0x5b8,_0x417be3:0x5b2},_0x7f5560={_0x47aad7:0x3b3},_0xfeace8={'FnwhS':_0x5bfb7e(_0x146ee5._0x280bae,0x588,0x570,0x589),'HrnJc':_0x5bfb7e(_0x146ee5._0x3eb438,_0x146ee5._0x1283b6,0x5c0,0x580)+_0x5bfb7e(_0x146ee5._0x136972,0x585,0x57b,0x587)+_0x182e2f(_0x146ee5._0x1c4d69,_0x146ee5._0x5c4cd2,0x19f,_0x146ee5._0x5ec692),'hrgUv':function(_0x590f43){return _0x590f43();},'FNmvR':function(_0x246700,_0x374049){return _0x246700===_0x374049;},'GnBnN':_0x182e2f(0x18e,_0x146ee5._0x3a2ffa,0x166,0x162),'FGaMd':_0x182e2f(_0x146ee5._0x899967,_0x146ee5._0x563f4e,_0x146ee5._0x544fab,0x186),'IYftd':_0x182e2f(_0x146ee5._0x266e46,_0x146ee5._0x55b587,_0x146ee5._0x5f0252,_0x146ee5._0x544fab),'SvzDF':_0x5bfb7e(_0x146ee5._0xbc52e5,0x5b3,0x5ac,_0x146ee5._0x1d0cfb),'uYcHN':function(_0x2f62b9){return _0x2f62b9();},'XXrBl':'Bearer\x20','CyrhC':function(_0x1c7bdf,_0x58530e){return _0x1c7bdf===_0x58530e;},'sniIS':'xrggb','qSzpW':_0x5bfb7e(0x5fa,0x5cb,0x5b4,_0x146ee5._0x41e4de),'JcwZG':function(_0x5d2456,_0xe5b87f){return _0x5d2456(_0xe5b87f);},'WZyzJ':_0x5bfb7e(_0x146ee5._0x99d392,0x59f,0x586,_0x146ee5._0x583386)+_0x182e2f(_0x146ee5._0x40d892,_0x146ee5._0xbd6fca,0x165,0x147)+'mpt','VZWIY':function(_0xc16c29,_0x229e64){return _0xc16c29(_0x229e64);},'cxppl':_0x5bfb7e(_0x146ee5._0x3401ab,0x590,0x59a,_0x146ee5._0x529194),'qlOgL':'Session\x20au'+_0x5bfb7e(_0x146ee5._0x239fdf,0x585,_0x146ee5._0x2db3b7,0x59a)+'d\x20request','HNFVr':_0x182e2f(_0x146ee5._0x1adf15,0x165,0x163,_0x146ee5._0x15471e)+'tion\x20requi'+_0x5bfb7e(_0x146ee5._0x1df961,_0x146ee5._0x40f3c1,0x5cc,_0x146ee5._0x2b00bd),'KAYkL':_0x182e2f(_0x146ee5._0x2344a2,_0x146ee5._0x34d55c,_0x146ee5._0x4f8e7b,0x165)+'e\x20logged\x20i'+_0x182e2f(_0x146ee5._0x4f2377,0x15a,_0x146ee5._0x1d1475,_0x146ee5._0x414566)+'de\x20a\x20valid'+_0x182e2f(_0x146ee5._0x5a329a,0x1a9,0x18d,0x17f)};function _0x182e2f(_0x3b48cd,_0x42f8e2,_0x5a3ba6,_0x13586e){return _0x2b2b(_0x5a3ba6- -0x8c,_0x42f8e2);}if(_0xfeace8[_0x182e2f(_0x146ee5._0x549f0a,_0x146ee5._0x18e0ab,0x188,0x18d)](process['env'][_0x5bfb7e(_0x146ee5._0x42f38f,0x5d8,_0x146ee5._0x5e0a42,0x5bc)],_0xfeace8['GnBnN'])||process[_0x182e2f(0x1b2,_0x146ee5._0x25c820,_0x146ee5._0x1b5c0a,_0x146ee5._0x2d7124)][_0x182e2f(_0x146ee5._0x4518a8,0x133,0x152,0x15e)+'TH']===_0xfeace8[_0x5bfb7e(_0x146ee5._0x2b57ca,_0x146ee5._0x1af7e7,0x57f,0x59d)]){const _0x10bb16={};return _0x10bb16['id']=_0xfeace8[_0x5bfb7e(_0x146ee5._0x280bae,0x589,_0x146ee5._0x2276aa,_0x146ee5._0x46c8bf)],_0x10bb16['username']=_0xfeace8[_0x5bfb7e(0x593,_0x146ee5._0x2735a6,_0x146ee5._0x462ba4,_0x146ee5._0x28d595)],_0x10bb16[_0x5bfb7e(_0x146ee5._0x4274ae,_0x146ee5._0x511576,0x5c2,0x5e5)]='test@examp'+_0x5bfb7e(0x583,0x5af,_0x146ee5._0x15f71a,0x599),_0x10bb16[_0x182e2f(0x156,0x149,0x15d,_0x146ee5._0x1c6545)]=_0xfeace8['SvzDF'],_0x10bb16[_0x5bfb7e(_0x146ee5._0x1eac47,0x5be,_0x146ee5._0x176b6e,0x5e6)+'me']=_0x182e2f(0x14f,_0x146ee5._0x1c6429,0x166,_0x146ee5._0x33457c),_0x5693c7['user']=_0x10bb16,_0x5693c7['authentica'+'tedVia']=_0xfeace8[_0x182e2f(_0x146ee5._0x5b50f3,_0x146ee5._0x4388b1,_0x146ee5._0x5603dd,0x171)],_0xfeace8[_0x182e2f(0x1ab,0x172,_0x146ee5._0x4e899f,_0x146ee5._0x548d39)](_0x4cb3dd);}const _0xec11c7=_0x5693c7[_0x182e2f(0x143,_0x146ee5._0xf2f707,0x143,_0x146ee5._0x374478)][_0x5bfb7e(0x5c9,0x5b1,_0x146ee5._0x28295c,0x5d9)+'ion'];if(_0xec11c7&&_0xec11c7['startsWith'](_0xfeace8['XXrBl'])){if(_0xfeace8[_0x182e2f(0x145,0x16c,0x171,0x145)](_0xfeace8[_0x182e2f(_0x146ee5._0x22c3ad,0x177,_0x146ee5._0x4e98db,0x1b0)],_0xfeace8[_0x182e2f(0x122,_0x146ee5._0x3b5eac,_0x146ee5._0x339744,_0x146ee5._0x42bdb8)])){_0x161c0b['user']=_0x115e20,_0x2fa329['authentica'+_0x5bfb7e(_0x146ee5._0x455a5e,0x5ca,0x5c6,0x5db)]=_0xfeace8['FnwhS'];const _0x5cb9e1={};return _0x5cb9e1[_0x182e2f(_0x146ee5._0x5422f2,0x179,0x14b,0x158)]=_0x5a327f['id'],_0x5cb9e1[_0x182e2f(_0x146ee5._0x1c9c82,0x191,_0x146ee5._0x586338,_0x146ee5._0x5c90de)]=_0x3b1e6b['username'],_0x5cb9e1[_0x5bfb7e(0x5d0,_0x146ee5._0x1b31d4,_0x146ee5._0x405208,0x586)]=_0x20705a[_0x182e2f(0x14b,_0x146ee5._0x4c2066,_0x146ee5._0x4761c1,0x15a)],_0x181d2c[_0x5bfb7e(_0x146ee5._0x9e32bf,_0x146ee5._0x597d70,_0x146ee5._0xdea4d7,0x59d)](_0xfeace8[_0x5bfb7e(0x586,_0x146ee5._0x5e8029,0x56c,_0x146ee5._0x230217)],_0x5cb9e1),_0xfeace8[_0x182e2f(0x159,0x12d,0x15b,_0x146ee5._0x50244a)](_0x200546);}else{const _0x417ac7=_0xec11c7[_0x182e2f(0x18a,_0x146ee5._0x51dbf7,0x191,_0x146ee5._0x285d62)](-0xc2d+-0x1*-0xc92+-0x5e),_0x64c732=await _0xfeace8[_0x182e2f(0x155,_0x146ee5._0x26ff45,_0x146ee5._0xcc25cd,0x141)](validateApiKey,_0x417ac7);if(_0x64c732){_0x5693c7[_0x182e2f(0x178,0x19b,0x16e,_0x146ee5._0xc7c5f1)]=_0x64c732,_0x5693c7[_0x5bfb7e(0x5f9,0x5d2,0x5e0,0x5e6)+_0x5bfb7e(0x5ae,_0x146ee5._0x2f8c93,_0x146ee5._0x333279,_0x146ee5._0x53fbd4)]=_0xfeace8[_0x5bfb7e(_0x146ee5._0x21b383,_0x146ee5._0x416846,0x5be,0x5d3)];const _0x4dc74f={};return _0x4dc74f[_0x182e2f(_0x146ee5._0x18abca,0x141,_0x146ee5._0x20c890,_0x146ee5._0x1c2bfb)]=_0x64c732['id'],_0x4dc74f[_0x182e2f(0x1a6,_0x146ee5._0x4f2377,0x186,_0x146ee5._0x352d21)]=_0x64c732[_0x182e2f(_0x146ee5._0xe32a6e,_0x146ee5._0x5914a8,0x186,_0x146ee5._0x2f067d)],_0x4dc74f[_0x182e2f(0x16c,_0x146ee5._0x266e46,_0x146ee5._0x25d9f7,_0x146ee5._0x396e02)]=_0x5693c7['path'],logger[_0x182e2f(0x162,0x194,_0x146ee5._0x26ff45,_0x146ee5._0x5edb52)](_0x182e2f(0x15f,_0x146ee5._0x5071a4,_0x146ee5._0x5726c8,_0x146ee5._0x75b841)+'thenticate'+_0x182e2f(_0x146ee5._0x25f4dc,_0x146ee5._0x586338,0x19f,0x180),_0x4dc74f),_0xfeace8[_0x182e2f(0x18d,_0x146ee5._0x5c90de,_0x146ee5._0x2d922b,0x161)](_0x4cb3dd);}const _0x2c391a={};_0x2c391a['path']=_0x5693c7['path'],_0x2c391a[_0x182e2f(_0x146ee5._0x1d3b05,0x145,0x16d,0x167)]=_0x5693c7[_0x182e2f(_0x146ee5._0x59c02f,0x163,_0x146ee5._0x46d0f4,_0x146ee5._0x26ff45)],logger[_0x5bfb7e(0x5bb,0x59d,0x59f,0x5be)](_0xfeace8[_0x182e2f(_0x146ee5._0x4b2fef,_0x146ee5._0x31a51c,0x15a,_0x146ee5._0x3ec513)],_0x2c391a);const _0x11e6a8={};return _0x11e6a8[_0x5bfb7e(0x5a9,0x584,0x567,_0x146ee5._0x4c9c97)]=_0x5bfb7e(0x5c7,0x59f,0x589,_0x146ee5._0xa4c9c9)+_0x182e2f(0x171,0x196,0x17e,_0x146ee5._0x182ba7),_0x11e6a8[_0x5bfb7e(0x5d4,0x5c8,_0x146ee5._0x5dcb2a,_0x146ee5._0x230217)]=_0x5bfb7e(_0x146ee5._0x3dd2ce,_0x146ee5._0x1b1507,0x5b4,_0x146ee5._0xd19f8b)+_0x182e2f(_0x146ee5._0x5071a4,0x151,0x158,_0x146ee5._0x2bcb1f)+'\x20is\x20invali'+_0x5bfb7e(_0x146ee5._0x1a8359,_0x146ee5._0xd6a0cd,_0x146ee5._0x292bf0,0x5b0)+'ed',_0x219140[_0x182e2f(_0x146ee5._0x75b841,0x18c,0x18e,0x17a)](0x64+0x259*-0xa+0x1*0x18a7)[_0x182e2f(0x156,_0x146ee5._0x33bede,0x173,0x15b)](_0x11e6a8);}}function _0x5bfb7e(_0xa8e1a3,_0x4cb876,_0x48c289,_0x106135){return _0x2b2b(_0x4cb876-_0x7f5560._0x47aad7,_0x106135);}if(_0x5693c7[_0x5bfb7e(0x58c,_0x146ee5._0xc1f7f5,_0x146ee5._0x12fded,0x565)]?.['userId']){const _0x48682b=await _0xfeace8['VZWIY'](findUserById,_0x5693c7[_0x5bfb7e(_0x146ee5._0x38806a,_0x146ee5._0xc1f7f5,0x577,0x59b)][_0x5bfb7e(_0x146ee5._0x44ea5c,_0x146ee5._0x21f055,0x577,0x567)]);_0x5693c7[_0x5bfb7e(0x5d8,_0x146ee5._0x2759a6,0x5b4,_0x146ee5._0x3c83ad)]={'id':_0x5693c7[_0x5bfb7e(_0x146ee5._0x490a29,0x590,_0x146ee5._0x1153e5,0x5aa)][_0x182e2f(0x146,0x178,_0x146ee5._0x20c890,0x122)],'username':_0x5693c7[_0x182e2f(_0x146ee5._0x1cc1a8,_0x146ee5._0x40a710,_0x146ee5._0xd27f5c,_0x146ee5._0x40d892)][_0x5bfb7e(_0x146ee5._0x3ac1c9,0x5c5,0x5c7,_0x146ee5._0x4231db)],'email':_0x5693c7[_0x182e2f(_0x146ee5._0x3fb0f9,0x176,0x151,_0x146ee5._0x25721a)][_0x5bfb7e(0x5f0,0x5dd,0x5f7,_0x146ee5._0x520488)],'name':_0x5693c7['session'][_0x182e2f(_0x146ee5._0x569c29,_0x146ee5._0x2dd61b,_0x146ee5._0x2f899e,0x179)],'ssh_username':_0x5693c7[_0x5bfb7e(_0x146ee5._0x1d4317,_0x146ee5._0xc1f7f5,0x5a6,_0x146ee5._0x136972)][_0x182e2f(0x1a3,0x17b,0x17f,0x17e)+'me']},_0x5693c7[_0x182e2f(0x186,0x175,_0x146ee5._0x529683,0x1af)+_0x182e2f(_0x146ee5._0x4abf52,_0x146ee5._0x4b6efd,0x18b,_0x146ee5._0x29e0dd)]=_0xfeace8['cxppl'];const _0xdd14fa={};return _0xdd14fa[_0x5bfb7e(0x568,_0x146ee5._0x1d4317,0x59c,_0x146ee5._0x41e4de)]=_0x5693c7['session'][_0x5bfb7e(0x5a0,_0x146ee5._0x490a29,_0x146ee5._0x54ac52,0x56a)],_0xdd14fa[_0x182e2f(0x18e,0x1a9,_0x146ee5._0x586338,0x167)]=_0x5693c7[_0x5bfb7e(0x56c,_0x146ee5._0x351654,_0x146ee5._0x444c80,_0x146ee5._0x19e98b)]['username'],_0xdd14fa['path']=_0x5693c7['path'],logger['debug'](_0xfeace8[_0x182e2f(0x152,_0x146ee5._0x4512a9,0x14f,_0x146ee5._0xaac059)],_0xdd14fa),_0xfeace8[_0x5bfb7e(0x58f,0x59a,_0x146ee5._0x279e57,0x58f)](_0x4cb3dd);}const _0x1705d6={};_0x1705d6['path']=_0x5693c7[_0x182e2f(0x14a,_0x146ee5._0x388e80,0x16f,_0x146ee5._0xdc85a3)],_0x1705d6[_0x182e2f(_0x146ee5._0x420cc3,_0x146ee5._0x2d8029,_0x146ee5._0x46d0f4,0x187)]=_0x5693c7[_0x5bfb7e(0x5d4,0x5ac,_0x146ee5._0x41ef85,_0x146ee5._0x2944a8)],_0x1705d6['ip']=_0x5693c7['ip'],logger[_0x182e2f(_0x146ee5._0x4325c5,0x197,_0x146ee5._0x26ff45,0x173)](_0x5bfb7e(0x5d9,_0x146ee5._0x5039cb,_0x146ee5._0x5039cb,_0x146ee5._0x4343dc)+'ed\x20access\x20'+'attempt',_0x1705d6);const _0x3ae007={};return _0x3ae007['error']=_0xfeace8[_0x5bfb7e(_0x146ee5._0x43d9b3,0x5dc,_0x146ee5._0x4a9ff1,0x5d5)],_0x3ae007[_0x182e2f(_0x146ee5._0x134a47,0x197,_0x146ee5._0x46e4a0,0x160)]=_0xfeace8[_0x5bfb7e(0x5ee,_0x146ee5._0x4e7e66,_0x146ee5._0x7cf729,0x5d4)],_0x219140[_0x5bfb7e(0x5d2,0x5cd,0x5af,_0x146ee5._0x7cf729)](0x19b2+0x886*0x3+-0x31b3)[_0x5bfb7e(_0x146ee5._0xf8e3f3,_0x146ee5._0x417be3,0x58d,0x5d6)](_0x3ae007);}export async function requireAdmin(_0x550cd5,_0xb2b38f,_0x731986){const _0x1ff27c={_0x395495:0x161,_0x8f11d3:0x142,_0x32ce9d:0x16c,_0x501730:0x185,_0x3f570f:0x18e,_0x2c5f6e:0x17d,_0x2870ca:0x17b,_0x4c0370:0x16f,_0x59627a:0x1c3,_0x532561:0x1af,_0x2e8c0c:0x1d8,_0x2b877d:0x198,_0x2bcdac:0x19a,_0xda2db8:0x1a9,_0x464a7e:0x1a0,_0x2e966d:0x15c,_0x5ca10f:0x166,_0x4a8143:0x198,_0x440c47:0x190,_0x3ba87d:0x16b,_0x1f639a:0x194,_0x56b289:0x1c3,_0x15e83d:0x199,_0x3cbacd:0x174,_0x14ea42:0x16a,_0x4a888c:0x182,_0x9e598c:0x1bc,_0x2978d8:0x18f,_0x488cdb:0x175,_0x6e2f39:0x190,_0x200212:0x168,_0x2b114d:0x18c,_0x360f36:0x1a1,_0x2a4c51:0x159,_0x27f45f:0x188,_0x377fc7:0x170,_0x2555b8:0x153,_0x2ab13e:0x189,_0x187042:0x138,_0x1b2f4f:0x1a0,_0x21cabc:0x1c9,_0x550bdc:0x1a5,_0x5f43c5:0x198,_0x3a147f:0x1dc,_0x2c9f86:0x1b5,_0x4240a6:0x1ae,_0x3220c8:0x186,_0x5a1d1c:0x193,_0x57b0d9:0x16e,_0x2f2f37:0x1b8,_0x43c4a9:0x178,_0x30969a:0x16a,_0x333f8d:0x160,_0x4781d6:0x1c2,_0x19551f:0x150,_0x5f1188:0x19c,_0x1d5cd2:0x17d,_0x4c7674:0x175,_0x264c80:0x17b,_0x210002:0x185,_0x2cd571:0x195,_0xc5d950:0x1b7,_0xfccf0b:0x177,_0x4af942:0x1b2,_0x118098:0x1af,_0x112053:0x1be,_0x518587:0x18c,_0x300933:0x188,_0x12611d:0x1a8,_0x463e51:0x185,_0x12b74c:0x1a7,_0x46b4fd:0x1b6,_0x5061c5:0x1ca,_0x131a3f:0x13e,_0x8e5bb2:0x161,_0x53c21c:0x17b,_0x267aa2:0x191,_0xdc4233:0x18b,_0x257b34:0x172,_0xa8cd3e:0x17f,_0x414c34:0x16a,_0x5be7d7:0x142,_0x1eb9f4:0x18f,_0x274261:0x194,_0x507b37:0x180,_0x5e532c:0x188,_0x2d7181:0x174,_0x1d5646:0x180,_0x49ef96:0x18e};function _0x153052(_0x3bb6e2,_0x534c7f,_0x11b38f,_0x50c7a6){return _0x2b2b(_0x11b38f- -0x38f,_0x3bb6e2);}function _0x1f9429(_0x239f4d,_0x28dc97,_0x57e2ec,_0x1d01c9){return _0x2b2b(_0x57e2ec- -0x37f,_0x1d01c9);}const _0x522d8f={'WsdrJ':'Admin\x20perm'+_0x1f9429(-0x183,-0x147,-_0x1ff27c._0x395495,-0x14b)+'ck\x20failed','MbYZe':_0x153052(-_0x1ff27c._0x8f11d3,-_0x1ff27c._0x32ce9d,-0x16d,-0x16c)+'erver\x20erro'+'r','eSyBl':_0x153052(-_0x1ff27c._0x501730,-0x190,-_0x1ff27c._0x3f570f,-_0x1ff27c._0x2c5f6e)+_0x1f9429(-_0x1ff27c._0x2870ca,-0x127,-0x157,-_0x1ff27c._0x4c0370)+_0x153052(-0x1c1,-_0x1ff27c._0x59627a,-_0x1ff27c._0x532561,-_0x1ff27c._0x2e8c0c)+'ions','TdHkc':function(_0x4d5456,_0x51efa3){return _0x4d5456===_0x51efa3;},'iVYvu':_0x1f9429(-_0x1ff27c._0x2b877d,-_0x1ff27c._0x2bcdac,-0x17b,-_0x1ff27c._0xda2db8),'JnpKp':_0x153052(-0x1cf,-0x188,-_0x1ff27c._0x464a7e,-0x1b2)+_0x1f9429(-0x165,-0x181,-_0x1ff27c._0x2e966d,-0x161)+_0x153052(-_0x1ff27c._0x5ca10f,-0x15d,-0x183,-0x164),'arYJw':_0x1f9429(-0x135,-0x155,-0x15f,-0x176)+_0x153052(-_0x1ff27c._0x4a8143,-_0x1ff27c._0x440c47,-_0x1ff27c._0x3ba87d,-_0x1ff27c._0x1f639a)+_0x153052(-0x16e,-_0x1ff27c._0x56b289,-_0x1ff27c._0x15e83d,-_0x1ff27c._0x3cbacd),'XERqc':function(_0x5a186e,_0x356b25){return _0x5a186e(_0x356b25);},'vtOXM':'Forbidden','jiIxR':'Server\x20Adm'+'in\x20access\x20'+_0x1f9429(-0x149,-0x177,-0x179,-_0x1ff27c._0x14ea42),'Zuist':function(_0x59f8d5){return _0x59f8d5();}};if(!_0x550cd5[_0x1f9429(-0x190,-0x1ae,-_0x1ff27c._0x501730,-_0x1ff27c._0x4a888c)]){if(_0x522d8f[_0x1f9429(-0x1ad,-0x18f,-0x192,-_0x1ff27c._0x9e598c)](_0x522d8f[_0x153052(-_0x1ff27c._0x2978d8,-_0x1ff27c._0x488cdb,-0x19c,-0x1a8)],'Ktpbb')){const _0x28f7ee={};return _0x28f7ee[_0x1f9429(-_0x1ff27c._0x6e2f39,-0x1bb,-0x1ae,-0x183)]=_0x522d8f['JnpKp'],_0x28f7ee[_0x153052(-_0x1ff27c._0x200212,-_0x1ff27c._0x2b114d,-0x17a,-0x14e)]=_0x1f9429(-_0x1ff27c._0x360f36,-_0x1ff27c._0x2e966d,-0x187,-0x1a0)+_0x1f9429(-_0x1ff27c._0x2a4c51,-0x1a2,-_0x1ff27c._0x27f45f,-0x1a7)+_0x1f9429(-0x17e,-0x1a4,-0x178,-0x183)+_0x1f9429(-_0x1ff27c._0x377fc7,-0x12b,-_0x1ff27c._0x2555b8,-0x182)+_0x1f9429(-_0x1ff27c._0x2870ca,-0x149,-0x177,-_0x1ff27c._0x2ab13e),_0xb2b38f[_0x1f9429(-_0x1ff27c._0x187042,-0x15e,-0x165,-0x183)](-0x870+-0x842+0x1243)[_0x153052(-_0x1ff27c._0x1b2f4f,-0x185,-0x190,-0x1b7)](_0x28f7ee);}else{const _0x35630e={};_0x35630e[_0x153052(-_0x1ff27c._0x21cabc,-_0x1ff27c._0x550bdc,-0x1be,-_0x1ff27c._0x5f43c5)]=_0x14a35c['message'],_0x35630e['userId']=_0x5c17f9['user']['id'],_0x314989[_0x1f9429(-_0x1ff27c._0x3a147f,-_0x1ff27c._0x2c9f86,-_0x1ff27c._0x4240a6,-0x1aa)](_0x522d8f[_0x153052(-_0x1ff27c._0x3220c8,-_0x1ff27c._0x5a1d1c,-_0x1ff27c._0x57b0d9,-0x142)],_0x35630e);const _0x871e04={};return _0x871e04[_0x153052(-_0x1ff27c._0x2f2f37,-0x1ed,-0x1be,-0x1b6)]=_0x522d8f[_0x153052(-0x1a3,-0x197,-0x18a,-0x19d)],_0x871e04[_0x1f9429(-_0x1ff27c._0x43c4a9,-0x13f,-_0x1ff27c._0x30969a,-_0x1ff27c._0x333f8d)]=_0x522d8f[_0x1f9429(-0x1c6,-0x1bc,-0x19d,-_0x1ff27c._0x4781d6)],_0x18f36d[_0x1f9429(-0x154,-_0x1ff27c._0x19551f,-0x165,-_0x1ff27c._0x1f639a)](-0x30*0x76+-0x1721+0x2f35)[_0x153052(-_0x1ff27c._0x200212,-_0x1ff27c._0x5f1188,-0x190,-_0x1ff27c._0x4240a6)](_0x871e04);}}try{const {hasAllPermissions:_0x442e74}=await import(_0x522d8f[_0x1f9429(-_0x1ff27c._0x200212,-0x164,-_0x1ff27c._0x1d5cd2,-0x197)]),_0x2123ce=await _0x522d8f[_0x153052(-0x1ab,-_0x1ff27c._0x4c7674,-0x1a1,-0x197)](_0x442e74,_0x550cd5[_0x1f9429(-_0x1ff27c._0x2ab13e,-_0x1ff27c._0x264c80,-_0x1ff27c._0x210002,-0x19b)]['id']);if(!_0x2123ce){const _0x475870={};return _0x475870[_0x1f9429(-0x1c4,-0x1ca,-_0x1ff27c._0x4240a6,-_0x1ff27c._0x2cd571)]=_0x522d8f['vtOXM'],_0x475870['message']=_0x522d8f[_0x153052(-0x1d4,-0x1aa,-_0x1ff27c._0xc5d950,-0x1c6)],_0xb2b38f['status'](-0x1d62+0x1513+0x1fa*0x5)[_0x153052(-_0x1ff27c._0xfccf0b,-_0x1ff27c._0x4af942,-_0x1ff27c._0x6e2f39,-0x17d)](_0x475870);}_0x522d8f[_0x153052(-0x19a,-0x1ca,-0x1ac,-_0x1ff27c._0x464a7e)](_0x731986);}catch(_0x46c2c2){const _0x46b657={};_0x46b657[_0x153052(-0x1b5,-_0x1ff27c._0x118098,-_0x1ff27c._0x112053,-0x1ea)]=_0x46c2c2[_0x153052(-_0x1ff27c._0x518587,-_0x1ff27c._0x4a8143,-0x17a,-0x195)],_0x46b657[_0x1f9429(-0x1d7,-_0x1ff27c._0x300933,-_0x1ff27c._0x12611d,-0x19a)]=_0x550cd5[_0x1f9429(-0x17b,-0x16b,-_0x1ff27c._0x463e51,-0x17d)]['id'],logger[_0x1f9429(-_0x1ff27c._0x12b74c,-_0x1ff27c._0x46b4fd,-0x1ae,-_0x1ff27c._0x5061c5)](_0x522d8f['WsdrJ'],_0x46b657);const _0x52f1ca={};return _0x52f1ca['error']=_0x153052(-_0x1ff27c._0x131a3f,-_0x1ff27c._0x8e5bb2,-0x16d,-_0x1ff27c._0x53c21c)+_0x1f9429(-0x1b2,-_0x1ff27c._0x267aa2,-_0x1ff27c._0xdc4233,-0x1ad)+'r',_0x52f1ca[_0x1f9429(-_0x1ff27c._0x257b34,-_0x1ff27c._0xa8cd3e,-_0x1ff27c._0x414c34,-_0x1ff27c._0x5be7d7)]=_0x522d8f[_0x1f9429(-_0x1ff27c._0x1eb9f4,-_0x1ff27c._0x274261,-0x19d,-_0x1ff27c._0x507b37)],_0xb2b38f[_0x1f9429(-0x145,-_0x1ff27c._0x5e532c,-0x165,-0x17d)](0x2399*-0x1+-0xfde*0x1+0x356b)[_0x1f9429(-0x157,-_0x1ff27c._0x2d7181,-_0x1ff27c._0x1d5646,-_0x1ff27c._0x49ef96)](_0x52f1ca);}}
|
|
1
|
+
function _0x56d7(_0x5adc8b,_0x505250){_0x5adc8b=_0x5adc8b-(0xca0+-0x1a5d*-0x1+0x233*-0x11);const _0x39ff60=_0x1a83();let _0x6f2862=_0x39ff60[_0x5adc8b];if(_0x56d7['jfyVpX']===undefined){var _0x576e24=function(_0x4011d7){const _0x4f1afd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x260514='',_0x272cd4='';for(let _0x16aaa6=0xa2e*-0x2+0x499*0x7+-0x1*0xbd3,_0x191f87,_0x1285fb,_0x51383d=-0x139*0xe+-0x11b6+0x22d4;_0x1285fb=_0x4011d7['charAt'](_0x51383d++);~_0x1285fb&&(_0x191f87=_0x16aaa6%(-0x1d69*0x1+0x86a+0x1e9*0xb)?_0x191f87*(-0x21d8+-0x1a1*0x2+0x255a)+_0x1285fb:_0x1285fb,_0x16aaa6++%(0x1e55+-0x1fa0+-0x1*-0x14f))?_0x260514+=String['fromCharCode'](0x8c5*-0x1+-0x3*0xa18+0xe9*0x2c&_0x191f87>>(-(-0x220+0x822+-0x600)*_0x16aaa6&0x1*0x1d83+0x1328+-0x3*0x1037)):0x1*0x69d+-0x4cc+-0x3*0x9b){_0x1285fb=_0x4f1afd['indexOf'](_0x1285fb);}for(let _0x26f2cb=0xc9*0x1b+-0x1*0x1836+-0x101*-0x3,_0x375c33=_0x260514['length'];_0x26f2cb<_0x375c33;_0x26f2cb++){_0x272cd4+='%'+('00'+_0x260514['charCodeAt'](_0x26f2cb)['toString'](-0x1*0x239+0x13b7+-0x116e))['slice'](-(0x1cbd+-0x6b1*0x3+-0x8*0x115));}return decodeURIComponent(_0x272cd4);};_0x56d7['uzgjRl']=_0x576e24,_0x56d7['cAGTPn']={},_0x56d7['jfyVpX']=!![];}const _0x5ef5db=_0x39ff60[-0x88*0x44+-0x1*0x106b+-0x348b*-0x1],_0x3f53fc=_0x5adc8b+_0x5ef5db,_0x4a1192=_0x56d7['cAGTPn'][_0x3f53fc];return!_0x4a1192?(_0x6f2862=_0x56d7['uzgjRl'](_0x6f2862),_0x56d7['cAGTPn'][_0x3f53fc]=_0x6f2862):_0x6f2862=_0x4a1192,_0x6f2862;}(function(_0x3b099d,_0x50358c){const _0x16f58d={_0x287a53:0xb,_0x3cc5ce:0x2e,_0x69587d:0x325,_0x3cd8e0:0x2f6,_0x33de55:0x2fb,_0x2ace3:0x2f0,_0x37def1:0x308,_0x4f8bd1:0x5b,_0x396eea:0x2d,_0x1205ec:0x37,_0x4808cd:0x2ba,_0x2c6357:0x2e7,_0x3a64d1:0x2d4,_0x463688:0x2bf,_0x5e6fd0:0x30c,_0xb6989e:0x31a,_0x47eb2c:0x2f9,_0x4291eb:0x300,_0x412449:0x312,_0x1e914a:0x47,_0x5b10d2:0x3e},_0x47e34e={_0x54a2d4:0x1ab},_0x161570={_0x47dcd7:0x117},_0x331387=_0x3b099d();function _0x4675c6(_0x3d6dc7,_0x19bfb4,_0x30afa2,_0x529551){return _0x56d7(_0x3d6dc7-_0x161570._0x47dcd7,_0x529551);}function _0x59c1ed(_0x3e2b1c,_0x226c52,_0x5441fe,_0x4b1076){return _0x56d7(_0x4b1076- -_0x47e34e._0x54a2d4,_0x5441fe);}while(!![]){try{const _0x383147=parseInt(_0x59c1ed(0x6,_0x16f58d._0x287a53,-_0x16f58d._0x3cc5ce,0x0))/(0x614*-0x3+-0xad5*0x3+0x17e*0x22)+-parseInt(_0x4675c6(0x2fe,_0x16f58d._0x69587d,_0x16f58d._0x3cd8e0,_0x16f58d._0x33de55))/(-0x1ed9*0x1+-0x1a42+0x1*0x391d)*(parseInt(_0x4675c6(_0x16f58d._0x2ace3,0x30d,0x31a,_0x16f58d._0x37def1))/(-0x20a1*-0x1+0x2704+-0x47a2))+parseInt(_0x59c1ed(_0x16f58d._0x4f8bd1,0x1f,0x4d,_0x16f58d._0x396eea))/(0xe5*-0x1c+0x244d+-0xb3d)*(-parseInt(_0x59c1ed(0x4c,0x2f,0xa,_0x16f58d._0x1205ec))/(0x1*-0x11ec+0x2bd+0xf34))+parseInt(_0x4675c6(_0x16f58d._0x4808cd,_0x16f58d._0x2c6357,_0x16f58d._0x3a64d1,_0x16f58d._0x463688))/(0x118e+0x76c*-0x3+0x4bc)+parseInt(_0x4675c6(0x2e1,0x2b6,0x2f6,_0x16f58d._0x5e6fd0))/(-0x11b9+0x1*-0xe27+0x1fe7*0x1)+-parseInt(_0x4675c6(0x305,0x2ff,_0x16f58d._0xb6989e,_0x16f58d._0x47eb2c))/(0x1*0x1c3f+-0x4c3*0x1+-0x13c*0x13)*(-parseInt(_0x4675c6(0x2e6,_0x16f58d._0x4291eb,0x30e,_0x16f58d._0x412449))/(0x9a2+-0x11d*0x4+0x1*-0x525))+-parseInt(_0x59c1ed(0x21,_0x16f58d._0x1e914a,0x11,_0x16f58d._0x5b10d2))/(-0x9*-0x33d+-0xb5d*-0x3+0x1f99*-0x2);if(_0x383147===_0x50358c)break;else _0x331387['push'](_0x331387['shift']());}catch(_0x441918){_0x331387['push'](_0x331387['shift']());}}}(_0x1a83,0x46bb*0x4+0xf8c9+-0x4adb));import{logger}from'../lib/logger.js';function _0x1a83(){const _0x13e7c3=['DxnLCG','sw52ywXPzcbbua','DgHLBNrPy2f0zq','vK5iC1q','ssbRzxK','ww91ig11C3qGyG','zcbYzxf1zxn0','zgvIDwC','s0nfs04','DgvZDebLEgfTCa','BguUy29T','vgvZDcbvC2vY','zwqGqvbjigTLEq','ntmXndC1rxjuufLR','CKTovMW','EhftDM8','Bxb0','DgvKvMLH','mty4odyWn0PirvHrCa','quPwteq','svj1DM0','igLZigLUDMfSAq','zxjYB3i','Dhj1zq','yxv0Ag9YAxPHDa','Aw4GCgvYBwLZCW','qxv0AgvUDgLJyq','mtCYEhPUEwvp','owfks2fdAW','BMfTzq','Cgf0Aa','ALftyLe','DxnLCKLK','Aw9UCW','u3zfs0i','C29SDMvYlMPZ','y2vvrfi','otuWnwfhDM1usG','BLL3rhi','DgLVBIbYzxf1Aq','z1ndA1G','EfnWC3q','ndaWmZb3D1vjELm','qvbjigTLEsbHDq','mtiZmdmYmen1D2vnrW','zsbSB2DNzwqGAq','sxDgDu8','tK9erv9ftLy','reLtqujmrv9bvq','ohjKtePgvq','AxnZAw9UignOzq','ELvREu4','Bwv0Ag9K','tgvJALG','rMfPBgvKihrVia','CMvXDwLYzwq','yxr0zw1WDa','vgHLihbYB3zPza','rM9YyMLKzgvU','qur0A3G','yxbPx2TLEq','D2fYBG','DgvZDa','CMvK','DxnLCM5HBwu','BIb0BYbHy2nLCW','ANnVBG','C3nOx3vZzxjUyq','mJuYnJz2rKnkqNC','yNzOy08','C3rHDhvZ','vvnOz3a','zw1HAwW','Dur1BLO','DMvYAwz5igfKBq','wvPerK4','mte0mde1q1bduejk','zxj2zxiGzxjYBW','vhD6rNK','sgHfre4','C3vIC3rYAw5N','zhDmq3a','AgvHzgvYCW','qNzxBvG','zguGysb2ywXPza','Aw4GywnJzxnZia','yxv0AgvUDgLJyq','zw52','C2vZC2LVBG','BwvZC2fNzq','B3vYy2u','vw5HDxrOB3jPEG','AvHHqLC','DgvZDc11C2vY'];_0x1a83=function(){return _0x13e7c3;};return _0x1a83();}import{validateApiKey}from'../lib/apiKeys.js';import{findUserById}from'../lib/users.js';export async function requireAuth(_0x110f0f,_0x2f9462,_0x4c9e96){const _0x44a490={_0x76b2e6:0x110,_0x213f03:0xed,_0x54eaf0:0xff,_0x33fa3f:0x46b,_0x2cbf61:0x4a3,_0x16c33a:0x492,_0x138838:0x4a3,_0x5296af:0x4d1,_0x4ad26d:0x476,_0x2fa810:0x4a2,_0x403731:0x4be,_0x41e0fe:0x4d7,_0x325f8c:0x4dd,_0x5d6723:0xe6,_0x441757:0x495,_0xb175d6:0x4ab,_0xaf4ac8:0x4b3,_0x56b280:0x120,_0x61059b:0x101,_0x287789:0xca,_0x56199f:0x103,_0x2f2b4c:0x11b,_0x1d9cdf:0x4a9,_0x1733d2:0x4c7,_0x4f4aea:0x49e,_0x38254f:0x4b4,_0x43eabf:0x112,_0x1341fb:0xe4,_0x17ad3f:0xf1,_0x504069:0xfc,_0x47ce39:0x48f,_0x502d27:0xfc,_0x283252:0x4a8,_0x493271:0x11a,_0x35c98f:0x119,_0x4d84f5:0x12c,_0x33a0ab:0x50e,_0x5c55b8:0x4d6,_0x55868f:0x116,_0x1119e3:0xdf,_0x208ded:0xd0,_0x55e802:0x4bc,_0x20787f:0x4c6,_0x20db87:0x4a1,_0x428075:0x4c8,_0x380468:0x481,_0x1b9e23:0x49c,_0x459555:0x150,_0x3642db:0x4ad,_0x12b15e:0x492,_0x4f2b3b:0x4a4,_0x314531:0x4b2,_0x28bd2a:0x4d0,_0x56de61:0x4c9,_0x3ca8d8:0xed,_0x48d413:0x507,_0x8b0367:0x4ac,_0x33dc8f:0x4da,_0x4d8e67:0x48e,_0x42b71f:0x490,_0x5e9b80:0x4a5,_0x1f69c5:0x4ae,_0x3e59ea:0x4bb,_0x451f89:0x4a3,_0x50287e:0x115,_0x523d06:0x4b6,_0x1476f7:0x4e7,_0x7daf71:0x4aa,_0x324732:0x111,_0x409771:0x489,_0x1e3476:0x4bb,_0x37414d:0x494,_0x23d07e:0xf1,_0xfcbbd:0xea,_0x2d29c0:0x4ab,_0x15517c:0x4c0,_0x39e205:0x4d0,_0x3d26fb:0x108,_0x35718a:0x125,_0x3755ff:0x48a,_0x14a175:0xd4,_0x57ca9e:0x4f6,_0x179ae8:0x4be,_0xe81a0d:0xe3,_0x3bafe7:0x11c,_0x5de609:0x4e6,_0x23ced2:0x130,_0x4ed639:0x131,_0x48d790:0x13a,_0x44032b:0x11f,_0x29eabf:0x138,_0x5ba931:0x4d4,_0x2ff716:0x11d,_0x4911ef:0xe7,_0xdb35d3:0x114,_0x29a070:0xf8,_0x208107:0x49f,_0x2cd22f:0x4c1,_0x34498a:0x47e,_0xf605fc:0x107,_0x5f549a:0x138,_0x205a49:0x12b,_0x2c2ea7:0x10b,_0x2cc4b2:0x4cf,_0x3f1627:0x4c3,_0x56833f:0x106,_0xa1fd60:0x105,_0x1d22c8:0x10f,_0x4384a0:0x4b2,_0x3a641b:0x4cf,_0x3bdec0:0x4ac,_0x47a027:0xef,_0x1c3e44:0xce,_0x5caddf:0xdc,_0x410daf:0x47f,_0x42d6df:0x477,_0x276871:0x494,_0x47dade:0x487,_0x35cf53:0x4b6,_0xd749d3:0x4a0,_0x486734:0xf2,_0x1d1d0b:0x105,_0x10f3ca:0xe5,_0x65c3c5:0x115,_0x7757a2:0x117,_0x3c7857:0x117,_0x3891a9:0x131,_0x5b532b:0x4b9,_0x36d3fb:0x4d3,_0x41e443:0x4e4,_0x3ed8c6:0x4af,_0x223c9d:0x4cb,_0x55fd71:0x4bc,_0x5be212:0x4a9,_0x520fce:0xf1,_0x574617:0xe4,_0x45130f:0xc3,_0x30ee6f:0xfb,_0xf22764:0x4a5,_0x542d2c:0x4a0,_0x5c2ae9:0x10e,_0x1e903d:0xe5,_0x166443:0xdb,_0x5250f9:0x113,_0x275a87:0x103,_0x415027:0xf0,_0x2a7db8:0x127,_0x7a37f5:0x4b7,_0xdb56b5:0x4ae,_0x4491bf:0xf5,_0x42d325:0xd2,_0x32a67e:0x10d,_0x2d4507:0xe8,_0x523e96:0x493,_0x492813:0xf9,_0x252ed4:0x123,_0x487f33:0x479,_0x45f73f:0x4be,_0x429090:0x496},_0x834399={_0x3c6b86:0x2f5};function _0x28b175(_0x38220e,_0x5d03c0,_0x2c604d,_0x3e2576){return _0x56d7(_0x38220e- -0x2cc,_0x2c604d);}const _0x1ec5b0={'BvWmX':function(_0x35e5d9,_0x2f003c){return _0x35e5d9===_0x2f003c;},'IRuvm':_0x28b175(-_0x44a490._0x76b2e6,-_0x44a490._0x213f03,-0x104,-_0x44a490._0x54eaf0),'SvEKB':_0x1cbb64(_0x44a490._0x33fa3f,_0x44a490._0x2cbf61,0x4a7,_0x44a490._0x16c33a),'dMiri':_0x1cbb64(_0x44a490._0x138838,_0x44a490._0x5296af,0x4eb,0x4bd),'gSCkX':function(_0x55c5fb){return _0x55c5fb();},'ADtkx':function(_0x54a21c,_0x83a3a2){return _0x54a21c(_0x83a3a2);},'uDunZ':_0x1cbb64(0x494,_0x44a490._0x4ad26d,_0x44a490._0x2fa810,0x490),'YZDFN':_0x1cbb64(_0x44a490._0x403731,0x4db,_0x44a490._0x41e0fe,_0x44a490._0x325f8c)+'thenticate'+_0x28b175(-0x109,-0x107,-0x12f,-_0x44a490._0x5d6723),'TwzFy':_0x1cbb64(0x4df,_0x44a490._0x441757,_0x44a490._0xb175d6,_0x44a490._0xaf4ac8)+'I\x20key\x20atte'+_0x28b175(-0xff,-_0x44a490._0x56b280,-_0x44a490._0x61059b,-0xfd),'HhEDN':_0x28b175(-0xd6,-0xd2,-0xd4,-_0x44a490._0x287789)+_0x28b175(-_0x44a490._0x56199f,-0xf7,-0xe6,-_0x44a490._0x2f2b4c)+_0x1cbb64(_0x44a490._0x1d9cdf,0x4bf,0x4ca,_0x44a490._0x1733d2)+'d\x20or\x20expir'+'ed','ceUDR':'Session\x20au'+_0x1cbb64(_0x44a490._0x4f4aea,0x4bd,0x4b9,_0x44a490._0x38254f)+_0x28b175(-0x109,-0x115,-0x102,-0xfa),'iXaBW':_0x28b175(-_0x44a490._0x43eabf,-0x132,-_0x44a490._0x1341fb,-_0x44a490._0x17ad3f)+'ed\x20access\x20'+_0x28b175(-0xd7,-_0x44a490._0x504069,-0xfa,-0xd2),'rKNVl':_0x1cbb64(_0x44a490._0x47ce39,0x4e3,0x49a,0x4b7)+_0x28b175(-0xe2,-0x101,-_0x44a490._0x502d27,-0xe4)+'n\x20or\x20provi'+_0x1cbb64(0x484,0x4c1,0x490,_0x44a490._0x283252)+'\x20API\x20key'};if(_0x1ec5b0[_0x28b175(-_0x44a490._0x493271,-0xf2,-_0x44a490._0x35c98f,-_0x44a490._0x4d84f5)](process[_0x1cbb64(0x4a0,0x4b4,0x494,0x4ab)][_0x1cbb64(0x4f4,_0x44a490._0x33a0ab,_0x44a490._0x5c55b8,0x4e1)],'test')||_0x1ec5b0['BvWmX'](process[_0x28b175(-_0x44a490._0x55868f,-0x10c,-0x10a,-0x137)][_0x28b175(-_0x44a490._0x1119e3,-_0x44a490._0x208ded,-0xee,-0xf2)+'TH'],_0x1cbb64(0x4de,0x4cf,0x4d4,0x4c9))){const _0x1ce842={};return _0x1ce842['id']=_0x1ec5b0[_0x1cbb64(0x4cf,_0x44a490._0x55e802,0x4a3,_0x44a490._0x20787f)],_0x1ce842[_0x1cbb64(0x488,0x48c,_0x44a490._0x20db87,0x494)]=_0x1ec5b0[_0x1cbb64(_0x44a490._0x428075,0x4f5,0x4c1,0x4d4)],_0x1ce842[_0x1cbb64(_0x44a490._0x380468,0x4b4,0x4b4,_0x44a490._0x1b9e23)]='test@examp'+_0x28b175(-0x105,-0x12a,-0x120,-0xef),_0x1ce842['name']=_0x1ec5b0['dMiri'],_0x1ce842[_0x28b175(-0x12a,-_0x44a490._0x61059b,-0x143,-_0x44a490._0x459555)+'me']=_0x1cbb64(_0x44a490._0x3642db,0x4a1,0x4af,_0x44a490._0x12b15e),_0x110f0f[_0x1cbb64(0x4c5,0x495,_0x44a490._0x4f2b3b,_0x44a490._0x314531)]=_0x1ce842,_0x110f0f['authentica'+_0x1cbb64(_0x44a490._0x28bd2a,_0x44a490._0x56de61,0x4c2,0x4c3)]=_0x1ec5b0[_0x28b175(-_0x44a490._0x3ca8d8,-_0x44a490._0x504069,-0xe2,-0x116)],_0x1ec5b0[_0x1cbb64(0x4db,_0x44a490._0x48d413,_0x44a490._0x8b0367,_0x44a490._0x33dc8f)](_0x4c9e96);}const _0x572c2b=_0x110f0f[_0x1cbb64(_0x44a490._0x4d8e67,_0x44a490._0x42b71f,0x491,0x4a6)][_0x1cbb64(0x4dd,_0x44a490._0x5e9b80,0x4da,0x4ca)+'ion'];if(_0x572c2b&&_0x572c2b['startsWith']('Bearer\x20')){const _0x4b1c8d=_0x572c2b[_0x1cbb64(0x499,0x4a1,0x47b,0x4a4)](0x1*0x281+-0x5*-0x2c1+0x103f*-0x1),_0x29f1e7=await _0x1ec5b0[_0x1cbb64(_0x44a490._0x1d9cdf,0x49c,_0x44a490._0x1f69c5,_0x44a490._0x47ce39)](validateApiKey,_0x4b1c8d);if(_0x29f1e7){_0x110f0f[_0x1cbb64(_0x44a490._0x1b9e23,_0x44a490._0x3e59ea,_0x44a490._0x451f89,_0x44a490._0x314531)]=_0x29f1e7,_0x110f0f[_0x28b175(-0x117,-0xe9,-_0x44a490._0x50287e,-0x100)+_0x1cbb64(_0x44a490._0x523d06,_0x44a490._0xaf4ac8,_0x44a490._0x1476f7,0x4c3)]=_0x1ec5b0[_0x1cbb64(0x48f,_0x44a490._0x7daf71,_0x44a490._0x12b15e,0x49d)];const _0x4ade32={};return _0x4ade32[_0x28b175(-0xef,-0xd3,-_0x44a490._0x324732,-0xc4)]=_0x29f1e7['id'],_0x4ade32[_0x1cbb64(_0x44a490._0x409771,0x467,0x4af,0x494)]=_0x29f1e7[_0x1cbb64(0x4b3,_0x44a490._0x1e3476,0x4be,_0x44a490._0x37414d)],_0x4ade32[_0x28b175(-_0x44a490._0x23d07e,-0xdd,-_0x44a490._0xfcbbd,-0xc4)]=_0x110f0f[_0x1cbb64(0x4f5,_0x44a490._0x2d29c0,_0x44a490._0x15517c,_0x44a490._0x39e205)],logger[_0x28b175(-_0x44a490._0x3d26fb,-0x129,-_0x44a490._0x35718a,-0xdc)](_0x1ec5b0[_0x1cbb64(0x486,_0x44a490._0x3755ff,0x4c7,0x49f)],_0x4ade32),_0x1ec5b0[_0x28b175(-0xe7,-0xd0,-_0x44a490._0x14a175,-0xda)](_0x4c9e96);}const _0x3b0a41={};_0x3b0a41[_0x1cbb64(0x4da,_0x44a490._0x57ca9e,_0x44a490._0x179ae8,0x4d0)]=_0x110f0f[_0x28b175(-0xf1,-_0x44a490._0xe81a0d,-0x114,-_0x44a490._0x3bafe7)],_0x3b0a41['method']=_0x110f0f[_0x1cbb64(0x4d6,0x504,0x4ba,_0x44a490._0x5de609)],logger[_0x28b175(-_0x44a490._0x23ced2,-_0x44a490._0x4ed639,-0x135,-_0x44a490._0x48d790)](_0x1ec5b0[_0x28b175(-_0x44a490._0x44032b,-0x10b,-_0x44a490._0x29eabf,-0x12e)],_0x3b0a41);const _0x214307={};return _0x214307['error']=_0x1cbb64(0x49e,_0x44a490._0x5ba931,0x4a6,0x4b3)+_0x28b175(-0x10b,-_0x44a490._0x2ff716,-0xe3,-_0x44a490._0x4911ef),_0x214307[_0x28b175(-_0x44a490._0xdb35d3,-0x141,-_0x44a490._0x29a070,-0x12a)]=_0x1ec5b0[_0x1cbb64(_0x44a490._0x208107,_0x44a490._0x2cd22f,_0x44a490._0x34498a,0x4a3)],_0x2f9462[_0x28b175(-0x127,-0x10a,-_0x44a490._0xf605fc,-_0x44a490._0x5f549a)](-0x112d+-0x1*0xf36+0x10fa*0x2)[_0x28b175(-_0x44a490._0x205a49,-_0x44a490._0x2c2ea7,-0x12a,-0x142)](_0x214307);}if(_0x110f0f[_0x1cbb64(0x48b,_0x44a490._0x2cc4b2,_0x44a490._0x3f1627,_0x44a490._0x8b0367)]?.['userId']){const _0x1d10eb=await findUserById(_0x110f0f[_0x28b175(-_0x44a490._0x50287e,-_0x44a490._0x56833f,-_0x44a490._0xa1fd60,-0x115)][_0x1cbb64(0x4ad,0x4af,0x4f1,0x4d2)]);_0x110f0f[_0x28b175(-_0x44a490._0x1d22c8,-0x11b,-0x11c,-0xf0)]={'id':_0x110f0f[_0x1cbb64(0x481,_0x44a490._0x4384a0,_0x44a490._0x3a641b,_0x44a490._0x3bdec0)][_0x28b175(-_0x44a490._0x47a027,-_0x44a490._0x1c3e44,-0xe5,-_0x44a490._0x5caddf)],'username':_0x110f0f[_0x1cbb64(_0x44a490._0x410daf,_0x44a490._0x41e0fe,0x4cb,0x4ac)][_0x1cbb64(0x48d,0x4bc,_0x44a490._0x42d6df,_0x44a490._0x276871)],'email':_0x110f0f[_0x28b175(-0x115,-0x113,-0xf8,-0x102)][_0x1cbb64(_0x44a490._0x47dade,_0x44a490._0x35cf53,_0x44a490._0xd749d3,0x49c)],'name':_0x110f0f[_0x1cbb64(_0x44a490._0x34498a,0x4a4,0x4b7,_0x44a490._0x8b0367)][_0x28b175(-_0x44a490._0x486734,-_0x44a490._0x1c3e44,-_0x44a490._0x1d1d0b,-_0x44a490._0x10f3ca)],'ssh_username':_0x110f0f[_0x28b175(-0x115,-0xfd,-_0x44a490._0x65c3c5,-0x142)]['ssh_userna'+'me']},_0x110f0f[_0x28b175(-_0x44a490._0x7757a2,-_0x44a490._0x3c7857,-_0x44a490._0x3891a9,-_0x44a490._0x3891a9)+'tedVia']='session';const _0x3c4388={};return _0x3c4388[_0x1cbb64(_0x44a490._0x5b532b,_0x44a490._0x36d3fb,_0x44a490._0x41e443,0x4d2)]=_0x110f0f[_0x1cbb64(0x4d9,_0x44a490._0x3ed8c6,0x495,0x4ac)][_0x1cbb64(_0x44a490._0x223c9d,_0x44a490._0x55fd71,_0x44a490._0x5be212,0x4d2)],_0x3c4388['username']=_0x110f0f[_0x28b175(-0x115,-0x10a,-0xf0,-0x12f)]['username'],_0x3c4388[_0x28b175(-_0x44a490._0x520fce,-_0x44a490._0x574617,-_0x44a490._0x45130f,-_0x44a490._0x30ee6f)]=_0x110f0f['path'],logger[_0x1cbb64(_0x44a490._0xf22764,0x4c4,_0x44a490._0x542d2c,0x4b9)](_0x1ec5b0[_0x28b175(-0xeb,-0xbf,-_0x44a490._0x5c2ae9,-0xe6)],_0x3c4388),_0x4c9e96();}const _0x271b09={};_0x271b09['path']=_0x110f0f[_0x28b175(-_0x44a490._0x23d07e,-0xe3,-0xdb,-_0x44a490._0x1e903d)],_0x271b09[_0x1cbb64(0x4f3,0x4e6,0x4bb,0x4e6)]=_0x110f0f[_0x28b175(-_0x44a490._0x166443,-0xdc,-0xbf,-_0x44a490._0xfcbbd)],_0x271b09['ip']=_0x110f0f['ip'],logger[_0x28b175(-0x108,-_0x44a490._0x5250f9,-_0x44a490._0x275a87,-0xf7)](_0x1ec5b0[_0x28b175(-_0x44a490._0x324732,-_0x44a490._0x415027,-_0x44a490._0x2a7db8,-_0x44a490._0x415027)],_0x271b09);const _0xa8f51c={};_0xa8f51c[_0x1cbb64(_0x44a490._0x7a37f5,_0x44a490._0xdb56b5,_0x44a490._0x39e205,0x4c8)]=_0x28b175(-_0x44a490._0x4491bf,-0x109,-_0x44a490._0x42d325,-_0x44a490._0x1e903d)+_0x28b175(-0xe8,-_0x44a490._0x32a67e,-_0x44a490._0x2d4507,-_0x44a490._0x287789)+_0x1cbb64(0x4a3,0x49a,_0x44a490._0x4f2b3b,_0x44a490._0x523e96);function _0x1cbb64(_0x5cb23b,_0x3fd42f,_0x353da0,_0x5b9ae3){return _0x56d7(_0x5b9ae3-_0x834399._0x3c6b86,_0x3fd42f);}return _0xa8f51c[_0x28b175(-0x114,-_0x44a490._0x492813,-0xfc,-0xe8)]=_0x1ec5b0[_0x28b175(-0x101,-0x11b,-0x11c,-_0x44a490._0x252ed4)],_0x2f9462[_0x1cbb64(0x480,0x49c,_0x44a490._0x487f33,0x49a)](0x59*-0x11+0x58+0x722)[_0x1cbb64(_0x44a490._0x45f73f,0x469,0x497,_0x44a490._0x429090)](_0xa8f51c);}export async function requireAdmin(_0xc5f357,_0x2de970,_0x594811){const _0x462f83={_0xfd5ca3:0xee,_0x47d14e:0xe8,_0x1c1191:0x110,_0x45c547:0x12f,_0x447856:0xd6,_0xc2833a:0xf0,_0x28c817:0xf5,_0x26ca09:0x106,_0x1adc82:0xd6,_0x855663:0xc7,_0x574697:0xd2,_0x3ed4e9:0xc8,_0x3f7367:0xc3,_0x3d2b08:0x9e,_0x2e1e40:0x7d,_0x3c8c66:0xba,_0x5edc08:0x11a,_0x16148c:0xec,_0x546dd7:0xd5,_0x44f284:0xb3,_0x5d96be:0xec,_0x5be849:0xf1,_0x13b96f:0xf1,_0x3f0392:0xdd,_0x504a1d:0x8a,_0x399ed0:0xaa,_0x2ea380:0x133,_0x56bd1a:0x122,_0x532002:0x148,_0x4cf320:0xef,_0x5b75ab:0x91,_0x1fc923:0xf1,_0x1993ce:0xe7,_0x27a619:0xc6,_0x301a34:0x13a,_0x52943f:0x13b,_0x44cd60:0x11b,_0x108e09:0x120,_0x381ce1:0xf3,_0x5cf9ef:0xed,_0x247094:0xeb,_0x17dfaf:0x10c,_0x14b177:0x133,_0x391a71:0x13a,_0x29d505:0x127,_0x1fba4f:0x13f,_0x9f17f8:0x15c,_0x277460:0x119,_0x43abac:0x100,_0x352f00:0xaf,_0x586f03:0xcf,_0x257b2e:0xce,_0x2843c8:0xa2,_0x534ee5:0x10f,_0x3f7f2c:0x14a,_0x50f522:0x121,_0x534868:0x130,_0x4f8ed4:0x8f,_0x4d5525:0xa7,_0x1e6b8e:0xb2,_0x134a91:0xbd,_0x1cd986:0xba,_0x4e94b1:0xc1,_0x3cb566:0xcc,_0x9e88d5:0xa8,_0x5843c1:0x98,_0x3af6a9:0x12b,_0x16c93b:0x105,_0x5bcf5f:0xfa,_0x295133:0x131,_0x192b37:0x13d,_0x162898:0x13b,_0x388a4d:0xf7,_0x26af3b:0x11f,_0x5369bd:0x104,_0x2f1653:0x149,_0x3525ce:0xb6,_0x4c5457:0xd4,_0x221ead:0x127,_0x339a80:0xa9,_0x1d823b:0xb1,_0x56e13b:0x143,_0xc736dc:0x134,_0x1ccc8d:0xe4,_0xa9de8c:0xf1,_0x2e55e9:0xde,_0x5a727e:0xe3,_0x4d4e8b:0x12a,_0x50bcb4:0xad,_0x47d8ca:0xca,_0xaf0272:0xfb,_0xb18e69:0x117,_0xa6fa5d:0x103,_0x104881:0xff,_0x30df8b:0xd4,_0x1c9bb3:0xda,_0x355344:0xb9,_0x23d282:0xe3,_0x4c0841:0xa1,_0x40f15a:0x11a,_0x38f454:0xe6,_0x215a07:0x12d,_0x283a4a:0xe2,_0x4adfda:0xfc,_0x2743a2:0xd4,_0x1478a3:0xc3,_0x44d6be:0xab,_0x5b81a6:0x127,_0xf65ed0:0xe7,_0xb380c6:0xf9,_0x51bd18:0xf4,_0x5c720d:0xdd,_0x130f58:0x135,_0x3df19c:0x116,_0x20e96e:0x14c,_0x3caf25:0xd7,_0xe32921:0x10a,_0x25ab48:0xdf,_0x833c83:0xf2,_0x5f1e32:0x112},_0x3448e6={_0x12c058:0x2df},_0x56c45e={'NlSGl':_0x119f11(-_0x462f83._0xfd5ca3,-_0x462f83._0x47d14e,-0xf1,-0x116),'dwLCp':'Server\x20Adm'+_0x119f11(-0x134,-0x12b,-_0x462f83._0x1c1191,-_0x462f83._0x45c547)+_0x2981b5(_0x462f83._0x447856,_0x462f83._0xc2833a,_0x462f83._0x28c817,_0x462f83._0x26ca09),'VNHsT':'test','bvhcO':_0x2981b5(_0x462f83._0x1adc82,0xd9,_0x462f83._0x855663,_0x462f83._0x574697)+'le.com','jQSbQ':'Admin\x20perm'+_0x119f11(-0xca,-_0x462f83._0xc2833a,-0x111,-0xf2)+'ck\x20failed','xqSvo':'Internal\x20s'+_0x2981b5(0x9c,0xc8,0xad,0xa8)+'r','xSpst':_0x2981b5(0xdb,_0x462f83._0x3ed4e9,_0x462f83._0x3f7367,_0x462f83._0x3d2b08)+_0x2981b5(_0x462f83._0x3ed4e9,0xef,0xeb,0xd0)+_0x2981b5(_0x462f83._0x2e1e40,0xa0,0xa1,0x77)+'s\x20this\x20res'+_0x2981b5(0xc8,0xad,_0x462f83._0x3c8c66,_0x462f83._0x47d14e),'MOMVL':function(_0x528c27,_0x50e82e){return _0x528c27!==_0x50e82e;},'LecjX':_0x2981b5(0xd0,_0x462f83._0x5edc08,_0x462f83._0x16148c,0x106),'FzvfQ':'../lib/per'+'mission-re'+_0x2981b5(_0x462f83._0x546dd7,_0x462f83._0xc2833a,0xe1,_0x462f83._0x44f284),'AJVLD':function(_0x5b08a3,_0x1173d3){return _0x5b08a3(_0x1173d3);},'UShgp':'MRDfY','nYwDr':_0x2981b5(0xd2,_0x462f83._0x5d96be,_0x462f83._0x5be849,0xc8),'KCEKN':_0x119f11(-_0x462f83._0x5edc08,-_0x462f83._0x16148c,-_0x462f83._0x13b96f,-_0x462f83._0x3f0392)+_0x2981b5(0xb4,_0x462f83._0x504a1d,_0x462f83._0x399ed0,0x84)+_0x2981b5(0xfd,0xc2,0xd7,0xb4)+_0x2981b5(0xd6,_0x462f83._0x47d14e,0xdf,0xf1)};function _0x2981b5(_0x4d7acc,_0x3b4f87,_0x5bf27d,_0x54d675){return _0x56d7(_0x5bf27d- -0xff,_0x54d675);}if(!_0xc5f357[_0x119f11(-_0x462f83._0x2ea380,-_0x462f83._0x56bd1a,-0x120,-_0x462f83._0x532002)]){const _0x4244de={};return _0x4244de['error']='Authentica'+_0x119f11(-_0x462f83._0x4cf320,-0xfb,-0xe5,-0x128)+_0x119f11(-0x12e,-0x141,-0x15b,-0x138),_0x4244de[_0x2981b5(0xc6,0x98,0xb9,_0x462f83._0x5b75ab)]=_0x56c45e[_0x2981b5(_0x462f83._0x1fc923,0x112,_0x462f83._0x1993ce,_0x462f83._0x27a619)],_0x2de970[_0x119f11(-0x165,-_0x462f83._0x301a34,-_0x462f83._0x52943f,-0x149)](0x4a2+-0x249f+0x218e)['json'](_0x4244de);}function _0x119f11(_0x31e6f0,_0x36319d,_0x482c1f,_0xd34b11){return _0x56d7(_0x36319d- -_0x3448e6._0x12c058,_0x31e6f0);}try{if(_0x56c45e['MOMVL'](_0x56c45e[_0x2981b5(_0x462f83._0x44cd60,_0x462f83._0x108e09,_0x462f83._0x381ce1,0xca)],_0x56c45e[_0x119f11(-_0x462f83._0x1fc923,-_0x462f83._0x5cf9ef,-0xde,-0xf0)])){const _0x33cecc={};return _0x33cecc[_0x119f11(-_0x462f83._0x247094,-_0x462f83._0x17dfaf,-0x111,-_0x462f83._0x14b177)]=_0x56c45e['NlSGl'],_0x33cecc[_0x119f11(-_0x462f83._0x391a71,-_0x462f83._0x29d505,-0x119,-_0x462f83._0x1fba4f)]=_0x56c45e[_0x119f11(-_0x462f83._0x9f17f8,-0x12f,-_0x462f83._0x277460,-_0x462f83._0x43abac)],_0x916eec[_0x2981b5(_0x462f83._0x352f00,_0x462f83._0x586f03,0xa6,_0x462f83._0x257b2e)](0x128*0x18+0x7c5*-0x3+-0x16f*0x2)[_0x2981b5(0x86,_0x462f83._0x855663,_0x462f83._0x2843c8,_0x462f83._0x3f7367)](_0x33cecc);}else{const {hasAllPermissions:_0x4b412c}=await import(_0x56c45e['FzvfQ']),_0x3105dc=await _0x56c45e[_0x119f11(-0x104,-_0x462f83._0x534ee5,-0x100,-0x112)](_0x4b412c,_0xc5f357[_0x119f11(-_0x462f83._0x3f7f2c,-0x122,-0x12a,-0x120)]['id']);if(!_0x3105dc){if(_0x56c45e[_0x119f11(-_0x462f83._0x50f522,-0x139,-_0x462f83._0x277460,-_0x462f83._0x534868)]!==_0x56c45e[_0x2981b5(0x85,_0x462f83._0x4f8ed4,_0x462f83._0x4d5525,_0x462f83._0x1e6b8e)]){const _0x376aa8={};return _0x376aa8['id']=_0x2981b5(0xec,0xc3,_0x462f83._0x134a91,_0x462f83._0x1cd986),_0x376aa8['username']=_0x56c45e[_0x2981b5(0xa5,0xad,_0x462f83._0x4e94b1,0xae)],_0x376aa8[_0x2981b5(0x9e,_0x462f83._0x3cb566,_0x462f83._0x9e88d5,0xaa)]=_0x56c45e[_0x2981b5(_0x462f83._0x5843c1,_0x462f83._0x586f03,0xa5,0xb8)],_0x376aa8[_0x119f11(-_0x462f83._0x3af6a9,-_0x462f83._0x16c93b,-_0x462f83._0x5bcf5f,-_0x462f83._0x534ee5)]=_0x119f11(-0x10d,-0x117,-_0x462f83._0x295133,-0x143),_0x376aa8[_0x119f11(-0x11c,-_0x462f83._0x192b37,-0x14b,-_0x462f83._0x162898)+'me']=_0x56c45e[_0x119f11(-_0x462f83._0x388a4d,-_0x462f83._0x26af3b,-_0x462f83._0x5369bd,-_0x462f83._0x2f1653)],_0x32eaba['user']=_0x376aa8,_0x272bdb[_0x2981b5(0x8c,0xdf,_0x462f83._0x3525ce,0x8d)+'tedVia']=_0x56c45e['VNHsT'],_0x1acb7d();}else{const _0x367fe1={};return _0x367fe1[_0x2981b5(0xa7,0xad,_0x462f83._0x4c5457,0xfa)]='Forbidden',_0x367fe1[_0x119f11(-_0x462f83._0x295133,-_0x462f83._0x221ead,-0xfb,-0x13e)]=_0x56c45e[_0x2981b5(_0x462f83._0x855663,_0x462f83._0x339a80,_0x462f83._0x1d823b,0x85)],_0x2de970['status'](0x132c+-0x17e3*-0x1+-0x297c)[_0x119f11(-_0x462f83._0x56e13b,-0x13e,-0x15d,-_0x462f83._0xc736dc)](_0x367fe1);}}_0x594811();}}catch(_0x4d6749){if(_0x56c45e[_0x2981b5(0x10e,0xc0,_0x462f83._0x1ccc8d,0xe4)]===_0x56c45e[_0x119f11(-0x111,-0xfc,-_0x462f83._0xa9de8c,-0xdb)]){const _0x4c048b={};_0x4c048b[_0x119f11(-_0x462f83._0x2e55e9,-0x10c,-_0x462f83._0x5a727e,-_0x462f83._0x4d4e8b)]=_0x4d6749[_0x119f11(-0x124,-_0x462f83._0x221ead,-0x12a,-0x13f)],_0x4c048b['userId']=_0xc5f357[_0x2981b5(0x90,_0x462f83._0x50bcb4,0xbe,_0x462f83._0x47d8ca)]['id'],logger[_0x119f11(-0x10f,-0x10c,-0xfd,-_0x462f83._0xaf0272)](_0x56c45e[_0x119f11(-_0x462f83._0xb18e69,-_0x462f83._0xa6fa5d,-_0x462f83._0x2e55e9,-0x11b)],_0x4c048b);const _0x5a00dd={};return _0x5a00dd[_0x2981b5(0xd0,_0x462f83._0x104881,_0x462f83._0x30df8b,_0x462f83._0x339a80)]=_0x56c45e['xqSvo'],_0x5a00dd[_0x2981b5(0xc5,_0x462f83._0x1c9bb3,_0x462f83._0x355344,0xb2)]=_0x56c45e[_0x2981b5(_0x462f83._0x23d282,_0x462f83._0x4c0841,0xc6,0xe4)],_0x2de970['status'](0x2*-0x1351+0x2*0x186+-0x258a*-0x1)[_0x119f11(-0x15f,-0x13e,-0x138,-_0x462f83._0x40f15a)](_0x5a00dd);}else{const _0x2bc23e={};_0x2bc23e['error']=_0xabb588[_0x2981b5(0xaa,0xe8,0xb9,0x8a)],_0x2bc23e[_0x119f11(-_0x462f83._0x38f454,-0x102,-0xfa,-0x113)]=_0x36a7e6[_0x119f11(-_0x462f83._0x215a07,-0x122,-0x141,-0xf7)]['id'],_0x24fc51[_0x2981b5(_0x462f83._0x283a4a,_0x462f83._0x4adfda,_0x462f83._0x2743a2,0xd5)](_0x56c45e['jQSbQ'],_0x2bc23e);const _0x190fd7={};return _0x190fd7[_0x2981b5(0xd8,_0x462f83._0x283a4a,0xd4,0xf9)]=_0x56c45e[_0x2981b5(_0x462f83._0x1478a3,_0x462f83._0x44d6be,0xcd,0xb9)],_0x190fd7[_0x119f11(-0x110,-_0x462f83._0x5b81a6,-0x116,-0x112)]=_0x2981b5(_0x462f83._0xf65ed0,_0x462f83._0xb380c6,_0x462f83._0x51bd18,_0x462f83._0x5c720d)+_0x119f11(-_0x462f83._0x130f58,-0x136,-_0x462f83._0x3df19c,-_0x462f83._0x20e96e)+_0x2981b5(0xc8,_0x462f83._0x399ed0,_0x462f83._0x3caf25,0xcc)+_0x2981b5(0xbb,_0x462f83._0xe32921,_0x462f83._0x25ab48,_0x462f83._0x833c83),_0x5db12b['status'](-0x14a1+0x85*-0x9+0x48b*0x6)[_0x119f11(-0x156,-0x13e,-_0x462f83._0x5f1e32,-0x160)](_0x190fd7);}}}
|