@profoundlogic/coderflow-server 0.9.1 → 0.9.2
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/skill-catalog.json +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/compression-filter.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/memory-utils.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/slack-service.js +1 -1
- package/dist/lib/state-capture.js +1 -1
- package/dist/lib/static-files.js +1 -1
- package/dist/lib/task-aliases.js +1 -1
- package/dist/lib/task-container-init.js +1 -1
- package/dist/lib/task-context-usage.js +1 -1
- package/dist/lib/task-git-auth-errors.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/logs.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/slack.js +1 -1
- package/dist/routes/stats.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/admin.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/docs/admin/automations.md +2 -1
- package/dist/web-ui/public/docs/docsify-proxy-helper.js +1 -1
- package/dist/web-ui/public/environments.css +5 -0
- package/dist/web-ui/public/environments.html +4 -3
- 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/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-client.transport-warning.js +1 -1
- package/dist/web-ui/public/sse-shared-worker.js +1 -1
- package/dist/web-ui/public/task-judging-helpers.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
package/dist/routes/roles.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4a6c(_0x26f7d3,_0x5dd27f){_0x26f7d3=_0x26f7d3-(0x2193+-0x15*-0x1bd+0xb93*-0x6);const _0x2eb1e0=_0x1902();let _0x4c6be7=_0x2eb1e0[_0x26f7d3];if(_0x4a6c['uKvyjJ']===undefined){var _0x6afb14=function(_0x1e3db1){const _0x3eab2a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x35696e='',_0x47e80e='';for(let _0x1e47b5=-0xa63+0x58a+0x4d9,_0xc7fb31,_0x34c51c,_0x4cb801=-0x9a*-0x16+-0x1*0x781+0x5bb*-0x1;_0x34c51c=_0x1e3db1['charAt'](_0x4cb801++);~_0x34c51c&&(_0xc7fb31=_0x1e47b5%(-0x7*-0x4ae+0x28a*0x2+-0x67*0x5e)?_0xc7fb31*(0x10ab*-0x1+0x2517*-0x1+0x3602)+_0x34c51c:_0x34c51c,_0x1e47b5++%(0x258b+0x271*-0x5+-0x1952))?_0x35696e+=String['fromCharCode'](0x2f4+-0x3c5*0xa+-0x1*-0x23bd&_0xc7fb31>>(-(0x1*0x1bdc+0xdf3*-0x1+-0x1*0xde7)*_0x1e47b5&0x1e2f+-0x229d+-0x39*-0x14)):0x1b*-0x5f+0x2263+-0x185e*0x1){_0x34c51c=_0x3eab2a['indexOf'](_0x34c51c);}for(let _0x27e3f6=0xb5b+-0x9bb*-0x3+-0x288c,_0x268579=_0x35696e['length'];_0x27e3f6<_0x268579;_0x27e3f6++){_0x47e80e+='%'+('00'+_0x35696e['charCodeAt'](_0x27e3f6)['toString'](0xa99*0x3+0x1765+0x70*-0x7e))['slice'](-(-0x1*-0x615+0x1*0x1e7f+-0x97*0x3e));}return decodeURIComponent(_0x47e80e);};_0x4a6c['rpzIfY']=_0x6afb14,_0x4a6c['nGtCWd']={},_0x4a6c['uKvyjJ']=!![];}const _0x5e6b03=_0x2eb1e0[-0x4*-0x21c+0x4d5*-0x7+0x1963],_0x31f4b0=_0x26f7d3+_0x5e6b03,_0x3482b9=_0x4a6c['nGtCWd'][_0x31f4b0];return!_0x3482b9?(_0x4c6be7=_0x4a6c['rpzIfY'](_0x4c6be7),_0x4a6c['nGtCWd'][_0x31f4b0]=_0x4c6be7):_0x4c6be7=_0x3482b9,_0x4c6be7;}(function(_0x42bbcd,_0x598c5a){const _0x57c736={_0x3dc664:0x98,_0x18093e:0x66,_0x5db4b9:0x245,_0xd647c0:0x211,_0x46b1de:0x9d,_0x20aeb6:0x223,_0x4438dc:0x228,_0x452264:0x26a,_0x2f4a88:0x246,_0x3ac5e3:0x23f},_0x5c85cc={_0xef86c1:0x1ad};function _0x356bce(_0x181ff4,_0x5c7fcb,_0x4d8489,_0xfcebef){return _0x4a6c(_0x181ff4- -_0x5c85cc._0xef86c1,_0xfcebef);}function _0x415291(_0x56e496,_0x46a140,_0x103440,_0x3c8c36){return _0x4a6c(_0x3c8c36- -0x325,_0x56e496);}const _0x411376=_0x42bbcd();while(!![]){try{const _0x4fe129=-parseInt(_0x356bce(-_0x57c736._0x3dc664,-_0x57c736._0x18093e,-0x76,-0x65))/(0xdcb+-0x30e*-0x1+-0x10d8)+parseInt(_0x415291(-_0x57c736._0x5db4b9,-0x1e7,-0x238,-_0x57c736._0xd647c0))/(-0x2693+-0x3*-0x926+-0xb23*-0x1)+-parseInt(_0x356bce(-0x94,-0x7b,-0xdd,-_0x57c736._0x46b1de))/(0x393+-0x65e+0x2ce)+parseInt(_0x356bce(-0x76,-0x93,-0x3e,-0x8a))/(0x1*0x2233+-0x719*0x1+0xd8b*-0x2)+parseInt(_0x356bce(-0x70,-0x40,-0x9a,-0x76))/(-0x1b12+0x5b*-0xd+0x1fb6)+-parseInt(_0x415291(-_0x57c736._0x20aeb6,-0x28a,-0x2b1,-0x273))/(-0xdf3+0x79*-0x10+0x1589)+parseInt(_0x415291(-0x216,-0x201,-0x1e3,-_0x57c736._0x4438dc))/(-0x94+0x8e6*0x4+-0x22fd)*(parseInt(_0x415291(-0x1f2,-_0x57c736._0x452264,-_0x57c736._0x2f4a88,-_0x57c736._0x3ac5e3))/(0x61*-0x25+0x2*-0xf47+0x2c9b));if(_0x4fe129===_0x598c5a)break;else _0x411376['push'](_0x411376['shift']());}catch(_0x4a0759){_0x411376['push'](_0x411376['shift']());}}}(_0x1902,-0x2f117*0x5+0x85bb9+0xe8394));import _0x457282 from'express';import{logger}from'../lib/logger.js';import{getRoles,getRoleById,createRole,updateRole,deleteRole,isValidPermission,inferRoleResourceType}from'../lib/role-definitions.js';function _0x2adf61(_0x2620e5,_0x2cbeba,_0x52dc62,_0x55ab90){const _0x2147ec={_0x1f182d:0x10f};return _0x4a6c(_0x2cbeba- -_0x2147ec._0x1f182d,_0x55ab90);}import{getBindings}from'../lib/bindings.js';import{getAllPermissionsFlat,getPermissionScope}from'../lib/roles.js';import{requirePermission}from'../middleware/requirePermission.js';const router=_0x457282[_0x2adf61(-0x39,-0x55,-0x8e,-0x7e)]();function _0x1902(){const _0x439d93=['ChP6EgK','rMjxyMy','s0n0Dey','mtC0otuXmLfsuwPssa','Aw5LzcbYB2XL','Aw5NihjVBgu','EeHwBgm','CMvZB3vYy2vFAq','zvvwwK8','uxvAtuG','ExbL','D0rAz2K','AxnbCNjHEq','suXsywu','zwTgDe0','rwH4BuS','zNvSBhK','wujzreS','wfDUqui','sKT6r1G','AwD3BgG','tfrqrLa','q29UzMXPy3q','DMrgAuG','BwfW','DvfLv0e','ntzyvxjwquK','zw5JzwqGyNKG','v1fxtLe','yw5Hz2u','igjPBMrPBMCOCW','u3neu3C','rfLLAw4','sgPuq3y','uM9Szsb1CgrHDa','Cg9ZDa','BguGyw5KignHBG','BNj5D0O','B0LhEfy','rxjYB3iGBgLZDa','C3qGyMuGysbUBW','uM9Zy0u','BgvUz3rO','vfDYre4','q2fUBM90igrLBa','yM9KEq','wKrbq0C','qMfKifjLCxvLCW','zxrLihbYzwrLzG','nti4mZG4EK5Ksunb','ndC4mZeXwurMAMTZ','B3vUza','BeDvs3K','sg1yDwi','mJy4mZG3ognuqvPsBW','AxmGCMvXDwLYzq','BwvZC2fNzq','uevJA0i','C3rHDhvZ','qu9Itfq','BuHxq2e','lxbLCM1PC3nPBW','DgLUzYbYB2XL','zw50CMLLCW','rxjYB3iGz2v0Da','uxPRsxi','ENLoq3i','ywXYzwfKEsbLEa','CM9Szq','wuvqvwK','vhDbque','refcCum','C3rYAw5N','CgHhEuC','uK1wzgy','z2v0','y0D4Bvy','C2v0DgLUz3m6Bq','C3bSAxq','qLDMy0m','CgfYyw1Z','BMfTzq','sw50zxjUywWGCW','lZPPza','mZuXodm0mfv5q1rzrq','CYbPCYbYzxf1Aq','ChjLzgvMAw5Lza','uM9SzsbUyw1Lia','y29Kzq','vuXOzum','mtKXnJeWrMDfB3nt','EfrSv2q','EMnSv1a','CM9Szxm','CM9Szv9Pza','CMvZB3vYy2vFDa','B3qGyMuGzgvSzq','rxjYB3iGy3jLyq','uNvKAwW','zxjYB3i','sgjotxe','Bu9zv3K','qNjXAKS','EuDpAvi','refHzha','EsbHCNjHEq','C0fhsMW','CMvKigfUzcbTDq','zgvMAw5LzcbYBW','y0HktfG','uM9SzsbUB3qGzG','nJe0mJa0ng1hA3fWDG','zMLSDgvY','DgvK','zxj2zxiGzxjYBW','qxnst3y','jYbPCYbYzwzLCG','ANnVBG','C3vIAMvJDf9Pza','uM91DgvY','DhjPBq','tMzAwfa','CgvYBwLZC2LVBG','zvfpyKC','AvfdrM4','uM9SzsbKzwXLDa','rxjYB3iGzgvSzq','jYbPCYbHihbYzq','svf4seC','rvr2yLy','CM1PC3nPB25ZoG','C2T0tuS','q2zsChm','shfQv0W','zurnyuG','wg1LEwS','uM9SzsbPBIb1CW','vKfmsurbveLptG','ChnytgW','Aw5JBhvKzxm','BI1LBxb0EsbHCG','De9zv3O','rLnuwMe','zefzs0i','C3vIAMvJDf90Eq','zgvZy3jPChrPBW','vgHLihjVBguGjW','EuPQC08','ysbUB24Tzw1WDa','AM9PBG','AxvgCKO','BM90igjLigrLBa','sw52ywXPzcbWzq','sgHPzeq','wxPPz0e','rxjYB3iGDxbKyq','zgvSzxrL','zwqGC3vJy2vZCW','l2f2ywLSywjSzq','rfj0uwi'];_0x1902=function(){return _0x439d93;};return _0x1902();}router['get'](_0x2adf61(0xa,-0x2e,-0x5d,0x0)+_0x2e78a4(0x43f,0x46d,0x46a,0x426)+'ns',(_0x37aca6,_0x34e319)=>{const _0x4e5935={_0x545114:0x1d4,_0x20a66f:0x246,_0x3f2356:0x1ff,_0x4cda50:0x177},_0x5f2540={_0xeef599:0xfc,_0x4c3640:0x372},_0x36e12e={_0x5acbaf:0xce},_0x5d7765={'HhidD':function(_0x362c3f){return _0x362c3f();}};function _0x1ea5cb(_0x26cbf4,_0x1fb42e,_0x184b5c,_0x49052d){return _0x2e78a4(_0x26cbf4-0x47,_0x1fb42e-_0x36e12e._0x5acbaf,_0x184b5c,_0x49052d- -0x229);}const _0x303011=_0x5d7765[_0x1ea5cb(0x1c2,0x16a,_0x4e5935._0x545114,0x1b9)](getAllPermissionsFlat),_0x323ed3=Object[_0x1ea5cb(0x1f3,0x1d2,_0x4e5935._0x20a66f,_0x4e5935._0x3f2356)](_0x303011)[_0x10f2bd(0x34e,0x35e,0x317,0x3ab)](([_0x3e0915,_0x4a7e3d])=>({'key':_0x3e0915,'description':_0x4a7e3d,'category':_0x3e0915[_0x10f2bd(0x3d2,0x394,0x3cf,0x39d)](':')[-0x107*0x1a+-0x944*-0x2+-0x417*-0x2],'scope':getPermissionScope(_0x3e0915)})),_0x1ac6b2={};function _0x10f2bd(_0x5c4945,_0xf9ec9c,_0xbe9af0,_0x5c8eac){return _0x2adf61(_0x5c4945-_0x5f2540._0xeef599,_0xf9ec9c-_0x5f2540._0x4c3640,_0xbe9af0-0x1c2,_0x5c8eac);}return _0x1ac6b2[_0x1ea5cb(_0x4e5935._0x4cda50,0x170,0x173,0x19a)+'s']=_0x323ed3,_0x34e319[_0x1ea5cb(0x1a3,0x1d7,0x1d0,0x195)](_0x1ac6b2);});function _0x2e78a4(_0x39b236,_0x1628f3,_0x27db9e,_0x201728){return _0x4a6c(_0x201728-0x306,_0x27db9e);}router['get']('/',async(_0xd63764,_0x3a273f)=>{const _0x2e6424={_0xacc844:0x298,_0x39f87e:0x108,_0xa972a7:0x13e,_0x1d6604:0x28a,_0x3c957a:0x2cb,_0x36f92e:0x294,_0x1dbcc1:0x2f3,_0x10b0ea:0x2ba,_0x54e0da:0x276,_0x2db410:0x288,_0x8081fd:0x289,_0x272903:0x2c7,_0x2a3e8a:0x302,_0x396950:0x28e,_0x38ef78:0x25c,_0x4a2893:0x209,_0x18ba63:0x2aa,_0x1fa169:0x2f8,_0x26a330:0x159,_0xcb27c:0x1a0,_0x4be1c1:0x1a5,_0x513dec:0x1a6,_0x188352:0x187,_0x25de22:0x2da,_0x5ac7e4:0x2f1,_0x220944:0x167,_0x449ffc:0x119,_0x2e7b27:0x13a,_0x1ef565:0x301,_0x3e7813:0x2de,_0x2427d6:0x315,_0x24b5a8:0x1b3,_0x47913a:0x14b,_0x4602e0:0x160,_0x57b573:0x308,_0x239712:0x1cb,_0x255957:0x1b2,_0x25f2da:0x2a6},_0x3150d8={_0xe22085:0x14b,_0x3e1bb2:0x56c},_0x597ce5={_0x140de4:0x10b,_0x2987df:0x111};function _0x3d48db(_0x3a4d6e,_0x484b44,_0x5f05bf,_0xe6c84c){return _0x2e78a4(_0x3a4d6e-_0x597ce5._0x140de4,_0x484b44-_0x597ce5._0x2987df,_0x5f05bf,_0x484b44- -0x686);}const _0x4f3013={'YEPUi':'Error\x20gett'+_0x3d48db(-0x272,-_0x2e6424._0xacc844,-0x2c3,-0x26e),'pzzxi':_0x464236(-0x17d,-0x131,-_0x2e6424._0x39f87e,-_0x2e6424._0xa972a7)+_0x3d48db(-_0x2e6424._0x1d6604,-_0x2e6424._0x3c957a,-_0x2e6424._0x36f92e,-0x2d1)+'r','ETvbV':function(_0x35b736){return _0x35b736();},'uQeWA':_0x3d48db(-_0x2e6424._0x1dbcc1,-_0x2e6424._0x10b0ea,-0x2d9,-0x2b2),'ZDACG':_0x3d48db(-0x26d,-_0x2e6424._0x54e0da,-_0x2e6424._0x2db410,-_0x2e6424._0x8081fd)+'ing\x20roles'};function _0x464236(_0x342cb7,_0x31611b,_0x32e3a9,_0x55b579){return _0x2e78a4(_0x342cb7-_0x3150d8._0xe22085,_0x31611b-0x188,_0x32e3a9,_0x31611b- -_0x3150d8._0x3e1bb2);}try{const _0x3c968c=await _0x4f3013[_0x3d48db(-0x29f,-0x2bc,-_0x2e6424._0x272903,-_0x2e6424._0x2a3e8a)](getRoles),_0x56e638=_0x3c968c[_0x3d48db(-_0x2e6424._0x396950,-0x285,-_0x2e6424._0x10b0ea,-0x284)](_0x543879=>({..._0x543879,'resource_type':inferRoleResourceType(_0x543879['permission'+'s'])})),_0x3be8f0={};return _0x3be8f0[_0x3d48db(-0x253,-0x240,-_0x2e6424._0x38ef78,-_0x2e6424._0x4a2893)]=_0x56e638,_0x3a273f[_0x3d48db(-_0x2e6424._0x18ba63,-0x2c8,-0x2fc,-_0x2e6424._0x1fa169)](_0x3be8f0);}catch(_0x4238d0){if(_0x464236(-_0x2e6424._0x26a330,-_0x2e6424._0xcb27c,-0x1d3,-_0x2e6424._0x4be1c1)===_0x4f3013[_0x464236(-_0x2e6424._0x513dec,-0x16a,-_0x2e6424._0x188352,-0x135)]){const _0x451e5f={};_0x451e5f[_0x464236(-0x177,-0x1c0,-0x171,-0x18c)]=_0x4238d0['message'],logger[_0x3d48db(-0x2a5,-_0x2e6424._0x25de22,-_0x2e6424._0x5ac7e4,-0x2d9)](_0x4f3013[_0x464236(-_0x2e6424._0x220944,-0x155,-_0x2e6424._0x449ffc,-0x1a0)],_0x451e5f);const _0x4f4ff2={};return _0x4f4ff2['error']=_0x4f3013[_0x464236(-0x1b8,-0x183,-_0x2e6424._0x2e7b27,-0x186)],_0x3a273f['status'](-0x2166+0x24d0*-0x1+-0x2*-0x2415)[_0x3d48db(-_0x2e6424._0x1ef565,-0x2c8,-_0x2e6424._0x3e7813,-_0x2e6424._0x2427d6)](_0x4f4ff2);}else{const _0x2ebfd1={};_0x2ebfd1[_0x464236(-0x178,-0x1c0,-0x201,-_0x2e6424._0x24b5a8)]=_0x5d82da[_0x464236(-0x17d,-0x14b,-0x132,-0x16a)],_0x573707[_0x464236(-0x1cc,-0x1c0,-0x1a3,-0x1fe)](_0x4f3013[_0x464236(-_0x2e6424._0x47913a,-0x13e,-0x17e,-_0x2e6424._0x4602e0)],_0x2ebfd1);const _0x577dd2={};return _0x577dd2[_0x3d48db(-_0x2e6424._0x57b573,-_0x2e6424._0x25de22,-0x31e,-0x2c4)]=_0x4f3013[_0x464236(-_0x2e6424._0x239712,-0x183,-0x147,-_0x2e6424._0x255957)],_0x20c999[_0x3d48db(-_0x2e6424._0x25f2da,-0x263,-0x228,-0x256)](0x1421+0x1*0xddf+-0x200c)[_0x3d48db(-0x2c2,-0x2c8,-0x2ab,-0x298)](_0x577dd2);}}}),router[_0x2adf61(0x12,0x1f,0x64,-0x22)](_0x2e78a4(0x476,0x41b,0x486,0x43c),async(_0x46b317,_0x1d6437)=>{const _0x1646d4={_0x37d894:0x456,_0x24e74f:0x463,_0x3b79a7:0x3f8,_0x142c24:0x1f5,_0x570448:0x249,_0x44f5de:0x1e7,_0x5e1d39:0x429,_0x2618ba:0x416,_0x39f393:0x41c,_0x2392c7:0x435,_0x4f1f32:0x461,_0x5b484f:0x478,_0x95ab32:0x46d,_0x1d1251:0x26e,_0x5030fc:0x446,_0x1ff328:0x47e,_0x26b0a6:0x402,_0x342b24:0x45a,_0x560ebc:0x205,_0x422e74:0x273,_0x5668f8:0x22f,_0x5d3755:0x217,_0x4130e1:0x25c,_0x4a866e:0x26a,_0xc18f60:0x3d4,_0x2e11a3:0x422,_0x493b5c:0x454,_0x3bfa13:0x3e3,_0xa78bc5:0x446,_0x13d6fa:0x447,_0x50e2fc:0x247,_0x26a769:0x28d,_0x9644b:0x27f,_0x47175b:0x26a,_0x1b12ce:0x245,_0x105971:0x246,_0x1da794:0x212,_0x195d3d:0x203,_0x17b7a7:0x3eb,_0x4ba32f:0x428,_0x22811e:0x3dc,_0x1a0715:0x3bb,_0x1204a7:0x474,_0x546707:0x44d,_0x17a0dc:0x3e3,_0x565df8:0x1d1,_0x3d8567:0x205,_0x199498:0x3e6,_0x4ca0ba:0x3de,_0x130a06:0x237,_0x1ea3ff:0x24f,_0x3a7851:0x27c,_0x598d4e:0x1cc,_0x59b596:0x207,_0x3b4ad7:0x29b,_0x5f0b7f:0x2ca,_0x2ff949:0x27a,_0x4c6b8d:0x262,_0x267e59:0x22a,_0x272a1d:0x266,_0x209ff0:0x44b,_0x390b35:0x41d,_0xa6708:0x464,_0x386728:0x280},_0x563e39={_0x2e73aa:0x1a2,_0x541bcd:0x28},_0x1586e6={_0x254691:0x213,_0x4a0ff7:0xa3};function _0x2bf1b1(_0x30d389,_0x7a2797,_0x5ed5dc,_0x8e1518){return _0x2adf61(_0x30d389-0x105,_0x8e1518- -_0x1586e6._0x254691,_0x5ed5dc-_0x1586e6._0x4a0ff7,_0x30d389);}function _0x1359da(_0x551cff,_0x5666ae,_0x1ccb1f,_0xc3aafc){return _0x2e78a4(_0x551cff-0xf,_0x5666ae-_0x563e39._0x2e73aa,_0xc3aafc,_0x551cff-_0x563e39._0x541bcd);}const _0x219ba0={'YBYDK':'Role\x20not\x20f'+_0x1359da(0x444,0x451,_0x1646d4._0x37d894,_0x1646d4._0x24e74f),'vdFiH':'Bad\x20Reques'+'t','yGOiR':function(_0x4c9ab4,_0x1f9a74){return _0x4c9ab4(_0x1f9a74);},'tOYWz':function(_0x44a1db,_0x44fd09){return _0x44a1db!==_0x44fd09;},'HmXub':_0x1359da(_0x1646d4._0x3b79a7,0x42b,0x3fb,0x41e),'phGyG':_0x2bf1b1(-0x24b,-_0x1646d4._0x142c24,-0x229,-0x237),'LTPFP':_0x2bf1b1(-_0x1646d4._0x570448,-_0x1646d4._0x44f5de,-0x1fd,-0x22b),'mOYWy':_0x1359da(0x451,0x44e,0x40e,_0x1646d4._0x5e1d39)+_0x1359da(_0x1646d4._0x2618ba,0x3cc,0x434,_0x1646d4._0x39f393),'NfZXP':_0x1359da(_0x1646d4._0x24e74f,0x459,0x440,_0x1646d4._0x2392c7)+'erver\x20erro'+'r'};try{const _0x2b7a03=await _0x219ba0[_0x2bf1b1(-0x270,-0x2a0,-0x25e,-0x278)](getRoleById,_0x46b317[_0x1359da(_0x1646d4._0x4f1f32,_0x1646d4._0x5b484f,0x411,_0x1646d4._0x95ab32)]['id']);if(!_0x2b7a03){if(_0x219ba0[_0x2bf1b1(-_0x1646d4._0x1d1251,-0x220,-0x261,-0x252)](_0x219ba0[_0x1359da(_0x1646d4._0x5030fc,_0x1646d4._0x1ff328,0x3f8,_0x1646d4._0x26b0a6)],_0x219ba0[_0x1359da(_0x1646d4._0x342b24,0x472,0x494,0x444)])){const _0x50a0b6={};return _0x50a0b6['error']=_0x219ba0[_0x2bf1b1(-_0x1646d4._0x560ebc,-_0x1646d4._0x422e74,-0x270,-0x22e)],_0x1d6437[_0x2bf1b1(-_0x1646d4._0x5668f8,-_0x1646d4._0x5d3755,-0x1da,-0x205)](-0x260f*-0x1+0x24*-0x15+0x1*-0x2187)[_0x2bf1b1(-0x293,-0x2b0,-_0x1646d4._0x4130e1,-_0x1646d4._0x4a866e)](_0x50a0b6);}else{const _0xb7dcfe={};return _0xb7dcfe[_0x1359da(_0x1646d4._0xc18f60,0x419,0x41d,0x3dd)]=_0x219ba0[_0x1359da(_0x1646d4._0x2e11a3,_0x1646d4._0x493b5c,0x441,_0x1646d4._0x3bfa13)],_0x4b8ac9[_0x1359da(0x44b,_0x1646d4._0xa78bc5,_0x1646d4._0x13d6fa,0x428)](-0x1*-0x118b+0x2a1+-0x118*0x11)[_0x2bf1b1(-_0x1646d4._0x50e2fc,-_0x1646d4._0x26a769,-_0x1646d4._0x9644b,-_0x1646d4._0x47175b)](_0xb7dcfe);}}const _0x3f472e={};return _0x3f472e['role']=_0x2b7a03,_0x1d6437['json'](_0x3f472e);}catch(_0x4f35af){if(_0x1359da(0x425,0x452,0x3e9,0x3f0)!==_0x219ba0[_0x2bf1b1(-0x278,-_0x1646d4._0x1b12ce,-0x233,-0x22a)]){const _0x32a9cd={};return _0x32a9cd[_0x2bf1b1(-0x261,-_0x1646d4._0x105971,-0x26d,-0x27c)]=_0x219ba0[_0x2bf1b1(-0x22e,-_0x1646d4._0x1da794,-0x200,-0x228)],_0x32a9cd[_0x2bf1b1(-0x238,-0x1d5,-_0x1646d4._0x195d3d,-0x207)]=_0x1359da(_0x1646d4._0x17b7a7,_0x1646d4._0x4ba32f,0x40d,0x3ab)+_0x2bf1b1(-0x1bc,-0x229,-0x1bc,-0x1ea)+_0x1359da(_0x1646d4._0x22811e,0x41f,0x38c,_0x1646d4._0x1a0715)+_0x1359da(0x439,0x41f,0x466,_0x1646d4._0x1204a7)+_0x1359da(0x3fd,_0x1646d4._0x546707,_0x1646d4._0x17a0dc,0x3cd)+'ray',_0x4f30cd[_0x2bf1b1(-0x22a,-_0x1646d4._0x1da794,-_0x1646d4._0x565df8,-_0x1646d4._0x3d8567)](-0x1030+-0xc*-0x218+-0x1*0x760)[_0x1359da(_0x1646d4._0x199498,_0x1646d4._0x4ca0ba,0x3ad,0x420)](_0x32a9cd);}else{const _0x140a09={};_0x140a09[_0x2bf1b1(-0x2c6,-_0x1646d4._0x130a06,-_0x1646d4._0x1ea3ff,-_0x1646d4._0x3a7851)]=_0x4f35af[_0x2bf1b1(-_0x1646d4._0x598d4e,-0x1d1,-0x1d1,-_0x1646d4._0x59b596)],logger[_0x1359da(0x3d4,0x3ae,0x41b,_0x1646d4._0x4ca0ba)](_0x219ba0[_0x2bf1b1(-0x23b,-_0x1646d4._0x3b4ad7,-_0x1646d4._0x5f0b7f,-_0x1646d4._0x2ff949)],_0x140a09);const _0x405055={};return _0x405055[_0x2bf1b1(-0x24e,-_0x1646d4._0x4c6b8d,-_0x1646d4._0x50e2fc,-0x27c)]=_0x219ba0[_0x2bf1b1(-0x229,-_0x1646d4._0x267e59,-0x27b,-_0x1646d4._0x272a1d)],_0x1d6437[_0x1359da(_0x1646d4._0x209ff0,_0x1646d4._0x390b35,_0x1646d4._0xa6708,0x429)](0x1a58+0x2*0x7a2+-0x27a8)[_0x2bf1b1(-0x232,-_0x1646d4._0x386728,-0x228,-_0x1646d4._0x4a866e)](_0x405055);}}}),router[_0x2adf61(0x3,-0x9,-0x16,-0xa)]('/',requirePermission(_0x2adf61(-0x17,0x21,-0x2a,-0x29)+_0x2adf61(-0x26,-0xf,0x7,-0x41)),async(_0x382403,_0xe32a25)=>{const _0x404859={_0x2b92f8:0x46f,_0x43375e:0x522,_0x1cfd62:0x28,_0x28d2e0:0x6,_0xaef9cc:0x46b,_0x25ccd8:0x449,_0x11c861:0x503,_0x581da8:0x4c0,_0x7a3270:0x18,_0x2e05a8:0x6e,_0x7d1b06:0x4d6,_0x565556:0xb,_0x37f0a5:0x5f,_0x3f7a3b:0x1f,_0x27d4fa:0x497,_0x240cb8:0x49b,_0x7783be:0x460,_0x9fda83:0x4c0,_0x1ed773:0x495,_0x22c3bc:0x420,_0x4b00a7:0x468,_0xe388b:0x44,_0x2e238e:0x21,_0x2de6d5:0x74,_0x5764ed:0x67,_0x40f0c0:0x55,_0x410b8a:0xe,_0x53f439:0xe,_0x4e98c4:0x83,_0x2f3611:0x12,_0xa6a44:0x460,_0x290ccc:0x4eb,_0x4b8468:0x479,_0x4a131f:0x4ad,_0x3a9aa6:0x4c,_0x303806:0x471,_0x406eb6:0x23,_0x29fbf0:0x56,_0x22ff93:0x4e2,_0x3feb1a:0x4b9,_0x241b7a:0x4cd,_0x21759f:0x49a,_0x2111b2:0x4e8,_0x202f01:0x13,_0x1735c3:0x4b0,_0x154777:0x50b,_0x58679d:0x4f5,_0x1c252d:0x5d,_0x5d53c4:0x28,_0x1e6dc4:0x27,_0x103b2b:0x4b3,_0x806762:0x47e,_0x5d6cd2:0x4ab,_0x5b8b10:0x476,_0x36d457:0x1,_0x442f2a:0x4,_0x3aaeba:0x7,_0x2ec44f:0x4c5,_0x4f04c1:0x483,_0x485212:0x8,_0x4ff3c9:0x39,_0x3cd74d:0x490,_0x32ea32:0x4a3,_0x525122:0x487,_0x25b66b:0x7a,_0x4ee06c:0x59,_0xb85715:0x15,_0x288018:0x474,_0x414935:0x43e,_0x49f712:0x441,_0x4851c9:0x5c,_0xcbb071:0x2e,_0x5c618b:0x70,_0x359eb5:0x4f8,_0x1542ca:0x4c4,_0x91f774:0x4cb,_0x267f72:0x4a0,_0x52bc66:0x4cd,_0x4fd453:0x4bf,_0x3f9670:0x49b,_0x4e34cd:0x4b1,_0x5e8e4c:0x4d6,_0x59f931:0x4fd,_0xfc17cd:0x4b4,_0x2c1462:0x4f9,_0x1dcc6c:0x4ce,_0x520a99:0xb9,_0x5c023a:0x22,_0x3fa905:0x4a7,_0x19f9e6:0x57,_0x32b6ae:0x4e6,_0x1076b9:0x4f9,_0x3074d3:0x10,_0x3b2165:0x9,_0x33c4bc:0x5f,_0x394865:0x37,_0x46fbc:0x488,_0x424354:0x10,_0x4fb165:0x5,_0x457a5d:0x4e6,_0x25866e:0x502,_0x570d23:0x52a,_0x54c2a1:0x7,_0x29be45:0x55,_0x253464:0x475,_0x82dc57:0x530,_0x12c634:0x44a,_0x25972f:0x48d,_0x4b1cba:0x11,_0x4630fe:0x15,_0x2b31aa:0x4a5,_0x4adf9e:0x45c,_0x9959ba:0x48b,_0x6c1208:0x3e,_0x5e47dd:0x37,_0x12a39a:0x471,_0x65ad2e:0x4d4,_0x15b7a6:0x4e6,_0x15c422:0x496,_0x4daa13:0x4e6,_0x39bafa:0x534,_0x1f0813:0x4e9,_0x178538:0x489,_0x1ac115:0x50e,_0x320dc0:0x4de,_0x476463:0x1d,_0x49d732:0x7,_0x146f13:0x4e8,_0x307266:0x439,_0x273849:0x5e,_0x3c0b7b:0x6e,_0x1af660:0x2b,_0x3da221:0x11,_0x4cc970:0x36,_0xce96ea:0x4b6,_0x3aeb80:0x3,_0x341ebc:0xc,_0x5c59cd:0x1f,_0x5e8b4c:0x47,_0x585a6f:0x9,_0x5914f7:0x4b8,_0x93ed38:0x498,_0xd06054:0x7d,_0xfbf764:0xa5,_0x1f84fe:0x56,_0x13dd9c:0x5d,_0x4ae9c5:0x4f,_0x3b4f95:0x6b,_0x11684f:0x4f1},_0x538fa5={_0x127daa:0x1b1,_0x1494b7:0x14},_0x2ba2e9={_0x2d1536:0xc5},_0x3f65e7={'EYzXn':function(_0x572861){return _0x572861();},'eQObG':_0x49826a(0x492,0x4dd,0x514,0x4a3)+'t','QuZMH':function(_0x212ab8,_0x1e6292){return _0x212ab8===_0x1e6292;},'nahDV':_0x49826a(0x4ac,0x4a8,0x4e5,_0x404859._0x2b92f8),'iQCFn':'uuCqa','FbWbf':function(_0x105d6a,_0x9ab567){return _0x105d6a!==_0x9ab567;},'lGUKy':_0x49826a(_0x404859._0x43375e,0x505,0x53c,0x535)+_0x2b4445(0x23,-_0x404859._0x1cfd62,_0x404859._0x28d2e0,-0x2a)+'d','KHssl':function(_0x2654ee,_0x1dc8b8){return _0x2654ee===_0x1dc8b8;},'ULheC':_0x49826a(_0x404859._0xaef9cc,0x488,0x453,_0x404859._0x25ccd8)+_0x49826a(_0x404859._0x11c861,0x503,_0x404859._0x581da8,0x4dd)+_0x2b4445(-_0x404859._0x7a3270,-0x93,-0x66,-_0x404859._0x2e05a8)+_0x49826a(0x498,_0x404859._0x7d1b06,0x48b,0x512)+_0x2b4445(-0x2f,-0x7,-0x45,_0x404859._0x565556)+'ray','DAadp':function(_0x4ce140,_0x456118){return _0x4ce140>_0x456118;},'BrqjK':'Role\x20creat'+'ed\x20success'+'fully','RMVdf':'iUOdA','cGxmV':_0x2b4445(_0x404859._0x37f0a5,-_0x404859._0x3f7a3b,0x12,-0x1)+'ists','xHVlc':function(_0xa34553,_0x453cb3){return _0xa34553===_0x453cb3;},'HjTCv':_0x49826a(0x49e,_0x404859._0x27d4fa,_0x404859._0x240cb8,0x4b0),'VLoCY':_0x49826a(_0x404859._0x7783be,0x4b0,_0x404859._0x9fda83,_0x404859._0x1ed773),'DYein':_0x49826a(0x42a,0x46f,_0x404859._0x22c3bc,_0x404859._0x4b00a7)+_0x2b4445(0x47,0x39,0xd,0x29),'nrywJ':_0x2b4445(_0x404859._0xe388b,0x45,_0x404859._0x2e238e,0x62)+_0x49826a(0x49a,0x480,0x45c,0x4ca)+'r'};function _0x49826a(_0x153813,_0x171325,_0x578b72,_0x3ff87f){return _0x2e78a4(_0x153813-0x129,_0x171325-0x180,_0x3ff87f,_0x171325-_0x2ba2e9._0x2d1536);}function _0x2b4445(_0x17aa51,_0x4f9ac4,_0x3107c8,_0x5a57f3){return _0x2e78a4(_0x17aa51-_0x538fa5._0x127daa,_0x4f9ac4-_0x538fa5._0x1494b7,_0x5a57f3,_0x3107c8- -0x41a);}try{if(_0x3f65e7[_0x2b4445(-_0x404859._0x2de6d5,-_0x404859._0x5764ed,-0x28,-0x12)](_0x3f65e7['nahDV'],_0x3f65e7[_0x2b4445(-0x1b,-0x89,-_0x404859._0x40f0c0,-0x91)])){const _0x3529af=_0x3f65e7['EYzXn'](_0x517145),_0x4595cf=_0x1068de[_0x2b4445(0x37,0x57,_0x404859._0x410b8a,_0x404859._0x53f439)](_0x3529af)['map'](([_0x592795,_0x2ea9b4])=>({'key':_0x592795,'description':_0x2ea9b4,'category':_0x592795['split'](':')[0x1b*-0x152+-0x1702+0x3aa8],'scope':_0x53c1fb(_0x592795)})),_0x585309={};return _0x585309[_0x2b4445(-0x7e,-_0x404859._0x4e98c4,-0x57,-0x45)+'s']=_0x4595cf,_0x2d34f8[_0x2b4445(-0xe,-_0x404859._0x2f3611,-0x5c,-0x68)](_0x585309);}else{const {name:_0x4342de,description:_0x404ed1,permissions:_0x5514aa}=_0x382403['body'];if(!_0x4342de||_0x3f65e7[_0x49826a(_0x404859._0xa6a44,0x4af,_0x404859._0x290ccc,_0x404859._0x4b8468)](typeof _0x4342de,_0x49826a(0x4b7,0x4f6,_0x404859._0x4a131f,0x516))||_0x4342de[_0x2b4445(-_0x404859._0x3a9aa6,-0x26,-0x59,-0x74)]()['length']===-0x1128+0x17f3+0x25*-0x2f){const _0x28d75d={};return _0x28d75d[_0x49826a(0x436,_0x404859._0x303806,0x45e,0x427)]=_0x3f65e7[_0x2b4445(-0xa2,-_0x404859._0x406eb6,-_0x404859._0x29fbf0,-0x81)],_0x28d75d['message']=_0x3f65e7[_0x49826a(0x4d7,_0x404859._0x22ff93,_0x404859._0x3feb1a,_0x404859._0x241b7a)],_0xe32a25[_0x49826a(_0x404859._0x21759f,_0x404859._0x2111b2,0x4d1,0x502)](0x20f9*0x1+-0x22f6+0x38d)[_0x2b4445(-0x9a,-0x37,-0x5c,-0x19)](_0x28d75d);}if(!_0x5514aa||!Array[_0x2b4445(_0x404859._0x202f01,0x1f,-0x25,-0x5e)](_0x5514aa)||_0x3f65e7['KHssl'](_0x5514aa[_0x49826a(0x49d,0x4d8,_0x404859._0x1735c3,0x4de)],0x20b*0xe+0x1398+-0x1f*0x18e)){const _0xb947fe={};return _0xb947fe['error']=_0x49826a(_0x404859._0x154777,0x4dd,_0x404859._0x58679d,0x4d7)+'t',_0xb947fe['message']=_0x3f65e7[_0x2b4445(_0x404859._0x1c252d,0x54,_0x404859._0x5d53c4,-_0x404859._0x1e6dc4)],_0xe32a25['status'](0x5de+0x18e0+-0x3*0x9ba)['json'](_0xb947fe);}const _0x52e519=_0x5514aa[_0x49826a(_0x404859._0x103b2b,_0x404859._0x806762,0x46b,_0x404859._0x5d6cd2)](_0x23af25=>!isValidPermission(_0x23af25));if(_0x3f65e7[_0x49826a(0x467,_0x404859._0x5b8b10,0x48a,0x435)](_0x52e519[_0x2b4445(_0x404859._0x36d457,-_0x404859._0x442f2a,-_0x404859._0x3aaeba,-0x4d)],-0x9b*0x25+-0xf*0x19d+0x2e9a))return _0xe32a25['status'](0x31e+-0xe23+0xc95)[_0x49826a(_0x404859._0x2ec44f,_0x404859._0x4f04c1,0x473,0x4a9)]({'error':_0x3f65e7['eQObG'],'message':_0x2b4445(-0x3f,-_0x404859._0x485212,-_0x404859._0x4ff3c9,-0x2e)+_0x49826a(0x4c4,_0x404859._0x3cd74d,0x45e,0x4de)+'\x20'+_0x52e519[_0x49826a(0x4dd,_0x404859._0x32ea32,0x4d3,_0x404859._0x525122)](',\x20')});const _0x260ed8=await createRole({'name':_0x4342de[_0x2b4445(-0x99,-_0x404859._0x25b66b,-_0x404859._0x4ee06c,-_0x404859._0xb85715)](),'description':_0x404ed1,'permissions':_0x5514aa}),_0x387d76={};return _0x387d76['message']=_0x3f65e7[_0x49826a(0x456,_0x404859._0x288018,_0x404859._0x414935,_0x404859._0x49f712)],_0x387d76[_0x2b4445(0xb,0x5d,0x13,0xf)]=_0x260ed8,_0xe32a25['status'](0xeb7*0x2+-0x45*0x2f+-0xffa)[_0x2b4445(-0x9c,-0x9b,-_0x404859._0x4851c9,-0xd)](_0x387d76);}}catch(_0x57b328){if(_0x3f65e7[_0x2b4445(-_0x404859._0xcbb071,-_0x404859._0x7a3270,-0x30,-_0x404859._0x5c618b)](_0x3f65e7[_0x49826a(0x50e,_0x404859._0x359eb5,_0x404859._0x1542ca,_0x404859._0x91f774)],_0x49826a(_0x404859._0x267f72,_0x404859._0x52bc66,_0x404859._0x4fd453,_0x404859._0x3f9670))){if(_0x57b328['message']['includes'](_0x3f65e7[_0x49826a(_0x404859._0x4e34cd,0x4fa,0x4ad,_0x404859._0x5e8e4c)])){if(_0x3f65e7[_0x49826a(_0x404859._0x59f931,_0x404859._0xfc17cd,0x4e6,_0x404859._0x2c1462)](_0x49826a(_0x404859._0x2b92f8,0x4a4,0x4cf,_0x404859._0x1dcc6c),_0x49826a(0x45b,0x4a4,0x471,0x468))){const _0x474817={};return _0x474817[_0x2b4445(-0x4a,-_0x404859._0x520a99,-0x6e,-_0x404859._0x5c023a)]=_0x49826a(_0x404859._0x4f04c1,0x4c4,_0x404859._0x3fa905,0x4e7),_0x474817[_0x2b4445(-0xf,_0x404859._0x19f9e6,_0x404859._0x3aaeba,-0x3f)]=_0x57b328[_0x49826a(0x4b6,_0x404859._0x32b6ae,0x4b8,_0x404859._0x1076b9)],_0xe32a25[_0x2b4445(_0x404859._0x1e6dc4,-_0x404859._0x3074d3,_0x404859._0x3b2165,0x4a)](-0x1020+-0x1*0x533+0x16ec)[_0x2b4445(-_0x404859._0x33c4bc,-_0x404859._0x394865,-0x5c,-0x19)](_0x474817);}else{const _0x3bc208={};return _0x3bc208[_0x49826a(0x44c,0x471,_0x404859._0xaef9cc,_0x404859._0x46fbc)]=_0x2b4445(-_0x404859._0x424354,-0xf,-_0x404859._0x4fb165,-0x38)+_0x49826a(_0x404859._0x457a5d,0x4de,_0x404859._0x25866e,_0x404859._0x570d23)+'ined\x20role',_0x3bc208[_0x2b4445(0xe,-0x1,_0x404859._0x54c2a1,_0x404859._0x29be45)]=_0x49826a(0x4b7,0x4a0,0x4c6,_0x404859._0x253464)+_0x36a64a[_0x49826a(0x4f0,0x4ff,_0x404859._0x82dc57,0x4ce)]+(_0x49826a(_0x404859._0x12c634,_0x404859._0x25972f,0x4a9,0x4d2)+'defined\x20ro'+_0x2b4445(-_0x404859._0x4b1cba,_0x404859._0x4630fe,-0xd,-0x17)+_0x49826a(0x461,_0x404859._0x2b31aa,_0x404859._0x4adf9e,0x470)+'eted'),_0x15583e[_0x2b4445(0x7,-0x2e,0x9,0x1)](0x104*0x5+0x1e4a*-0x1+0x1ac6)[_0x49826a(0x44b,0x483,_0x404859._0x9959ba,0x4cd)](_0x3bc208);}}if(_0x57b328['code']===_0x3f65e7[_0x2b4445(_0x404859._0x6c1208,_0x404859._0x5e47dd,-_0x404859._0x3074d3,-0x26)]){if(_0x3f65e7['QuZMH'](_0x2b4445(_0x404859._0x2e238e,-0x20,0x2b,-_0x404859._0x202f01),_0x3f65e7['VLoCY'])){const _0x3a166f={};return _0x3a166f[_0x49826a(0x43b,_0x404859._0x12a39a,0x473,0x4bd)]='Bad\x20Reques'+'t',_0x3a166f[_0x49826a(_0x404859._0x65ad2e,_0x404859._0x15b7a6,_0x404859._0x15c422,0x4c6)]=_0x21e461[_0x49826a(_0x404859._0x1735c3,_0x404859._0x4daa13,_0x404859._0x39bafa,_0x404859._0x1f0813)],_0x764319[_0x2b4445(-0x2e,0x1e,_0x404859._0x3b2165,0x58)](0x1b40+-0x23*0xc7+-0x1*-0x185)['json'](_0x3a166f);}else{const _0x2e5d6b={};return _0x2e5d6b['error']=_0x3f65e7[_0x49826a(0x4cd,_0x404859._0x178538,0x471,0x457)],_0x2e5d6b[_0x49826a(_0x404859._0x1ac115,0x4e6,_0x404859._0x320dc0,0x51b)]=_0x57b328[_0x2b4445(_0x404859._0x476463,0x26,_0x404859._0x49d732,-0xa)],_0xe32a25[_0x49826a(0x4e1,_0x404859._0x146f13,_0x404859._0x21759f,0x49a)](0x689+-0x8*0x3ce+0x7b*0x35)[_0x49826a(0x434,_0x404859._0x4f04c1,0x49c,_0x404859._0x307266)](_0x2e5d6b);}}const _0x5671b1={};_0x5671b1[_0x2b4445(-_0x404859._0x273849,-0x23,-_0x404859._0x3c0b7b,-0x3c)]=_0x57b328['message'],logger['error'](_0x3f65e7[_0x2b4445(_0x404859._0x1af660,0x4,-_0x404859._0x3da221,-_0x404859._0x4cc970)],_0x5671b1);const _0x3d5c2c={};return _0x3d5c2c[_0x49826a(0x426,0x471,0x47d,_0x404859._0xce96ea)]=_0x3f65e7[_0x2b4445(-0x2b,_0x404859._0x3aeb80,-_0x404859._0x341ebc,_0x404859._0x5c59cd)],_0xe32a25[_0x2b4445(-_0x404859._0x5e8b4c,-0x12,_0x404859._0x585a6f,_0x404859._0x7a3270)](0x220f+-0x1*-0x2399+-0x43b4)['json'](_0x3d5c2c);}else return _0x25ecbe[_0x49826a(_0x404859._0x5914f7,_0x404859._0x146f13,0x4be,_0x404859._0x93ed38)](0x1130+0xd*0x21+-0x114d)['json']({'error':_0x3f65e7[_0x2b4445(-_0x404859._0xd06054,-_0x404859._0xfbf764,-_0x404859._0x1f84fe,-0x1d)],'message':_0x49826a(0x4e2,0x4a6,_0x404859._0x581da8,0x4a4)+_0x2b4445(-_0x404859._0x13dd9c,-0x31,-_0x404859._0x4ae9c5,-_0x404859._0x3b4f95)+'\x20'+_0x557ba3[_0x49826a(0x4bf,0x4a3,_0x404859._0x11684f,0x477)](',\x20')});}}),router['put'](_0x2adf61(0x3e,0x27,-0x13,-0x1c),requirePermission('settings:m'+'anage'),async(_0x32e24f,_0x55efc4)=>{const _0x1e9c51={_0x204cd8:0x23e,_0x5db0f4:0x249,_0x45afc2:0x26b,_0x5a8384:0x28c,_0xec9dd5:0x2b8,_0x48450e:0x2db,_0x16b94a:0x2be,_0x54738c:0xc8,_0x535b8f:0x243,_0x490a71:0x23d,_0x161bc2:0xc1,_0x31018e:0xcd,_0x54f28a:0x2d5,_0x591d2e:0x2ce,_0x22c5a8:0x2d0,_0x1a919c:0x20d,_0x35fbe1:0x20e,_0x2d79fc:0x23a,_0x9e4190:0x2be,_0x4b3bf3:0x67,_0x5ee481:0xec,_0x20f850:0x9f,_0x60dc08:0xf7,_0x3ad6e2:0x14b,_0xf28218:0x61,_0x27061c:0x90,_0x2c0016:0xd1,_0x372dc3:0x271,_0x90f843:0x249,_0x5aa0cc:0x290,_0x7fe57d:0x292,_0x2a1695:0x105,_0x96023:0xde,_0x43ec0d:0x157,_0x1705f8:0x107,_0x3902af:0x6b,_0x422b22:0xa2,_0x48a3a1:0x81,_0x314a4d:0x1ee,_0xc7b4:0xd6,_0x4ad203:0x146,_0x33f812:0x10e,_0x512a48:0xe8,_0x2d721d:0xca,_0x198c51:0x2d5,_0x5bed19:0xa4,_0x2842e6:0x9b,_0x124beb:0xa7,_0x48a4c8:0x291,_0x5d02ad:0x287,_0xa3216a:0xcc,_0x15e4b7:0x84,_0x578d48:0x43,_0x324cd5:0x90,_0x57bfed:0xd5,_0x580684:0x144,_0x59098c:0x298,_0x4f9901:0x27c,_0x37634e:0xdd,_0x55e313:0x107,_0xcafa23:0xd8,_0x41345a:0xa2,_0x2fa42f:0x257,_0x1f9459:0x229,_0x316776:0x24b,_0x38567d:0x274,_0x2b24ad:0x29c,_0xc3b84a:0x271,_0x101884:0x257,_0x1cadfc:0x247,_0x10728f:0x242,_0x219f1e:0x27c,_0x89fa39:0x94,_0x536e6a:0x5f,_0x24bd5b:0x277,_0x1b7c89:0x4c,_0x2e6ca0:0x1f9,_0x451725:0x247,_0x4aa946:0x28b,_0x3fd945:0xa2,_0x4a9d56:0xba,_0x2f0915:0xbc,_0x151a3d:0x107,_0x4aed53:0x295,_0x372093:0x26a,_0x14b101:0x155,_0x51b832:0x11d,_0x3e757a:0xc7,_0x4e7bfe:0xfa,_0xa1523d:0xb1,_0x35dbda:0x20b,_0x5462a2:0x229,_0x221af6:0x1f5,_0x47e553:0x9a,_0x5c0227:0x87,_0x128070:0xbd,_0x458c43:0xa3,_0x5eca14:0x93,_0x5472e3:0xbe,_0x5c0142:0xea,_0x5b1783:0xef,_0x2a2f2d:0x290,_0x55f2f7:0x2e0,_0x28d611:0x250,_0x4e5fd5:0x22a,_0x216af7:0x22c,_0x308c9d:0x274,_0x5a5706:0x229,_0xb64383:0x26f,_0x190192:0x106,_0x5d7ac9:0xf3,_0x344a86:0xaf,_0x503927:0x285,_0x5b8dac:0xaf,_0x44437b:0x2a7,_0x29aa9c:0x2d3,_0x2748b6:0x223,_0x1eedf6:0x278,_0x42d4b8:0x29c,_0x20f33d:0x27d,_0x2239b1:0x215,_0x523a6a:0x30e,_0x50d9a9:0x27f,_0x21c9ea:0x1f8,_0x44edd0:0x23c,_0x56e3b2:0x2b6,_0x19329b:0xe2,_0x42c825:0x113,_0x56d054:0x10f,_0x208f2c:0x152,_0x4b41bb:0x2e2,_0x1672fe:0x283,_0x38d4cc:0x289,_0xb84a0c:0x96,_0x4d5192:0xaf,_0x5a71b5:0x90,_0x17ad24:0x72,_0x4b75ef:0xc2,_0x9e1a7f:0xc9,_0x45408d:0x2a3,_0x3fb623:0x254,_0x5effdf:0x29a,_0x2172b7:0x78,_0x3d2050:0x7c,_0x377628:0x29d,_0x1d9314:0x2be,_0x39e4bb:0x2e6,_0x5196b0:0x249,_0x3f5d16:0x239,_0x46f134:0x205,_0x354f93:0xc4,_0x150a4e:0x292,_0x59e9ab:0xf8,_0x191fae:0x120,_0xb3d292:0x105,_0x27df9c:0x270,_0x3ade7b:0x25f,_0x25576c:0x23f,_0x20eaa5:0xed,_0x164e5f:0xae,_0xdf0721:0x111,_0xf64227:0x8c,_0x1edaa7:0x138,_0x4137eb:0xcb,_0xb20ac9:0xf6,_0x3a4b4a:0xc5,_0x309e41:0xad,_0x4082f5:0xf6,_0x24e237:0x122,_0x4e4539:0x107,_0x2fea81:0x2f1,_0x2c99a:0x286,_0x312a41:0x26e,_0x2fcc7f:0x8e,_0x52df8c:0xd2,_0x2a57f4:0x24c,_0x48c09c:0x28f,_0x2d434d:0x105,_0x47ed33:0x296,_0x233dbf:0xa1,_0x4d106d:0x2a1,_0x474d28:0x2c5,_0x3208b0:0x105,_0x385ea7:0x136,_0x220729:0x2ac,_0x2f3ed4:0x2a4,_0x3e8241:0x1ee,_0x2684de:0x269,_0xbd91ec:0x29a,_0x55b462:0xd1,_0x17be2a:0x129,_0x320acd:0x24f,_0x16d141:0x249,_0x5d89ba:0x21d,_0x40a41a:0x24a,_0x3104ab:0x24d,_0x2ab7cb:0x267,_0xe91ac7:0x26c,_0x244665:0xc3,_0x2b1625:0xcb,_0x12b0d3:0x2ec,_0x378339:0x2e5,_0x41f039:0xad,_0x2f7645:0x220,_0x568ca3:0xa3},_0x3d1080={_0x3995c8:0xf9,_0x56a6b0:0x147};function _0xe66658(_0x570412,_0x446711,_0x15c594,_0x5b50aa){return _0x2adf61(_0x570412-0xb8,_0x15c594-_0x3d1080._0x3995c8,_0x15c594-_0x3d1080._0x56a6b0,_0x5b50aa);}function _0x3dee3b(_0x533911,_0x428661,_0x28a9ea,_0x42785e){return _0x2adf61(_0x533911-0x11f,_0x428661- -0x255,_0x28a9ea-0xdc,_0x28a9ea);}const _0x34d322={'DRtQb':_0x3dee3b(-0x222,-_0x1e9c51._0x204cd8,-_0x1e9c51._0x5db0f4,-0x28d)+'ists','IQxHG':_0x3dee3b(-0x223,-_0x1e9c51._0x45afc2,-_0x1e9c51._0x5a8384,-0x28a),'FSTZa':function(_0xf0d3cc,_0x56ad41){return _0xf0d3cc===_0x56ad41;},'ILRae':_0x3dee3b(-_0x1e9c51._0xec9dd5,-0x298,-_0x1e9c51._0x48450e,-_0x1e9c51._0x16b94a),'HqjWL':_0x3dee3b(-0x267,-0x252,-0x23a,-0x21f)+'t','XLvUt':_0xe66658(0x10d,0x103,_0x1e9c51._0x54738c,0x8e)+_0x3dee3b(-0x242,-_0x1e9c51._0x535b8f,-_0x1e9c51._0x490a71,-0x284),'zyNCr':'permission'+'s\x20must\x20be\x20'+_0xe66658(0xab,0xbd,_0x1e9c51._0x161bc2,_0x1e9c51._0x31018e)+_0x3dee3b(-_0x1e9c51._0x54f28a,-0x2b8,-_0x1e9c51._0x591d2e,-_0x1e9c51._0x22c5a8),'AObLT':_0x3dee3b(-0x1ed,-0x23b,-0x271,-_0x1e9c51._0x1a919c),'QntOu':function(_0x2d30ad,_0x3fb53b){return _0x2d30ad(_0x3fb53b);},'QzkIr':function(_0x39f1e5,_0x5b04a5){return _0x39f1e5!==_0x5b04a5;},'mZZoX':_0x3dee3b(-_0x1e9c51._0x35fbe1,-0x245,-_0x1e9c51._0x35fbe1,-0x222),'psXLl':'GejEb','dAYKB':function(_0xe3f93e,_0x45a3d4){return _0xe3f93e!==_0x45a3d4;},'XWnAB':function(_0x57f997,_0x50390a){return _0x57f997===_0x50390a;},'oIGxV':_0x3dee3b(-0x21f,-_0x1e9c51._0x2d79fc,-0x1ef,-0x265),'xTlWd':function(_0x2ea4eb,_0x49daa3){return _0x2ea4eb===_0x49daa3;},'eDMaH':function(_0x5b3b6a,_0x2281b4){return _0x5b3b6a>_0x2281b4;},'WQWNQ':function(_0x431840,_0x332f09,_0x3dcfb2){return _0x431840(_0x332f09,_0x3dcfb2);},'RoscE':_0x3dee3b(-0x2db,-0x28e,-0x25d,-_0x1e9c51._0x9e4190),'BjTjV':_0x3dee3b(-0x1e1,-0x22f,-0x236,-0x26a)+_0xe66658(_0x1e9c51._0x4b3bf3,_0x1e9c51._0x5ee481,_0x1e9c51._0x20f850,0x8e)+'r'};try{if(_0x34d322[_0xe66658(0x14e,_0x1e9c51._0x60dc08,0x108,_0x1e9c51._0x3ad6e2)]!==_0x34d322['AObLT']){const _0x4a1454={};return _0x4a1454[_0xe66658(0xa7,_0x1e9c51._0xf28218,_0x1e9c51._0x27061c,_0x1e9c51._0x2c0016)]=_0x3dee3b(-0x2a3,-_0x1e9c51._0x45afc2,-0x224,-0x270),_0x4a1454[_0x3dee3b(-_0x1e9c51._0x372dc3,-_0x1e9c51._0x90f843,-_0x1e9c51._0x5aa0cc,-_0x1e9c51._0x7fe57d)]=_0x264a52[_0xe66658(0x12f,0xfa,_0x1e9c51._0x2a1695,_0x1e9c51._0x96023)],_0x35fa63[_0xe66658(0x132,_0x1e9c51._0x43ec0d,_0x1e9c51._0x1705f8,0x10d)](0x19*0x127+-0x3*0x78d+0x3*-0x185)[_0xe66658(_0x1e9c51._0x3902af,0x72,_0x1e9c51._0x422b22,_0x1e9c51._0x48a3a1)](_0x4a1454);}else{const _0x1984f1=await _0x34d322['QntOu'](getRoleById,_0x32e24f[_0x3dee3b(-_0x1e9c51._0x314a4d,-0x231,-0x259,-0x209)]['id']);if(!_0x1984f1){if(_0x34d322[_0xe66658(_0x1e9c51._0xc7b4,_0x1e9c51._0x4ad203,_0x1e9c51._0x33f812,_0x1e9c51._0x512a48)](_0x34d322['mZZoX'],_0x34d322[_0xe66658(0xd3,0xba,0xb7,_0x1e9c51._0x2d721d)])){const _0x242b65={};return _0x242b65[_0x3dee3b(-0x30d,-0x2be,-_0x1e9c51._0x198c51,-0x2ae)]=_0xe66658(_0x1e9c51._0x5bed19,0xd8,_0x1e9c51._0x2842e6,_0x1e9c51._0x124beb)+'ound',_0x55efc4[_0x3dee3b(-_0x1e9c51._0x48a4c8,-0x247,-0x201,-_0x1e9c51._0x5d02ad)](-0x24b*-0x11+0x459+-0x29c0)['json'](_0x242b65);}else{if(_0x2bce42[_0x3dee3b(-0x24a,-0x249,-0x237,-0x27a)]['includes'](_0x34d322[_0xe66658(0xf5,0x85,_0x1e9c51._0xa3216a,_0x1e9c51._0x15e4b7)])){const _0x281cab={};return _0x281cab[_0xe66658(0x72,_0x1e9c51._0x578d48,_0x1e9c51._0x324cd5,0x8a)]=_0x34d322['IQxHG'],_0x281cab[_0xe66658(0x131,_0x1e9c51._0x57bfed,0x105,_0x1e9c51._0x580684)]=_0x3c6a0d[_0x3dee3b(-0x224,-0x249,-_0x1e9c51._0x59098c,-_0x1e9c51._0x4f9901)],_0x127930[_0xe66658(0xc3,_0x1e9c51._0x37634e,_0x1e9c51._0x55e313,_0x1e9c51._0xcafa23)](-0x22ac+-0x1*0x22ff+0x4744)['json'](_0x281cab);}if(_0x34d322[_0xe66658(_0x1e9c51._0x41345a,0xfe,0xbb,0x6b)](_0x5d58e1[_0x3dee3b(-_0x1e9c51._0x2fa42f,-_0x1e9c51._0x1f9459,-_0x1e9c51._0x316776,-0x223)],_0x34d322[_0x3dee3b(-0x224,-_0x1e9c51._0x38567d,-0x273,-0x269)])){const _0x570490={};return _0x570490['error']=_0x34d322[_0x3dee3b(-0x278,-_0x1e9c51._0x2b24ad,-0x25a,-_0x1e9c51._0xc3b84a)],_0x570490['message']=_0x392a42[_0xe66658(0x153,0xd5,_0x1e9c51._0x2a1695,0x13f)],_0x6dfdb5[_0x3dee3b(-_0x1e9c51._0x101884,-_0x1e9c51._0x1cadfc,-_0x1e9c51._0x10728f,-_0x1e9c51._0x219f1e)](-0xc77+0x1c9*-0x11+0x2c60)[_0xe66658(_0x1e9c51._0x89fa39,_0x1e9c51._0x536e6a,_0x1e9c51._0x41345a,_0x1e9c51._0x15e4b7)](_0x570490);}const _0x4c8191={};_0x4c8191['error']=_0x10525b[_0x3dee3b(-0x27e,-0x249,-0x206,-_0x1e9c51._0x24bd5b)],_0x3273a5['error'](_0x34d322['XLvUt'],_0x4c8191);const _0x58095a={};return _0x58095a[_0xe66658(0x49,_0x1e9c51._0x1b7c89,0x90,0x54)]='Internal\x20s'+'erver\x20erro'+'r',_0x18059d[_0x3dee3b(-_0x1e9c51._0x2e6ca0,-_0x1e9c51._0x451725,-_0x1e9c51._0x4aa946,-0x1fb)](-0xe2d+0x8bd*-0x3+-0xa*-0x43c)[_0xe66658(0xd8,0x8c,_0x1e9c51._0x3fd945,0xcb)](_0x58095a);}}const _0x485f38={};if(_0x34d322[_0xe66658(_0x1e9c51._0x4a9d56,0xf2,_0x1e9c51._0x2f0915,_0x1e9c51._0x151a3d)](_0x32e24f[_0x3dee3b(-_0x1e9c51._0x4aed53,-0x254,-_0x1e9c51._0x372093,-0x283)]['name'],undefined))_0x485f38[_0xe66658(_0x1e9c51._0x14b101,_0x1e9c51._0x51b832,0x11e,0x15b)]=_0x32e24f[_0xe66658(_0x1e9c51._0x3e757a,0x114,_0x1e9c51._0x4e7bfe,_0x1e9c51._0xa1523d)][_0x3dee3b(-_0x1e9c51._0x35dbda,-0x230,-_0x1e9c51._0x5462a2,-_0x1e9c51._0x221af6)];if(_0x34d322[_0xe66658(0xbc,_0x1e9c51._0x47e553,0xbc,_0x1e9c51._0x5c0227)](_0x32e24f['body'][_0xe66658(_0x1e9c51._0x128070,0xb5,0xbe,0xc4)+'n'],undefined))_0x485f38[_0xe66658(_0x1e9c51._0x458c43,_0x1e9c51._0x5eca14,_0x1e9c51._0x5472e3,0xa8)+'n']=_0x32e24f[_0xe66658(_0x1e9c51._0x5c0142,_0x1e9c51._0x5b1783,0xfa,0xde)][_0x3dee3b(-0x2a8,-_0x1e9c51._0x2a2f2d,-_0x1e9c51._0x55f2f7,-0x27b)+'n'];if(_0x34d322[_0x3dee3b(-_0x1e9c51._0x28d611,-0x240,-_0x1e9c51._0x4e5fd5,-0x23e)](_0x32e24f[_0x3dee3b(-0x25b,-0x254,-_0x1e9c51._0x216af7,-_0x1e9c51._0x308c9d)][_0xe66658(_0x1e9c51._0x41345a,0x92,_0x1e9c51._0x124beb,0x8f)+'s'],undefined)){if(_0x34d322[_0x3dee3b(-_0x1e9c51._0x5a5706,-_0x1e9c51._0xb64383,-_0x1e9c51._0x38567d,-0x2b9)](_0x34d322[_0xe66658(_0x1e9c51._0x190192,0x135,_0x1e9c51._0x5d7ac9,_0x1e9c51._0x344a86)],_0x34d322[_0x3dee3b(-0x2a7,-0x25b,-_0x1e9c51._0x503927,-0x27b)])){if(!Array[_0x3dee3b(-0x261,-0x275,-0x253,-0x273)](_0x32e24f[_0xe66658(0xcb,0xae,0xfa,_0x1e9c51._0x5b8dac)][_0x3dee3b(-0x299,-_0x1e9c51._0x44437b,-_0x1e9c51._0x29aa9c,-0x2f2)+'s'])||_0x34d322[_0x3dee3b(-0x1f1,-0x226,-_0x1e9c51._0x5462a2,-_0x1e9c51._0x2748b6)](_0x32e24f[_0x3dee3b(-_0x1e9c51._0x1eedf6,-0x254,-_0x1e9c51._0x42d4b8,-0x26b)]['permission'+'s'][_0x3dee3b(-_0x1e9c51._0x20f33d,-0x257,-_0x1e9c51._0x2239b1,-0x290)],0x2473+0x2a7+-0x271a)){const _0x4da2f2={};return _0x4da2f2[_0x3dee3b(-0x27c,-_0x1e9c51._0x9e4190,-0x270,-_0x1e9c51._0x523a6a)]=_0x34d322['HqjWL'],_0x4da2f2[_0xe66658(0xe6,0x122,0x105,0xe3)]=_0x34d322[_0x3dee3b(-0x21a,-0x23f,-_0x1e9c51._0x50d9a9,-_0x1e9c51._0x21c9ea)],_0x55efc4[_0x3dee3b(-0x228,-_0x1e9c51._0x1cadfc,-_0x1e9c51._0x44edd0,-0x207)](0xa37+0x8*-0x3fc+0x1739*0x1)['json'](_0x4da2f2);}const _0x125919=_0x32e24f['body'][_0x3dee3b(-0x2e2,-_0x1e9c51._0x44437b,-_0x1e9c51._0x56e3b2,-_0x1e9c51._0x101884)+'s'][_0xe66658(0xe3,0xd4,0x9d,_0x1e9c51._0x19329b)](_0x539784=>!isValidPermission(_0x539784));if(_0x34d322[_0x3dee3b(-0x2b5,-0x29b,-0x28b,-0x24d)](_0x125919['length'],0x4*-0x885+0x47*0x63+-0x5*-0x153))return _0x55efc4[_0xe66658(_0x1e9c51._0x42c825,_0x1e9c51._0x56d054,_0x1e9c51._0x151a3d,_0x1e9c51._0x208f2c)](0x1a18+-0x1947+0x1*0xbf)[_0x3dee3b(-_0x1e9c51._0x4b41bb,-0x2ac,-0x299,-0x2dd)]({'error':_0x34d322['HqjWL'],'message':_0x3dee3b(-_0x1e9c51._0x1672fe,-_0x1e9c51._0x38d4cc,-0x274,-0x2be)+_0xe66658(0xbe,_0x1e9c51._0xb84a0c,_0x1e9c51._0x4d5192,0x75)+'\x20'+_0x125919[_0xe66658(_0x1e9c51._0x5a71b5,_0x1e9c51._0x17ad24,_0x1e9c51._0x4b75ef,_0x1e9c51._0x15e4b7)](',\x20')});_0x485f38[_0xe66658(0xc2,_0x1e9c51._0x9e1a7f,0xa7,0x66)+'s']=_0x32e24f[_0x3dee3b(-_0x1e9c51._0x45408d,-_0x1e9c51._0x3fb623,-0x259,-_0x1e9c51._0x5effdf)][_0xe66658(0x66,_0x1e9c51._0x2172b7,0xa7,_0x1e9c51._0x3d2050)+'s'];}else{const _0x38f077={};return _0x38f077[_0x3dee3b(-_0x1e9c51._0x377628,-_0x1e9c51._0x1d9314,-0x2fb,-_0x1e9c51._0x39e4bb)]=_0x34d322[_0x3dee3b(-0x26d,-0x29c,-0x2ac,-0x2eb)],_0x38f077[_0x3dee3b(-0x241,-_0x1e9c51._0x5196b0,-_0x1e9c51._0x3f5d16,-_0x1e9c51._0x46f134)]=_0x34d322['zyNCr'],_0x6afb14[_0xe66658(0x147,_0x1e9c51._0x354f93,0x107,0x10f)](-0xd*0x1b3+-0x2*0x1307+0x3db5*0x1)[_0xe66658(0xdf,0xd4,_0x1e9c51._0x3fd945,0xc9)](_0x38f077);}}const _0x18f83b=await _0x34d322[_0x3dee3b(-_0x1e9c51._0xb64383,-0x265,-0x278,-_0x1e9c51._0x150a4e)](updateRole,_0x1984f1['id'],_0x485f38),_0x41ed23={};return _0x41ed23[_0xe66658(_0x1e9c51._0x59e9ab,_0x1e9c51._0x191fae,_0x1e9c51._0xb3d292,0x13d)]=_0x3dee3b(-_0x1e9c51._0x27df9c,-_0x1e9c51._0x3ade7b,-_0x1e9c51._0x372093,-_0x1e9c51._0x25576c)+_0xe66658(0xf4,0xe2,0xca,_0x1e9c51._0x20eaa5)+_0xe66658(0xc4,0x114,_0x1e9c51._0x37634e,_0x1e9c51._0x164e5f),_0x41ed23[_0xe66658(_0x1e9c51._0x60dc08,_0x1e9c51._0x2d721d,_0x1e9c51._0xdf0721,0x113)]=_0x18f83b,_0x55efc4[_0xe66658(0xa2,_0x1e9c51._0xf64227,0xa2,0xa3)](_0x41ed23);}}catch(_0x33a200){if(_0x34d322[_0xe66658(0x10e,_0x1e9c51._0x1edaa7,0x10e,_0x1e9c51._0x9e1a7f)](_0x34d322[_0xe66658(_0x1e9c51._0x4137eb,0xf1,_0x1e9c51._0xb20ac9,_0x1e9c51._0x3a4b4a)],_0x34d322[_0xe66658(_0x1e9c51._0x309e41,_0x1e9c51._0x580684,_0x1e9c51._0x4082f5,_0x1e9c51._0x24e237)]))return _0x3482b9[_0xe66658(0xfe,0x127,_0x1e9c51._0x4e4539,0xee)](-0x5*0x25+-0xf0*0x11+0x1239)[_0x3dee3b(-_0x1e9c51._0x2fea81,-0x2ac,-0x2da,-0x2bb)]({'error':_0x3dee3b(-0x25f,-0x252,-_0x1e9c51._0x2c99a,-_0x1e9c51._0x312a41)+'t','message':_0xe66658(0x9d,0x96,0xc5,_0x1e9c51._0x2fcc7f)+_0xe66658(_0x1e9c51._0x3fd945,_0x1e9c51._0x52df8c,0xaf,0x90)+'\x20'+_0x1e3db1[_0x3dee3b(-_0x1e9c51._0x2a57f4,-_0x1e9c51._0x5a8384,-0x2b7,-_0x1e9c51._0x48c09c)](',\x20')});else{if(_0x33a200[_0xe66658(_0x1e9c51._0x2d434d,0x146,0x105,0xc0)][_0x3dee3b(-0x2d4,-_0x1e9c51._0x47ed33,-0x2d0,-0x248)](_0x34d322[_0xe66658(_0x1e9c51._0x233dbf,0x116,_0x1e9c51._0xa3216a,0xfd)])){const _0x497e42={};return _0x497e42[_0xe66658(0xd6,_0x1e9c51._0x124beb,_0x1e9c51._0x27061c,0x8b)]=_0x34d322[_0x3dee3b(-0x26b,-_0x1e9c51._0x4d106d,-0x266,-_0x1e9c51._0x474d28)],_0x497e42[_0xe66658(0x140,0x10c,_0x1e9c51._0x3208b0,_0x1e9c51._0x385ea7)]=_0x33a200['message'],_0x55efc4['status'](0x2*0x209+-0x1f7a+0x1d01)[_0x3dee3b(-_0x1e9c51._0x474d28,-_0x1e9c51._0x220729,-0x265,-_0x1e9c51._0x2f3ed4)](_0x497e42);}if(_0x33a200[_0x3dee3b(-0x1e1,-0x229,-_0x1e9c51._0x3e8241,-0x207)]===_0x34d322[_0x3dee3b(-_0x1e9c51._0x2684de,-0x274,-_0x1e9c51._0xbd91ec,-_0x1e9c51._0x28d611)]){const _0xc6fe32={};return _0xc6fe32[_0xe66658(0x85,0xcf,_0x1e9c51._0x27061c,0xad)]=_0xe66658(_0x1e9c51._0x55b462,0x133,0xfc,_0x1e9c51._0x17be2a)+'t',_0xc6fe32[_0x3dee3b(-_0x1e9c51._0x320acd,-_0x1e9c51._0x16d141,-_0x1e9c51._0x50d9a9,-_0x1e9c51._0x5d89ba)]=_0x33a200[_0x3dee3b(-_0x1e9c51._0x40a41a,-0x249,-0x202,-0x274)],_0x55efc4[_0x3dee3b(-0x293,-0x247,-0x222,-_0x1e9c51._0x3104ab)](0x1c0*0x1+0x25d1+0x17*-0x1a7)[_0x3dee3b(-_0x1e9c51._0x2ab7cb,-0x2ac,-_0x1e9c51._0xe91ac7,-0x2ec)](_0xc6fe32);}const _0x3edac0={};_0x3edac0['error']=_0x33a200[_0xe66658(_0x1e9c51._0x244665,_0x1e9c51._0x2b1625,0x105,0x142)],logger[_0x3dee3b(-_0x1e9c51._0x12b0d3,-0x2be,-0x30d,-_0x1e9c51._0x378339)](_0x34d322['XLvUt'],_0x3edac0);const _0x2bd1c8={};return _0x2bd1c8[_0xe66658(0x41,_0x1e9c51._0x41f039,0x90,0xab)]=_0x34d322['BjTjV'],_0x55efc4[_0x3dee3b(-0x284,-_0x1e9c51._0x1cadfc,-0x24a,-_0x1e9c51._0x2f7645)](0x726+-0x23b1*0x1+0x1e7f)[_0xe66658(0x79,_0x1e9c51._0x568ca3,0xa2,0xbe)](_0x2bd1c8);}}}),router[_0x2adf61(-0x52,-0x30,0x6,-0x57)]('/:id',requirePermission(_0x2adf61(0x69,0x21,0x5d,0x4)+_0x2adf61(0x19,-0xf,-0x3c,0x35)),async(_0x17a522,_0xb2b1c3)=>{const _0x513d9c={_0x166797:0x6c,_0x59b10e:0x72,_0x4014ba:0x218,_0x382841:0x250,_0x31375c:0x20e,_0x353ff0:0x24f,_0x4a93a0:0x1fa,_0x48cfa4:0x222,_0x31fb75:0x22e,_0x4f93d7:0x21a,_0xd815f:0x200,_0x444023:0x1e2,_0x2482c6:0x26a,_0x173282:0x290,_0x3872dc:0xa4,_0x53141d:0x216,_0x1a8061:0x254,_0x35d7f3:0x261,_0x3d0acc:0x1d4,_0x443410:0x1e1,_0x4f07dc:0x1b0,_0x21bfc0:0xe,_0x590fef:0x40,_0x26ca24:0x58,_0x40893d:0x51,_0x326ce4:0xc4,_0x479e57:0x3e,_0xc03c2f:0x46,_0x45f245:0x1d1,_0x53f62a:0x263,_0x27ca2e:0x267,_0x31b421:0x226,_0x788548:0x213,_0x4558e3:0x1d1,_0x520a74:0x1e8,_0x14093d:0x1ec,_0x43be41:0x1d6,_0xe7b852:0x59,_0x133a05:0x6b,_0x128cb9:0x60,_0x1a802c:0x1d0,_0x43abea:0x1f3,_0x25c3ef:0x1a0,_0x2488db:0x8e,_0x55d1ec:0x91,_0x1c0a7e:0x25c,_0xeec466:0x288,_0x45f7b2:0x20c,_0x4b1a5b:0x26b,_0x49bae1:0x1d5,_0x52e743:0x1f1,_0x4848e4:0x1c7,_0x91c0f9:0x66,_0x14b642:0xcd,_0x48e59f:0x6e,_0x40c2df:0x7c,_0x1e524b:0x1b,_0x1d5d1e:0x22f,_0x1568af:0x231,_0x19e66a:0x23c,_0x2bdd38:0x1ec,_0x52a3e0:0x1ad,_0x37904c:0x226,_0x33fe3d:0x251,_0x2103d0:0x29b,_0x375e41:0x25d,_0x59ec3e:0x92,_0x27c89a:0x227,_0x286641:0x275,_0x2d84ce:0x2c,_0x5d09e4:0x234,_0x4ef42f:0x23f,_0x11ba39:0x25e,_0x20d754:0x21f,_0x21ce05:0x204,_0x23d226:0x236,_0x39673c:0x20b,_0x1e6e22:0x21d,_0x5e8de3:0x1de,_0x236cd8:0x203,_0x1cfe81:0x79,_0x247d26:0x44,_0x2bd829:0x3c,_0x2f6a64:0x3,_0x3360be:0x62,_0x1d0725:0x2b,_0x1cc350:0x262,_0x306105:0x239,_0x4f9aa2:0x275,_0x4db6d4:0x278,_0xa94a8a:0x1b,_0x20f648:0x2a,_0x334c29:0x80,_0x219a11:0x96,_0x2d18b4:0x30,_0x4459b6:0x39,_0x13c2b3:0x1a,_0x44c97b:0x2a,_0x22c269:0x5,_0x2c5ed9:0x11,_0x53f1c1:0x225,_0x12d9b8:0x94,_0x90337b:0x8e,_0x5af2c6:0xe2,_0x2761f4:0x83,_0x4c2fef:0x1ee,_0x758c7a:0x1c5,_0x29411c:0x1ba,_0x99f122:0xe0,_0x2fe22b:0x45,_0x3589d0:0x4b,_0x3c599b:0x53,_0x353125:0x24a,_0x472cce:0x1a,_0x27f341:0x57,_0x2c6c48:0x241},_0x27db4c={_0x5c716b:0x59},_0x21fb6d={_0x3d94e8:0x11b,_0xe7b95e:0xf3};function _0x1c11fb(_0x1d3325,_0x52a9c6,_0x61d880,_0x51b864){return _0x2adf61(_0x1d3325-_0x21fb6d._0x3d94e8,_0x1d3325- -0x28,_0x61d880-_0x21fb6d._0xe7b95e,_0x52a9c6);}function _0x418d5c(_0x3e7e4,_0x5770c8,_0x40317a,_0x2f3901){return _0x2adf61(_0x3e7e4-0x1d1,_0x3e7e4- -0x1fa,_0x40317a-_0x27db4c._0x5c716b,_0x5770c8);}const _0x10f95a={'PEckB':_0x1c11fb(-_0x513d9c._0x166797,-_0x513d9c._0x59b10e,-0x4c,-0x67)+'e','TWrDN':function(_0x35cbb1,_0x606e7e){return _0x35cbb1!==_0x606e7e;},'CfRps':_0x418d5c(-_0x513d9c._0x4014ba,-0x1dc,-0x20c,-_0x513d9c._0x382841),'cHJLX':'bXDxo','AsROv':function(_0x1e55c2,_0x5055a4){return _0x1e55c2(_0x5055a4);},'JKzGX':_0x418d5c(-0x258,-_0x513d9c._0x31375c,-_0x513d9c._0x353ff0,-0x25f)+'ound','sAGJl':_0x418d5c(-_0x513d9c._0x4a93a0,-_0x513d9c._0x48cfa4,-_0x513d9c._0x31fb75,-0x1ff)+'ete\x20predef'+_0x418d5c(-0x222,-_0x513d9c._0x4f93d7,-_0x513d9c._0xd815f,-_0x513d9c._0x444023),'Rudil':function(_0x191960){return _0x191960();},'BWfcC':function(_0x39d063,_0x2d103d){return _0x39d063(_0x2d103d);},'HbNMq':_0x418d5c(-0x249,-_0x513d9c._0x2482c6,-0x220,-_0x513d9c._0x173282)+_0x1c11fb(-0x57,-0x1b,-0x62,-_0x513d9c._0x3872dc)+_0x418d5c(-_0x513d9c._0x53141d,-0x21e,-0x261,-_0x513d9c._0x1a8061),'EhxmK':_0x418d5c(-0x248,-0x20d,-_0x513d9c._0x35d7f3,-_0x513d9c._0x4a93a0)+'ting\x20role','wDZgi':_0x418d5c(-_0x513d9c._0x3d0acc,-_0x513d9c._0x443410,-0x215,-_0x513d9c._0x4f07dc)+'erver\x20erro'+'r'};try{if(_0x10f95a[_0x1c11fb(-0x29,_0x513d9c._0x21bfc0,-0x12,-_0x513d9c._0x590fef)](_0x10f95a[_0x1c11fb(-0x70,-_0x513d9c._0x26ca24,-0x21,-0x38)],_0x10f95a[_0x1c11fb(-0x87,-_0x513d9c._0x40893d,-0x9a,-_0x513d9c._0x326ce4)])){const _0x3dc547=await _0x10f95a[_0x1c11fb(-0x81,-_0x513d9c._0x479e57,-0x63,-_0x513d9c._0xc03c2f)](getRoleById,_0x17a522[_0x418d5c(-0x1d6,-_0x513d9c._0x45f245,-0x214,-0x1b5)]['id']);if(!_0x3dc547){const _0x1ef999={};return _0x1ef999[_0x418d5c(-_0x513d9c._0x53f62a,-_0x513d9c._0x27ca2e,-0x2a8,-_0x513d9c._0x31b421)]=_0x10f95a[_0x418d5c(-_0x513d9c._0x788548,-_0x513d9c._0x4558e3,-0x1e3,-_0x513d9c._0x520a74)],_0xb2b1c3[_0x418d5c(-_0x513d9c._0x14093d,-_0x513d9c._0x43be41,-0x19f,-0x1bb)](0x267a+-0xba1*0x3+0x5*-0x67)[_0x1c11fb(-0x7f,-_0x513d9c._0xe7b852,-_0x513d9c._0x133a05,-_0x513d9c._0x128cb9)](_0x1ef999);}if(_0x3dc547[_0x418d5c(-_0x513d9c._0x1a802c,-_0x513d9c._0x43abea,-0x219,-_0x513d9c._0x25c3ef)]){const _0x2cb547={};return _0x2cb547[_0x1c11fb(-0x91,-_0x513d9c._0x2488db,-_0x513d9c._0x55d1ec,-0xdd)]=_0x10f95a[_0x418d5c(-_0x513d9c._0x1c0a7e,-_0x513d9c._0xeec466,-_0x513d9c._0x45f7b2,-0x27e)],_0x2cb547['message']=_0x418d5c(-0x234,-0x245,-0x20e,-_0x513d9c._0x4b1a5b)+_0x3dc547[_0x418d5c(-_0x513d9c._0x49bae1,-_0x513d9c._0x52e743,-0x1a8,-_0x513d9c._0x4848e4)]+('\x27\x20is\x20a\x20pre'+_0x1c11fb(-0x88,-_0x513d9c._0x91c0f9,-0x46,-_0x513d9c._0x14b642)+_0x1c11fb(-0x30,-_0x513d9c._0x48e59f,-_0x513d9c._0x40c2df,-_0x513d9c._0x1e524b)+_0x418d5c(-_0x513d9c._0x1d5d1e,-_0x513d9c._0x1568af,-0x1f9,-_0x513d9c._0x19e66a)+'eted'),_0xb2b1c3[_0x418d5c(-_0x513d9c._0x2bdd38,-_0x513d9c._0x52a3e0,-0x216,-_0x513d9c._0x37904c)](-0x1ee*-0x12+-0x1552+0xbda*-0x1)[_0x418d5c(-_0x513d9c._0x33fe3d,-_0x513d9c._0x2103d0,-0x24a,-_0x513d9c._0x375e41)](_0x2cb547);}const _0x473828=await _0x10f95a[_0x1c11fb(-_0x513d9c._0x59ec3e,-0x80,-0x82,-0x8b)](getBindings),_0x5471e4=_0x473828[_0x418d5c(-0x256,-0x23a,-_0x513d9c._0x27c89a,-0x268)](_0x1c2d39=>_0x1c2d39[_0x1c11fb(0xa,0x57,-0x1f,0x39)]===_0x3dc547['id']);if(_0x5471e4[_0x1c11fb(-0x2a,0x6,-0x14,-0x6b)]>-0x24c6+0x1dac+0x71a)return _0xb2b1c3['status'](-0xd*0x25f+0x1*-0x8f+0x20fb)[_0x418d5c(-0x251,-0x205,-_0x513d9c._0x286641,-0x2a1)]({'error':_0x10f95a[_0x1c11fb(-0x1b,-0x51,-0x5e,-_0x513d9c._0x2d84ce)],'message':_0x418d5c(-_0x513d9c._0x5d09e4,-0x263,-_0x513d9c._0x4ef42f,-_0x513d9c._0x11ba39)+_0x3dc547[_0x418d5c(-0x1d5,-_0x513d9c._0x20d754,-0x190,-0x21d)]+(_0x418d5c(-0x252,-_0x513d9c._0x21ce05,-_0x513d9c._0x23d226,-0x255)+_0x418d5c(-_0x513d9c._0x39673c,-0x1ea,-0x20e,-0x1d0))+_0x5471e4[_0x418d5c(-0x1fc,-_0x513d9c._0x1e6e22,-_0x513d9c._0x5e8de3,-_0x513d9c._0x236cd8)]+(_0x1c11fb(-0x36,-_0x513d9c._0x1cfe81,-0x3a,-_0x513d9c._0x247d26)+')\x20and\x20cann'+'ot\x20be\x20dele'+'ted'),'bindings':_0x5471e4[_0x1c11fb(-_0x513d9c._0x2bd829,-0x4e,-_0x513d9c._0x2f6a64,-_0x513d9c._0x3360be)](_0x592f85=>({'id':_0x592f85['id'],'resource_type':_0x592f85['resource_t'+_0x418d5c(-0x21c,-0x1cc,-0x254,-0x1e3)],'resource_id':_0x592f85[_0x418d5c(-0x21f,-0x265,-0x1d1,-0x223)+'d'],'subject_type':_0x592f85[_0x418d5c(-0x236,-0x225,-0x207,-0x1ff)+'pe'],'subject_id':_0x592f85[_0x1c11fb(-0x7e,-0x71,-0xb1,-0xc7)]}))});await _0x10f95a[_0x1c11fb(-0x5,-0x39,0x35,_0x513d9c._0x1d0725)](deleteRole,_0x3dc547['id']);const _0x3f716e={};return _0x3f716e['message']=_0x10f95a[_0x418d5c(-_0x513d9c._0x1cc350,-_0x513d9c._0x306105,-_0x513d9c._0x1a8061,-_0x513d9c._0x4f9aa2)],_0xb2b1c3[_0x418d5c(-0x251,-0x27d,-0x24f,-0x29e)](_0x3f716e);}else return _0x1765cd['status'](-0x19eb*0x1+-0x2481+0x4005)[_0x418d5c(-0x251,-0x281,-_0x513d9c._0x4db6d4,-0x287)]({'error':_0x10f95a[_0x1c11fb(-_0x513d9c._0xa94a8a,-0xb,_0x513d9c._0x20f648,-0x22)],'message':_0x418d5c(-_0x513d9c._0x5d09e4,-0x203,-0x1ec,-0x206)+_0x247437[_0x418d5c(-0x1d5,-0x21f,-0x20c,-_0x513d9c._0x52a3e0)]+(_0x1c11fb(-_0x513d9c._0x334c29,-_0x513d9c._0x219a11,-_0x513d9c._0x590fef,-_0x513d9c._0x2d18b4)+_0x1c11fb(-_0x513d9c._0x4459b6,0x11,-_0x513d9c._0x13c2b3,-0x2b))+_0x1691d5[_0x1c11fb(-_0x513d9c._0x44c97b,-_0x513d9c._0x22c269,_0x513d9c._0x2c5ed9,-0x4d)]+(_0x418d5c(-0x208,-0x224,-_0x513d9c._0x53f1c1,-_0x513d9c._0x1d5d1e)+')\x20and\x20cann'+_0x1c11fb(-_0x513d9c._0x12d9b8,-0xdc,-_0x513d9c._0x90337b,-_0x513d9c._0x5af2c6)+_0x1c11fb(-_0x513d9c._0x2761f4,-0x59,-0xd1,-0x3a)),'bindings':_0x451b98['map'](_0x456926=>({'id':_0x456926['id'],'resource_type':_0x456926[_0x1c11fb(-0x95,-0x47,-0x4b,-0x9c)+_0x418d5c(-0x21c,-0x236,-0x217,-0x220)],'resource_id':_0x456926[_0x418d5c(-0x21f,-0x255,-0x222,-0x1f4)+'d'],'subject_type':_0x456926[_0x418d5c(-0x236,-0x23f,-0x1f5,-0x25f)+'pe'],'subject_id':_0x456926[_0x418d5c(-0x250,-0x21e,-0x25f,-0x216)]}))});}catch(_0xeed270){const _0x14dbec={};_0x14dbec['error']=_0xeed270[_0x418d5c(-_0x513d9c._0x4c2fef,-0x1b2,-_0x513d9c._0x758c7a,-_0x513d9c._0x29411c)],logger[_0x1c11fb(-0x91,-0x5b,-_0x513d9c._0x99f122,-0x64)](_0x10f95a[_0x1c11fb(-_0x513d9c._0x2fe22b,-0x6e,-0x4c,-0x32)],_0x14dbec);const _0x68b196={};return _0x68b196[_0x1c11fb(-_0x513d9c._0x55d1ec,-_0x513d9c._0x3589d0,-_0x513d9c._0x3c599b,-0xca)]=_0x10f95a[_0x418d5c(-0x21b,-_0x513d9c._0x353125,-0x228,-0x223)],_0xb2b1c3[_0x1c11fb(-_0x513d9c._0x472cce,0x0,0x35,-_0x513d9c._0x27f341)](-0xe5d+0x1*-0xde1+0x1e32*0x1)[_0x418d5c(-_0x513d9c._0x33fe3d,-0x26f,-_0x513d9c._0x2c6c48,-0x26f)](_0x68b196);}});export default router;
|
|
1
|
+
function _0x5e98(_0x380043,_0xb56a9b){_0x380043=_0x380043-(0x575+-0xef*-0xa+-0x3*0x495);const _0x193058=_0x290c();let _0x5f32b6=_0x193058[_0x380043];if(_0x5e98['LOygOK']===undefined){var _0x2f8454=function(_0xc19c70){const _0x2a51f1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x12091f='',_0x1aef1e='';for(let _0x565b4b=0x1*-0xaf9+-0x213e+0x2c37,_0x3063bf,_0x4316cf,_0x4b17b0=-0x1*0xc4c+-0x593*0x3+-0x187*-0x13;_0x4316cf=_0xc19c70['charAt'](_0x4b17b0++);~_0x4316cf&&(_0x3063bf=_0x565b4b%(-0x1e7e+0x164f+-0x1*-0x833)?_0x3063bf*(-0x24b3+0x2*-0x45f+-0x15*-0x22d)+_0x4316cf:_0x4316cf,_0x565b4b++%(0xe91+0x1*-0x3dd+-0xc*0xe4))?_0x12091f+=String['fromCharCode'](-0x6f4+-0x25a8+0x19*0x1d3&_0x3063bf>>(-(0x1e4e+0x9dc+-0x2828)*_0x565b4b&-0x1aa1+-0x1c6*-0x7+0xe3d)):-0x1*0x87c+0x1fdb+-0x1*0x175f){_0x4316cf=_0x2a51f1['indexOf'](_0x4316cf);}for(let _0x420467=0x573*0x2+0x1f2f+0x3f*-0xab,_0x38713f=_0x12091f['length'];_0x420467<_0x38713f;_0x420467++){_0x1aef1e+='%'+('00'+_0x12091f['charCodeAt'](_0x420467)['toString'](-0x12d6*-0x1+0x1d75+-0x303b*0x1))['slice'](-(0x7b1+0x8b5+-0x1064));}return decodeURIComponent(_0x1aef1e);};_0x5e98['fJTKov']=_0x2f8454,_0x5e98['tEwJxd']={},_0x5e98['LOygOK']=!![];}const _0xc7ea9b=_0x193058[0x1a*0xfb+-0x1b77*0x1+-0x1f9*-0x1],_0x18798b=_0x380043+_0xc7ea9b,_0x52a869=_0x5e98['tEwJxd'][_0x18798b];return!_0x52a869?(_0x5f32b6=_0x5e98['fJTKov'](_0x5f32b6),_0x5e98['tEwJxd'][_0x18798b]=_0x5f32b6):_0x5f32b6=_0x52a869,_0x5f32b6;}(function(_0x267be3,_0x1074db){const _0x56f3fe={_0x4d7e98:0x19a,_0x409908:0x18a,_0x35adcc:0x1a8,_0x5a1522:0x1b2,_0x7035d4:0x1d3,_0x4f7910:0x1c3,_0x293838:0x1ca,_0x334d83:0x21a,_0x2f3bd8:0x22c,_0x570c9d:0x22d,_0x4a14b9:0x20b,_0x10c539:0x1d2,_0x347bb4:0x1f9,_0x2652aa:0x265,_0x372fbd:0x29f,_0x2d2538:0x227,_0x49b5fe:0x264,_0x369aea:0x28f,_0x3938cb:0x245,_0x41153c:0x1ee,_0x1d717a:0x219,_0x58048d:0x218,_0x1580e2:0x246},_0x281ed3=_0x267be3();function _0x911ff8(_0x1366b6,_0x5ced5f,_0xd545f3,_0xf9ebf2){return _0x5e98(_0xd545f3- -0x31c,_0x5ced5f);}function _0x37ef31(_0x5069d4,_0x2f933b,_0x1da658,_0x180940){return _0x5e98(_0x2f933b-0xec,_0x5069d4);}while(!![]){try{const _0xd4661e=-parseInt(_0x911ff8(-0x19b,-_0x56f3fe._0x4d7e98,-_0x56f3fe._0x409908,-_0x56f3fe._0x35adcc))/(-0x1be2*-0x1+-0x1*-0x669+0x18f*-0x16)+-parseInt(_0x911ff8(-_0x56f3fe._0x5a1522,-0x1da,-_0x56f3fe._0x7035d4,-_0x56f3fe._0x4f7910))/(-0x1*0x95a+-0x1345+0x1ca1)+-parseInt(_0x911ff8(-0x195,-0x20b,-_0x56f3fe._0x293838,-0x180))/(0x5*0x244+0x1761+0x2*-0x1159)*(-parseInt(_0x37ef31(_0x56f3fe._0x334d83,_0x56f3fe._0x2f3bd8,_0x56f3fe._0x570c9d,_0x56f3fe._0x4a14b9))/(-0x22ce+-0xe82+0x3154))+-parseInt(_0x911ff8(-0x19e,-0x1e2,-_0x56f3fe._0x10c539,-_0x56f3fe._0x347bb4))/(-0xfc3+-0x26c4+0x1b46*0x2)*(parseInt(_0x911ff8(-0x1dd,-0x231,-0x1ef,-0x237))/(0xf59*-0x2+-0x147a*0x1+0x3332*0x1))+-parseInt(_0x37ef31(0x24f,_0x56f3fe._0x2652aa,0x294,_0x56f3fe._0x372fbd))/(0xa*-0x1be+0x1*0x23ad+0x1*-0x123a)+parseInt(_0x37ef31(_0x56f3fe._0x2d2538,_0x56f3fe._0x49b5fe,_0x56f3fe._0x369aea,_0x56f3fe._0x3938cb))/(0xf71+-0xce8+-0x281)+-parseInt(_0x37ef31(0x1e6,0x202,0x1bc,_0x56f3fe._0x41153c))/(-0x3*0x45+0xb3+-0x25*-0x1)*(-parseInt(_0x37ef31(_0x56f3fe._0x1d717a,_0x56f3fe._0x58048d,0x205,_0x56f3fe._0x1580e2))/(-0x17e5+0x12ce+-0x1*-0x521));if(_0xd4661e===_0x1074db)break;else _0x281ed3['push'](_0x281ed3['shift']());}catch(_0x2611b8){_0x281ed3['push'](_0x281ed3['shift']());}}}(_0x290c,-0x27e3*0x8b+-0x1521b8+0x1505*0x28e));function _0x5dccf9(_0x4638b3,_0x123ecf,_0x58fd76,_0x4148d6){const _0x4d16e0={_0x287117:0xcb};return _0x5e98(_0x58fd76-_0x4d16e0._0x287117,_0x4148d6);}function _0x33050c(_0x24e977,_0x5ef017,_0x1cedf4,_0x292517){const _0x794fc7={_0xded956:0x1f7};return _0x5e98(_0x292517- -_0x794fc7._0xded956,_0x1cedf4);}import _0x1b8e27 from'express';import{logger}from'../lib/logger.js';import{getRoles,getRoleById,createRole,updateRole,deleteRole,isValidPermission,inferRoleResourceType}from'../lib/role-definitions.js';import{getBindings}from'../lib/bindings.js';import{getAllPermissionsFlat,getPermissionScope}from'../lib/roles.js';import{requirePermission}from'../middleware/requirePermission.js';const router=_0x1b8e27['Router']();function _0x290c(){const _0x350181=['qvbXCee','Du9jtvi','y29Kzq','Avv3CKO','ysbUB24Tzw1WDa','qw1ZsLO','DgvK','yKj1Bg0','Aw5LzcbYB2XL','uLfOCgi','l2f2ywLSywjSzq','BwvZC2fNzq','yM9KEq','ksbHBMqGy2fUBG','CYbTDxn0igjLia','CMvZB3vYy2vFAq','rxjYB3iGy3jLyq','BMfTzq','z2v0','zgvZy3jPChrPBW','Cejby2e','qwXms1K','wNH6AxC','r2vHuMK','rwLfyK4','zgvMAw5LzcbYBW','rxjYB3iGzgvSzq','AM9PBG','rxjYB3iGBgLZDa','r1jxwgq','tufdsfO','AxnbCNjHEq','nJKWotKZnMnsvMHuyG','mJiZndy0nuz5yvn0sW','ChvpC1u','DKDctuK','CM9Szq','ser1sfK','Aw5NihjVBgu','Efbzu3G','ywXYzwfKEsbLEa','CMf5','Cff5vLi','r0rxtKe','C2v0DgLUz3m6Bq','CgfYyw1Z','DMLdzeS','zxrLihbYzwrLzG','EsbHCNjHEq','vgHLihjVBguGjW','uM9SzsbUyw1Lia','igjPBMrPBMCOCW','ANnVBG','turXy20','lZPPza','rwPjAeW','AxmGCMvXDwLYzq','sw50zxjUywWGCW','mta2otm5mxzHr1nRCW','uM9SzsbUB3qGzG','ANDYse4','Chv0','u1zkv2S','vKfmsurbveLptG','zw50CMLLCW','BguGyw5KignHBG','BwrPEui','Cg9ZDa','zwqGC3vJy2vZCW','BM90igjLigrLBa','CYbPCYbYzxf1Aq','rxjYB3iGDxbKyq','uM9SzsbJCMvHDa','zgvSzxrL','zw5JzwqGyNKG','q0nmt0C','q29UzMXPy3q','Chrpq3O','C3rHDhvZ','jYbPCYbYzwzLCG','DhjPBq','AujZtw4','mtqYota1otzfvu1SD0W','tw14yNm','CM93uMe','CLj6yMK','zgjSCeS','CM1PC3nPB25ZoG','D05lveW','B3qGyMuGzgvSzq','BwfW','ExbL','CMvKigfUzcbTDq','uhDUzvq','rxjYB3iGz2v0Da','yw5Hz2u','uKPXvw8','CgvYBwLZC2LVBG','zNvSBhK','C3rYAw5N','uM9SzsbPBIb1CW','BeXArhu','y29AwKC','tffQDLC','mtboCejHEw0','nta1mdiWD2DRswvl','qMfKifjLCxvLCW','BgvUz3rO','qxzYDvy','D2LUrxK','C3qGyMuGysbUBW','C3bSAxq','q1HJAuC','yxjbCgq','v0r6zha','jYbPCYbHihbYzq','AwvrAKG','vNzuBuq','wg5IB2W','tuLpBvq','rLf4DxK','DgLUzYbYB2XL','zMLSDgvY','C3vIAMvJDf90Eq','mZqWnZa0ngDeyMP0qq','BLrwzfi','B3vUza','Axn0CW','BK9mq0m','zKLXte8','sw52ywXPzcbWzq','rgDNrxe','CMvZB3vYy2vFDa','ntq3nZG4BwnYrKjW','ntvbCNP4EMO','ChjLzgvMAw5Lza','zxrLza','zxj2zxiGzxjYBW','weTkzxK','q2fUBM90igrLBa','zKX4sNy','EvfsuKK','m2vpD3jhuG','lxbLCM1PC3nPBW','Aw5JBhvKzxm','uxfQvui','qKD6sLm','zxjYB3i'];_0x290c=function(){return _0x350181;};return _0x290c();}router[_0x33050c(-0x92,-0xa2,-0x8a,-0x8d)](_0x33050c(-0xc3,-0x82,-0xcd,-0x95)+_0x5dccf9(0x1e6,0x222,0x21e,0x246)+'ns',(_0x22c11c,_0x4c386e)=>{const _0x5dacfc={_0x46ce22:0x51d,_0x163156:0x559,_0x558d1d:0x590,_0x4880d9:0x175,_0x297d8e:0x12b},_0x26aaa0={_0x30bb52:0x1dd},_0x16efaa=getAllPermissionsFlat(),_0x435270=Object[_0x50e455(0x599,_0x5dacfc._0x46ce22,_0x5dacfc._0x163156,_0x5dacfc._0x558d1d)](_0x16efaa)[_0x3c6155(-0x204,-0x1e3,-0x1a8,-0x1c6)](([_0x1c4b74,_0x31c38])=>({'key':_0x1c4b74,'description':_0x31c38,'category':_0x1c4b74[_0x50e455(0x4e6,0x509,0x4f4,0x51c)](':')[0xc*-0x2bf+0x1*0x1bd9+0x51b],'scope':getPermissionScope(_0x1c4b74)})),_0x2cb627={};function _0x3c6155(_0x2efffe,_0x583e94,_0x673faa,_0x34061c){return _0x33050c(_0x2efffe-0xd8,_0x583e94-0x1e4,_0x2efffe,_0x583e94- -0x10a);}function _0x50e455(_0x19145f,_0x41c4f1,_0x5478b9,_0x420c22){return _0x33050c(_0x19145f-0x4f,_0x41c4f1-_0x26aaa0._0x30bb52,_0x41c4f1,_0x5478b9-0x5b8);}return _0x2cb627[_0x50e455(0x4e0,0x4b3,0x4e6,0x527)+'s']=_0x435270,_0x4c386e[_0x3c6155(-0x1a2,-_0x5dacfc._0x4880d9,-_0x5dacfc._0x297d8e,-0x131)](_0x2cb627);}),router[_0x33050c(-0x4c,-0x7f,-0xd6,-0x8d)]('/',async(_0x3158ae,_0x417a66)=>{const _0x22652b={_0x404ba3:0x175,_0x455ee7:0x144,_0x1e56c1:0x13b,_0x17ed01:0x16a,_0x1a1a3d:0x214,_0x2cde15:0x243,_0x1f633a:0x15e,_0x2b82b8:0x1cb,_0x5ad2da:0x223,_0x278f18:0x254,_0x4c6a0c:0x159,_0x2cc18e:0x12b,_0x4abe39:0x158,_0x418a01:0x1c6,_0x7dc611:0x218,_0x5ebaa4:0x22e,_0x5b895e:0x22a,_0x5b43c3:0x239,_0x1a60e4:0x22d,_0x466caa:0x25b,_0x57b77d:0x206,_0x438704:0x250,_0x1ef691:0x1a1,_0xeed14d:0x1a0,_0x19485a:0x1f2},_0x31e83e={_0x1d07c1:0x91},_0x431fb7={_0x444665:0x42,_0x184c64:0xb};function _0x538978(_0x3f7847,_0x1434e1,_0x1abbb2,_0x32da92){return _0x5dccf9(_0x3f7847-0xca,_0x1434e1-_0x431fb7._0x444665,_0x3f7847-_0x431fb7._0x184c64,_0x32da92);}const _0x1c2d52={};_0x1c2d52[_0x35fb1f(_0x22652b._0x404ba3,_0x22652b._0x455ee7,_0x22652b._0x1e56c1,_0x22652b._0x17ed01)]=_0x538978(0x24a,_0x22652b._0x1a1a3d,_0x22652b._0x2cde15,0x21a)+'ing\x20roles',_0x1c2d52[_0x35fb1f(0x166,0x19f,0x198,_0x22652b._0x1f633a)]=_0x35fb1f(0x1e1,0x18b,0x20b,_0x22652b._0x2b82b8)+_0x538978(_0x22652b._0x5ad2da,0x1f7,_0x22652b._0x278f18,0x22d)+'r';function _0x35fb1f(_0x398711,_0x27f136,_0x8df631,_0x31634f){return _0x5dccf9(_0x398711-0x1a7,_0x27f136-0x154,_0x31634f- -_0x31e83e._0x1d07c1,_0x398711);}const _0x545331=_0x1c2d52;try{const _0x1b24c9=await getRoles(),_0x1ab092=_0x1b24c9[_0x35fb1f(_0x22652b._0x4c6a0c,0x185,_0x22652b._0x2cc18e,_0x22652b._0x4abe39)](_0x5d1a8a=>({..._0x5d1a8a,'resource_type':inferRoleResourceType(_0x5d1a8a[_0x538978(0x1fb,0x231,0x20c,0x210)+'s'])})),_0x1a943a={};return _0x1a943a['roles']=_0x1ab092,_0x417a66[_0x35fb1f(0x1e6,0x1b7,0x1d6,_0x22652b._0x418a01)](_0x1a943a);}catch(_0x4693c9){const _0x4785d9={};_0x4785d9[_0x538978(0x22d,_0x22652b._0x7dc611,_0x22652b._0x5ebaa4,_0x22652b._0x5b895e)]=_0x4693c9[_0x538978(_0x22652b._0x5b43c3,0x277,0x22e,0x223)],logger[_0x538978(_0x22652b._0x1a60e4,0x1f5,_0x22652b._0x466caa,0x20e)](_0x545331[_0x538978(_0x22652b._0x57b77d,0x240,_0x22652b._0x438704,0x1ca)],_0x4785d9);const _0x149e0={};return _0x149e0['error']=_0x545331['RJqUo'],_0x417a66[_0x538978(0x1e8,_0x22652b._0x1ef691,0x224,_0x22652b._0xeed14d)](-0xe28+0x55+0xfc7)[_0x35fb1f(0x1c6,0x1b4,_0x22652b._0x19485a,0x1c6)](_0x149e0);}}),router['get'](_0x33050c(-0x7b,-0x58,-0x8d,-0x69),async(_0x5e67a4,_0x257fc4)=>{const _0x5237f0={_0x1def6a:0x243,_0x275cec:0x30,_0x24d425:0x4c,_0x371b71:0x56,_0x4a3858:0x46,_0x52d04a:0x4d,_0x23c547:0x28f,_0x10a407:0x262,_0x194d60:0x222,_0x194d4e:0x55,_0x4252fd:0xd0,_0x50d01f:0x7f,_0x28ae39:0x23a,_0x41366e:0x268,_0x4b5f75:0x23b,_0x132a82:0x3e,_0x467a96:0x1c,_0x144529:0x278,_0x2c8549:0x270,_0x2c1cbe:0x2a1,_0x2fe334:0x35,_0x4311ab:0x17,_0x5b5941:0x88,_0x5cf09a:0x26f,_0x23eb5c:0x25a,_0x555f7f:0x5d,_0x545845:0x19,_0x3bf57b:0x234,_0x2cd3f6:0x261,_0x28b436:0x57,_0x52a2d2:0x74,_0x319ed7:0x93,_0x5171cf:0x20,_0x221b44:0x2a,_0x2eaef9:0x26,_0x530663:0x29b},_0x1a16ba={_0x1cfa10:0x1ec},_0xac7b7f={_0x425bc1:0xe2,_0x5c7c3c:0x12d,_0x394fa2:0x1c1};function _0x271214(_0x9780e0,_0x237924,_0x16aeb9,_0x1a77ce){return _0x5dccf9(_0x9780e0-_0xac7b7f._0x425bc1,_0x237924-_0xac7b7f._0x5c7c3c,_0x237924- -_0xac7b7f._0x394fa2,_0x16aeb9);}const _0x57b642={'MACHZ':function(_0x448864,_0x12ee9d){return _0x448864(_0x12ee9d);},'CXciG':_0x5d0233(0x26c,0x233,0x277,_0x5237f0._0x1def6a)+_0x271214(_0x5237f0._0x275cec,_0x5237f0._0x24d425,_0x5237f0._0x371b71,0x8e),'cRrsd':_0x271214(_0x5237f0._0x4a3858,0x2c,0x73,_0x5237f0._0x52d04a)+_0x5d0233(_0x5237f0._0x23c547,0x298,_0x5237f0._0x10a407,0x240)};function _0x5d0233(_0x2b70dd,_0x103dc8,_0x416b0f,_0x18ee2d){return _0x5dccf9(_0x2b70dd-_0x1a16ba._0x1cfa10,_0x103dc8-0x54,_0x416b0f-0x19,_0x103dc8);}try{const _0x689d3d=await _0x57b642[_0x5d0233(0x242,_0x5237f0._0x194d60,0x25a,0x210)](getRoleById,_0x5e67a4[_0x271214(_0x5237f0._0x194d4e,0x8f,_0x5237f0._0x4252fd,_0x5237f0._0x50d01f)]['id']);if(!_0x689d3d){const _0x4e5aeb={};return _0x4e5aeb[_0x5d0233(_0x5237f0._0x28ae39,_0x5237f0._0x41366e,_0x5237f0._0x4b5f75,_0x5237f0._0x41366e)]=_0x57b642[_0x271214(0x51,_0x5237f0._0x132a82,0x51,0x39)],_0x257fc4[_0x271214(-0xa,_0x5237f0._0x467a96,0x21,0x4a)](0x2ab*0xb+-0x25*-0x9d+-0x3*0x10d2)[_0x5d0233(0x27f,_0x5237f0._0x144529,0x270,0x2b2)](_0x4e5aeb);}const _0x563adb={};return _0x563adb['role']=_0x689d3d,_0x257fc4[_0x5d0233(0x256,0x25a,_0x5237f0._0x2c8549,_0x5237f0._0x2c1cbe)](_0x563adb);}catch(_0x249b1e){const _0xafaf52={};_0xafaf52[_0x271214(_0x5237f0._0x2fe334,0x61,_0x5237f0._0x4311ab,_0x5237f0._0x5b5941)]=_0x249b1e[_0x5d0233(0x216,_0x5237f0._0x5cf09a,0x247,_0x5237f0._0x23eb5c)],logger['error'](_0x57b642['cRrsd'],_0xafaf52);const _0x564436={};return _0x564436[_0x271214(_0x5237f0._0x555f7f,0x61,_0x5237f0._0x467a96,_0x5237f0._0x545845)]=_0x5d0233(0x2ad,_0x5237f0._0x3bf57b,0x275,_0x5237f0._0x2cd3f6)+_0x271214(0x1b,_0x5237f0._0x28b436,_0x5237f0._0x52a2d2,_0x5237f0._0x319ed7)+'r',_0x257fc4[_0x271214(-_0x5237f0._0x5171cf,_0x5237f0._0x467a96,-_0x5237f0._0x221b44,_0x5237f0._0x2eaef9)](-0x2d*-0xd6+0xe*-0x1cd+-0xa74)[_0x5d0233(_0x5237f0._0x530663,0x23f,0x270,0x2b9)](_0x564436);}}),router[_0x5dccf9(0x29d,0x248,0x266,0x276)]('/',requirePermission('settings:m'+'anage'),async(_0x5b7c53,_0x516c9b)=>{const _0x3313b4={_0x53cbfd:0x205,_0x1460c3:0x248,_0x4f1d40:0x24b,_0x361bee:0x269,_0x35dcfd:0x21c,_0x35dd16:0x244,_0x12a0ec:0x288,_0x369100:0x223,_0x15292c:0x260,_0x5ca3b7:0x22e,_0x3125d1:0x193,_0x3e1aef:0x1ff,_0x4e8ec2:0x1fb,_0x341eed:0x1f3,_0x14c99e:0x1c0,_0x4b7c0b:0x1e5,_0xff0a9e:0x206,_0x1a0a54:0x1d1,_0x2b9ed5:0x206,_0x397689:0x1df,_0x1f2067:0x191,_0x26c4db:0x1d3,_0x1921cf:0x238,_0x523091:0x227,_0x40a661:0x221,_0x288e89:0x217,_0xebb9d7:0x22e,_0x386357:0x1f8,_0x1528af:0x243,_0xfe8337:0x27e,_0x435f11:0x1b0,_0x17ca51:0x1d3,_0x6cf0d0:0x234,_0x185928:0x259,_0x258e3b:0x25a,_0x194606:0x246,_0x59ff12:0x1f4,_0x56fe1c:0x214,_0x45bb70:0x1d8,_0x40aff7:0x204,_0x323c7c:0x249,_0x30bacf:0x20b,_0x3bf9e2:0x24f,_0x4e5c88:0x262,_0x5f56e6:0x277,_0x59e319:0x255,_0x2f23aa:0x26a,_0xd83c7a:0x24b,_0x3968c7:0x205,_0x5dcf4a:0x228,_0x550949:0x209,_0x313345:0x220,_0x1f2f63:0x210,_0x569aa0:0x23c,_0x1abf75:0x1fc,_0x51dcd2:0x1e3,_0x557844:0x1ee,_0x292575:0x1b2,_0x532edf:0x224,_0x17fae2:0x1fb,_0x5141a7:0x224,_0x5f456a:0x1bc,_0x2d97ae:0x27d,_0x11b88c:0x221,_0x53f7ab:0x1ad,_0x5a9421:0x1ec,_0x23f126:0x1db,_0x5fb395:0x21e,_0x2b7aac:0x24c,_0x17dcbb:0x236,_0x1981da:0x1f4,_0x17bea9:0x20e,_0x49fc32:0x24e,_0x1c108e:0x288,_0x1dd38f:0x24b,_0x40aed1:0x22b,_0x1da9b2:0x21f,_0x11a343:0x20c,_0x57549d:0x222,_0x335146:0x1c4,_0x351bb8:0x1e0,_0x4511c2:0x1de,_0x59d324:0x270,_0x893f5b:0x215,_0x513b26:0x210,_0x583de8:0x1da,_0x2761ea:0x1ff,_0x3a075e:0x1e8,_0x28646f:0x216,_0x224c7b:0x286,_0x4cc9a7:0x211,_0x5837c5:0x21a,_0x4a111c:0x1e6,_0x192d09:0x255,_0x304d72:0x255,_0x40e807:0x1fd,_0x192570:0x1a7,_0x38e822:0x1f6,_0x831ba:0x23c,_0x57747a:0x21b,_0x31f9e0:0x1fa,_0x12ee5b:0x213,_0x30e1e1:0x1db,_0x22cfa5:0x1cc,_0x11d341:0x208,_0x4f3e9f:0x1c1,_0x2a20d0:0x245,_0xbb8d29:0x1f4,_0x4380c8:0x210,_0xadeb54:0x227,_0x26c6e:0x248,_0x5248af:0x29e,_0x561cc3:0x1d5,_0x34bbac:0x207,_0x1c2945:0x20d,_0x41fc74:0x216,_0x59e8a3:0x231,_0xbe2f3f:0x1f8,_0x59e9e8:0x1be,_0x54a6d8:0x19e,_0x5ad729:0x1a7,_0x16df49:0x21b,_0x5b1300:0x221,_0x2c4c73:0x200,_0x2ecda6:0x1ef,_0x10595b:0x25f,_0x44a7cc:0x267,_0x2224f4:0x1d3,_0x51cdb5:0x218,_0x130902:0x1db},_0x337d24={_0x5b9887:0xdb},_0x57fb4b={_0xc7e592:0x170},_0x3b626e={'GeaRi':function(_0x5d03c1,_0x556986){return _0x5d03c1!==_0x556986;},'xPYSx':_0x5bb420(-0x209,-0x20f,-0x270,-0x240),'FQxuy':function(_0x242d6b,_0x4b346a){return _0x242d6b===_0x4b346a;},'LQjvW':_0x54a1fa(0x21a,0x1ed,0x210,_0x3313b4._0x53cbfd)+'t','yQRRI':'permission'+_0x54a1fa(0x2a2,0x25d,_0x3313b4._0x1460c3,_0x3313b4._0x4f1d40)+_0x5bb420(-0x231,-_0x3313b4._0x361bee,-0x221,-0x247)+_0x5bb420(-0x225,-0x1ec,-0x23a,-0x235)+'n-empty\x20ar'+_0x54a1fa(_0x3313b4._0x35dcfd,0x240,_0x3313b4._0x35dd16,_0x3313b4._0x12a0ec),'WDzdp':_0x5bb420(-_0x3313b4._0x369100,-_0x3313b4._0x15292c,-0x231,-_0x3313b4._0x5ca3b7),'iUwrJ':function(_0xb05e25,_0x21ccc8){return _0xb05e25(_0x21ccc8);},'muTse':_0x54a1fa(_0x3313b4._0x3125d1,0x1cb,_0x3313b4._0x3e1aef,0x1fd)+_0x5bb420(-_0x3313b4._0x4e8ec2,-_0x3313b4._0x341eed,-_0x3313b4._0x14c99e,-0x1cb)+_0x54a1fa(0x1dd,_0x3313b4._0x4b7c0b,0x1ef,0x22f),'nLKem':_0x5bb420(-_0x3313b4._0xff0a9e,-_0x3313b4._0x1a0a54,-_0x3313b4._0x2b9ed5,-0x1e7)+'ists','bBulm':_0x5bb420(-_0x3313b4._0x397689,-_0x3313b4._0x1f2067,-_0x3313b4._0x26c4db,-0x1d0),'CCLOG':_0x54a1fa(_0x3313b4._0x1921cf,_0x3313b4._0x523091,_0x3313b4._0x40a661,0x231)+_0x54a1fa(0x1db,0x1fc,0x233,0x240)};function _0x5bb420(_0x21d331,_0x120fed,_0xc7d655,_0x4dc6ca){return _0x33050c(_0x21d331-0xae,_0x120fed-0xe5,_0x120fed,_0x4dc6ca- -_0x57fb4b._0xc7e592);}function _0x54a1fa(_0xc73bd3,_0x1c9a50,_0x2aab8b,_0x5baf7c){return _0x33050c(_0xc73bd3-0x1c8,_0x1c9a50-_0x337d24._0x5b9887,_0xc73bd3,_0x1c9a50-0x2b6);}try{const {name:_0x323b57,description:_0x45fdb9,permissions:_0x31a7cd}=_0x5b7c53['body'];if(!_0x323b57||_0x3b626e[_0x54a1fa(_0x3313b4._0x288e89,_0x3313b4._0xebb9d7,_0x3313b4._0x386357,0x213)](typeof _0x323b57,_0x3b626e[_0x54a1fa(0x26e,0x23e,_0x3313b4._0x1528af,_0x3313b4._0xfe8337)])||_0x3b626e['FQxuy'](_0x323b57[_0x54a1fa(_0x3313b4._0x435f11,_0x3313b4._0x17ca51,0x1b7,0x21b)]()[_0x5bb420(-_0x3313b4._0x6cf0d0,-_0x3313b4._0x185928,-_0x3313b4._0x258e3b,-0x238)],-0x1804+-0x3bf+0x1bc3*0x1)){const _0x8a8366={};return _0x8a8366[_0x54a1fa(0x24c,0x216,_0x3313b4._0x194606,_0x3313b4._0x59ff12)]=_0x3b626e[_0x5bb420(-0x252,-_0x3313b4._0x56fe1c,-0x247,-0x23c)],_0x8a8366[_0x5bb420(-0x1c4,-0x1f0,-_0x3313b4._0x45bb70,-_0x3313b4._0x40aff7)]=_0x54a1fa(0x263,_0x3313b4._0x323c7c,0x250,0x25c)+_0x54a1fa(_0x3313b4._0x30bacf,_0x3313b4._0x3bf9e2,_0x3313b4._0x4e5c88,_0x3313b4._0x5f56e6)+'d',_0x516c9b[_0x5bb420(-0x27f,-0x218,-0x24e,-_0x3313b4._0x59e319)](-0x89e+0x124*0x2+0x7e6)[_0x54a1fa(0x21f,_0x3313b4._0x4f1d40,_0x3313b4._0x2f23aa,_0x3313b4._0xd83c7a)](_0x8a8366);}if(!_0x31a7cd||!Array['isArray'](_0x31a7cd)||_0x3b626e[_0x54a1fa(0x224,_0x3313b4._0x4e8ec2,_0x3313b4._0x3968c7,_0x3313b4._0x288e89)](_0x31a7cd[_0x54a1fa(0x1f0,0x1ee,_0x3313b4._0x5dcf4a,_0x3313b4._0x550949)],0x1*-0x1ba1+0x1b57+0x4a*0x1)){const _0x408ed9={};return _0x408ed9[_0x5bb420(-_0x3313b4._0x30bacf,-0x1ff,-_0x3313b4._0x313345,-_0x3313b4._0x1f2f63)]=_0x3b626e[_0x5bb420(-_0x3313b4._0x258e3b,-_0x3313b4._0x3bf9e2,-0x250,-_0x3313b4._0x569aa0)],_0x408ed9['message']=_0x3b626e[_0x5bb420(-0x23b,-0x1f0,-0x201,-0x216)],_0x516c9b['status'](-0x831*-0x2+0x27a+0x3*-0x5c4)['json'](_0x408ed9);}const _0x523bc8=_0x31a7cd[_0x54a1fa(0x1e7,0x1fd,0x202,_0x3313b4._0x1abf75)](_0x435649=>!isValidPermission(_0x435649));if(_0x523bc8[_0x54a1fa(_0x3313b4._0x51dcd2,_0x3313b4._0x557844,_0x3313b4._0x292575,_0x3313b4._0x532edf)]>0x653*-0x5+0x191*-0xd+0x33fc){if(_0x3b626e[_0x54a1fa(0x1d6,_0x3313b4._0x17fae2,0x208,_0x3313b4._0x5141a7)](_0x3b626e['WDzdp'],_0x3b626e[_0x54a1fa(_0x3313b4._0x5f456a,0x1f5,0x21e,0x23d)]))return _0x516c9b[_0x5bb420(-_0x3313b4._0x2d97ae,-_0x3313b4._0x11b88c,-0x228,-_0x3313b4._0x59e319)](-0x1*0x1438+-0x269d+0x3c65*0x1)[_0x5bb420(-_0x3313b4._0x53f7ab,-0x209,-_0x3313b4._0x5a9421,-_0x3313b4._0x23f126)]({'error':_0x3b626e['LQjvW'],'message':'Invalid\x20pe'+_0x5bb420(-0x23e,-0x23f,-_0x3313b4._0x5fb395,-_0x3313b4._0x2b7aac)+'\x20'+_0x523bc8[_0x5bb420(-_0x3313b4._0x17dcbb,-0x1ab,-0x219,-_0x3313b4._0x1981da)](',\x20')});else{const _0xd98e06={};return _0xd98e06['error']=_0x54a1fa(0x210,_0x3313b4._0x17bea9,0x226,_0x3313b4._0x49fc32)+_0x54a1fa(_0x3313b4._0x1c108e,_0x3313b4._0x194606,_0x3313b4._0x1dd38f,_0x3313b4._0x40aed1)+_0x54a1fa(0x245,_0x3313b4._0x1da9b2,0x219,0x1e6),_0xd98e06[_0x54a1fa(_0x3313b4._0x11a343,_0x3313b4._0x57549d,0x1ed,0x238)]=_0x5bb420(-_0x3313b4._0x335146,-0x19c,-_0x3313b4._0x351bb8,-_0x3313b4._0x4511c2)+_0x21ee0d[_0x54a1fa(0x23d,_0x3313b4._0x5dcf4a,_0x3313b4._0x59d324,_0x3313b4._0x893f5b)]+(_0x5bb420(-_0x3313b4._0x59e319,-0x24a,-_0x3313b4._0x513b26,-0x230)+_0x5bb420(-_0x3313b4._0x583de8,-_0x3313b4._0x2761ea,-_0x3313b4._0x3a075e,-0x1f6)+_0x54a1fa(_0x3313b4._0x28646f,0x258,0x25e,_0x3313b4._0x224c7b)+'not\x20be\x20del'+_0x54a1fa(_0x3313b4._0x4cc9a7,_0x3313b4._0x30bacf,_0x3313b4._0x5837c5,_0x3313b4._0x4a111c)),_0x3fb06a[_0x5bb420(-_0x3313b4._0x569aa0,-0x275,-_0x3313b4._0x192d09,-_0x3313b4._0x304d72)](-0x1*-0x15a3+0x1*0x46a+-0x187d)[_0x54a1fa(0x213,0x24b,0x25e,0x24c)](_0xd98e06);}}const _0x55c192=await _0x3b626e[_0x54a1fa(_0x3313b4._0x40e807,0x21a,0x251,0x21b)](createRole,{'name':_0x323b57[_0x54a1fa(_0x3313b4._0x192570,0x1d3,0x18a,_0x3313b4._0x5837c5)](),'description':_0x45fdb9,'permissions':_0x31a7cd}),_0x90f7d3={};return _0x90f7d3[_0x5bb420(-_0x3313b4._0x38e822,-_0x3313b4._0x831ba,-_0x3313b4._0x57747a,-0x204)]=_0x3b626e['muTse'],_0x90f7d3[_0x54a1fa(0x252,0x23b,0x283,_0x3313b4._0x31f9e0)]=_0x55c192,_0x516c9b['status'](-0xa97+-0x4d*-0x6+-0x5*-0x1ea)[_0x5bb420(-_0x3313b4._0x12ee5b,-0x1b9,-0x197,-_0x3313b4._0x30e1e1)](_0x90f7d3);}catch(_0x3d17dd){if(_0x3d17dd[_0x5bb420(-_0x3313b4._0x22cfa5,-_0x3313b4._0x11d341,-_0x3313b4._0x4f3e9f,-_0x3313b4._0x40aff7)][_0x5bb420(-_0x3313b4._0x2a20d0,-0x22f,-0x212,-0x213)](_0x3b626e['nLKem'])){const _0x249cba={};return _0x249cba[_0x54a1fa(0x1d4,_0x3313b4._0x28646f,_0x3313b4._0xbb8d29,0x23f)]=_0x5bb420(-0x215,-0x25e,-_0x3313b4._0x4380c8,-0x257),_0x249cba[_0x54a1fa(_0x3313b4._0xadeb54,0x222,0x260,0x257)]=_0x3d17dd[_0x5bb420(-0x21b,-0x1fa,-0x228,-_0x3313b4._0x40aff7)],_0x516c9b[_0x5bb420(-_0x3313b4._0x26c6e,-_0x3313b4._0x5248af,-0x285,-0x255)](0x38f*-0x5+0x815+0xb4f)[_0x5bb420(-0x1d3,-0x1b8,-0x1a1,-0x1db)](_0x249cba);}if(_0x3b626e[_0x54a1fa(0x1b3,0x1fb,0x235,_0x3313b4._0x561cc3)](_0x3d17dd[_0x5bb420(-0x21e,-_0x3313b4._0x26c4db,-_0x3313b4._0x34bbac,-_0x3313b4._0x1c2945)],_0x3b626e[_0x54a1fa(0x1dc,0x21e,0x1f5,_0x3313b4._0x30e1e1)])){const _0x2291d1={};return _0x2291d1[_0x54a1fa(0x242,_0x3313b4._0x41fc74,_0x3313b4._0x59e8a3,_0x3313b4._0xbe2f3f)]='Bad\x20Reques'+'t',_0x2291d1['message']=_0x3d17dd[_0x54a1fa(0x24b,_0x3313b4._0x57549d,0x208,0x244)],_0x516c9b[_0x54a1fa(_0x3313b4._0x59e9e8,0x1d1,_0x3313b4._0x54a6d8,_0x3313b4._0x5ad729)](0x1*-0x150e+0x788+0xf16)[_0x5bb420(-0x1a7,-_0x3313b4._0x16df49,-0x1ad,-0x1db)](_0x2291d1);}const _0x8df0ff={};_0x8df0ff[_0x5bb420(-0x201,-0x1fc,-0x257,-0x210)]=_0x3d17dd['message'],logger[_0x54a1fa(0x227,0x216,0x1db,_0x3313b4._0x5b1300)](_0x3b626e[_0x54a1fa(0x201,0x1ce,0x186,0x1ba)],_0x8df0ff);const _0x472d2a={};return _0x472d2a[_0x54a1fa(_0x3313b4._0x2c4c73,_0x3313b4._0x41fc74,0x20b,_0x3313b4._0x2ecda6)]=_0x54a1fa(0x239,0x250,_0x3313b4._0x10595b,0x20f)+'erver\x20erro'+'r',_0x516c9b[_0x5bb420(-_0x3313b4._0x44a7cc,-0x214,-0x261,-0x255)](0x137c+0x11d+-0x12a5)[_0x5bb420(-_0x3313b4._0x2224f4,-_0x3313b4._0x51cdb5,-0x1ea,-_0x3313b4._0x130902)](_0x472d2a);}}),router[_0x5dccf9(0x272,0x219,0x260,0x22a)](_0x5dccf9(0x27a,0x223,0x259,0x253),requirePermission(_0x5dccf9(0x270,0x21b,0x24f,0x219)+'anage'),async(_0x1b0966,_0x8c3702)=>{const _0x5eb676={_0x17a806:0x29a,_0x5c59d8:0x29b,_0x4eb72a:0x29d,_0x1de6a5:0x272,_0x3e749e:0x293,_0x5c0afa:0x268,_0x3806c5:0x264,_0x4d97b7:0x23d,_0x443cb2:0x255,_0x557b89:0x1b1,_0x3f9020:0x115,_0xfce1fd:0x12f,_0x406300:0x144,_0x32b5c1:0x1c2,_0x456880:0x15c,_0x16edcc:0x278,_0x1ee660:0x24f,_0x44b42c:0x19d,_0x4275ed:0x1b0,_0x1a7710:0x171,_0x22f65b:0x106,_0x2e482d:0x13c,_0x32ed17:0x27c,_0x452fd4:0x2e1,_0x32bfef:0x192,_0x1d23ce:0x224,_0x253865:0x250,_0x7927bc:0x266,_0x1ad640:0x263,_0x3e6ae3:0x246,_0x2e61ea:0x257,_0x2945be:0x1a8,_0x5b177a:0x1bc,_0x5bf6ed:0x1b1,_0x1f651f:0x146,_0x112f3e:0x244,_0x1a9225:0x28e,_0x18a3be:0x16e,_0x3bad8f:0x1b6,_0x5713cc:0x1bf,_0x1946e2:0x18d,_0x4dbf84:0x139,_0x43189e:0x198,_0x28b5e8:0x1a5,_0x1bd713:0x1e0,_0x2410df:0x16d,_0x4b3d79:0x2c7,_0x284f60:0x25c,_0x31ce8f:0x14a,_0x362585:0x1cf,_0x511496:0x16f,_0x3831a6:0x14b,_0x5ba90b:0x282,_0x30628d:0x2b3,_0x2df3a9:0x1a2,_0x271c73:0x19f,_0x5b56cf:0x1d2,_0x458478:0x26d,_0x5bb791:0x132,_0x45cc44:0x124,_0x451ff8:0x117,_0x41c403:0x2c6,_0x2d374b:0x2c2,_0x38002c:0x184,_0x15ec1f:0x1bc,_0x2fc5e8:0x140,_0x36b8:0x189,_0x1902e7:0x171,_0x5d678e:0x292,_0x569ad6:0x294,_0x105f3b:0x2ab,_0x24ce32:0x260,_0x4beaf8:0x28f,_0x357974:0x2d9,_0xab70ba:0x296,_0x53728d:0x2d3,_0x719826:0x2c5,_0x5d698d:0x2a8,_0x25fd18:0x2ca,_0x1796b6:0x296,_0x565e87:0x19d,_0xa9b047:0x166,_0x35688b:0x29a,_0x48f9c3:0x288,_0x43b58d:0x27a,_0x5d9e24:0x228,_0x762dbf:0x2bf,_0x1f1aef:0x2c0,_0x5c85b3:0x266,_0x499079:0x22a,_0x5a6690:0x16a,_0x3aa2a3:0x1aa,_0x26d6b1:0x190,_0x391c48:0x26e,_0xcd204e:0x280,_0x2ce13d:0x2c5,_0x1e5ef2:0x2af,_0x50d984:0x2c5,_0x25bec8:0x27f,_0x4739fe:0x296,_0x1f9ac7:0x266,_0x4b6c47:0x24e,_0x55e6a0:0x137,_0x329212:0x11d,_0x6c6ead:0x1fc,_0x1fe5fb:0x185,_0x44e34b:0x1ac,_0x220e8a:0x1bf,_0x1c5655:0x165,_0x48a528:0x2ad,_0x2672db:0x24e,_0x5d6107:0x25a,_0x16d4c0:0x2f0,_0x45835a:0x238,_0x250ca6:0x26c,_0x53198b:0x270,_0xf7840f:0x2c4,_0x3338a2:0x167,_0x405c3d:0x294,_0x579d28:0x288,_0x4be9ca:0x12e,_0xd37724:0x2c9,_0xc495bd:0x29e,_0x37344c:0x269,_0xef0213:0x153,_0x2754d4:0x27f,_0x4c3d4c:0x2a7,_0x2f0907:0x25f,_0x2c9398:0x2a8,_0x2347bb:0x183,_0x118cb0:0x1c7,_0x4878b4:0xeb,_0x1ae96c:0x162,_0x5c1ffd:0x17c,_0x2982c9:0x1aa,_0x49ddae:0x1ec,_0x41bf07:0x13a,_0x524b6d:0x17d,_0x29c119:0x25f,_0xcc8cfe:0x244,_0xb07359:0x18d,_0x1d2ccc:0x177,_0x514fee:0x1a9,_0x5c732e:0x147,_0x23dbb6:0x276,_0x45c0e7:0x2a4,_0x1e73cd:0x277,_0x4e147d:0x269,_0x3c868c:0x29b,_0x2e6264:0x2f5,_0x15fbb8:0x2bc,_0x56374d:0x1da,_0x242c72:0x1ac,_0x104ca5:0x1a7,_0x3cd678:0x293,_0x179030:0x252,_0x1794e2:0x250,_0x37a78e:0x241,_0x1358ef:0x15a,_0x2cdab3:0x186,_0x393afe:0x1ab,_0x49c824:0x1b8,_0x112f7d:0x27a,_0x249e1e:0x2a5,_0x562f6e:0x19c,_0x589d04:0x175,_0x5f0809:0x1bc,_0x5beb5e:0x2d7,_0x5608f1:0x2cc,_0x4b1047:0x287,_0x3d6a08:0x29b,_0x3f707f:0x2bb,_0xe9f2e1:0x25b,_0x365182:0x29b,_0x3392c5:0x2ae,_0x15fc0c:0x258,_0x3230fc:0x267,_0x3b9868:0x21d,_0x480a67:0x243,_0x65da88:0x233,_0x315cc2:0x1ec,_0x51e043:0x1a5,_0x13dc61:0x156,_0x5f3d07:0x2a2,_0x5a9c78:0x117,_0x9f6a07:0x191,_0x14dc8f:0x183,_0xc0c5ba:0x181,_0x119f40:0x191,_0x2d6ffd:0x151,_0x101e5e:0x12f,_0x2ddd7a:0xf2,_0x222715:0x195,_0x44a31b:0x16a,_0x1e150e:0x13b,_0x79b6ab:0x10d,_0x574676:0x2cb,_0x15ca59:0x2cd,_0x462272:0x288,_0x5cb080:0x285,_0x22938a:0x2ef,_0x1967d7:0x2ae,_0x1c497e:0x2c1,_0x271d0f:0x249,_0x17a62e:0x259,_0x47e5ce:0x257,_0x2e2168:0x27e,_0x28c45f:0x291,_0x491af8:0x2c4,_0x2d988e:0x235,_0xd913e1:0x16d,_0x185139:0x167,_0x398ed1:0x183,_0x4abca3:0x15b,_0x287600:0x195,_0x8b4c7f:0x2d1,_0x359c15:0x2ad},_0x5976b2={_0x2289b2:0x1e5,_0x251b26:0x322},_0x4bf3fa={_0x4f83d9:0x217};function _0x338355(_0x4426b6,_0x517f8d,_0x58d8aa,_0x196dd3){return _0x33050c(_0x4426b6-0x63,_0x517f8d-0x180,_0x4426b6,_0x517f8d-_0x4bf3fa._0x4f83d9);}function _0x203b4e(_0x169e5b,_0x21b6cb,_0x5948a1,_0x57cd7d){return _0x33050c(_0x169e5b-_0x5976b2._0x2289b2,_0x21b6cb-0x37,_0x21b6cb,_0x5948a1-_0x5976b2._0x251b26);}const _0x45694a={'uBXtx':_0x203b4e(_0x5eb676._0x17a806,_0x5eb676._0x5c59d8,_0x5eb676._0x4eb72a,_0x5eb676._0x1de6a5)+_0x203b4e(0x278,_0x5eb676._0x3e749e,_0x5eb676._0x5c0afa,0x291),'pQyVR':_0x203b4e(0x2f3,0x27e,0x2bc,0x293)+_0x203b4e(_0x5eb676._0x3806c5,0x252,0x278,0x2a2)+'r','APqpA':'Conflict','UhMQr':'already\x20ex'+_0x203b4e(_0x5eb676._0x4d97b7,0x263,0x26e,_0x5eb676._0x443cb2),'mdiyB':function(_0x218216,_0x2ab156){return _0x218216===_0x2ab156;},'SVJWk':_0x338355(0x1dd,0x1b7,0x1ae,_0x5eb676._0x557b89),'AmsJZ':_0x338355(_0x5eb676._0x3f9020,0x14e,0x13f,_0x5eb676._0xfce1fd)+'t','ieQjH':_0x338355(_0x5eb676._0x406300,0x188,_0x5eb676._0x32b5c1,_0x5eb676._0x456880)+_0x203b4e(_0x5eb676._0x16edcc,0x233,_0x5eb676._0x5c0afa,_0x5eb676._0x1ee660),'rowRa':'Role\x20name\x20'+_0x338355(_0x5eb676._0x44b42c,_0x5eb676._0x4275ed,_0x5eb676._0x1a7710,0x16e)+'d','DWkjy':function(_0x59a8b0,_0x3a766b){return _0x59a8b0(_0x3a766b);},'Zxziw':function(_0x4233dc,_0x536dd7){return _0x4233dc!==_0x536dd7;},'GRWXd':_0x338355(_0x5eb676._0x22f65b,0x14a,_0x5eb676._0x2e482d,_0x5eb676._0x1a7710),'MDqcm':function(_0x291009,_0x5cbe05){return _0x291009!==_0x5cbe05;},'fIqLO':_0x203b4e(0x2d4,_0x5eb676._0x32ed17,0x2bf,_0x5eb676._0x452fd4),'MIOmT':_0x338355(0x193,0x149,0x111,_0x5eb676._0x32bfef),'Mmxbs':_0x203b4e(_0x5eb676._0x1d23ce,0x26b,_0x5eb676._0x253865,0x227)+_0x203b4e(0x2cb,0x28b,0x291,_0x5eb676._0x7927bc)+_0x203b4e(_0x5eb676._0x1ad640,_0x5eb676._0x3e6ae3,0x287,_0x5eb676._0x2e61ea)+_0x338355(0x186,_0x5eb676._0x2945be,0x176,0x1aa),'pmLne':function(_0x52ba5d,_0x4f8e93){return _0x52ba5d>_0x4f8e93;},'nTVdR':'viCdK','Xnbol':function(_0x288af2,_0x5bf2bc,_0x2b5cd0){return _0x288af2(_0x5bf2bc,_0x2b5cd0);},'puOsU':'Role\x20updat'+_0x338355(0x18a,_0x5eb676._0x5b177a,0x18f,_0x5eb676._0x5bf6ed)+_0x338355(_0x5eb676._0x2e482d,_0x5eb676._0x1f651f,0x121,0x12d),'EiEbN':_0x203b4e(0x232,_0x5eb676._0x112f3e,0x24c,_0x5eb676._0x1a9225),'pBAca':function(_0x2b44c5,_0x24436f){return _0x2b44c5===_0x24436f;},'dkaYH':_0x338355(0x141,_0x5eb676._0x18a3be,0x168,_0x5eb676._0x3bad8f),'nOLCC':_0x338355(0x1a1,_0x5eb676._0x5713cc,0x1d1,_0x5eb676._0x1946e2)+_0x338355(_0x5eb676._0x4dbf84,0x15d,_0x5eb676._0x43189e,0x13a)};try{const _0x1eb4a9=await _0x45694a['DWkjy'](getRoleById,_0x1b0966[_0x338355(0x1aa,_0x5eb676._0x28b5e8,_0x5eb676._0x1bd713,_0x5eb676._0x2410df)]['id']);if(!_0x1eb4a9){if(_0x45694a[_0x203b4e(_0x5eb676._0x4b3d79,0x283,0x299,_0x5eb676._0x284f60)](_0x338355(0x113,_0x5eb676._0x31ce8f,0x17b,0x14b),_0x45694a[_0x338355(_0x5eb676._0x362585,0x195,_0x5eb676._0x511496,_0x5eb676._0x3831a6)])){const _0x3ad1ff={};_0x3ad1ff[_0x203b4e(0x2a5,0x2a0,0x282,0x27a)]=_0x5b89ab[_0x203b4e(0x2c0,_0x5eb676._0x4b3d79,0x28e,0x2d4)],_0x4edd23[_0x203b4e(0x290,0x29f,_0x5eb676._0x5ba90b,_0x5eb676._0x30628d)](_0x45694a['uBXtx'],_0x3ad1ff);const _0x4a501f={};return _0x4a501f['error']=_0x45694a[_0x338355(0x1dd,_0x5eb676._0x2df3a9,0x1ba,0x15b)],_0x554859['status'](-0x1879+-0x4*0x6f7+0x3649)[_0x338355(0x170,0x1ac,0x1c6,_0x5eb676._0x271c73)](_0x4a501f);}else{const _0x429e9b={};return _0x429e9b[_0x203b4e(0x2af,0x287,0x282,0x269)]=_0x338355(0x182,0x1b3,_0x5eb676._0x5b56cf,0x19d)+_0x203b4e(0x27c,_0x5eb676._0x112f3e,_0x5eb676._0x458478,0x267),_0x8c3702[_0x338355(0xf8,_0x5eb676._0x5bb791,_0x5eb676._0x45cc44,_0x5eb676._0x451ff8)](0x3b*0x7f+0x17e*-0x4+-0x15b9)['json'](_0x429e9b);}}const _0x27c66e={};if(_0x45694a[_0x203b4e(_0x5eb676._0x41c403,_0x5eb676._0x2d374b,0x299,0x2db)](_0x1b0966[_0x338355(0x19f,_0x5eb676._0x38002c,0x16b,_0x5eb676._0x15ec1f)][_0x338355(_0x5eb676._0x2fc5e8,_0x5eb676._0x36b8,0x179,_0x5eb676._0x1902e7)],undefined))_0x27c66e[_0x203b4e(0x27d,_0x5eb676._0x5d678e,_0x5eb676._0x569ad6,_0x5eb676._0x105f3b)]=_0x1b0966[_0x203b4e(_0x5eb676._0x24ce32,0x293,_0x5eb676._0x4beaf8,0x2c0)][_0x203b4e(0x24f,0x2a7,_0x5eb676._0x569ad6,0x2c5)];if(_0x1b0966['body'][_0x203b4e(_0x5eb676._0x357974,0x292,_0x5eb676._0xab70ba,_0x5eb676._0x53728d)+'n']!==undefined)_0x27c66e['descriptio'+'n']=_0x1b0966[_0x203b4e(0x2ba,_0x5eb676._0x719826,0x28f,0x2a1)][_0x203b4e(_0x5eb676._0x5d698d,_0x5eb676._0x25fd18,_0x5eb676._0x1796b6,0x27b)+'n'];if(_0x45694a[_0x338355(0x1de,0x1ad,_0x5eb676._0x565e87,_0x5eb676._0xa9b047)](_0x1b0966[_0x203b4e(0x29f,_0x5eb676._0x35688b,0x28f,0x2cb)]['permission'+'s'],undefined)){if(_0x45694a[_0x203b4e(0x278,_0x5eb676._0x48f9c3,0x270,_0x5eb676._0x43b58d)]===_0x45694a[_0x203b4e(_0x5eb676._0x5d9e24,0x26b,0x266,0x299)]){const _0x277aab={};return _0x277aab[_0x203b4e(_0x5eb676._0x762dbf,_0x5eb676._0x16edcc,0x282,_0x5eb676._0x1f1aef)]=_0x45694a['APqpA'],_0x277aab[_0x203b4e(_0x5eb676._0x5c85b3,0x27b,0x28e,0x268)]=_0x3a2e10['message'],_0xef0f92[_0x203b4e(0x256,_0x5eb676._0x1de6a5,0x23d,_0x5eb676._0x499079)](0x2dd*0x2+-0x67*0x35+0x8e*0x1f)[_0x338355(_0x5eb676._0x5a6690,0x1ac,0x1bd,0x1ea)](_0x277aab);}else{if(!Array[_0x338355(0x165,0x197,_0x5eb676._0x3aa2a3,0x193)](_0x1b0966[_0x338355(0x1bc,_0x5eb676._0x38002c,0x16c,_0x5eb676._0x26d6b1)][_0x203b4e(_0x5eb676._0x391c48,_0x5eb676._0xcd204e,0x250,0x211)+'s'])||_0x45694a[_0x203b4e(_0x5eb676._0x2ce13d,_0x5eb676._0x1e5ef2,_0x5eb676._0x50d984,0x2c8)](_0x1b0966[_0x203b4e(0x2b1,_0x5eb676._0x25bec8,0x28f,0x249)][_0x203b4e(0x250,0x222,0x250,_0x5eb676._0x4739fe)+'s'][_0x338355(0x183,0x14f,_0x5eb676._0x1a7710,0x169)],-0x13d0+0x12e4+0x76*0x2)){const _0x13cfc4={};return _0x13cfc4[_0x338355(0x199,0x177,0x194,0x17c)]=_0x45694a[_0x203b4e(_0x5eb676._0x1f9ac7,0x297,0x288,0x26f)],_0x13cfc4[_0x203b4e(0x26c,0x282,0x28e,_0x5eb676._0x4b6c47)]=_0x45694a[_0x338355(0x157,_0x5eb676._0x55e6a0,0x110,_0x5eb676._0x329212)],_0x8c3702[_0x203b4e(0x282,_0x5eb676._0x6c6ead,0x23d,0x25e)](-0x163d*0x1+0x1f8e+-0x7c1*0x1)[_0x338355(_0x5eb676._0x1fe5fb,_0x5eb676._0x44e34b,_0x5eb676._0x220e8a,_0x5eb676._0x1c5655)](_0x13cfc4);}const _0x135dc9=_0x1b0966[_0x203b4e(_0x5eb676._0x48a528,0x280,0x28f,0x2b2)]['permission'+'s']['filter'](_0x4336fa=>!isValidPermission(_0x4336fa));if(_0x45694a['pmLne'](_0x135dc9[_0x203b4e(_0x5eb676._0x2672db,0x289,_0x5eb676._0x5d6107,0x225)],-0x400+-0xd53+0x1153)){if(_0x45694a[_0x203b4e(0x2c9,0x2f5,0x2c5,_0x5eb676._0x16d4c0)](_0x45694a[_0x203b4e(0x290,_0x5eb676._0x45835a,_0x5eb676._0x250ca6,_0x5eb676._0x53198b)],_0x203b4e(0x2f7,_0x5eb676._0xf7840f,0x2b1,0x2bd)))return _0x8c3702[_0x338355(0x171,_0x5eb676._0x5bb791,0x155,_0x5eb676._0x3338a2)](-0x7*0x2ab+-0xdb2+-0x11*-0x1ff)['json']({'error':_0x45694a[_0x203b4e(_0x5eb676._0x405c3d,0x248,_0x5eb676._0x579d28,0x27a)],'message':'Invalid\x20pe'+_0x338355(0x139,0x13b,_0x5eb676._0x4be9ca,0x114)+'\x20'+_0x135dc9[_0x203b4e(_0x5eb676._0xd37724,0x2d0,_0x5eb676._0xc495bd,_0x5eb676._0x37344c)](',\x20')});else{if(_0x140ec1[_0x338355(0x189,0x183,0x143,_0x5eb676._0xef0213)][_0x203b4e(0x270,0x2b8,_0x5eb676._0x2754d4,0x241)](_0x45694a['UhMQr'])){const _0x31e69f={};return _0x31e69f[_0x203b4e(0x256,_0x5eb676._0x4c3d4c,_0x5eb676._0x5ba90b,0x26d)]=_0x45694a[_0x203b4e(_0x5eb676._0x2f0907,_0x5eb676._0x2c9398,0x283,0x2cc)],_0x31e69f['message']=_0x2480d4[_0x338355(0x19b,_0x5eb676._0x2347bb,_0x5eb676._0x118cb0,0x149)],_0x35e26a[_0x338355(0x125,0x132,_0x5eb676._0x4878b4,_0x5eb676._0x1ae96c)](0x671+0x214+-0x6ec)[_0x338355(0x18b,0x1ac,_0x5eb676._0x5c1ffd,0x1d0)](_0x31e69f);}if(_0x45694a['mdiyB'](_0x1517e3[_0x338355(0x171,0x17a,_0x5eb676._0x2982c9,0x14a)],_0x45694a[_0x338355(0x1f1,0x1b6,_0x5eb676._0x49ddae,0x1d1)])){const _0x19a988={};return _0x19a988[_0x338355(0x160,0x177,0x1b3,_0x5eb676._0x41bf07)]=_0x45694a[_0x338355(0x16c,_0x5eb676._0x524b6d,0x158,0x143)],_0x19a988['message']=_0x55c000['message'],_0x3cfd60[_0x203b4e(0x231,_0x5eb676._0x29c119,0x23d,_0x5eb676._0xcc8cfe)](0x250a+0x1be8+-0x3f62)['json'](_0x19a988);}const _0x9c937a={};_0x9c937a[_0x338355(_0x5eb676._0xb07359,_0x5eb676._0x1d2ccc,_0x5eb676._0x514fee,_0x5eb676._0x5c732e)]=_0x2f69d3[_0x203b4e(_0x5eb676._0x23dbb6,0x266,0x28e,_0x5eb676._0x45c0e7)],_0x41676a[_0x203b4e(_0x5eb676._0x1e73cd,0x2bb,0x282,0x266)](_0x45694a[_0x338355(0x17a,0x158,0x134,_0x5eb676._0x4be9ca)],_0x9c937a);const _0x438514={};return _0x438514[_0x203b4e(_0x5eb676._0x4e147d,0x284,0x282,0x29e)]=_0x203b4e(_0x5eb676._0x3c868c,_0x5eb676._0x2e6264,_0x5eb676._0x15fbb8,0x282)+_0x203b4e(0x24a,0x2a7,_0x5eb676._0x16edcc,0x26d)+'r',_0x1c8fe7['status'](0x26c8+-0x42d+-0x20a7)[_0x338355(_0x5eb676._0x56374d,_0x5eb676._0x242c72,0x1e3,_0x5eb676._0x104ca5)](_0x438514);}}_0x27c66e['permission'+'s']=_0x1b0966['body'][_0x203b4e(_0x5eb676._0x3cd678,_0x5eb676._0x179030,_0x5eb676._0x1794e2,_0x5eb676._0x37a78e)+'s'];}}const _0x397dae=await _0x45694a[_0x338355(0x11c,_0x5eb676._0x1358ef,_0x5eb676._0x2cdab3,0x18d)](updateRole,_0x1eb4a9['id'],_0x27c66e),_0x40978b={};return _0x40978b[_0x338355(_0x5eb676._0x393afe,_0x5eb676._0x2347bb,_0x5eb676._0x49c824,0x181)]=_0x45694a[_0x203b4e(_0x5eb676._0x112f7d,0x2be,_0x5eb676._0x249e1e,0x270)],_0x40978b[_0x338355(_0x5eb676._0x26d6b1,_0x5eb676._0x562f6e,_0x5eb676._0x589d04,_0x5eb676._0x5f0809)]=_0x397dae,_0x8c3702[_0x203b4e(0x2e5,0x2dc,0x2b7,_0x5eb676._0x5beb5e)](_0x40978b);}catch(_0x1a7348){if(_0x45694a[_0x203b4e(_0x5eb676._0x5608f1,_0x5eb676._0x4b1047,_0x5eb676._0x3d6a08,0x288)]!==_0x45694a[_0x203b4e(_0x5eb676._0x3f707f,_0x5eb676._0xe9f2e1,_0x5eb676._0x365182,0x295)]){const _0x52c103={};return _0x52c103[_0x203b4e(_0x5eb676._0x458478,0x281,0x282,_0x5eb676._0x3392c5)]=_0x45694a[_0x203b4e(_0x5eb676._0x15fc0c,0x28a,0x288,0x25e)],_0x52c103[_0x203b4e(0x29b,0x29d,0x28e,0x2a7)]=_0x45694a[_0x203b4e(_0x5eb676._0x3230fc,_0x5eb676._0x3b9868,_0x5eb676._0x480a67,0x246)],_0x34701d[_0x203b4e(0x225,0x277,0x23d,_0x5eb676._0x65da88)](-0x5de*0x6+0x151a+0xfaa)[_0x338355(0x1aa,0x1ac,0x1dd,_0x5eb676._0x315cc2)](_0x52c103);}else{if(_0x1a7348['message'][_0x338355(_0x5eb676._0x3831a6,0x174,0x15a,0x183)](_0x338355(0x174,0x1a0,_0x5eb676._0x51e043,0x1c4)+'ists')){if(_0x45694a[_0x338355(_0x5eb676._0x13dc61,0x18c,0x18f,0x156)](_0x45694a['dkaYH'],_0x203b4e(_0x5eb676._0x2f0907,0x26f,0x279,_0x5eb676._0x5f3d07))){const _0x4b2272={};return _0x4b2272['error']=_0x338355(0x103,0x130,0x157,_0x5eb676._0x5a9c78),_0x4b2272[_0x338355(_0x5eb676._0x9f6a07,_0x5eb676._0x14dc8f,0x145,0x1cb)]=_0x1a7348[_0x203b4e(0x278,0x250,_0x5eb676._0x1a9225,0x2a7)],_0x8c3702[_0x338355(0x172,0x132,0x106,0x111)](-0x2152+-0x7f3*-0x2+-0x21d*-0x9)[_0x338355(_0x5eb676._0xc0c5ba,0x1ac,_0x5eb676._0x119f40,0x1f3)](_0x4b2272);}else return _0x2b55dc[_0x338355(_0x5eb676._0x2d6ffd,_0x5eb676._0x5bb791,_0x5eb676._0x101e5e,_0x5eb676._0x2ddd7a)](0x2*-0x1ec+0x12ce*0x1+-0xd66)['json']({'error':_0x45694a[_0x338355(0x1c2,0x17d,0x16f,_0x5eb676._0x222715)],'message':_0x338355(0x1a2,0x166,_0x5eb676._0x44a31b,0x161)+_0x338355(0x17d,_0x5eb676._0x1e150e,_0x5eb676._0x79b6ab,0x118)+'\x20'+_0x107cc1[_0x203b4e(0x27d,_0x5eb676._0x574676,0x29e,0x2bd)](',\x20')});}if(_0x1a7348[_0x203b4e(_0x5eb676._0x15ca59,_0x5eb676._0x462272,_0x5eb676._0x5cb080,0x265)]===_0x45694a[_0x203b4e(_0x5eb676._0x22938a,_0x5eb676._0x1967d7,_0x5eb676._0x1c497e,0x307)]){const _0x4a40e5={};return _0x4a40e5[_0x338355(_0x5eb676._0x41bf07,_0x5eb676._0x1d2ccc,0x151,_0x5eb676._0x514fee)]=_0x45694a['AmsJZ'],_0x4a40e5[_0x203b4e(_0x5eb676._0x271d0f,_0x5eb676._0x17a62e,_0x5eb676._0x1a9225,_0x5eb676._0x47e5ce)]=_0x1a7348[_0x203b4e(_0x5eb676._0x2e2168,_0x5eb676._0x28c45f,0x28e,_0x5eb676._0x491af8)],_0x8c3702[_0x203b4e(0x26a,_0x5eb676._0x1e73cd,0x23d,_0x5eb676._0x2d988e)](0x18eb+-0x20c+0x5*-0x443)[_0x338355(_0x5eb676._0xd913e1,0x1ac,_0x5eb676._0x185139,0x1ef)](_0x4a40e5);}const _0x3e6cef={};_0x3e6cef['error']=_0x1a7348['message'],logger['error'](_0x45694a[_0x338355(_0x5eb676._0x398ed1,0x164,_0x5eb676._0x4abca3,0x131)],_0x3e6cef);const _0xe1f82={};return _0xe1f82[_0x338355(_0x5eb676._0x287600,_0x5eb676._0x1d2ccc,0x161,_0x5eb676._0x36b8)]=_0x45694a[_0x203b4e(_0x5eb676._0x1de6a5,_0x5eb676._0x8b4c7f,_0x5eb676._0x359c15,0x2b3)],_0x8c3702['status'](0x11b4+0x1*0x1bf+-0x117f)[_0x338355(_0x5eb676._0x271c73,_0x5eb676._0x242c72,_0x5eb676._0x1c5655,0x1ce)](_0xe1f82);}}}),router[_0x5dccf9(0x1b3,0x205,0x1d8,0x1fe)](_0x5dccf9(0x27a,0x253,0x259,0x26f),requirePermission(_0x33050c(-0x46,-0xbb,-0x2c,-0x73)+_0x33050c(-0xfd,-0xa0,-0xec,-0xd4)),async(_0x4cb256,_0x1b982c)=>{const _0x3cd2a8={_0x23c274:0x59,_0x5471e6:0x41,_0x42edbf:0xa0,_0x2af1b7:0x2,_0x42876a:0x5c,_0x367aa3:0x49,_0x2cc173:0x24d,_0x1bc6e2:0x211,_0x55f377:0x207,_0x5a3c86:0x266,_0x5c706a:0x243,_0x3af35b:0x255,_0x3d9a0a:0x272,_0x5b21ce:0x297,_0x126299:0x281,_0x55c52f:0xc0,_0x228ef0:0x94,_0x1ebfce:0x1d0,_0x812ee7:0x40,_0x2946a6:0x92,_0xbd75c9:0x257,_0xfe7068:0x228,_0x35e604:0x26c,_0x2e588f:0x2a6,_0x113ae8:0x263,_0xe49888:0x9d,_0x3049f3:0xbc,_0x528291:0xb3,_0x78a2e5:0x27f,_0x37cbb3:0x271,_0x1f1e1d:0x200,_0x23bbce:0x1ea,_0x1019d3:0x1ff,_0x539c7c:0x40,_0x55da07:0x7c,_0xaaabf9:0x21c,_0x31f94a:0x220,_0x42b9f7:0x200,_0x5dffd9:0x276,_0x33e850:0x2bb,_0x1948a6:0x2b4,_0x18bb5f:0x27a,_0x39bd2d:0x1e6,_0x2e1632:0x223,_0x36e5fc:0x218,_0x539441:0x72,_0x5748dc:0xa0,_0x41a028:0xb0,_0x19c3d5:0xc4,_0x538cfb:0x7f,_0x119489:0x1e6,_0x5c83d6:0x251,_0xf126d2:0x21f,_0x567f1e:0x250,_0x5007fc:0x47,_0x13989c:0x81,_0x4a5fab:0x23e,_0x542719:0x221,_0x14a338:0x299,_0xb949cd:0x2b5,_0x9d4c1b:0x8e,_0x1e30ce:0x9c,_0x4ff754:0xad,_0x532291:0x3d,_0x1788b8:0x92,_0x2ea209:0xa6,_0x448975:0xbc,_0x362b77:0x33,_0x391c46:0x6a,_0x100592:0x4c,_0x182c9a:0xb4,_0xa44842:0xa5,_0x56bc52:0x286,_0x4a81af:0x3a,_0x30faf5:0x44,_0x5af7db:0x28a,_0x5b60ba:0x287,_0x4ae336:0x98,_0x3b8eea:0x1ff,_0x691567:0x267,_0x7b8965:0x23a,_0x195dba:0xd3,_0x39760c:0xf2,_0x2ef8dd:0x25b,_0x530f37:0x288,_0xb98657:0x28e,_0x14953e:0x26b,_0x5824d4:0x76,_0x482825:0x21f,_0xae1026:0x200,_0x4d5253:0x266,_0x5b56ca:0x79,_0xcdcf17:0x13,_0x5bd837:0x248,_0x5be339:0x25c,_0x31d00f:0x217,_0x5a5110:0x3e,_0x13ee8d:0x4d,_0xfaead8:0x7,_0x326b69:0x1c7,_0x297a00:0x1c0,_0x3adb26:0xb6,_0x5bbe04:0xf2,_0x1c2998:0xa9,_0x5785d6:0x247,_0x5ded36:0x274,_0x36e976:0x1c5,_0x22c24e:0x240,_0x29f239:0x26d,_0x185a29:0x20e,_0x31b51b:0x5a,_0x21a563:0x51,_0x324055:0xb7,_0x4b6d52:0xbd,_0x26fb5b:0x8e,_0x1fa373:0x55,_0x5ed8b6:0xaa,_0x1f7ed6:0x1f5,_0x50b837:0x23a,_0x5f354f:0xaf,_0x2a48bc:0x7f,_0x51ad48:0x1e1,_0x46f0c3:0x1f6,_0x852a70:0x82,_0x491e27:0x91,_0x3fa1a4:0xae,_0x38b3ea:0xf6,_0x713e92:0x261,_0x58332c:0x230,_0x3c76cb:0xa0},_0x2dc8b2={_0x4bf9d1:0x138},_0x24f3cc={_0x25c299:0x70};function _0x3d322b(_0x2c8dfe,_0x3337b1,_0x4ba46f,_0x52b23c){return _0x33050c(_0x2c8dfe-_0x24f3cc._0x25c299,_0x3337b1-0x167,_0x2c8dfe,_0x52b23c-0x2e5);}function _0xc08886(_0x23c5ba,_0x4bbc9e,_0x2b6c17,_0x354122){return _0x5dccf9(_0x23c5ba-_0x2dc8b2._0x4bf9d1,_0x4bbc9e-0xa5,_0x23c5ba- -0x1a0,_0x354122);}const _0x289af6={'arApd':_0xc08886(_0x3cd2a8._0x23c274,_0x3cd2a8._0x5471e6,_0x3cd2a8._0x42edbf,0x94)+'t','GDWNA':function(_0x1531f6,_0x49e22e){return _0x1531f6!==_0x49e22e;},'ptOCz':_0xc08886(0x40,-_0x3cd2a8._0x2af1b7,_0x3cd2a8._0x42876a,_0x3cd2a8._0x367aa3),'DggEq':function(_0x3364b4,_0x5a737d){return _0x3364b4(_0x5a737d);},'AlLKY':_0x3d322b(_0x3cd2a8._0x2cc173,_0x3cd2a8._0x1bc6e2,0x219,_0x3cd2a8._0x55f377),'winEy':_0x3d322b(_0x3cd2a8._0x5a3c86,0x242,0x207,_0x3cd2a8._0x5c706a),'wNKTL':_0x3d322b(_0x3cd2a8._0x3af35b,_0x3cd2a8._0x3d9a0a,_0x3cd2a8._0x5b21ce,_0x3cd2a8._0x126299)+_0xc08886(0x6d,0x89,0x98,0x98),'BGzJS':'Cannot\x20del'+_0xc08886(0xb2,_0x3cd2a8._0x55c52f,0x68,_0x3cd2a8._0x228ef0)+'ined\x20role','HDuHY':function(_0x36cebe){return _0x36cebe();},'EjIhL':function(_0x37b82c,_0x1545d1){return _0x37b82c>_0x1545d1;},'RQhpb':'Role\x20delet'+'ed\x20success'+_0x3d322b(0x23a,0x214,_0x3cd2a8._0x1ebfce,0x214),'uHrkD':_0xc08886(0x84,_0x3cd2a8._0x812ee7,0xc0,_0x3cd2a8._0x2946a6),'cvPYH':_0x3d322b(_0x3cd2a8._0xbd75c9,_0x3cd2a8._0xfe7068,_0x3cd2a8._0x35e604,0x23e),'dblpK':_0x3d322b(_0x3cd2a8._0x2e588f,0x280,_0x3cd2a8._0x113ae8,0x260)+_0xc08886(0x68,_0x3cd2a8._0xe49888,0x5f,0x37),'vGBMI':_0xc08886(_0x3cd2a8._0x3049f3,_0x3cd2a8._0x528291,0x80,0xf0)+_0x3d322b(0x1f4,0x23c,0x209,0x23b)+'r'};try{if(_0x289af6[_0x3d322b(0x241,_0x3cd2a8._0x78a2e5,0x24d,_0x3cd2a8._0x37cbb3)](_0x289af6[_0x3d322b(0x21c,_0x3cd2a8._0x1f1e1d,_0x3cd2a8._0x23bbce,_0x3cd2a8._0x1019d3)],_0xc08886(_0x3cd2a8._0x539c7c,0x8,0x57,_0x3cd2a8._0x55da07)))return _0x565b4b[_0x3d322b(_0x3cd2a8._0xaaabf9,_0x3cd2a8._0x31f94a,0x23c,_0x3cd2a8._0x42b9f7)](-0x83*0x1+0x1e2d+-0x1c1a)[_0x3d322b(_0x3cd2a8._0x5dffd9,_0x3cd2a8._0x33e850,_0x3cd2a8._0x1948a6,_0x3cd2a8._0x18bb5f)]({'error':_0x289af6[_0x3d322b(_0x3cd2a8._0x39bd2d,0x255,0x22f,_0x3cd2a8._0x2e1632)],'message':_0x3d322b(_0x3cd2a8._0x36e5fc,0x266,_0x3cd2a8._0x3af35b,0x234)+'rmissions:'+'\x20'+_0x3063bf['join'](',\x20')});else{const _0x5c17bd=await _0x289af6[_0xc08886(_0x3cd2a8._0x539441,0x42,_0x3cd2a8._0x5748dc,0x7b)](getRoleById,_0x4cb256[_0xc08886(0xb0,0x8c,_0x3cd2a8._0x41a028,0x6d)]['id']);if(!_0x5c17bd){if(_0x289af6[_0xc08886(0x98,0xa9,_0x3cd2a8._0x19c3d5,_0x3cd2a8._0x538cfb)]!==_0x289af6[_0x3d322b(0x21d,_0x3cd2a8._0x119489,_0x3cd2a8._0x5c83d6,_0x3cd2a8._0xf126d2)]){const _0x4a8879={};return _0x4a8879[_0x3d322b(_0x3cd2a8._0x567f1e,0x23f,0x236,0x245)]=_0x289af6[_0xc08886(_0x3cd2a8._0x5007fc,0x74,_0x3cd2a8._0x13989c,_0x3cd2a8._0x55da07)],_0x1b982c[_0x3d322b(_0x3cd2a8._0x31f94a,_0x3cd2a8._0x4a5fab,_0x3cd2a8._0x542719,0x200)](0x280+0x2*-0x266+0x3e0)[_0x3d322b(0x274,_0x3cd2a8._0x14a338,_0x3cd2a8._0xb949cd,0x27a)](_0x4a8879);}else{const _0xb8ad7f={};return _0xb8ad7f[_0xc08886(0x82,0x38,0x59,0x88)]='Bad\x20Reques'+'t',_0xb8ad7f['message']=_0x33121d[_0xc08886(_0x3cd2a8._0x9d4c1b,_0x3cd2a8._0x1e30ce,_0x3cd2a8._0x4ff754,0x92)],_0x6141a2[_0xc08886(_0x3cd2a8._0x532291,0x54,-0x6,_0x3cd2a8._0x55da07)](-0x15d3*0x1+0x91d+0x3f*0x3a)[_0xc08886(0xb7,0xe9,_0x3cd2a8._0x1788b8,_0x3cd2a8._0x2ea209)](_0xb8ad7f);}}if(_0x5c17bd[_0xc08886(0x76,_0x3cd2a8._0x448975,_0x3cd2a8._0x362b77,_0x3cd2a8._0x2946a6)]){const _0x2d7a45={};return _0x2d7a45[_0xc08886(0x82,_0x3cd2a8._0x391c46,0x6b,0x5e)]=_0x289af6[_0xc08886(0x81,_0x3cd2a8._0x100592,0x6e,0x61)],_0x2d7a45[_0x3d322b(0x245,0x273,0x22d,0x251)]=_0xc08886(_0x3cd2a8._0x182c9a,0x7b,_0x3cd2a8._0xa44842,0xa7)+_0x5c17bd[_0x3d322b(0x22e,0x271,_0x3cd2a8._0x56bc52,0x257)]+(_0xc08886(0x62,_0x3cd2a8._0x4a81af,_0x3cd2a8._0x30faf5,0x47)+'defined\x20ro'+_0x3d322b(0x289,_0x3cd2a8._0x5af7db,0x271,_0x3cd2a8._0x5b60ba)+_0xc08886(0xc8,0x89,_0x3cd2a8._0x4ae336,0x97)+_0x3d322b(_0x3cd2a8._0x3b8eea,0x283,_0x3cd2a8._0x691567,_0x3cd2a8._0x7b8965)),_0x1b982c['status'](0xe1d*0x1+-0x3a+-0xc53)[_0xc08886(0xb7,_0x3cd2a8._0x195dba,_0x3cd2a8._0x39760c,0xdc)](_0x2d7a45);}const _0x275c0d=await _0x289af6[_0x3d322b(_0x3cd2a8._0x2ef8dd,_0x3cd2a8._0x530f37,_0x3cd2a8._0xb98657,_0x3cd2a8._0x14953e)](getBindings),_0x488751=_0x275c0d[_0xc08886(0x69,0x94,_0x3cd2a8._0x5824d4,0x24)](_0xd92be8=>_0xd92be8['role_id']===_0x5c17bd['id']);if(_0x289af6[_0x3d322b(0x261,0x284,0x276,0x27d)](_0x488751['length'],0x6a*0x1f+0x232f+-0x3005))return _0x1b982c[_0x3d322b(0x211,_0x3cd2a8._0x482825,0x22a,_0x3cd2a8._0xae1026)](-0xbe9*0x1+0x7*0x57+-0xb*-0x103)[_0x3d322b(_0x3cd2a8._0x4d5253,0x2c4,0x299,_0x3cd2a8._0x18bb5f)]({'error':_0xc08886(0x53,_0x3cd2a8._0x5b56ca,0x8d,_0x3cd2a8._0xcdcf17)+'e','message':_0xc08886(0xb4,0xde,0xb3,0x72)+_0x5c17bd[_0x3d322b(_0x3cd2a8._0x5bd837,_0x3cd2a8._0x5be339,_0x3cd2a8._0x31d00f,_0x3cd2a8._0xbd75c9)]+(_0xc08886(_0x3cd2a8._0x5a5110,_0x3cd2a8._0x13ee8d,0x32,_0x3cd2a8._0xfaead8)+_0x3d322b(_0x3cd2a8._0x326b69,0x23f,_0x3cd2a8._0x297a00,0x1fc))+_0x488751['length']+(_0xc08886(_0x3cd2a8._0x3adb26,_0x3cd2a8._0x5bbe04,_0x3cd2a8._0x1c2998,0xf3)+_0x3d322b(_0x3cd2a8._0x5785d6,_0x3cd2a8._0x5ded36,0x252,0x253)+_0x3d322b(0x225,_0x3cd2a8._0x36e976,_0x3cd2a8._0x22c24e,0x20b)+_0x3d322b(0x242,_0x3cd2a8._0x29f239,_0x3cd2a8._0x185a29,0x24c)),'bindings':_0x488751['map'](_0x1643f7=>({'id':_0x1643f7['id'],'resource_type':_0x1643f7[_0xc08886(0x73,0x75,0x6c,0x93)+_0x3d322b(0x1e8,0x21e,0x22a,0x20d)],'resource_id':_0x1643f7[_0x3d322b(0x239,0x270,0x21e,0x255)+'d'],'subject_type':_0x1643f7[_0xc08886(0x6a,0x3b,0x7d,0x39)+'pe'],'subject_id':_0x1643f7['subject_id']}))});await _0x289af6[_0xc08886(0x72,0xa5,_0x3cd2a8._0x31b51b,0x36)](deleteRole,_0x5c17bd['id']);const _0xbfb122={};return _0xbfb122[_0x3d322b(0x285,0x25f,0x215,0x251)]=_0x289af6[_0xc08886(0x8c,0x7a,_0x3cd2a8._0x2946a6,_0x3cd2a8._0x21a563)],_0x1b982c[_0xc08886(_0x3cd2a8._0x324055,_0x3cd2a8._0x4b6d52,_0x3cd2a8._0x26fb5b,0xe2)](_0xbfb122);}}catch(_0x4e8be9){if(_0x289af6['uHrkD']!==_0x289af6['cvPYH']){const _0x18e729={};_0x18e729['error']=_0x4e8be9[_0xc08886(_0x3cd2a8._0x26fb5b,_0x3cd2a8._0x1fa373,0x79,_0x3cd2a8._0x5ed8b6)],logger[_0x3d322b(0x26e,_0x3cd2a8._0x22c24e,0x230,0x245)](_0x289af6[_0x3d322b(_0x3cd2a8._0x1f7ed6,0x252,_0x3cd2a8._0x50b837,0x208)],_0x18e729);const _0x54f2ec={};return _0x54f2ec[_0xc08886(0x82,0xbc,0xa0,0xbb)]=_0x289af6[_0xc08886(_0x3cd2a8._0x2ea209,0x75,_0x3cd2a8._0x5f354f,_0x3cd2a8._0x2a48bc)],_0x1b982c[_0x3d322b(_0x3cd2a8._0x51ad48,_0x3cd2a8._0x46f0c3,0x22f,0x200)](0x16d2+-0x25ab+0x10cd)['json'](_0x54f2ec);}else{const _0x33fea2={};return _0x33fea2[_0xc08886(_0x3cd2a8._0x852a70,0xb0,0x78,_0x3cd2a8._0x491e27)]=_0xc08886(0xbe,_0x3cd2a8._0x3fa1a4,0xe8,_0x3cd2a8._0x38b3ea)+_0x3d322b(0x21c,_0x3cd2a8._0x713e92,0x233,_0x3cd2a8._0x58332c),_0x62ed99[_0xc08886(0x3d,0x63,0x43,0x21)](0x24c6*-0x1+-0xc2f+-0x3289*-0x1)[_0xc08886(0xb7,_0x3cd2a8._0x3c76cb,_0x3cd2a8._0xa44842,0xf7)](_0x33fea2);}}});export default router;
|