@profoundlogic/coderflow-server 0.9.0 → 0.9.1
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 +9 -0
- 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/docsify-proxy-helper.js +1 -1
- package/dist/web-ui/public/environments.js +1 -1
- package/dist/web-ui/public/feedback-widget.js +1 -1
- package/dist/web-ui/public/file-selection-tree.js +1 -1
- package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
- package/dist/web-ui/public/git-history.js +1 -1
- package/dist/web-ui/public/git-status.js +1 -1
- package/dist/web-ui/public/ibmi-file-filter.js +1 -1
- package/dist/web-ui/public/index.js +1 -1
- package/dist/web-ui/public/login.js +1 -1
- package/dist/web-ui/public/markdown-editor.js +1 -1
- package/dist/web-ui/public/markdown-file-editor.js +1 -1
- package/dist/web-ui/public/modal-maximize.js +1 -1
- package/dist/web-ui/public/notifications.js +1 -1
- package/dist/web-ui/public/permissions.js +1 -1
- package/dist/web-ui/public/pr-dialog.js +1 -1
- package/dist/web-ui/public/roles.js +1 -1
- package/dist/web-ui/public/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/styles.css +111 -0
- package/dist/web-ui/public/task-judging-helpers.js +1 -1
- package/dist/web-ui/public/task.html +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(_0x176ee4,_0x2ba0b4){const _0x4c7570={_0x2d3f27:0x152,_0x3f997e:0x111,_0x23603a:0x140,_0x1dc281:0x148,_0x57a1b6:0x14d,_0x461840:0x157,_0x4e690c:0x129,_0x4e6e6:0x132,_0x5acec9:0x1ab,_0xe3f61c:0x1be,_0x3f380c:0x156,_0x407287:0x186,_0x3d6070:0x1df,_0x53b681:0x196,_0x4e4a8b:0x1bb,_0x3ebcba:0x16f,_0x5f19ee:0x1b5,_0x190639:0x1c2,_0x56b96c:0x1a3,_0x5ec72a:0x180,_0x4d709e:0x16f,_0x2ff368:0x1d1,_0x162eaf:0x18d,_0x398562:0x171,_0x37e856:0x181,_0x1672c8:0x1b9,_0x3de5e2:0x1f1,_0x11bc7e:0x199,_0x1bee12:0x188},_0x18e5da={_0x5369f9:0x312};function _0x2d558f(_0x564339,_0x2b24dc,_0x3bf9ae,_0x5d6dac){return _0x5c13(_0x3bf9ae- -0x35c,_0x564339);}function _0x3f03b6(_0x433baa,_0x381f54,_0x9a9b41,_0x135750){return _0x5c13(_0x381f54- -_0x18e5da._0x5369f9,_0x135750);}const _0x9b30dd=_0x176ee4();while(!![]){try{const _0x29c7ac=parseInt(_0x3f03b6(-0x18c,-_0x4c7570._0x2d3f27,-_0x4c7570._0x3f997e,-0x148))/(-0x1*0x9e2+0x61a*-0x2+-0x91*-0x27)*(-parseInt(_0x3f03b6(-0x14e,-_0x4c7570._0x23603a,-0x12c,-_0x4c7570._0x1dc281))/(0x183b*-0x1+0x63+0x17da))+parseInt(_0x3f03b6(-_0x4c7570._0x57a1b6,-_0x4c7570._0x461840,-_0x4c7570._0x4e690c,-_0x4c7570._0x4e6e6))/(-0x2*-0x102e+-0xe27+0x22*-0x89)*(parseInt(_0x2d558f(-0x1cf,-0x1e0,-_0x4c7570._0x5acec9,-_0x4c7570._0xe3f61c))/(-0x11b*0x19+0x140c+0x1*0x79b))+-parseInt(_0x3f03b6(-_0x4c7570._0x3f380c,-0x195,-_0x4c7570._0x407287,-0x195))/(0x1c1c+0x1*0x6ad+-0x22c4)+parseInt(_0x3f03b6(-_0x4c7570._0x3d6070,-_0x4c7570._0x53b681,-_0x4c7570._0x4e4a8b,-_0x4c7570._0x3ebcba))/(-0xcb3*-0x1+0x85*0x26+-0x206b)+-parseInt(_0x3f03b6(-0x170,-_0x4c7570._0x5f19ee,-_0x4c7570._0x190639,-0x1ee))/(-0x130b+-0xfa5+-0x1*-0x22b7)*(-parseInt(_0x3f03b6(-0x1ce,-_0x4c7570._0x56b96c,-_0x4c7570._0x5ec72a,-_0x4c7570._0x4d709e))/(0x1*0x16f9+-0x239c+-0xcab*-0x1))+parseInt(_0x3f03b6(-_0x4c7570._0x2ff368,-_0x4c7570._0x162eaf,-_0x4c7570._0x398562,-0x15c))/(0x1d99+0x3*-0xc3d+0x1*0x727)+-parseInt(_0x3f03b6(-_0x4c7570._0x37e856,-_0x4c7570._0x1672c8,-_0x4c7570._0x3de5e2,-_0x4c7570._0x190639))/(0x25*0x21+0x11f8+0x791*-0x3)*(parseInt(_0x2d558f(-0x1c4,-0x1c7,-_0x4c7570._0x11bc7e,-_0x4c7570._0x1bee12))/(0x4c4+0x1ffe+-0x1*0x24b7));if(_0x29c7ac===_0x2ba0b4)break;else _0x9b30dd['push'](_0x9b30dd['shift']());}catch(_0x2bfcd9){_0x9b30dd['push'](_0x9b30dd['shift']());}}}(_0x284d,0x14*-0x18f3+0x4ff90+0xa1c9));import _0x3190b4 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';function _0x56293c(_0x404d2e,_0x1268b0,_0x4af35a,_0x4b91e1){const _0x1a3f0e={_0x7e65c6:0x1d9};return _0x5c13(_0x4b91e1-_0x1a3f0e._0x7e65c6,_0x4af35a);}function _0x5c13(_0x337456,_0x342f2b){_0x337456=_0x337456-(-0x485+-0x203e+0x261a);const _0x1c7433=_0x284d();let _0x4fe8fb=_0x1c7433[_0x337456];if(_0x5c13['NNccVd']===undefined){var _0x225b07=function(_0x439dd6){const _0x534ac2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c090e='',_0x3ad787='';for(let _0x5c8150=0x1900+-0x2*-0x10d2+-0x3aa4,_0xb09f95,_0x483ff5,_0x2bff05=0x25c7*-0x1+0x17f5+0xdd2;_0x483ff5=_0x439dd6['charAt'](_0x2bff05++);~_0x483ff5&&(_0xb09f95=_0x5c8150%(0x1129+0x1*0x2489+-0x35ae)?_0xb09f95*(0xe9*0x25+0x1b92+-0xc33*0x5)+_0x483ff5:_0x483ff5,_0x5c8150++%(0x2375*0x1+0x139+-0x24aa))?_0x5c090e+=String['fromCharCode'](0x234*0xf+-0x20f6*-0x1+-0x4103&_0xb09f95>>(-(0x1*-0x1acb+-0xc6*-0x2b+0x675*-0x1)*_0x5c8150&0x1253+-0x20ff+-0xc6*-0x13)):0x1f79+0x6d*0x1+0x3*-0xaa2){_0x483ff5=_0x534ac2['indexOf'](_0x483ff5);}for(let _0x461168=0x1*0x613+-0xe5b+0x848,_0x3306db=_0x5c090e['length'];_0x461168<_0x3306db;_0x461168++){_0x3ad787+='%'+('00'+_0x5c090e['charCodeAt'](_0x461168)['toString'](0x2701+-0x1*-0xbc+-0x27ad))['slice'](-(-0x19*0xe5+-0x189+0x48*0x55));}return decodeURIComponent(_0x3ad787);};_0x5c13['jsXUcp']=_0x225b07,_0x5c13['EHVULS']={},_0x5c13['NNccVd']=!![];}const _0x4a3906=_0x1c7433[-0x20f9+-0x19a9*0x1+0x3aa2*0x1],_0x35d685=_0x337456+_0x4a3906,_0x105f18=_0x5c13['EHVULS'][_0x35d685];return!_0x105f18?(_0x4fe8fb=_0x5c13['jsXUcp'](_0x4fe8fb),_0x5c13['EHVULS'][_0x35d685]=_0x4fe8fb):_0x4fe8fb=_0x105f18,_0x4fe8fb;}function _0x3fd1fd(_0x2cde29,_0x505ac2,_0x5123bb,_0xd333cd){return _0x5c13(_0xd333cd- -0x1c,_0x2cde29);}const router=_0x3190b4['Router']();router[_0x3fd1fd(0x19d,0x17a,0x194,0x196)]('/available'+'-permissio'+'ns',(_0xecdfbb,_0x54c68d)=>{const _0x5efe2a={_0x4a787c:0x90,_0x99b4dd:0xb8,_0x245840:0x193,_0x15212f:0x17c,_0x32c6d3:0x202},_0x55e07f={_0x2c6f93:0xb6},_0x45f84c={_0x8895f0:0xe},_0x2b05e3={'xSdtt':function(_0x4268ab){return _0x4268ab();}},_0x402156=_0x2b05e3[_0x12566c(_0x5efe2a._0x4a787c,0xa6,0xaf,_0x5efe2a._0x99b4dd)](getAllPermissionsFlat),_0x13018c=Object['entries'](_0x402156)[_0x2fdff9(-0x1d4,-0x1f5,-_0x5efe2a._0x245840,-0x192)](([_0x2e5b50,_0x406d4c])=>({'key':_0x2e5b50,'description':_0x406d4c,'category':_0x2e5b50[_0x2fdff9(-0x1c4,-0x19a,-0x1a4,-0x17f)](':')[-0x1563+-0x58a+0x71*0x3d],'scope':getPermissionScope(_0x2e5b50)}));function _0x2fdff9(_0xcd5c63,_0x2b2284,_0x2394c0,_0x5843b0){return _0x3fd1fd(_0x2b2284,_0x2b2284-_0x45f84c._0x8895f0,_0x2394c0-0x19c,_0xcd5c63- -0x33e);}const _0x1a9b8f={};_0x1a9b8f[_0x2fdff9(-0x1b9,-0x1fa,-_0x5efe2a._0x15212f,-_0x5efe2a._0x32c6d3)+'s']=_0x13018c;function _0x12566c(_0x2e08b7,_0x167876,_0x3fa339,_0x3827f8){return _0x3fd1fd(_0x3fa339,_0x167876-0x169,_0x3fa339-0x3f,_0x167876- -_0x55e07f._0x2c6f93);}return _0x54c68d['json'](_0x1a9b8f);}),router['get']('/',async(_0x170761,_0x15429a)=>{const _0xa4bad={_0x13cf1f:0x3ad,_0x25021b:0x3a5,_0x1986ec:0x3ef,_0x2f5b3d:0x68,_0x4866f3:0x52,_0x41fd6a:0xa3,_0x21b16f:0x86,_0x55b747:0x37,_0x3e70a2:0x73,_0x137875:0x3b1,_0x153259:0xb2,_0x3c0295:0x36c,_0x49bb2f:0x3b0,_0x510ad6:0x10f,_0x34e0f3:0xc9},_0x43af59={_0x101926:0xae,_0x41113c:0x1ee};function _0x15c50e(_0x4e5daf,_0x21129c,_0x3b8b50,_0x45cc4a){return _0x3fd1fd(_0x3b8b50,_0x21129c-0x1d8,_0x3b8b50-0xc,_0x4e5daf-0x1f4);}const _0x5aa072={'aTpGo':function(_0x40a879){return _0x40a879();},'Eqzuk':_0x15c50e(_0xa4bad._0x13cf1f,_0xa4bad._0x25021b,_0xa4bad._0x1986ec,0x394)+_0x52a9c4(_0xa4bad._0x2f5b3d,0x80,0x7b,0x97)+'r'};function _0x52a9c4(_0x582872,_0x2939dd,_0x1fb813,_0x443f46){return _0x3fd1fd(_0x1fb813,_0x2939dd-_0x43af59._0x101926,_0x1fb813-_0x43af59._0x41113c,_0x443f46- -0xe4);}try{const _0x21bc65=await _0x5aa072[_0x52a9c4(_0xa4bad._0x4866f3,0x95,0x72,0x5c)](getRoles),_0x20ea22=_0x21bc65[_0x52a9c4(_0xa4bad._0x41fd6a,0x7d,0x9e,_0xa4bad._0x21b16f)](_0x3ff51=>({..._0x3ff51,'resource_type':inferRoleResourceType(_0x3ff51[_0x52a9c4(0xd2,0x75,0xa2,0xa1)+'s'])})),_0x4e108b={};return _0x4e108b[_0x52a9c4(0x6c,0xd2,0x5a,0x8a)]=_0x20ea22,_0x15429a['json'](_0x4e108b);}catch(_0x3f635f){const _0x29eefe={};_0x29eefe[_0x52a9c4(0xa2,0x52,0xd9,0x9b)]=_0x3f635f['message'],logger['error'](_0x52a9c4(0x4a,0x3b,_0xa4bad._0x55b747,_0xa4bad._0x3e70a2)+'ing\x20roles',_0x29eefe);const _0x4ec855={};return _0x4ec855[_0x15c50e(0x373,0x365,_0xa4bad._0x137875,0x37b)]=_0x5aa072[_0x52a9c4(0x64,0x45,_0xa4bad._0x153259,_0xa4bad._0x2f5b3d)],_0x15429a[_0x15c50e(_0xa4bad._0x3c0295,_0xa4bad._0x49bb2f,0x3b6,0x3a8)](0x1*0xdc9+0x5a5*-0x5+0x1064)[_0x52a9c4(_0xa4bad._0x510ad6,0xf5,0xdb,_0xa4bad._0x34e0f3)](_0x4ec855);}}),router['get'](_0x3fd1fd(0x151,0x111,0x17b,0x14e),async(_0x24e9ac,_0x340205)=>{const _0xe73df4={_0xa1e5b2:0x36,_0x54d1be:0x25,_0x2dbeba:0x64,_0x1fb6b1:0x8,_0x29234e:0x156,_0x263250:0x3f,_0x38e483:0x24,_0xe4f34b:0x3b,_0x4291d6:0x4e,_0x2c84c1:0x36,_0x59e1d1:0x182,_0x1fe974:0x119,_0x9ccacf:0x10f,_0x5a05b2:0x1e6,_0x2fec62:0x1da,_0x211ae3:0x1b,_0x4e4618:0x2f,_0x1e6f0e:0x16,_0x3bf9ea:0x26,_0x5a5423:0x57,_0x4294a0:0x3e,_0x142215:0x1b1,_0x27156f:0x1ad,_0x1f4e62:0x1cd,_0x1df68b:0x159,_0x2e429c:0x1b7,_0x2f6aa6:0x1af,_0x5d5a59:0x16,_0x4eb41b:0x1d9,_0x56754f:0x1cf,_0x3d9e2c:0x1bb,_0x2de7d5:0x42,_0x57ed10:0x23,_0x4fe7f0:0x10,_0x28bf10:0x3a,_0x3c3196:0x3,_0x2741b9:0x1b6,_0x95b2c9:0x1f5,_0x20eef2:0xd,_0x1a02f3:0x48,_0x21f7da:0x192,_0xecbf05:0x14d,_0xa7709b:0x191,_0x4afe20:0x206,_0x3b48ac:0x1db,_0x4f585b:0x17d,_0x4b9985:0x148,_0x485004:0x13d,_0x5f3bb0:0x170,_0x5e9825:0x198,_0x342234:0x1bc,_0x408c60:0x47,_0x5bed18:0x21},_0x98d0b1={_0x37be4a:0x19a,_0x394a64:0x3b,_0x486e92:0x13},_0x3c88af={_0x210843:0x9d,_0x5f043a:0x129,_0x1bcdba:0x18c};function _0x538ea7(_0x52d70c,_0x16b87b,_0x4747e1,_0x25ed8f){return _0x3fd1fd(_0x16b87b,_0x16b87b-_0x3c88af._0x210843,_0x4747e1-_0x3c88af._0x5f043a,_0x25ed8f- -_0x3c88af._0x1bcdba);}const _0x42678c={'pnazx':'Bad\x20Reques'+'t','cTpHS':'permission'+_0x538ea7(-0x38,-0x46,-0x15,0x4)+_0x538ea7(0xf,-_0xe73df4._0xa1e5b2,-0x34,-_0xe73df4._0x54d1be)+_0x538ea7(_0xe73df4._0x2dbeba,-_0xe73df4._0x1fb6b1,0x63,0x22),'IvsGz':function(_0x3e2e78){return _0x3e2e78();},'fgerj':_0x400ddf(_0xe73df4._0x29234e,0x15b,0x19f,0x187),'oSiUg':_0x538ea7(-0x11,0x17,_0xe73df4._0x263250,_0xe73df4._0x38e483),'umhRJ':function(_0x1408a3,_0x324ecc){return _0x1408a3(_0x324ecc);},'LUqUt':'Role\x20not\x20f'+'ound','kMYvx':_0x538ea7(_0xe73df4._0xe4f34b,0x15,-0x4e,-0x8),'xemjs':_0x538ea7(-_0xe73df4._0x4291d6,-0x53,_0xe73df4._0x2c84c1,-0xc)+_0x400ddf(_0xe73df4._0x59e1d1,0x152,_0xe73df4._0x1fe974,_0xe73df4._0x9ccacf),'HmwFF':_0x400ddf(0x1a4,0x1cc,0x1a2,0x1da)+'erver\x20erro'+'r'};function _0x400ddf(_0x473866,_0x2cf122,_0x4d2b9c,_0x4647c9){return _0x3fd1fd(_0x473866,_0x2cf122-_0x98d0b1._0x37be4a,_0x4d2b9c-_0x98d0b1._0x394a64,_0x2cf122-_0x98d0b1._0x486e92);}try{if(_0x42678c[_0x400ddf(_0xe73df4._0x5a05b2,_0xe73df4._0x2fec62,0x220,0x1fe)]!==_0x42678c[_0x538ea7(-_0xe73df4._0x211ae3,-0x3c,_0xe73df4._0x4e4618,-_0xe73df4._0x1e6f0e)]){const _0x1cc540=await _0x42678c[_0x538ea7(_0xe73df4._0x3bf9ea,0x6d,_0xe73df4._0x5a5423,_0xe73df4._0x4294a0)](getRoleById,_0x24e9ac[_0x400ddf(_0xe73df4._0x142215,0x1d6,_0xe73df4._0x27156f,_0xe73df4._0x1f4e62)]['id']);if(!_0x1cc540){const _0x2cf02b={};return _0x2cf02b[_0x400ddf(_0xe73df4._0x1df68b,0x192,_0xe73df4._0x2e429c,0x17e)]=_0x42678c['LUqUt'],_0x340205[_0x400ddf(_0xe73df4._0x59e1d1,0x18b,0x1c1,_0xe73df4._0x2f6aa6)](0x1d*-0x14b+0x4*0x311+0x1acf)[_0x538ea7(-_0xe73df4._0x5d5a59,0x22,0x0,0x21)](_0x2cf02b);}const _0x2178b3={};return _0x2178b3[_0x400ddf(0x20a,_0xe73df4._0x4eb41b,_0xe73df4._0x56754f,_0xe73df4._0x3d9e2c)]=_0x1cc540,_0x340205[_0x538ea7(_0xe73df4._0x2de7d5,-0xa,-_0xe73df4._0x57ed10,0x21)](_0x2178b3);}else{const _0xe6178f={};return _0xe6178f['error']=_0x42678c[_0x400ddf(0x1aa,0x1c6,0x193,0x1fb)],_0xe6178f[_0x538ea7(-_0xe73df4._0x4fe7f0,_0xe73df4._0x28bf10,0x4b,_0xe73df4._0x3c3196)]=_0x42678c['cTpHS'],_0x3ad787['status'](0x1f12+-0x23f7+0x675)[_0x400ddf(_0xe73df4._0x2741b9,0x1c0,_0xe73df4._0x95b2c9,0x1be)](_0xe6178f);}}catch(_0x4bb803){if(_0x538ea7(-_0xe73df4._0x20eef2,0x40,-_0xe73df4._0xe4f34b,-0x8)===_0x42678c['kMYvx']){const _0x2572a8={};_0x2572a8[_0x538ea7(-0x2a,-_0xe73df4._0x1a02f3,0x29,-0xd)]=_0x4bb803[_0x538ea7(0x0,-0x2,-0x6,0x3)],logger['error'](_0x42678c[_0x400ddf(0x1eb,_0xe73df4._0x142215,0x18c,0x19a)],_0x2572a8);const _0x14cab5={};return _0x14cab5[_0x400ddf(0x1b7,_0xe73df4._0x21f7da,_0xe73df4._0xecbf05,0x1c6)]=_0x42678c['HmwFF'],_0x340205['status'](0x58f*0x2+0x195b+-0x2285)[_0x400ddf(0x1c3,0x1c0,0x17b,_0xe73df4._0xa7709b)](_0x14cab5);}else{const _0x714306=_0x42678c[_0x400ddf(_0xe73df4._0x4afe20,_0xe73df4._0x3b48ac,0x1ae,0x225)](_0x5d6a29),_0x5cba88=_0x5930ed[_0x538ea7(0x5c,0x44,-0x16,0x26)](_0x714306)[_0x400ddf(0x158,_0xe73df4._0x4f585b,_0xe73df4._0x4b9985,_0xe73df4._0x485004)](([_0x56a389,_0x1087c3])=>({'key':_0x56a389,'description':_0x1087c3,'category':_0x56a389[_0x400ddf(0x1ad,0x18d,0x1bf,0x1d6)](':')[-0x1*0x25ab+-0xed*-0x14+0x1327],'scope':_0x5c47f1(_0x56a389)})),_0x4d79db={};return _0x4d79db[_0x400ddf(_0xe73df4._0x5f3bb0,_0xe73df4._0x5e9825,0x1b0,_0xe73df4._0x342234)+'s']=_0x5cba88,_0x44a244[_0x538ea7(_0xe73df4._0x408c60,-0x24,-0x25,_0xe73df4._0x5bed18)](_0x4d79db);}}}),router[_0x3fd1fd(0x1d8,0x1d5,0x1ba,0x1cd)]('/',requirePermission(_0x3fd1fd(0x1c8,0x1ed,0x1ce,0x1ab)+_0x56293c(0x34b,0x3c2,0x3ac,0x380)),async(_0x379eaf,_0x2e0fb4)=>{const _0x506a8a={_0x3b959f:0x30f,_0x2c7f24:0x32a,_0x446103:0x141,_0x3bac19:0x12e,_0xe24af9:0x1df,_0x4165c9:0x203,_0x3dbc04:0x2db,_0x4e3fdf:0x2f9,_0x738f9d:0x317,_0x1e64ec:0x19f,_0x17dfb5:0x17e,_0x4f3034:0x1c2,_0x10494d:0x1af,_0x549bed:0x161,_0x315c0c:0x1a6,_0x328903:0x32e,_0x392fef:0x30b,_0x2fb697:0x1d1,_0xe4c3b3:0x20c,_0x2166b1:0x1e7,_0x4d55aa:0x1f8,_0x135544:0x1a2,_0x4d66b3:0x1be,_0x19cb97:0x190,_0x2d2360:0x1b2,_0x4d5e0c:0x1d5,_0x5e1da3:0x1d6,_0x2d2701:0x313,_0x47dfe5:0x338,_0x210053:0x35c,_0x1475fd:0x1a3,_0x2305ca:0x1a7,_0x4a3fff:0x1ab,_0x4fefb1:0x16f,_0x1e0117:0x1c7,_0x4a284b:0x1c3,_0x461d6a:0x222,_0x4af70c:0x209,_0x4a3f58:0x362,_0x90b914:0x157,_0x18bd2a:0x18a,_0x5e3987:0x2ea,_0x5a5371:0x2f0,_0x873d27:0x2ed,_0x48f9fc:0x2ef,_0x258428:0x1b7,_0x5bdc76:0x1c7,_0x519c91:0x13f,_0x2287cb:0x1b6,_0x2759ae:0x1f5,_0x547708:0x1c9,_0x3133fa:0x1fe,_0x351761:0x1fa,_0x12c7ac:0x173,_0x53a306:0x13e,_0x179608:0x1a8,_0x5b164b:0x1ba,_0xa1d646:0x1dc,_0x3e766f:0x304,_0x4551c6:0x310,_0x1c09b3:0x1ad,_0x8f44e:0x1f3,_0x33664c:0x170,_0x49a644:0x1c0,_0x2ca0d0:0x1b4,_0x4f66da:0x18b,_0x335226:0x1d0,_0x46c766:0x192,_0xc4514d:0x2cd,_0x261668:0x2e8,_0x3a2557:0x147,_0x467292:0x1c6,_0xc0ec94:0x1d9,_0x41ed89:0x1f1,_0x3bdae9:0x1ae,_0x49d314:0x346,_0x6b9ec6:0x341,_0xab44fa:0x2c9,_0x2f3dfa:0x15d,_0x3b43f4:0x30e,_0xdfcd04:0x2b3,_0x3ba50d:0x1a1,_0xb8b506:0x19e,_0x18e93a:0x19d,_0x3d8c65:0x1e0,_0x2d42b0:0x177,_0x1bacd4:0x1e4,_0x5f0df9:0x31f,_0x594107:0x2ea,_0x379420:0x30d,_0x4f1bc1:0x2e8,_0x2b1d0c:0x1ca,_0x4da463:0x1cd,_0x3589d7:0x34b,_0xaca9ed:0x2c4,_0x598f7b:0x305,_0x45a0ba:0x333,_0x177083:0x2c1,_0x15f72b:0x2fb,_0x8a6393:0x19d,_0x15a904:0x196,_0x17c406:0x1de,_0x1411c4:0x17f,_0x42c487:0x151,_0x42b514:0x1c9,_0x4ee280:0x2b9,_0x4f9978:0x2f6,_0x205c38:0x2ef,_0x4d0cc2:0x30b,_0x14a22a:0x19d,_0x286f31:0x1e4,_0x1a7660:0x2ee,_0x5c828d:0x318,_0x40003e:0x1dd,_0x15c146:0x202,_0x3e9912:0x1e4,_0x520e49:0x2f8,_0x2a570f:0x323,_0x26714a:0x300,_0x3877e8:0x33c,_0x911ee8:0x276,_0x1eae68:0x324,_0x22536f:0x306,_0x21fc05:0x17d,_0x5dd6ff:0x138,_0x9dc82d:0x15c,_0x154110:0x310,_0x186580:0x347,_0x307464:0x332,_0x71bf07:0x371,_0x333017:0x1e3,_0x2a90f2:0x27f,_0x4d1195:0x2e5,_0x3015bf:0x18c,_0xeac66d:0x189,_0x28114a:0x2fe,_0x3e346b:0x306,_0x38c019:0x35b,_0x5536bd:0x2a2,_0x25b8ea:0x320,_0x5cbf34:0x36a,_0xf9875e:0x32f,_0x46cde4:0x314,_0x5963f8:0x329,_0x441aec:0x1d9,_0x1a3ef3:0x1f4,_0x5c4fd4:0x226,_0x3f7992:0x32a,_0x37aba2:0x339,_0x21273d:0x19d,_0x8fdcbe:0x1cc,_0x1cfb02:0x17c,_0x1f32bc:0x136,_0x86cf82:0x14b,_0x4a43db:0x18f,_0x5875f1:0x30c,_0x8e9f53:0x2d2,_0x29f987:0x2a3,_0x31e11e:0x2e8,_0x25696c:0x2c2,_0x1586c1:0x2ef,_0x11fa37:0x32c,_0x1e755c:0x367,_0xfdf4b3:0x364},_0x25772c={_0x32115f:0x113},_0x331f61={_0x53510f:0x1b4,_0x21a9a9:0x4e},_0x5eccf9={};_0x5eccf9[_0x54cc5d(_0x506a8a._0x3b959f,0x34c,_0x506a8a._0x2c7f24,0x2f4)]='Role\x20not\x20f'+'ound';function _0x54cc5d(_0x47db2b,_0x155c51,_0x282928,_0x27193f){return _0x56293c(_0x47db2b-_0x331f61._0x53510f,_0x155c51-_0x331f61._0x21a9a9,_0x282928,_0x47db2b- -0x7e);}_0x5eccf9['ATPeL']=_0x4964da(-0x161,-0x155,-_0x506a8a._0x446103,-_0x506a8a._0x3bac19)+_0x4964da(-0x1ee,-_0x506a8a._0xe24af9,-_0x506a8a._0x4165c9,-0x1c6)+'ined\x20role',_0x5eccf9[_0x54cc5d(_0x506a8a._0x3dbc04,_0x506a8a._0x4e3fdf,_0x506a8a._0x738f9d,0x304)]=function(_0xaa882,_0x7d174a){return _0xaa882!==_0x7d174a;},_0x5eccf9[_0x4964da(-_0x506a8a._0x1e64ec,-_0x506a8a._0x17dfb5,-_0x506a8a._0x4f3034,-0x164)]=_0x4964da(-0x18b,-_0x506a8a._0x10494d,-_0x506a8a._0x549bed,-_0x506a8a._0x315c0c),_0x5eccf9['tPRES']=function(_0x5cb06c,_0x391805){return _0x5cb06c!==_0x391805;},_0x5eccf9[_0x54cc5d(_0x506a8a._0x328903,0x324,0x332,_0x506a8a._0x392fef)]=_0x4964da(-0x1ce,-0x1a1,-_0x506a8a._0x2fb697,-_0x506a8a._0xe4c3b3),_0x5eccf9[_0x4964da(-0x1c6,-_0x506a8a._0x2166b1,-_0x506a8a._0x4d55aa,-0x20d)]=function(_0x2f6318,_0x5301b0){return _0x2f6318===_0x5301b0;},_0x5eccf9[_0x4964da(-0x1df,-_0x506a8a._0x135544,-0x20a,-_0x506a8a._0x4d66b3)]='Bad\x20Reques'+'t',_0x5eccf9[_0x4964da(-_0x506a8a._0x19cb97,-_0x506a8a._0x2d2360,-_0x506a8a._0x4d5e0c,-_0x506a8a._0x5e1da3)]=_0x54cc5d(0x2e2,_0x506a8a._0x2d2701,0x323,0x2a2)+_0x54cc5d(0x333,_0x506a8a._0x47dfe5,_0x506a8a._0x210053,0x339)+'d',_0x5eccf9[_0x4964da(-0x167,-0x132,-_0x506a8a._0x1475fd,-0x16e)]=_0x4964da(-_0x506a8a._0x2305ca,-0x1dd,-0x1a5,-_0x506a8a._0x4a3fff)+_0x54cc5d(0x2fa,0x31c,0x30f,0x30b)+'red\x20and\x20mu'+_0x4964da(-0x180,-_0x506a8a._0x4fefb1,-0x187,-_0x506a8a._0x1e0117)+_0x4964da(-0x1ea,-_0x506a8a._0x4a284b,-_0x506a8a._0x461d6a,-_0x506a8a._0x4af70c)+_0x54cc5d(0x337,_0x506a8a._0x4a3f58,0x359,0x32a),_0x5eccf9['HKkOI']=function(_0x3f11c1,_0x154754){return _0x3f11c1>_0x154754;},_0x5eccf9[_0x4964da(-0x19a,-0x17c,-_0x506a8a._0x90b914,-_0x506a8a._0x18bd2a)]='Role\x20creat'+_0x54cc5d(0x2eb,0x2e5,_0x506a8a._0x5e3987,_0x506a8a._0x5e3987)+_0x54cc5d(_0x506a8a._0x5a5371,0x30f,_0x506a8a._0x873d27,_0x506a8a._0x48f9fc),_0x5eccf9[_0x4964da(-0x1bf,-0x1fa,-_0x506a8a._0x258428,-_0x506a8a._0x5bdc76)]=_0x4964da(-0x178,-0x143,-0x13f,-_0x506a8a._0x519c91),_0x5eccf9[_0x4964da(-0x1f0,-_0x506a8a._0x2287cb,-_0x506a8a._0x2759ae,-0x1ac)]='Conflict',_0x5eccf9[_0x4964da(-0x1c9,-_0x506a8a._0x547708,-_0x506a8a._0x3133fa,-_0x506a8a._0x351761)]=_0x4964da(-_0x506a8a._0x12c7ac,-_0x506a8a._0x53a306,-0x18c,-_0x506a8a._0x179608)+'erver\x20erro'+'r';function _0x4964da(_0x198745,_0x58724d,_0x53bf2a,_0x57082d){return _0x56293c(_0x198745-_0x25772c._0x32115f,_0x58724d-0x59,_0x58724d,_0x198745- -0x521);}const _0x1ac383=_0x5eccf9;try{if(_0x1ac383[_0x4964da(-0x1c8,-_0x506a8a._0x2287cb,-_0x506a8a._0x5b164b,-_0x506a8a._0xa1d646)](_0x1ac383[_0x4964da(-0x19f,-_0x506a8a._0x5b164b,-0x182,-0x159)],_0x1ac383[_0x54cc5d(_0x506a8a._0x3e766f,0x2cd,0x2c9,_0x506a8a._0x4551c6)])){const _0x5765d9={};return _0x5765d9[_0x4964da(-_0x506a8a._0x1c09b3,-_0x506a8a._0x8f44e,-_0x506a8a._0x33664c,-0x19c)]=_0x1ac383[_0x4964da(-0x194,-_0x506a8a._0x49a644,-_0x506a8a._0x547708,-0x1d1)],_0x1464b0[_0x4964da(-_0x506a8a._0x2ca0d0,-_0x506a8a._0x4f66da,-_0x506a8a._0x335226,-0x1d2)](-0x3*0x2cc+-0x1*-0x25e7+-0x1bef*0x1)[_0x4964da(-0x17f,-_0x506a8a._0x46c766,-0x1a5,-0x19f)](_0x5765d9);}else{const {name:_0x5db4c1,description:_0xfc42f1,permissions:_0x546a8f}=_0x379eaf[_0x54cc5d(_0x506a8a._0xc4514d,0x293,0x2b6,_0x506a8a._0x261668)];if(!_0x5db4c1||_0x1ac383[_0x4964da(-0x187,-0x143,-_0x506a8a._0x3a2557,-0x184)](typeof _0x5db4c1,_0x1ac383['OpSeG'])||_0x1ac383[_0x4964da(-_0x506a8a._0x467292,-_0x506a8a._0xc0ec94,-_0x506a8a._0x2ca0d0,-0x1ed)](_0x5db4c1[_0x54cc5d(0x30b,0x331,0x2fc,0x2f2)]()[_0x4964da(-_0x506a8a._0x41ed89,-0x1f2,-_0x506a8a._0x3bdae9,-0x1fc)],-0x26bb+0x181a+-0x6b*-0x23)){const _0x1497f7={};return _0x1497f7['error']=_0x1ac383[_0x4964da(-_0x506a8a._0xe24af9,-0x1d3,-0x19d,-0x1bb)],_0x1497f7['message']=_0x1ac383[_0x54cc5d(0x313,_0x506a8a._0x49d314,_0x506a8a._0x6b9ec6,_0x506a8a._0xab44fa)],_0x2e0fb4[_0x54cc5d(_0x506a8a._0x48f9fc,0x2d0,0x326,0x306)](0x20a0+0x3d1*-0x6+-0x37*0x26)[_0x4964da(-0x17f,-0x14a,-_0x506a8a._0x2f3dfa,-_0x506a8a._0x4d66b3)](_0x1497f7);}if(!_0x546a8f||!Array[_0x54cc5d(_0x506a8a._0x3b43f4,0x305,0x338,0x2c7)](_0x546a8f)||_0x546a8f[_0x54cc5d(0x2b2,0x2f1,0x2ea,_0x506a8a._0xdfcd04)]===-0xe2*-0x5+0x166c+0x8f2*-0x3){const _0x147bca={};return _0x147bca[_0x4964da(-0x1ad,-0x185,-_0x506a8a._0x3ba50d,-_0x506a8a._0xb8b506)]='Bad\x20Reques'+'t',_0x147bca[_0x4964da(-_0x506a8a._0x18e93a,-0x15f,-_0x506a8a._0x3d8c65,-0x19d)]=_0x1ac383['MluQp'],_0x2e0fb4[_0x4964da(-0x1b4,-0x188,-_0x506a8a._0x2d42b0,-_0x506a8a._0x1bacd4)](0x254*-0x3+-0x13b8+0x1c44)['json'](_0x147bca);}const _0x16b468=_0x546a8f[_0x54cc5d(0x2d6,_0x506a8a._0x5f0df9,0x30c,_0x506a8a._0x594107)](_0x5d6863=>!isValidPermission(_0x5d6863));if(_0x1ac383[_0x54cc5d(0x2fe,_0x506a8a._0x379420,0x2d5,_0x506a8a._0x4f1bc1)](_0x16b468[_0x4964da(-0x1f1,-0x1e9,-_0x506a8a._0x2b1d0c,-_0x506a8a._0x4da463)],-0x3*0xa62+0x258b+-0x665*0x1))return _0x2e0fb4['status'](0x7*0x2c5+-0x1*0x23c5+0x8f9*0x2)[_0x54cc5d(0x324,0x309,_0x506a8a._0x3589d7,0x319)]({'error':_0x1ac383[_0x54cc5d(_0x506a8a._0xaca9ed,0x27c,0x286,0x2f8)],'message':'Invalid\x20pe'+'rmissions:'+'\x20'+_0x16b468[_0x54cc5d(0x339,0x339,_0x506a8a._0x598f7b,_0x506a8a._0x45a0ba)](',\x20')});const _0x533158=await createRole({'name':_0x5db4c1[_0x54cc5d(0x30b,0x351,_0x506a8a._0x177083,_0x506a8a._0x15f72b)](),'description':_0xfc42f1,'permissions':_0x546a8f}),_0x3cc1ba={};return _0x3cc1ba[_0x4964da(-_0x506a8a._0x8a6393,-0x154,-0x18a,-_0x506a8a._0x15a904)]=_0x1ac383['svghg'],_0x3cc1ba[_0x54cc5d(0x33d,0x341,0x365,0x321)]=_0x533158,_0x2e0fb4[_0x4964da(-_0x506a8a._0x2ca0d0,-0x1bc,-_0x506a8a._0x17c406,-0x170)](-0xe6b+0x1fce+0x2*-0x84d)[_0x4964da(-_0x506a8a._0x1411c4,-_0x506a8a._0x42c487,-_0x506a8a._0x42b514,-0x178)](_0x3cc1ba);}}catch(_0x48e0a9){if(_0x1ac383[_0x54cc5d(0x2db,0x2df,0x2da,_0x506a8a._0x4ee280)](_0x1ac383['dlmKh'],_0x1ac383['dlmKh'])){const _0x5e3cef={};return _0x5e3cef[_0x54cc5d(_0x506a8a._0x4f9978,_0x506a8a._0x205c38,0x2eb,_0x506a8a._0x4d0cc2)]=_0x1ac383['ATPeL'],_0x5e3cef[_0x4964da(-_0x506a8a._0x14a22a,-0x1cf,-_0x506a8a._0x286f31,-0x1a2)]=_0x54cc5d(0x33b,0x333,0x350,0x370)+_0x329a5f[_0x54cc5d(0x2d4,0x2cf,0x311,0x2cc)]+(_0x54cc5d(_0x506a8a._0x1a7660,0x32a,_0x506a8a._0x5c828d,_0x506a8a._0xdfcd04)+_0x4964da(-_0x506a8a._0x40003e,-0x1c1,-_0x506a8a._0x15c146,-_0x506a8a._0x3e9912)+_0x54cc5d(0x301,_0x506a8a._0x520e49,_0x506a8a._0x2a570f,0x2ff)+_0x54cc5d(_0x506a8a._0x26714a,0x2f8,_0x506a8a._0x3877e8,0x2e3)+_0x54cc5d(0x2bc,0x2cb,_0x506a8a._0x911ee8,0x2aa)),_0x546325['status'](0xd44+0x2*0xd9d+-0x26ee)[_0x54cc5d(_0x506a8a._0x1eae68,0x368,0x2f1,0x347)](_0x5e3cef);}else{if(_0x48e0a9[_0x54cc5d(_0x506a8a._0x22536f,0x325,0x31c,0x2d5)][_0x4964da(-_0x506a8a._0x21fc05,-_0x506a8a._0x5dd6ff,-0x190,-_0x506a8a._0x9dc82d)](_0x54cc5d(_0x506a8a._0x154110,0x2f4,_0x506a8a._0x186580,0x35a)+_0x54cc5d(_0x506a8a._0x307464,0x36f,0x315,_0x506a8a._0x71bf07))){const _0x2c4c25={};return _0x2c4c25[_0x4964da(-_0x506a8a._0x1c09b3,-0x1ab,-_0x506a8a._0x333017,-0x1f0)]=_0x1ac383[_0x54cc5d(_0x506a8a._0xdfcd04,0x2c6,0x2c1,_0x506a8a._0x2a90f2)],_0x2c4c25[_0x54cc5d(0x306,0x331,_0x506a8a._0x4d1195,0x2f6)]=_0x48e0a9[_0x4964da(-_0x506a8a._0x8a6393,-0x1d9,-0x170,-0x1b6)],_0x2e0fb4[_0x4964da(-0x1b4,-_0x506a8a._0x3015bf,-0x16c,-_0x506a8a._0xeac66d)](0x15a*-0xb+-0x1c1*0xe+0x2905)[_0x54cc5d(0x324,_0x506a8a._0x28114a,_0x506a8a._0x3e346b,_0x506a8a._0x38c019)](_0x2c4c25);}if(_0x48e0a9[_0x54cc5d(0x2cc,_0x506a8a._0x5536bd,0x29d,0x301)]===_0x54cc5d(_0x506a8a._0x25b8ea,_0x506a8a._0x5cbf34,0x2e4,0x365)){const _0x5ca7d4={};return _0x5ca7d4[_0x54cc5d(0x2f6,_0x506a8a._0xf9875e,_0x506a8a._0x46cde4,_0x506a8a._0x5963f8)]=_0x1ac383[_0x4964da(-0x1df,-_0x506a8a._0x441aec,-_0x506a8a._0x1a3ef3,-_0x506a8a._0x5c4fd4)],_0x5ca7d4[_0x54cc5d(0x306,0x30e,_0x506a8a._0x3f7992,_0x506a8a._0x37aba2)]=_0x48e0a9[_0x4964da(-_0x506a8a._0x21273d,-_0x506a8a._0x8fdcbe,-_0x506a8a._0x467292,-0x185)],_0x2e0fb4[_0x4964da(-0x1b4,-_0x506a8a._0x1cfb02,-_0x506a8a._0x4d55aa,-0x1eb)](0x1*0x513+-0x18ab+-0x4*-0x54a)[_0x4964da(-0x17f,-0x1c3,-_0x506a8a._0x1f32bc,-_0x506a8a._0x86cf82)](_0x5ca7d4);}const _0x18ee71={};_0x18ee71[_0x4964da(-0x1ad,-0x192,-0x1e1,-0x182)]=_0x48e0a9[_0x4964da(-0x19d,-_0x506a8a._0x4a43db,-0x1e5,-0x1b7)],logger[_0x54cc5d(_0x506a8a._0x4f9978,_0x506a8a._0x5875f1,0x2b3,_0x506a8a._0x8e9f53)](_0x54cc5d(0x2f5,0x2d3,0x2ff,0x2e8)+'ting\x20role',_0x18ee71);const _0x56b4e8={};return _0x56b4e8['error']=_0x1ac383[_0x54cc5d(0x2da,_0x506a8a._0x29f987,_0x506a8a._0x31e11e,_0x506a8a._0x25696c)],_0x2e0fb4[_0x54cc5d(_0x506a8a._0x1586c1,0x2ec,0x2c3,_0x506a8a._0x11fa37)](-0xfff+-0x12*0x14d+0x295d)[_0x54cc5d(0x324,0x36b,_0x506a8a._0x1e755c,_0x506a8a._0xfdf4b3)](_0x56b4e8);}}}),router[_0x3fd1fd(0x169,0x14a,0x11a,0x147)](_0x56293c(0x377,0x31a,0x354,0x343),requirePermission(_0x56293c(0x367,0x3af,0x36b,0x3a0)+_0x56293c(0x34e,0x368,0x336,0x380)),async(_0x498a71,_0x1f6b3a)=>{const _0xbd4cb7={_0x504a49:0x16f,_0x274dde:0x13c,_0x39a1f2:0x201,_0x52a362:0x134,_0xa1a667:0x166,_0x32a6f7:0x131,_0x2a9014:0x1a8,_0x50c654:0x14a,_0x48190a:0x104,_0x4b7e7a:0x132,_0x53d7f8:0x1dc,_0x41315f:0x186,_0x449061:0x17a,_0x4c5f39:0x207,_0x12ba2c:0x19c,_0x522f71:0x168,_0xbb67fd:0x115,_0x1d74bd:0x202,_0x2b5dcf:0x1f4,_0x1a7088:0x1cc,_0x2b9bb1:0x1ec,_0x3614de:0x15f,_0x149617:0x14b,_0x5bc302:0x232,_0x113239:0x1df,_0xfb8169:0x1e5,_0x129b2a:0x20b,_0x13cd2b:0x1e9,_0xcb36d4:0x1c5,_0x353851:0x193,_0x2193d3:0x1de,_0x5a680c:0x1ea,_0x576543:0x21d,_0x5b34ad:0x264,_0xee4c5b:0x22b,_0x36c789:0x20e,_0x10b804:0x22e,_0x76567e:0x284,_0x276f9b:0x262,_0x2401e7:0x210,_0x1c8149:0x246,_0x6d5eef:0x160,_0x3e9d98:0x132,_0x54c348:0x23d,_0x3bb25e:0x219,_0x4fccf1:0x20f,_0x4986d2:0x1ec,_0x5169e1:0x1d7,_0x1775bb:0x162,_0x25713b:0x1b6,_0x529c78:0x192,_0x4e53ac:0x122,_0x59d110:0xfb,_0x55da02:0x12d,_0x353f15:0x23c,_0x3f51a9:0x1ce,_0x3c1a4d:0x213,_0x25d581:0x24b,_0x1080aa:0x229,_0x1f2612:0x174,_0x53f882:0x177,_0x713056:0x175,_0x2e9211:0x13f,_0x1761d8:0x16a,_0x30c718:0x16d,_0x3df934:0x124,_0x29fdee:0x161,_0x379a37:0x244,_0x3265d7:0x23c,_0x3b5e3b:0x201,_0x4701cf:0x25f,_0x50655d:0x265,_0x38fbb6:0x18f,_0x6d488e:0x16f,_0x47fff9:0x18f,_0x319e81:0x1c3,_0x26eb54:0x25a,_0xf81921:0x1f9,_0x42b2fe:0x16b,_0x3cacf1:0x226,_0x2e1144:0x1ed,_0x2c5adf:0x209,_0x3ed699:0x257,_0x44d26d:0x237,_0x59a251:0x1fd,_0x2dc8a9:0x25c,_0x42bf34:0x119,_0xd47011:0x155,_0x1b57c4:0x167,_0xc2122d:0x15d,_0x25c654:0x171,_0x2f4988:0x163,_0x2341b0:0x231,_0x2fd712:0x238,_0x1ceb96:0x20c,_0x42c0e9:0x221,_0x55a824:0x24f,_0x1ad402:0x17d,_0x1847b3:0x1bf,_0x47b106:0x1b1,_0x1ee4a8:0x268,_0x22cd13:0x218,_0x125175:0x210,_0x2a1d0c:0x195,_0x430fb9:0x19e,_0x43e7a2:0x142,_0xadd8e:0x1cf,_0x43cb29:0x1cd,_0x39c818:0x248,_0x26f8f0:0x198,_0x332bb5:0x1b7,_0x7a9252:0x196,_0x51d5df:0x13a,_0x1fd161:0x1be,_0xbf0b89:0x13f,_0x35c728:0x1aa,_0x269f99:0x1e8,_0x57d27d:0x1f7,_0x37b6ac:0x14a,_0x53418d:0x147,_0xf6b1ff:0x165,_0x5ed23b:0x1f2,_0x5aaeb1:0x240,_0x50bcf1:0x150,_0x1ffb66:0x1ff,_0x3a2686:0x24c,_0x3ce2b5:0x20b,_0x2225a8:0x203,_0x1c89b4:0x206,_0x368898:0x224,_0x15a2f3:0x248,_0xd417ec:0x1da,_0x248d15:0x13f,_0x43e391:0x117,_0x2a836b:0x14c,_0x3b1c24:0x245,_0x47a4b4:0x178,_0x5ad110:0x143,_0x553baf:0x126,_0x5695fb:0x276,_0x23e67a:0x238,_0x4935be:0x1a8,_0x174c22:0x1df,_0xf217fd:0x239,_0x257ed8:0x249,_0x546bb2:0x1e4,_0x1a98be:0x23b,_0x39fb2f:0x21b,_0x1ee327:0x1eb,_0x6edf42:0x207,_0x44ea0f:0x21c,_0x4c52be:0x1d9,_0x4299ec:0x218,_0x562981:0x243,_0x156907:0x14a,_0x2440ef:0x13d,_0xeca28d:0x12e,_0x5bbd68:0x1fc,_0x3e5695:0x1f8,_0x8139d3:0x1c1,_0x2b1893:0x224,_0x2cf527:0x1fb,_0x4be04e:0x1de,_0x5c1ac4:0x254,_0x1f9d6d:0x222,_0x2d7701:0x1d0,_0x18ba83:0x1f4,_0x211253:0x1d5,_0x284e5c:0x1f0,_0x49cc24:0x20b,_0x2be95f:0x1cd,_0x218b2b:0x1ef,_0x461a4f:0x20b,_0x50dcfb:0x1ed,_0x160317:0x1c9,_0x2da7ce:0x197,_0x1c7d68:0x256,_0x278802:0x238,_0x1f57c2:0x114,_0x3187be:0x13b,_0x125a1d:0x10b,_0xc611d5:0x15f,_0x2109b1:0x125,_0x15b82b:0x191,_0x3daa48:0x200,_0x348e38:0x21b,_0x4f003d:0x261,_0x58b02b:0x1cf,_0x264fa3:0x15c},_0x11143c={_0x218cb7:0x1db,_0x476669:0x4e1},_0x48129c={_0x507c39:0x11,_0x204d3f:0x39a};function _0x803c6d(_0x6d5164,_0x3edf82,_0x35734a,_0x19b687){return _0x3fd1fd(_0x35734a,_0x3edf82-0x4c,_0x35734a-_0x48129c._0x507c39,_0x19b687- -_0x48129c._0x204d3f);}const _0x3b1c67={'pujEG':_0x53a0f5(-_0xbd4cb7._0x504a49,-_0xbd4cb7._0x274dde,-0x1b6,-0x16c)+'ing\x20role','vrgcM':'Conflict','QjvVf':_0x803c6d(-0x21f,-0x1b9,-0x233,-_0xbd4cb7._0x39a1f2)+_0x53a0f5(-_0xbd4cb7._0x52a362,-0x143,-_0xbd4cb7._0xa1a667,-_0xbd4cb7._0x32a6f7),'rKnxM':function(_0x240556,_0x1e2b7c){return _0x240556===_0x1e2b7c;},'XPOyu':'Bad\x20Reques'+'t','PPNSq':_0x53a0f5(-_0xbd4cb7._0x2a9014,-0x191,-_0xbd4cb7._0x50c654,-0x16e)+_0x53a0f5(-_0xbd4cb7._0x48190a,-0x15b,-0x11a,-_0xbd4cb7._0x4b7e7a),'BuPAI':'Internal\x20s'+_0x803c6d(-_0xbd4cb7._0x53d7f8,-0x25b,-0x1f5,-0x21f)+'r','IXTXh':function(_0x4be810,_0x331221){return _0x4be810(_0x331221);},'mmkAV':function(_0x4086fa,_0x1001b8){return _0x4086fa!==_0x1001b8;},'sfnkY':'Qrgpn','uxhQw':_0x53a0f5(-0x166,-_0xbd4cb7._0x41315f,-0x1ba,-_0xbd4cb7._0x449061)+_0x803c6d(-0x222,-0x207,-0x208,-_0xbd4cb7._0x4c5f39),'CnJku':function(_0x18aff4,_0x539809){return _0x18aff4!==_0x539809;},'xLulb':function(_0x2792ae,_0x5b1cc3){return _0x2792ae!==_0x5b1cc3;},'YRJbl':_0x53a0f5(-0x151,-0x15f,-_0xbd4cb7._0x12ba2c,-0x167)+_0x53a0f5(-0x17f,-_0xbd4cb7._0x522f71,-_0xbd4cb7._0xbb67fd,-0x15c)+_0x53a0f5(-0x1a9,-0x141,-0x191,-0x185)+_0x803c6d(-_0xbd4cb7._0x1d74bd,-_0xbd4cb7._0x2b5dcf,-_0xbd4cb7._0x1a7088,-_0xbd4cb7._0x2b9bb1),'SffaO':_0x53a0f5(-_0xbd4cb7._0x3614de,-_0xbd4cb7._0x149617,-0xf6,-0x13b),'JBdoP':_0x803c6d(-0x24d,-0x1ff,-0x203,-_0xbd4cb7._0x5bc302)+_0x803c6d(-_0xbd4cb7._0x113239,-_0xbd4cb7._0xfb8169,-_0xbd4cb7._0x129b2a,-0x226)+_0x803c6d(-0x22e,-0x23d,-_0xbd4cb7._0x13cd2b,-0x221),'nEboX':_0x53a0f5(-_0xbd4cb7._0xcb36d4,-0x16c,-0x1d9,-_0xbd4cb7._0x353851),'yTICQ':_0x803c6d(-_0xbd4cb7._0x2193d3,-_0xbd4cb7._0x5a680c,-0x1e2,-_0xbd4cb7._0x576543),'Exoll':_0x803c6d(-_0xbd4cb7._0x5b34ad,-0x21e,-0x1ee,-_0xbd4cb7._0xee4c5b),'VuidF':_0x803c6d(-_0xbd4cb7._0x36c789,-0x213,-0x274,-_0xbd4cb7._0x10b804),'pJEMw':'VALIDATION','MnPDr':_0x803c6d(-_0xbd4cb7._0x76567e,-_0xbd4cb7._0x276f9b,-_0xbd4cb7._0x2401e7,-_0xbd4cb7._0x1c8149)+_0x53a0f5(-0xf0,-_0xbd4cb7._0x6d5eef,-0x134,-_0xbd4cb7._0x3e9d98)};function _0x53a0f5(_0x16587d,_0x1150ff,_0x2134ba,_0x1d2568){return _0x56293c(_0x16587d-0x78,_0x1150ff-_0x11143c._0x218cb7,_0x16587d,_0x1d2568- -_0x11143c._0x476669);}try{const _0x31c47d=await _0x3b1c67[_0x803c6d(-_0xbd4cb7._0x54c348,-_0xbd4cb7._0x576543,-0x1f1,-_0xbd4cb7._0x3bb25e)](getRoleById,_0x498a71[_0x803c6d(-_0xbd4cb7._0x4fccf1,-0x18d,-_0xbd4cb7._0x4986d2,-_0xbd4cb7._0x5169e1)]['id']);if(!_0x31c47d){if(_0x3b1c67[_0x53a0f5(-_0xbd4cb7._0x1775bb,-0x185,-_0xbd4cb7._0x25713b,-_0xbd4cb7._0x529c78)](_0x3b1c67[_0x53a0f5(-_0xbd4cb7._0x4e53ac,-_0xbd4cb7._0x59d110,-0x153,-_0xbd4cb7._0x55da02)],_0x3b1c67[_0x803c6d(-0x1be,-0x192,-0x1b6,-0x1db)])){const _0x13ff7c={};_0x13ff7c[_0x803c6d(-0x252,-0x21e,-_0xbd4cb7._0x353f15,-0x21b)]=_0x1b62e5[_0x803c6d(-_0xbd4cb7._0x3f51a9,-_0xbd4cb7._0x3c1a4d,-_0xbd4cb7._0x25d581,-0x20b)],_0x187992[_0x53a0f5(-0x145,-0x191,-_0xbd4cb7._0x149617,-0x16d)](_0x3b1c67['pujEG'],_0x13ff7c);const _0x495651={};return _0x495651[_0x803c6d(-0x1e6,-0x1d9,-_0xbd4cb7._0x1080aa,-0x21b)]='Internal\x20s'+'erver\x20erro'+'r',_0x580626[_0x53a0f5(-0x151,-_0xbd4cb7._0x50c654,-0x1ad,-_0xbd4cb7._0x1f2612)](0x2129+0x23de+0xb*-0x619)[_0x53a0f5(-0x105,-_0xbd4cb7._0x53f882,-_0xbd4cb7._0x713056,-_0xbd4cb7._0x2e9211)](_0x495651);}else{const _0x41a5c8={};return _0x41a5c8[_0x53a0f5(-0x124,-_0xbd4cb7._0x1761d8,-0x198,-_0xbd4cb7._0x30c718)]=_0x3b1c67[_0x53a0f5(-0x170,-0x137,-_0xbd4cb7._0x3df934,-0x14f)],_0x1f6b3a['status'](-0x536+0xc7*-0x7+0x1*0xc3b)[_0x53a0f5(-0x108,-_0xbd4cb7._0x522f71,-_0xbd4cb7._0x29fdee,-_0xbd4cb7._0x2e9211)](_0x41a5c8);}}const _0x1c9d17={};if(_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x379a37,-_0xbd4cb7._0x3265d7,-0x271,-0x240)](_0x498a71[_0x803c6d(-_0xbd4cb7._0x3b5e3b,-0x20d,-_0xbd4cb7._0x4701cf,-0x244)][_0x803c6d(-0x20b,-_0xbd4cb7._0x50655d,-0x229,-0x23d)],undefined))_0x1c9d17[_0x53a0f5(-_0xbd4cb7._0x38fbb6,-_0xbd4cb7._0x6d488e,-0x1a9,-_0xbd4cb7._0x47fff9)]=_0x498a71[_0x53a0f5(-0x179,-0x1bd,-_0xbd4cb7._0x319e81,-0x196)][_0x803c6d(-_0xbd4cb7._0x26eb54,-_0xbd4cb7._0xf81921,-0x1fa,-0x23d)];if(_0x3b1c67['CnJku'](_0x498a71[_0x803c6d(-0x260,-0x231,-_0xbd4cb7._0x26eb54,-0x244)][_0x53a0f5(-0x125,-_0xbd4cb7._0x42b2fe,-_0xbd4cb7._0x42b2fe,-0x15b)+'n'],undefined))_0x1c9d17[_0x803c6d(-_0xbd4cb7._0x3cacf1,-_0xbd4cb7._0x2e1144,-_0xbd4cb7._0x10b804,-_0xbd4cb7._0x2c5adf)+'n']=_0x498a71[_0x803c6d(-0x22c,-0x256,-_0xbd4cb7._0x3ed699,-0x244)]['descriptio'+'n'];if(_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x44d26d,-0x1a8,-0x1af,-0x1f2)](_0x498a71[_0x803c6d(-0x23a,-_0xbd4cb7._0x59a251,-0x23a,-0x244)][_0x803c6d(-0x206,-0x1e2,-_0xbd4cb7._0x2dc8a9,-0x215)+'s'],undefined)){if(!Array[_0x53a0f5(-_0xbd4cb7._0x42bf34,-_0xbd4cb7._0x274dde,-0x179,-_0xbd4cb7._0xd47011)](_0x498a71['body']['permission'+'s'])||_0x498a71[_0x53a0f5(-0x173,-_0xbd4cb7._0x1b57c4,-_0xbd4cb7._0xc2122d,-0x196)]['permission'+'s'][_0x53a0f5(-_0xbd4cb7._0x449061,-0x1c4,-0x197,-0x1b1)]===-0x18d8+-0xd42+0x261a){const _0xae4da9={};return _0xae4da9[_0x803c6d(-0x1e2,-0x20b,-0x1f3,-0x21b)]=_0x53a0f5(-_0xbd4cb7._0x25c654,-0x1ab,-_0xbd4cb7._0x2f4988,-0x164)+'t',_0xae4da9[_0x803c6d(-_0xbd4cb7._0x2341b0,-0x1f5,-_0xbd4cb7._0x2fd712,-0x20b)]=_0x3b1c67[_0x803c6d(-0x1c8,-0x218,-_0xbd4cb7._0x1ceb96,-0x1ce)],_0x1f6b3a[_0x803c6d(-_0xbd4cb7._0x42c0e9,-_0xbd4cb7._0x576543,-_0xbd4cb7._0x55a824,-0x222)](0x18ba+0x704*-0x4+0xb*0x72)['json'](_0xae4da9);}const _0x73b516=_0x498a71[_0x53a0f5(-_0xbd4cb7._0x1ad402,-0x15c,-0x18c,-0x196)]['permission'+'s'][_0x53a0f5(-0x190,-0x190,-_0xbd4cb7._0x53f882,-0x18d)](_0x494d99=>!isValidPermission(_0x494d99));if(_0x73b516[_0x53a0f5(-_0xbd4cb7._0x1847b3,-0x1c9,-0x18d,-_0xbd4cb7._0x47b106)]>0x682+0x1e2e+-0x24b0){if(_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x1ee4a8,-_0xbd4cb7._0x22cd13,-0x280,-0x251)]!==_0x803c6d(-_0xbd4cb7._0x125175,-_0xbd4cb7._0x2a1d0c,-0x187,-0x1d1))return _0x1f6b3a[_0x53a0f5(-0x150,-_0xbd4cb7._0x430fb9,-_0xbd4cb7._0x43e7a2,-_0xbd4cb7._0x1f2612)](-0x1*-0x46a+-0x1529+0x124f)['json']({'error':_0x803c6d(-_0xbd4cb7._0xadd8e,-_0xbd4cb7._0x43cb29,-_0xbd4cb7._0x39c818,-0x212)+'t','message':_0x803c6d(-_0xbd4cb7._0x3f51a9,-_0xbd4cb7._0x26f8f0,-_0xbd4cb7._0x332bb5,-0x1dd)+_0x53a0f5(-_0xbd4cb7._0x1b57c4,-_0xbd4cb7._0x449061,-_0xbd4cb7._0x149617,-0x149)+'\x20'+_0x73b516[_0x803c6d(-_0xbd4cb7._0x7a9252,-0x1a2,-0x199,-0x1d8)](',\x20')});else{const _0x57a946={};return _0x57a946[_0x53a0f5(-_0xbd4cb7._0x51d5df,-0x161,-0x198,-0x16d)]=_0x3b1c67[_0x803c6d(-0x22e,-_0xbd4cb7._0x1fd161,-0x1ef,-0x1f4)],_0x57a946[_0x53a0f5(-0x152,-0x160,-0x1a3,-_0xbd4cb7._0xc2122d)]=_0x5f4b2a[_0x53a0f5(-0x11e,-0x14e,-_0xbd4cb7._0xbf0b89,-0x15d)],_0x13a9f5['status'](-0x1*-0xef3+-0x1*-0xab5+-0x805*0x3)[_0x803c6d(-0x202,-0x1d5,-_0xbd4cb7._0x35c728,-0x1ed)](_0x57a946);}}_0x1c9d17[_0x803c6d(-_0xbd4cb7._0x269f99,-0x259,-_0xbd4cb7._0x57d27d,-0x215)+'s']=_0x498a71['body']['permission'+'s'];}const _0x21055d=await updateRole(_0x31c47d['id'],_0x1c9d17),_0xde2637={};return _0xde2637[_0x803c6d(-_0xbd4cb7._0x2341b0,-0x1e7,-0x230,-0x20b)]=_0x3b1c67[_0x53a0f5(-_0xbd4cb7._0x37b6ac,-_0xbd4cb7._0xa1a667,-_0xbd4cb7._0x53418d,-0x16a)],_0xde2637['role']=_0x21055d,_0x1f6b3a[_0x53a0f5(-0x11d,-0x189,-_0xbd4cb7._0xf6b1ff,-0x13f)](_0xde2637);}catch(_0x3842e3){if(_0x3b1c67['rKnxM'](_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x1080aa,-_0xbd4cb7._0x5ed23b,-_0xbd4cb7._0x5aaeb1,-0x20c)],_0x3b1c67[_0x53a0f5(-0x158,-0x14a,-_0xbd4cb7._0x50bcf1,-_0xbd4cb7._0x6d5eef)])){if(_0x2ed181[_0x803c6d(-_0xbd4cb7._0x1ffb66,-_0xbd4cb7._0x3a2686,-0x1d5,-_0xbd4cb7._0x3ce2b5)]['includes'](_0x3b1c67['QjvVf'])){const _0x32d713={};return _0x32d713['error']=_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x2225a8,-_0xbd4cb7._0x1c89b4,-_0xbd4cb7._0x368898,-_0xbd4cb7._0x2b5dcf)],_0x32d713[_0x803c6d(-0x1f5,-0x1e5,-0x223,-0x20b)]=_0x3719d7['message'],_0x3e7323[_0x803c6d(-0x230,-_0xbd4cb7._0x15a2f3,-_0xbd4cb7._0xd417ec,-0x222)](0x9a9+-0xc09*0x1+0x3f9)[_0x53a0f5(-0x131,-_0xbd4cb7._0x522f71,-0x147,-_0xbd4cb7._0x248d15)](_0x32d713);}if(_0x3b1c67[_0x53a0f5(-0x122,-0x171,-_0xbd4cb7._0x43e391,-_0xbd4cb7._0x2a836b)](_0x561a61[_0x803c6d(-0x233,-0x27f,-0x278,-_0xbd4cb7._0x3b1c24)],_0x53a0f5(-0x17a,-_0xbd4cb7._0x47a4b4,-0x170,-_0xbd4cb7._0x5ad110))){const _0x3851c9={};return _0x3851c9[_0x53a0f5(-_0xbd4cb7._0x30c718,-0x144,-_0xbd4cb7._0x553baf,-_0xbd4cb7._0x30c718)]=_0x3b1c67[_0x803c6d(-0x1f0,-_0xbd4cb7._0x5695fb,-0x203,-_0xbd4cb7._0x23e67a)],_0x3851c9[_0x803c6d(-0x20f,-0x251,-0x214,-0x20b)]=_0x4153af['message'],_0x1e2b32['status'](-0x1891*-0x1+0x29*-0x6b+0x2ef*-0x2)[_0x803c6d(-_0xbd4cb7._0x4c5f39,-_0xbd4cb7._0x4935be,-_0xbd4cb7._0x174c22,-0x1ed)](_0x3851c9);}const _0x2fa514={};_0x2fa514[_0x803c6d(-0x23d,-_0xbd4cb7._0xf217fd,-0x25b,-0x21b)]=_0x5ccdc7[_0x803c6d(-_0xbd4cb7._0x257ed8,-_0xbd4cb7._0x546bb2,-0x243,-0x20b)],_0x39694d[_0x803c6d(-0x1f9,-0x1e3,-_0xbd4cb7._0x1a98be,-_0xbd4cb7._0x39fb2f)](_0x3b1c67[_0x53a0f5(-0x1a3,-0x1a4,-0x197,-0x19b)],_0x2fa514);const _0x223de8={};return _0x223de8[_0x803c6d(-0x23e,-0x223,-_0xbd4cb7._0x1ee327,-0x21b)]=_0x3b1c67[_0x803c6d(-0x20e,-0x1d7,-_0xbd4cb7._0x1ceb96,-_0xbd4cb7._0xfb8169)],_0x459cc8[_0x803c6d(-_0xbd4cb7._0x6edf42,-_0xbd4cb7._0x44ea0f,-_0xbd4cb7._0x2dc8a9,-0x222)](0xe*-0x98+0xdde+-0x39a)[_0x803c6d(-_0xbd4cb7._0x4c52be,-_0xbd4cb7._0x47b106,-_0xbd4cb7._0x4299ec,-_0xbd4cb7._0x2e1144)](_0x223de8);}else{if(_0x3842e3[_0x803c6d(-0x23c,-0x211,-_0xbd4cb7._0x562981,-0x20b)][_0x53a0f5(-0x130,-0x107,-_0xbd4cb7._0x156907,-_0xbd4cb7._0x2440ef)](_0x3b1c67['QjvVf'])){if(_0x3b1c67[_0x53a0f5(-0xec,-0x101,-0x145,-_0xbd4cb7._0xeca28d)]===_0x3b1c67['VuidF']){const _0x211c2a={};return _0x211c2a[_0x803c6d(-0x238,-0x25b,-0x207,-0x21b)]=_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x5bbd68,-0x281,-_0xbd4cb7._0x3e5695,-0x238)],_0x211c2a[_0x803c6d(-_0xbd4cb7._0x8139d3,-0x24e,-_0xbd4cb7._0x2b1893,-0x20b)]=_0x27dcf1[_0x803c6d(-0x226,-_0xbd4cb7._0x2cf527,-0x1d3,-_0xbd4cb7._0x129b2a)],_0x504186[_0x803c6d(-_0xbd4cb7._0x4be04e,-0x211,-_0xbd4cb7._0x5c1ac4,-_0xbd4cb7._0x1f9d6d)](-0x1495+0x2211+-0xbec)[_0x803c6d(-0x200,-0x204,-0x22e,-_0xbd4cb7._0x2e1144)](_0x211c2a);}else{const _0x2aef0d={};return _0x2aef0d['error']=_0x3b1c67[_0x803c6d(-0x1b2,-_0xbd4cb7._0x3bb25e,-_0xbd4cb7._0x2d7701,-_0xbd4cb7._0x18ba83)],_0x2aef0d[_0x803c6d(-_0xbd4cb7._0x211253,-_0xbd4cb7._0x284e5c,-0x21c,-_0xbd4cb7._0x49cc24)]=_0x3842e3[_0x803c6d(-_0xbd4cb7._0x3a2686,-_0xbd4cb7._0x2be95f,-_0xbd4cb7._0x218b2b,-_0xbd4cb7._0x461a4f)],_0x1f6b3a['status'](0x2291+0x2*-0xc2d+-0x44f*0x2)[_0x803c6d(-0x1fc,-_0xbd4cb7._0x576543,-0x22a,-_0xbd4cb7._0x50dcfb)](_0x2aef0d);}}if(_0x3b1c67['rKnxM'](_0x3842e3[_0x53a0f5(-_0xbd4cb7._0x160317,-_0xbd4cb7._0x3614de,-0x1b2,-_0xbd4cb7._0x2da7ce)],_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x1c7d68,-0x234,-0x23b,-0x250)])){const _0x2e37e2={};return _0x2e37e2['error']=_0x3b1c67[_0x803c6d(-0x24c,-0x226,-0x22b,-_0xbd4cb7._0x278802)],_0x2e37e2['message']=_0x3842e3[_0x53a0f5(-0x1a7,-_0xbd4cb7._0x1f57c2,-_0xbd4cb7._0x3187be,-_0xbd4cb7._0xc2122d)],_0x1f6b3a['status'](0x2*-0xf74+-0x16b2+-0x2*-0x1b95)[_0x53a0f5(-_0xbd4cb7._0x125a1d,-_0xbd4cb7._0xc611d5,-0x120,-0x13f)](_0x2e37e2);}const _0xc0b7af={};_0xc0b7af['error']=_0x3842e3[_0x53a0f5(-_0xbd4cb7._0x42b2fe,-_0xbd4cb7._0x2109b1,-_0xbd4cb7._0x15b82b,-0x15d)],logger[_0x803c6d(-_0xbd4cb7._0x1ee327,-0x1f2,-_0xbd4cb7._0x3daa48,-_0xbd4cb7._0x348e38)](_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x4f003d,-0x22b,-0x204,-0x23f)],_0xc0b7af);const _0x10e286={};return _0x10e286['error']=_0x3b1c67[_0x803c6d(-_0xbd4cb7._0x1847b3,-_0xbd4cb7._0x58b02b,-0x1bb,-0x1e5)],_0x1f6b3a[_0x53a0f5(-0x18e,-_0xbd4cb7._0x264fa3,-0x17c,-0x174)](0x65b+0x1586+-0x19ed)[_0x803c6d(-0x1bf,-0x1bc,-0x1d5,-_0xbd4cb7._0x2e1144)](_0x10e286);}}}),router[_0x56293c(0x334,0x351,0x324,0x368)](_0x56293c(0x350,0x317,0x37f,0x343),requirePermission(_0x56293c(0x3c2,0x35e,0x397,0x3a0)+_0x3fd1fd(0x1d3,0x1a0,0x17c,0x18b)),async(_0x2c9736,_0x4fa920)=>{const _0x5d75ac={_0x2699d8:0x27c,_0x207507:0x2b4,_0x153c09:0x26c,_0x4136ab:0x210,_0x2310c5:0x24a,_0x407cd:0x212,_0x5cc02a:0x2a3,_0x3236d2:0x285,_0x26c60f:0x24b,_0x4fdb16:0x2d3,_0x1bc164:0x1fd,_0x18636e:0x21e,_0x398597:0x1c1,_0x18df10:0x211,_0x374ed0:0x1ce,_0x389b68:0x20a,_0x15839e:0x214,_0x488a93:0x21c,_0x1cf588:0x250,_0x24a806:0x1b2,_0x56986b:0x1e9,_0x394a25:0x1c4,_0x263cdc:0x256,_0x2e382d:0x21c,_0x60b3e1:0x23e,_0x1cec84:0x1d3,_0x572cfc:0x2cc,_0x543a1e:0x2ce,_0x36cc1b:0x27d,_0x315112:0x2c0,_0x3ba58a:0x2c2,_0xa0b1d5:0x2d9,_0x3ed630:0x255,_0x25bdc5:0x26e,_0x2dc8d2:0x2bf,_0x21eb8f:0x2be,_0x523fa2:0x257,_0x32bac8:0x211,_0x18af76:0x240,_0x31a1ec:0x212,_0xf0a7aa:0x268,_0x358aad:0x270,_0x51b10b:0x265,_0x48cd2f:0x245,_0x3ce518:0x25e,_0x9f0668:0x217,_0x1b0e28:0x222,_0x310b14:0x1f5,_0x5b3c6a:0x22c,_0x48f78c:0x25b,_0x50020c:0x2a2,_0x1c5e0f:0x28b,_0x5209bc:0x2a8,_0x2c43aa:0x2d7,_0x59a479:0x257,_0x11f4a2:0x28f,_0x113da9:0x23a,_0x4c3ee9:0x271,_0x50a5ba:0x265,_0x1c0d7c:0x1ec,_0x8e2cf6:0x1e7,_0x5c3ecc:0x229,_0x59a33c:0x250,_0x21065b:0x298,_0x5d9b47:0x226,_0xa60d83:0x1fb,_0x271a15:0x28b,_0x255429:0x30f,_0x17f0f9:0x311,_0x5e25cc:0x2f6,_0x5acf13:0x224,_0x2644a3:0x1b6,_0x1722d4:0x2ad,_0x204f21:0x2b9,_0x3419f1:0x28d,_0x43ca:0x269,_0x5a439a:0x21e,_0x1830ad:0x27b,_0x4ccd2d:0x271,_0x16ef32:0x278,_0x14f92f:0x20d,_0x18ab11:0x22e,_0x5b6264:0x24f,_0x1e233e:0x232,_0x54a3fd:0x1fa,_0x2258ab:0x265,_0x4d5a69:0x2a6,_0x21bd84:0x24c,_0x6edf82:0x217,_0x3fbf9b:0x211,_0x25a3b9:0x231,_0x431776:0x29d,_0x195fd0:0x292,_0x15f318:0x2b7,_0x196415:0x237,_0x5f317c:0x210,_0xbda2d6:0x2b6,_0xbaf55b:0x302,_0x522dc7:0x2c9,_0x1069ab:0x287,_0x2e3303:0x24a,_0x325a1f:0x230,_0x216600:0x294,_0x369a98:0x29f,_0x7d7412:0x24c,_0x3e79a5:0x200,_0xb0354c:0x1ff,_0x570cab:0x2ad,_0x2ef2a0:0x2b5,_0x122305:0x2ec,_0x4f129d:0x28b,_0xf44e32:0x247},_0x2ee118={_0x666c51:0x127,_0xc1ca41:0x7};function _0x17f0f5(_0x4c8383,_0x15f4ce,_0x5ef5cc,_0x2d2479){return _0x3fd1fd(_0x4c8383,_0x15f4ce-_0x2ee118._0x666c51,_0x5ef5cc-_0x2ee118._0xc1ca41,_0x15f4ce-0x113);}const _0x749beb={'cjdIV':_0x17f0f5(0x280,0x29b,_0x5d75ac._0x2699d8,0x2ba)+'t','yWUjt':_0x17f0f5(_0x5d75ac._0x207507,0x298,0x2b5,0x251)+_0x5b351f(_0x5d75ac._0x153c09,0x226,_0x5d75ac._0x4136ab,0x1e9)+_0x5b351f(0x21b,0x1e6,0x1b5,0x1ed)+'st\x20be\x20a\x20no'+'n-empty\x20ar'+'ray','lSQwG':function(_0xcf01d2,_0x176099){return _0xcf01d2!==_0x176099;},'PElYN':'HlHgM','jAiuO':function(_0x27d27b,_0x4ba272){return _0x27d27b(_0x4ba272);},'ZtoJG':_0x5b351f(_0x5d75ac._0x2310c5,0x229,_0x5d75ac._0x407cd,0x1e9),'JKouw':_0x17f0f5(_0x5d75ac._0x5cc02a,_0x5d75ac._0x3236d2,0x2a3,_0x5d75ac._0x26c60f)+_0x17f0f5(0x294,0x2a6,_0x5d75ac._0x4fdb16,0x272),'eUBRa':function(_0x25ad7d,_0x229cce){return _0x25ad7d>_0x229cce;},'FWIWe':'Role\x20in\x20us'+'e','IBcTL':'Error\x20dele'+_0x17f0f5(0x2e8,0x2cd,0x2e8,0x2e2),'XMUkI':'Internal\x20s'+_0x5b351f(_0x5d75ac._0x1bc164,_0x5d75ac._0x18636e,0x1eb,0x211)+'r'};function _0x5b351f(_0x3c9056,_0x5ea73b,_0x3a42be,_0x28e51b){return _0x56293c(_0x3c9056-0x138,_0x5ea73b-0x18,_0x3c9056,_0x5ea73b- -0x152);}try{if(_0x749beb[_0x5b351f(_0x5d75ac._0x398597,0x1fb,_0x5d75ac._0x18df10,_0x5d75ac._0x374ed0)](_0x749beb[_0x5b351f(_0x5d75ac._0x389b68,_0x5d75ac._0x15839e,_0x5d75ac._0x488a93,_0x5d75ac._0x1cf588)],'oLlkx')){const _0x6a1e69=await _0x749beb[_0x5b351f(_0x5d75ac._0x24a806,_0x5d75ac._0x56986b,_0x5d75ac._0x488a93,_0x5d75ac._0x394a25)](getRoleById,_0x2c9736[_0x5b351f(0x276,0x266,_0x5d75ac._0x263cdc,_0x5d75ac._0x2e382d)]['id']);if(!_0x6a1e69){if(_0x749beb[_0x5b351f(0x20e,0x1fb,_0x5d75ac._0x60b3e1,_0x5d75ac._0x1cec84)](_0x749beb['ZtoJG'],'VZlot')){const _0xab7d26={};return _0xab7d26[_0x17f0f5(_0x5d75ac._0x572cfc,0x292,0x2ab,_0x5d75ac._0x543a1e)]=_0x749beb[_0x5b351f(0x260,0x218,0x21c,0x1ea)],_0x4fa920[_0x17f0f5(_0x5d75ac._0x36cc1b,0x28b,0x2bf,0x292)](-0x2240+0xbbc+-0x3*-0x808)[_0x17f0f5(0x2ac,_0x5d75ac._0x315112,_0x5d75ac._0x3ba58a,_0x5d75ac._0xa0b1d5)](_0xab7d26);}else return _0xefccb3[_0x17f0f5(_0x5d75ac._0x3ed630,0x28b,_0x5d75ac._0x25bdc5,_0x5d75ac._0x2dc8d2)](0xea5*-0x1+-0x1778+0x27ad)[_0x17f0f5(0x2de,0x2c0,_0x5d75ac._0x21eb8f,0x2af)]({'error':_0x749beb[_0x5b351f(_0x5d75ac._0x523fa2,0x23e,0x202,_0x5d75ac._0x32bac8)],'message':_0x5b351f(_0x5d75ac._0x18af76,0x260,0x229,0x216)+_0x5b351f(0x24c,0x246,_0x5d75ac._0x31a1ec,_0x5d75ac._0xf0a7aa)+'\x20'+_0x5847c3[_0x5b351f(_0x5d75ac._0x358aad,_0x5d75ac._0x51b10b,0x26b,0x29c)](',\x20')});}if(_0x6a1e69[_0x17f0f5(_0x5d75ac._0x48cd2f,_0x5d75ac._0x3ce518,0x256,_0x5d75ac._0x9f0668)]){const _0x2fb15b={};return _0x2fb15b[_0x5b351f(0x1e6,_0x5d75ac._0x1b0e28,_0x5d75ac._0x310b14,0x23e)]=_0x5b351f(_0x5d75ac._0x5b3c6a,0x26e,0x251,_0x5d75ac._0x48f78c)+_0x17f0f5(0x23d,0x251,0x272,0x20c)+'ined\x20role',_0x2fb15b[_0x17f0f5(0x2bb,_0x5d75ac._0x50020c,0x2e1,_0x5d75ac._0x1c5e0f)]=_0x17f0f5(_0x5d75ac._0x5209bc,_0x5d75ac._0x2c43aa,0x314,0x2b8)+_0x6a1e69[_0x17f0f5(_0x5d75ac._0x59a479,_0x5d75ac._0x358aad,_0x5d75ac._0x11f4a2,_0x5d75ac._0x113da9)]+(_0x17f0f5(0x251,0x28a,_0x5d75ac._0x4c3ee9,_0x5d75ac._0x50a5ba)+'defined\x20ro'+'le\x20and\x20can'+'not\x20be\x20del'+_0x5b351f(0x214,0x1e8,_0x5d75ac._0x1c0d7c,_0x5d75ac._0x8e2cf6)),_0x4fa920[_0x5b351f(0x233,0x21b,0x211,_0x5d75ac._0x5c3ecc)](-0x175c+-0x10e2+-0x29ce*-0x1)[_0x5b351f(0x262,_0x5d75ac._0x59a33c,0x231,0x23e)](_0x2fb15b);}const _0xff6264=await getBindings(),_0x39d5f2=_0xff6264['filter'](_0x126438=>_0x126438[_0x5b351f(0x1f8,0x1e7,0x1c4,0x20c)]===_0x6a1e69['id']);if(_0x749beb[_0x17f0f5(0x27e,0x28f,_0x5d75ac._0x21065b,0x2ca)](_0x39d5f2[_0x5b351f(0x1e6,0x1de,_0x5d75ac._0x5d9b47,_0x5d75ac._0xa60d83)],0x441*0x4+0x207d*-0x1+-0x11*-0xe9))return _0x4fa920[_0x17f0f5(0x2be,_0x5d75ac._0x271a15,0x2ac,0x245)](-0x105c+0x4b5*0x5+-0x594)['json']({'error':_0x749beb['FWIWe'],'message':'The\x20role\x20\x27'+_0x6a1e69['name']+('\x27\x20is\x20refer'+_0x17f0f5(_0x5d75ac._0x255429,0x2d4,_0x5d75ac._0x17f0f9,_0x5d75ac._0x5e25cc))+_0x39d5f2[_0x5b351f(_0x5d75ac._0x5acf13,0x1de,_0x5d75ac._0x2644a3,0x218)]+(_0x17f0f5(0x2f5,_0x5d75ac._0x1722d4,_0x5d75ac._0x204f21,_0x5d75ac._0x3419f1)+_0x17f0f5(_0x5d75ac._0x43ca,0x263,0x222,_0x5d75ac._0x5a439a)+'ot\x20be\x20dele'+_0x5b351f(_0x5d75ac._0x1830ad,_0x5d75ac._0x4ccd2d,_0x5d75ac._0x16ef32,0x27a)),'bindings':_0x39d5f2[_0x5b351f(0x1ef,_0x5d75ac._0x14f92f,_0x5d75ac._0x18ab11,_0x5d75ac._0x56986b)](_0x28b8c1=>({'id':_0x28b8c1['id'],'resource_type':_0x28b8c1['resource_t'+_0x17f0f5(0x24d,0x283,0x23a,0x273)],'resource_id':_0x28b8c1['resource_i'+'d'],'subject_type':_0x28b8c1[_0x5b351f(0x1f4,0x208,0x204,0x1f8)+'pe'],'subject_id':_0x28b8c1[_0x17f0f5(0x2c7,0x2bd,0x2b4,0x294)]}))});await deleteRole(_0x6a1e69['id']);const _0x11c88f={};return _0x11c88f[_0x5b351f(_0x5d75ac._0x5b6264,_0x5d75ac._0x1e233e,0x258,_0x5d75ac._0x54a3fd)]=_0x17f0f5(0x220,_0x5d75ac._0x2258ab,_0x5d75ac._0x4d5a69,0x234)+_0x5b351f(_0x5d75ac._0x21bd84,_0x5d75ac._0x6edf82,_0x5d75ac._0x3fbf9b,_0x5d75ac._0x25a3b9)+'fully',_0x4fa920['json'](_0x11c88f);}else{const _0x477a80={};return _0x477a80[_0x17f0f5(_0x5d75ac._0x431776,_0x5d75ac._0x195fd0,0x26a,_0x5d75ac._0x15f318)]=_0x749beb[_0x5b351f(_0x5d75ac._0x196415,0x23e,_0x5d75ac._0x5f317c,0x23d)],_0x477a80[_0x17f0f5(0x2b3,0x2a2,0x268,_0x5d75ac._0xbda2d6)]=_0x749beb[_0x17f0f5(_0x5d75ac._0xbaf55b,0x2cb,_0x5d75ac._0x522dc7,_0x5d75ac._0x1069ab)],_0x4c39ca[_0x5b351f(0x1f7,0x21b,_0x5d75ac._0x2e3303,_0x5d75ac._0x325a1f)](-0x83*-0x35+-0x6a*0x7+-0x16a9)[_0x5b351f(_0x5d75ac._0x216600,0x250,0x26e,0x208)](_0x477a80);}}catch(_0x51124d){const _0x112bbc={};_0x112bbc[_0x17f0f5(_0x5d75ac._0x522dc7,0x292,0x252,_0x5d75ac._0x369a98)]=_0x51124d['message'],logger[_0x5b351f(_0x5d75ac._0x7d7412,_0x5d75ac._0x1b0e28,_0x5d75ac._0x3e79a5,_0x5d75ac._0xb0354c)](_0x749beb[_0x17f0f5(_0x5d75ac._0x570cab,_0x5d75ac._0x2ef2a0,0x2dc,_0x5d75ac._0x122305)],_0x112bbc);const _0x24300c={};return _0x24300c['error']=_0x749beb['XMUkI'],_0x4fa920[_0x17f0f5(0x28a,_0x5d75ac._0x4f129d,0x274,_0x5d75ac._0xf44e32)](0x48c+-0x187d*0x1+-0x3b*-0x5f)[_0x17f0f5(0x295,_0x5d75ac._0x315112,0x2d8,0x284)](_0x24300c);}});function _0x284d(){const _0x3390e3=['ANnVBG','EsbHCNjHEq','Aw5JBhvKzxm','EezPvhy','yKLYEeG','zw50CMLLCW','Cg5HENG','EMzsBxq','qNvqquK','ntjly1vwy2C','t3btzuC','EvDvANq','sw50zxjUywWGCW','DgLUzYbYB2XL','Axn0CW','AxmGCMvXDwLYzq','sw52ywXPzcbWzq','rxHVBgW','C2zUA1K','CMf5','zw5JzwqGyNKG','AM9PBG','CgfYyw1Z','vgHLihjVBguGjW','twX1uxa','CM9Szq','zMDLCMO','sxzZr3O','yvfvrfe','Dw1OuKO','q2fUBM90igrLBa','wvjkyMW','Cg9ZDa','DgvK','BgvUz3rO','zuXHvwG','mtKWquvPuLvs','zxrLihbYzwrLzG','Aw5NihjVBgu','yvrWr28','mtaWmZfQEwzPzKq','BI1LBxb0EsbHCG','CMvKigfUzcbTDq','CM9Szv9Pza','zxrLza','AKfPDu8','Chv0','AvrZzgC','u2zMyu8','CePftxC','ChjLzgvMAw5Lza','rxf6DwS','zg92Cw4','lZPPza','zgvMAw5LzcbYBW','ksbHBMqGy2fUBG','ufbou3e','uM9SzsbKzwXLDa','mJy2nfjrqvHSDW','rxjYB3iGDxbKyq','y29Kzq','yM9KEq','rxjYB3iGBgLZDa','BfnrD0C','AhD2B2i','Bw1Rqvy','tw5qrhi','EfnKDhq','BMfTzq','C3rYAw5N','zMLSDgvY','mtu2nZi2nMDXA2L5Ba','mte5mdi5nvzvEMXOBG','wfbpExu','sgLerKK','wMzMs24','C3vIAMvJDf90Eq','A2jOuvu','ysbUB24Tzw1WDa','uM9Szsb1CgrHDa','mtu2nJiYnxDTEg13vq','BwfW','uM9SzsbUyw1Lia','B1jsu20','zgXTs2G','CM9Szxm','EuHlz2G','ExbL','uevSwu4','uM9SzsbUB3qGzG','zgvSzxrL','zwqGC3vJy2vZCW','sKTVDxC','B1nPvwC','jYbPCYbHihbYzq','C3rHDhvZ','zNvSBhK','C3bSAxq','zxj2zxiGzxjYBW','zvvcuMe','uM5YC0e','rxjYB3iGy3jLyq','zxjYB3i','rxjYB3iGz2v0Da','svHuwgG','sKjKB1a','CYbPCYbYzxf1Aq','ExDPC3u','CgvYBwLZC2LVBG','wKzezvy','seTRt0K','qMfKifjLCxvLCW','BM90igjLigrLBa','BguGyw5KignHBG','yw5Hz2u','Evrjq1e','uevJtK8','BKvIB1G','BwvZC2fNzq','CYbTDxn0igjLia','zgvZy3jPChrPBW','C3zNAgC','B3vUza','DhjPBq','nZy5mda0uNzHyKvN','z2v0','AxnbCNjHEq','ELv4Afa','ywXYzwfKEsbLEa','igjPBMrPBMCOCW','y2PKsvy','DgHSCNK','DxHOuxC','EgvTANm','nK1fyxbIAa','CKTUEe0','twfuvM0','sujJveW','CM1PC3nPB25ZoG','mte3nZrbtMjbCxy','Dfbsrvm','DNjNy00','mJK2mtmXwfvcrhPW','EeX1Bgi','vKfmsurbveLptG','C3vIAMvJDf9Pza','C2v0DgLUz3m6Bq','C3qGyMuGysbUBW'];_0x284d=function(){return _0x3390e3;};return _0x284d();}export default router;
|
|
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;
|