@profoundlogic/coderflow-server 0.6.8 → 0.7.0

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.
Files changed (182) hide show
  1. package/dist/base-image/Dockerfile +3 -0
  2. package/dist/base-image/entrypoint.sh +13 -0
  3. package/dist/base-image/standard-instructions/ibmi-database-sql.md +11 -0
  4. package/dist/base-image/standard-instructions/ibmi-exploratory-verification.md +38 -0
  5. package/dist/base-image/standard-instructions/ibmi-output-requirements.md +6 -0
  6. package/dist/base-image/standard-instructions/output-requirements.md +18 -0
  7. package/dist/base-image/standard-instructions/screenshot-guidelines.md +17 -0
  8. package/dist/coder-server.js +1 -1
  9. package/dist/config.js +1 -1
  10. package/dist/lib/agent-keepalive.js +1 -1
  11. package/dist/lib/agent-models.js +1 -1
  12. package/dist/lib/api-keys.js +1 -1
  13. package/dist/lib/apiKeys.js +1 -1
  14. package/dist/lib/app-server-ports.js +1 -1
  15. package/dist/lib/auto-judge.js +1 -1
  16. package/dist/lib/automation-service.js +1 -1
  17. package/dist/lib/basic-auth.js +1 -1
  18. package/dist/lib/bindings.js +1 -1
  19. package/dist/lib/build-history.js +1 -1
  20. package/dist/lib/build-output-service.js +1 -1
  21. package/dist/lib/build-scheduler.js +1 -1
  22. package/dist/lib/build-service.js +1 -1
  23. package/dist/lib/ca-certificates.js +1 -1
  24. package/dist/lib/claude-oauth-refresh.js +1 -1
  25. package/dist/lib/cli/build.js +1 -1
  26. package/dist/lib/cli/cleanup-users.js +1 -1
  27. package/dist/lib/cli/config-command.js +1 -1
  28. package/dist/lib/cli/config.js +1 -1
  29. package/dist/lib/cli/create-user.js +1 -1
  30. package/dist/lib/cli/grant-admin.js +1 -1
  31. package/dist/lib/cli/init.js +1 -1
  32. package/dist/lib/cli/jira.js +1 -1
  33. package/dist/lib/cli/license.js +1 -1
  34. package/dist/lib/cli/list-roles.js +1 -1
  35. package/dist/lib/cli/list-users.js +1 -1
  36. package/dist/lib/cli/server-manager.js +1 -1
  37. package/dist/lib/cli/set-password.js +1 -1
  38. package/dist/lib/config-migration.js +1 -1
  39. package/dist/lib/container-credential-sync.js +1 -1
  40. package/dist/lib/container-tokens.js +1 -1
  41. package/dist/lib/data-dir.js +1 -1
  42. package/dist/lib/deployment-history.js +1 -1
  43. package/dist/lib/deployment-service.js +1 -1
  44. package/dist/lib/docker-utils.js +1 -1
  45. package/dist/lib/email.js +1 -1
  46. package/dist/lib/emailTemplates.js +1 -1
  47. package/dist/lib/entitlement.js +1 -1
  48. package/dist/lib/external-connections.js +1 -1
  49. package/dist/lib/fetch-utils.js +1 -1
  50. package/dist/lib/git-commit-details-route.js +1 -1
  51. package/dist/lib/git-history-diff-guardrails.js +1 -1
  52. package/dist/lib/git-provider-service.js +1 -1
  53. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  54. package/dist/lib/git-provider-setup/index.js +1 -1
  55. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  56. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  57. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  58. package/dist/lib/git-providers/github-app-provider.js +1 -1
  59. package/dist/lib/git-providers/index.js +1 -1
  60. package/dist/lib/git-providers/provider-factory.js +1 -1
  61. package/dist/lib/git-providers/provider-interface.js +1 -1
  62. package/dist/lib/github-urls.js +1 -1
  63. package/dist/lib/group-objective-linking.js +1 -1
  64. package/dist/lib/ibmi-sync.js +1 -1
  65. package/dist/lib/jira-client.js +1 -1
  66. package/dist/lib/judge-blinding.js +1 -1
  67. package/dist/lib/logger.js +1 -1
  68. package/dist/lib/migration-to-scoped-rbac.js +1 -1
  69. package/dist/lib/model-fetcher.js +1 -1
  70. package/dist/lib/notifications.js +1 -1
  71. package/dist/lib/objective-context.js +1 -1
  72. package/dist/lib/oidc-auth.js +1 -1
  73. package/dist/lib/oidc-device-flow.js +1 -1
  74. package/dist/lib/passwordTokens.js +1 -1
  75. package/dist/lib/permission-resolver.js +1 -1
  76. package/dist/lib/pin-cascade.js +1 -1
  77. package/dist/lib/provider-accounts.js +1 -1
  78. package/dist/lib/provider-oauth.js +1 -1
  79. package/dist/lib/provider-profile.js +1 -1
  80. package/dist/lib/provider-token-refresh.js +1 -1
  81. package/dist/lib/rbac-user-state.js +1 -1
  82. package/dist/lib/request-url.js +1 -1
  83. package/dist/lib/rewind.js +1 -1
  84. package/dist/lib/role-definitions.js +1 -1
  85. package/dist/lib/roles.js +1 -1
  86. package/dist/lib/secrets.js +1 -1
  87. package/dist/lib/setup-repo-git-auth.js +1 -1
  88. package/dist/lib/state-capture.js +1 -1
  89. package/dist/lib/static-files.js +1 -1
  90. package/dist/lib/task-aliases.js +1 -1
  91. package/dist/lib/task-name-format.js +1 -1
  92. package/dist/lib/task-name-generator.js +1 -1
  93. package/dist/lib/task-source-metadata.js +1 -1
  94. package/dist/lib/teams.js +1 -1
  95. package/dist/lib/user-git-oauth.js +1 -1
  96. package/dist/lib/user-git-tokens.js +1 -1
  97. package/dist/lib/users.js +1 -1
  98. package/dist/middleware/requireAuth.js +1 -1
  99. package/dist/middleware/requireInit.js +1 -1
  100. package/dist/middleware/requirePermission.js +1 -1
  101. package/dist/package.json +1 -1
  102. package/dist/playwright.config.js +1 -1
  103. package/dist/playwright.task-terminal.config.js +1 -1
  104. package/dist/routes/apiKeys.js +1 -1
  105. package/dist/routes/auth-oidc.js +1 -1
  106. package/dist/routes/auth.js +1 -1
  107. package/dist/routes/automations.js +1 -1
  108. package/dist/routes/bindings.js +1 -1
  109. package/dist/routes/build.js +1 -1
  110. package/dist/routes/containers.js +1 -1
  111. package/dist/routes/deploy-task.js +1 -1
  112. package/dist/routes/environment-management.js +1 -1
  113. package/dist/routes/environments.js +1 -1
  114. package/dist/routes/external-skills.js +1 -1
  115. package/dist/routes/git-credentials.js +1 -1
  116. package/dist/routes/git-oauth.js +1 -1
  117. package/dist/routes/git-provider-setup.js +1 -1
  118. package/dist/routes/health.js +1 -1
  119. package/dist/routes/jira.js +1 -1
  120. package/dist/routes/objective-management.js +1 -1
  121. package/dist/routes/password.js +1 -1
  122. package/dist/routes/prompt.js +1 -1
  123. package/dist/routes/provider-auth.js +1 -1
  124. package/dist/routes/qa.js +1 -1
  125. package/dist/routes/roles.js +1 -1
  126. package/dist/routes/settings.js +1 -1
  127. package/dist/routes/skill-management.js +1 -1
  128. package/dist/routes/skills.js +1 -1
  129. package/dist/routes/tasks.js +1 -1
  130. package/dist/routes/teams.js +1 -1
  131. package/dist/routes/templates.js +1 -1
  132. package/dist/routes/test-task.js +1 -1
  133. package/dist/routes/test.js +1 -1
  134. package/dist/routes/users.js +1 -1
  135. package/dist/routes/visualizations.js +1 -1
  136. package/dist/scripts/create-user.js +1 -1
  137. package/dist/scripts/migrate-config-to-data-dir.js +1 -1
  138. package/dist/start.js +1 -1
  139. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  140. package/dist/web-ui/public/activity-feed.js +1 -1
  141. package/dist/web-ui/public/activity-formatters.js +1 -1
  142. package/dist/web-ui/public/agent-event-parser.js +1 -1
  143. package/dist/web-ui/public/app.js +1 -1
  144. package/dist/web-ui/public/approve-dialog.js +1 -1
  145. package/dist/web-ui/public/automation-links.js +1 -1
  146. package/dist/web-ui/public/automation-schedule.js +1 -1
  147. package/dist/web-ui/public/comments-widget.js +1 -1
  148. package/dist/web-ui/public/diff-utils.js +1 -1
  149. package/dist/web-ui/public/environments.css +21 -0
  150. package/dist/web-ui/public/environments.html +79 -9
  151. package/dist/web-ui/public/environments.js +1 -1
  152. package/dist/web-ui/public/feedback-widget.js +1 -1
  153. package/dist/web-ui/public/file-selection-tree.js +1 -1
  154. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  155. package/dist/web-ui/public/git-history.js +1 -1
  156. package/dist/web-ui/public/git-status.js +1 -1
  157. package/dist/web-ui/public/ibmi-file-filter.js +1 -1
  158. package/dist/web-ui/public/index.js +1 -1
  159. package/dist/web-ui/public/login.js +1 -1
  160. package/dist/web-ui/public/markdown-editor.js +1 -1
  161. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  162. package/dist/web-ui/public/modal-maximize.js +1 -1
  163. package/dist/web-ui/public/notifications.js +1 -1
  164. package/dist/web-ui/public/permissions.js +1 -1
  165. package/dist/web-ui/public/pr-dialog.js +1 -1
  166. package/dist/web-ui/public/roles.js +1 -1
  167. package/dist/web-ui/public/server-health.js +1 -1
  168. package/dist/web-ui/public/settings.js +1 -1
  169. package/dist/web-ui/public/setup-password.js +1 -1
  170. package/dist/web-ui/public/skills.js +1 -1
  171. package/dist/web-ui/public/sse-client.js +1 -1
  172. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  173. package/dist/web-ui/public/styles.css +52 -1
  174. package/dist/web-ui/public/task-judging-helpers.js +1 -1
  175. package/dist/web-ui/public/task.html +43 -5
  176. package/dist/web-ui/public/task.js +1 -1
  177. package/dist/web-ui/public/teams.js +1 -1
  178. package/dist/web-ui/public/terminal.js +1 -1
  179. package/dist/web-ui/public/theme.js +1 -1
  180. package/dist/web-ui/public/users.js +1 -1
  181. package/dist/web-ui/public/variant-grouping.js +1 -1
  182. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4512bf,_0x46db17){const _0x2fdca1={_0x3b536d:0x84,_0x3f56bf:0x66,_0x5de37b:0xa6,_0x3bd018:0x70,_0x226245:0xea,_0x458865:0xe8,_0x4f3796:0xca,_0x5e2f19:0xe9,_0x4fde8b:0xd6,_0x87b123:0x103,_0xef0ee7:0xce,_0x1a54db:0x44,_0x4f4b88:0x27,_0x17f553:0x28,_0x436d23:0x25,_0x3d0d7f:0x5e,_0x14e602:0x56,_0x4ac4e9:0xaa,_0xb2f17e:0x127,_0x2cdc5c:0xd9,_0x1d485f:0x116,_0x1f6eed:0xa1,_0x311ac4:0xa0,_0x1195ad:0x72},_0x4f400a={_0x21013b:0x18b},_0x5456bf=_0x4512bf();function _0x866bba(_0x295227,_0x420f7c,_0x246264,_0x1642d4){return _0x74db(_0x420f7c- -0x45,_0x295227);}function _0x31be29(_0x351a71,_0x489e1c,_0x3d33b5,_0xcab580){return _0x74db(_0xcab580- -_0x4f400a._0x21013b,_0x3d33b5);}while(!![]){try{const _0x55a689=-parseInt(_0x866bba(_0x2fdca1._0x3b536d,_0x2fdca1._0x3f56bf,_0x2fdca1._0x5de37b,_0x2fdca1._0x3bd018))/(0xcba+0x33d*-0x5+0x378)*(parseInt(_0x31be29(-0xe4,-0x11b,-_0x2fdca1._0x226245,-_0x2fdca1._0x458865))/(0x23c2+-0x1*0xa96+0x192a*-0x1))+parseInt(_0x31be29(-0xe1,-_0x2fdca1._0x4f3796,-0xc1,-_0x2fdca1._0x5e2f19))/(-0x173c+0xf4f+-0x1*-0x7f0)*(-parseInt(_0x31be29(-_0x2fdca1._0x4fde8b,-_0x2fdca1._0x87b123,-0x87,-_0x2fdca1._0xef0ee7))/(0xe*-0xb3+-0x2*-0xf86+-0x2*0xa9f))+parseInt(_0x866bba(0x8b,_0x2fdca1._0x1a54db,0x2e,_0x2fdca1._0x4f4b88))/(0x73f+-0x1b35+0x3ff*0x5)+-parseInt(_0x866bba(0x34,_0x2fdca1._0x17f553,_0x2fdca1._0x436d23,0x54))/(0x16a9*0x1+-0x8e8+-0x1*0xdbb)+parseInt(_0x866bba(_0x2fdca1._0x3d0d7f,0x77,_0x2fdca1._0x14e602,0x56))/(0x1aa4+0x290*-0x5+0xdcd*-0x1)+parseInt(_0x31be29(-_0x2fdca1._0x4ac4e9,-0x71,-0x7d,-0xac))/(0x1b8a+0x2*0x3f+-0x1c00)*(-parseInt(_0x31be29(-_0x2fdca1._0xb2f17e,-0x11d,-_0x2fdca1._0x2cdc5c,-_0x2fdca1._0x1d485f))/(0x18f0+0x2656+-0x1*0x3f3d))+parseInt(_0x866bba(_0x2fdca1._0x1f6eed,0xa7,_0x2fdca1._0x311ac4,_0x2fdca1._0x1195ad))/(-0x1*0x1389+0xb1+0x971*0x2);if(_0x55a689===_0x46db17)break;else _0x5456bf['push'](_0x5456bf['shift']());}catch(_0x468f99){_0x5456bf['push'](_0x5456bf['shift']());}}}(_0x5da4,0xce0cc+0x10335a+-0xaf1c*0x1d));import _0x21376b from'express';function _0x487d39(_0x48b0e1,_0x32f432,_0x14e0c2,_0x4550d2){return _0x74db(_0x4550d2- -0x93,_0x14e0c2);}import{logger}from'../lib/logger.js';import{getRoles,getRoleById,createRole,updateRole,deleteRole,isValidPermission,inferRoleResourceType}from'../lib/role-definitions.js';import{getBindings}from'../lib/bindings.js';import{getAllPermissionsFlat,getPermissionScope}from'../lib/roles.js';import{requirePermission}from'../middleware/requirePermission.js';const router=_0x21376b[_0xa1c623(0x145,0xc8,0x10e,0xe1)]();router[_0x487d39(-0x16,-0x1b,0x4f,0x22)]('/available'+'-permissio'+'ns',(_0x46059a,_0x20bfd9)=>{const _0x13bc96={_0x3acedd:0x126,_0x457ca5:0x142,_0x3ec89c:0x18c,_0x171e5c:0x164,_0xc398f6:0x1eb},_0xafc0fd={_0x33eeee:0x2c6},_0x27ba40={_0x88076d:0x1c6,_0x52d333:0x32,_0x18f2c0:0x2b2},_0x55546d=getAllPermissionsFlat(),_0x3b303e=Object[_0x5558e0(-_0x13bc96._0x3acedd,-0x17e,-0x13c,-_0x13bc96._0x457ca5)](_0x55546d)[_0x5558e0(-0x167,-_0x13bc96._0x3ec89c,-_0x13bc96._0x171e5c,-0x156)](([_0x1e7dfa,_0x262a57])=>({'key':_0x1e7dfa,'description':_0x262a57,'category':_0x1e7dfa[_0x5558e0(-0x176,-0x1a2,-0x194,-0x1b9)](':')[-0x142f+0x1a95+-0x6*0x111],'scope':getPermissionScope(_0x1e7dfa)})),_0x3db457={};function _0xc6724f(_0x3c1847,_0x5446a5,_0x8d3148,_0x46cf0e){return _0xa1c623(_0x3c1847-_0x27ba40._0x88076d,_0x5446a5-_0x27ba40._0x52d333,_0x8d3148-_0x27ba40._0x18f2c0,_0x3c1847);}function _0x5558e0(_0x54e8c9,_0xd0bdb7,_0x37528d,_0x1509e5){return _0xa1c623(_0x54e8c9-0x172,_0xd0bdb7-0x96,_0x37528d- -_0xafc0fd._0x33eeee,_0x1509e5);}return _0x3db457[_0x5558e0(-0x1d2,-_0x13bc96._0xc398f6,-0x1bd,-0x1bd)+'s']=_0x3b303e,_0x20bfd9['json'](_0x3db457);}),router[_0x487d39(0x69,-0x1f,0x23,0x22)]('/',async(_0xa27b24,_0x31d8eb)=>{const _0x5c82a6={_0x2f388b:0x375,_0x313d9a:0x28f,_0x209089:0x2c6,_0x4c7627:0x2d0,_0x3979fd:0x328,_0x27b84e:0x359,_0x18b685:0x2bb,_0x378948:0x2e8,_0x4b1a6b:0x321,_0x2bd904:0x329,_0x53f2a2:0x36b,_0x135d42:0x331,_0x2d0e3a:0x33b,_0x3c2955:0x2db,_0x430349:0x355,_0x3d5890:0x353,_0x5985a1:0x318,_0x27adc5:0x332,_0x28652c:0x2cd,_0x864989:0x2c1,_0xcae7b1:0x384,_0x3159b1:0x35d,_0x2c4be5:0x35b,_0x58dbf2:0x348,_0xc00236:0x2ef,_0x5d2a8:0x2c3,_0x2cb733:0x2f9,_0xb163b:0x33d,_0x421152:0x31a,_0x1af161:0x2de,_0x4b7ec9:0x2aa,_0x17bcfb:0x2fc,_0x4475bd:0x359,_0x47c578:0x395,_0x3628f4:0x347,_0x44eb22:0x346,_0xdb426:0x2e1,_0x4fca88:0x29d},_0x5d10cd={_0x172cf5:0xd7,_0x3054f4:0x2f7},_0x527744={_0x4eeb1a:0x312},_0x5b5513={'EQyUs':_0x58a78a(0x33e,0x30c,0x368,_0x5c82a6._0x2f388b)+'t','tFiUg':function(_0x44d5a4){return _0x44d5a4();},'uXauQ':function(_0x18de46,_0x1c6e74){return _0x18de46===_0x1c6e74;},'RMzmn':_0x47056e(-_0x5c82a6._0x313d9a,-_0x5c82a6._0x209089,-_0x5c82a6._0x4c7627,-0x2db),'nvgdf':'Error\x20list'+_0x58a78a(_0x5c82a6._0x3979fd,_0x5c82a6._0x27b84e,0x35b,0x31f),'dZhVc':_0x47056e(-0x2ed,-0x297,-_0x5c82a6._0x18b685,-_0x5c82a6._0x378948)+_0x47056e(-0x2e4,-0x2ee,-_0x5c82a6._0x4b1a6b,-_0x5c82a6._0x2bd904)+'r'};function _0x58a78a(_0x9eec90,_0x28f014,_0x10d04f,_0x44e51d){return _0x487d39(_0x9eec90-0x15d,_0x28f014-0x1d3,_0x28f014,_0x9eec90-_0x527744._0x4eeb1a);}function _0x47056e(_0x5910a6,_0x5b7db8,_0x53884f,_0x1572cf){return _0x487d39(_0x5910a6-0x92,_0x5b7db8-_0x5d10cd._0x172cf5,_0x5b7db8,_0x53884f- -_0x5d10cd._0x3054f4);}try{const _0x58984d=await _0x5b5513[_0x58a78a(0x329,0x316,_0x5c82a6._0x53f2a2,_0x5c82a6._0x135d42)](getRoles),_0x486e7d=_0x58984d[_0x58a78a(0x346,0x361,0x336,_0x5c82a6._0x2d0e3a)](_0x38c9e9=>({..._0x38c9e9,'resource_type':inferRoleResourceType(_0x38c9e9[_0x58a78a(0x2ed,0x312,0x2f7,0x2f3)+'s'])})),_0x350025={};return _0x350025['roles']=_0x486e7d,_0x31d8eb[_0x47056e(-0x289,-_0x5c82a6._0x3c2955,-0x2ac,-0x2d1)](_0x350025);}catch(_0x19038c){if(_0x5b5513[_0x58a78a(_0x5c82a6._0x430349,_0x5c82a6._0x3d5890,0x35e,0x352)](_0x5b5513['RMzmn'],_0x58a78a(_0x5c82a6._0x5985a1,0x335,_0x5c82a6._0x27adc5,0x316)))return _0x1fc6e3['status'](-0x12dd*-0x1+-0x342*0x1+-0xe0b)[_0x47056e(-_0x5c82a6._0x28652c,-_0x5c82a6._0x864989,-0x2ac,-0x2af)]({'error':_0x5b5513['EQyUs'],'message':_0x58a78a(0x34b,_0x5c82a6._0xcae7b1,0x382,0x38b)+_0x58a78a(_0x5c82a6._0x135d42,_0x5c82a6._0x3159b1,_0x5c82a6._0x2c4be5,_0x5c82a6._0x58dbf2)+'\x20'+_0xfb07c2['join'](',\x20')});else{const _0x4ab9f7={};_0x4ab9f7['error']=_0x19038c['message'],logger[_0x47056e(-_0x5c82a6._0x135d42,-0x302,-_0x5c82a6._0xc00236,-_0x5c82a6._0x5d2a8)](_0x5b5513[_0x58a78a(_0x5c82a6._0x2cb733,0x2cb,0x2fd,_0x5c82a6._0xb163b)],_0x4ab9f7);const _0x4080b2={};return _0x4080b2[_0x58a78a(_0x5c82a6._0x421152,0x2e6,_0x5c82a6._0x1af161,0x30f)]=_0x5b5513[_0x47056e(-0x2e3,-_0x5c82a6._0x4b7ec9,-0x2cc,-_0x5c82a6._0x17bcfb)],_0x31d8eb[_0x58a78a(_0x5c82a6._0x4475bd,_0x5c82a6._0x47c578,_0x5c82a6._0x3628f4,_0x5c82a6._0x44eb22)](-0x1912*0x1+-0x1*-0x2215+-0xd*0x8b)[_0x47056e(-_0x5c82a6._0xdb426,-_0x5c82a6._0x4fca88,-0x2ac,-0x2eb)](_0x4080b2);}}});function _0xa1c623(_0xcd5188,_0x1fc457,_0x567bed,_0x538643){const _0x38a385={_0x44b470:0x9b};return _0x74db(_0x567bed-_0x38a385._0x44b470,_0x538643);}router[_0x487d39(0x28,0x1a,0x15,0x22)](_0xa1c623(0x12e,0x151,0x168,0x148),async(_0x3cfd31,_0x2f2146)=>{const _0x2e1897={_0x2fba08:0x340,_0x5a4ed:0x315,_0x31b6af:0x35e,_0x3bc3b5:0x2f6,_0x54c771:0x377,_0x4d0d8f:0x332,_0x3a5e84:0x2d4,_0x3e4974:0x2e0,_0x77606:0x33d,_0x328b67:0x2fd,_0x394ab9:0x304,_0x2622d2:0x2f3,_0x267695:0x2fe,_0x21eb8b:0x38b,_0x288a0d:0x32e,_0x1c9b5a:0x34b,_0x5d8cc2:0x351,_0x24e2d1:0x2fc,_0x236dea:0x2db,_0x3a75a1:0x2a5,_0x33b436:0x303,_0x53e815:0x31e,_0x48bf1f:0x2db,_0x293b5b:0x2d0,_0x44278d:0x388,_0x460245:0x318,_0x46d30:0x300,_0x286273:0x3ce,_0x59243f:0x388,_0x4ce6c2:0x3ab,_0x40cce6:0x373,_0x48e608:0x3a4,_0xa71e6c:0x33a,_0x38731b:0x370,_0x2e0841:0x365,_0x47ff74:0x394,_0x168220:0x383,_0x4447f2:0x32f,_0x41a181:0x35a,_0x514c75:0x2cf,_0x4a59c6:0x2e1,_0xa11ced:0x350,_0x3d3c43:0x2ae,_0x521720:0x31e,_0x46f0d0:0x2e8,_0xbaf65:0x398,_0x52bdd0:0x3be,_0x498dc3:0x312,_0x13e337:0x3a0,_0x2c6c4e:0x382,_0x49a6ac:0x313,_0x2f18a6:0x31e,_0x31086d:0x2de,_0x32fd02:0x310,_0x491b0c:0x328,_0x307478:0x338,_0x4bfdc8:0x2df,_0xe5f831:0x2a8},_0x18dda5={_0x5154b1:0xad,_0x535de1:0x1ed},_0x522d11={_0x146ade:0x12b,_0xe7791:0x326};function _0x333856(_0x3ad712,_0x55ae93,_0x5744d2,_0x6c8ea6){return _0x487d39(_0x3ad712-_0x522d11._0x146ade,_0x55ae93-0x1bc,_0x55ae93,_0x5744d2- -_0x522d11._0xe7791);}function _0x3b5345(_0x5e3422,_0xabfab4,_0x4598b5,_0x1f2c2d){return _0x487d39(_0x5e3422-_0x18dda5._0x5154b1,_0xabfab4-_0x18dda5._0x535de1,_0xabfab4,_0x5e3422-0x346);}const _0x3e71fa={'ykOMW':_0x3b5345(_0x2e1897._0x2fba08,0x352,_0x2e1897._0x5a4ed,_0x2e1897._0x31b6af)+'e','xLFAL':function(_0x239f21,_0x45f2f5){return _0x239f21(_0x45f2f5);},'iVVwl':function(_0x231736,_0x55135e){return _0x231736!==_0x55135e;},'cmacm':'qeMjo','YnrnT':_0x333856(-0x34f,-_0x2e1897._0x3bc3b5,-0x321,-0x31f)+'ound','dCncT':'Error\x20gett'+_0x333856(-_0x2e1897._0x54c771,-0x34c,-_0x2e1897._0x4d0d8f,-0x33e)};try{const _0xa4ff4a=await _0x3e71fa[_0x333856(-0x314,-_0x2e1897._0x3a5e84,-_0x2e1897._0x3e4974,-0x2d1)](getRoleById,_0x3cfd31[_0x333856(-_0x2e1897._0x77606,-0x30f,-0x331,-_0x2e1897._0x328b67)]['id']);if(!_0xa4ff4a){if(_0x3e71fa[_0x3b5345(0x322,_0x2e1897._0x394ab9,0x353,_0x2e1897._0x2622d2)](_0x3e71fa[_0x333856(-0x2be,-0x2a4,-0x2c2,-_0x2e1897._0x267695)],_0x333856(-_0x2e1897._0x21eb8b,-_0x2e1897._0x288a0d,-0x34e,-_0x2e1897._0x1c9b5a))){const _0x3d5538={};return _0x3d5538['error']=_0x3e71fa[_0x3b5345(0x385,_0x2e1897._0x5d8cc2,0x376,0x366)],_0x2f2146['status'](0x1*0x5bf+-0xa94+0x669)[_0x333856(-_0x2e1897._0x24e2d1,-0x304,-_0x2e1897._0x236dea,-_0x2e1897._0x3a75a1)](_0x3d5538);}else return _0x437513['status'](-0x38e+-0x2d3*0x7+-0x4fc*-0x5)[_0x333856(-_0x2e1897._0x33b436,-_0x2e1897._0x53e815,-_0x2e1897._0x48bf1f,-_0x2e1897._0x293b5b)]({'error':_0x3e71fa[_0x3b5345(0x354,_0x2e1897._0x44278d,0x348,_0x2e1897._0x460245)],'message':'The\x20role\x20\x27'+_0x5ad69c[_0x333856(-0x2d8,-_0x2e1897._0x46d30,-0x312,-0x314)]+(_0x3b5345(0x3a5,_0x2e1897._0x286273,_0x2e1897._0x59243f,_0x2e1897._0x4ce6c2)+_0x3b5345(_0x2e1897._0x40cce6,_0x2e1897._0x48e608,_0x2e1897._0xa71e6c,_0x2e1897._0x38731b))+_0xd1ffae['length']+('\x20binding(s'+_0x3b5345(0x338,_0x2e1897._0x2e0841,0x330,0x344)+_0x3b5345(0x3a4,0x389,_0x2e1897._0x47ff74,_0x2e1897._0x168220)+_0x3b5345(_0x2e1897._0x4447f2,_0x2e1897._0x77606,_0x2e1897._0x41a181,0x377)),'bindings':_0x22ec0f[_0x333856(-_0x2e1897._0x514c75,-0x32d,-0x2f2,-_0x2e1897._0x4a59c6)](_0x11bade=>({'id':_0x11bade['id'],'resource_type':_0x11bade[_0x3b5345(0x339,0x334,0x30b,0x379)+_0x333856(-0x306,-0x35b,-0x32a,-0x330)],'resource_id':_0x11bade[_0x3b5345(0x366,0x384,0x325,0x362)+'d'],'subject_type':_0x11bade[_0x3b5345(0x35f,0x32b,0x383,0x32d)+'pe'],'subject_id':_0x11bade[_0x3b5345(0x396,0x3c1,0x391,0x3bf)]}))});}const _0x2c3a19={};return _0x2c3a19[_0x3b5345(0x378,0x3ad,0x336,_0x2e1897._0xa11ced)]=_0xa4ff4a,_0x2f2146[_0x333856(-0x2fc,-0x2a0,-0x2db,-_0x2e1897._0x3d3c43)](_0x2c3a19);}catch(_0x2c383b){const _0xd4d51e={};_0xd4d51e[_0x333856(-0x34d,-0x326,-_0x2e1897._0x521720,-_0x2e1897._0x46f0d0)]=_0x2c383b[_0x3b5345(0x376,_0x2e1897._0xbaf65,0x39d,_0x2e1897._0x52bdd0)],logger[_0x333856(-0x34a,-0x34a,-0x31e,-_0x2e1897._0x498dc3)](_0x3e71fa[_0x3b5345(_0x2e1897._0x13e337,0x3c9,0x36d,0x3b6)],_0xd4d51e);const _0x243664={};return _0x243664[_0x3b5345(0x34e,_0x2e1897._0x2c6c4e,_0x2e1897._0x49a6ac,_0x2e1897._0x2f18a6)]=_0x333856(-0x2ce,-_0x2e1897._0x31086d,-0x2ea,-_0x2e1897._0x32fd02)+_0x3b5345(0x31c,0x359,_0x2e1897._0x491b0c,_0x2e1897._0x307478)+'r',_0x2f2146[_0x333856(-0x2c3,-0x2bc,-_0x2e1897._0x4bfdc8,-_0x2e1897._0xe5f831)](0x1669+0x499+-0x190e)['json'](_0x243664);}}),router[_0x487d39(-0x35,0x2,-0x47,-0x9)]('/',requirePermission(_0xa1c623(0x1a0,0x172,0x178,0x186)+'anage'),async(_0x3428cf,_0x11e632)=>{const _0x41f876={_0x2aced4:0x39,_0xc9a054:0x1,_0x466855:0x5b,_0x3edec7:0x30,_0x570a14:0x1c,_0x2b2efd:0x8,_0xfddc05:0x1e8,_0x3deba4:0x1cc,_0x43ae93:0x1d3,_0x433cfa:0x1e,_0x48835a:0x36,_0x8953bd:0x1f1,_0x2f3129:0x19d,_0x1f5467:0x7a,_0x35fbd1:0x1ee,_0xaefca2:0x63,_0x2f7867:0x86,_0x331117:0x28,_0x46fff9:0x87,_0x3263a1:0x19d,_0x325a5a:0x73,_0x45d9bc:0x60,_0xcd06a6:0x6e,_0x1a0ed8:0x66,_0x440ed3:0x1b5,_0x145f8c:0x20d,_0x14277a:0x1c4,_0xd74926:0x204,_0x351bf4:0x20f,_0xfa241:0x1d9,_0x1bf668:0x77,_0x502f91:0x1c1,_0x105ff3:0x20e,_0x20531c:0x1e5,_0x4e9beb:0x1b3,_0x4d1c55:0x17b,_0x587513:0x1c3,_0x56e9e9:0x1e2,_0x7be01c:0x1ec,_0x5382c3:0x1c9,_0xa07acb:0x3d,_0x43a5f1:0x33,_0x343192:0x41,_0x485841:0x22a,_0xfea80f:0x214,_0x1d52d8:0x216,_0x220540:0x207,_0x1a0481:0x247,_0x675292:0x1f6,_0x492759:0x221,_0x4eca49:0x220,_0x27d71c:0x1d1,_0x15a412:0x1d3,_0x2abd71:0x20b,_0x189c32:0x5e,_0xc0e9b:0x3,_0x83f6a3:0x7b,_0x58ab1d:0x4d,_0x16fe61:0x47,_0x3f7d96:0x6b,_0x5acc57:0x17e,_0x46ece0:0x195,_0x11ccdf:0x2,_0x39c94a:0x40,_0x4520e3:0x34,_0x180c5a:0x7,_0x17254f:0x1a,_0x46d9b3:0x3c,_0x5c8618:0x24,_0x3b1c90:0x34,_0x7b3981:0x1d7,_0x492327:0x1b1,_0x364088:0x1e9,_0x11f6e0:0x72,_0x5b4ba5:0x30,_0x901571:0x74,_0x4e63df:0x54,_0x216921:0x4c,_0x32e267:0x8,_0x12731d:0x12,_0x42dc99:0x27,_0x1f97ad:0x6c,_0x33ef0e:0x12,_0x3d219d:0x1cd,_0x36f194:0x1c9,_0x55bf9a:0x7b,_0x5e0372:0x22b,_0x448850:0x215,_0x66fae6:0x93,_0x28260b:0x1f4,_0x203075:0x53,_0x1cf751:0x2d,_0x229d6e:0x52,_0x926107:0x39,_0x32c218:0x59,_0x43f3dc:0x1c3,_0x5d9c61:0x1c7,_0x49832f:0x220,_0x125e6a:0x1aa,_0x845ef7:0x174,_0x1744e1:0x167,_0x49fe9:0x64,_0x41f071:0x98,_0x2b9519:0x1ba,_0x4c06e3:0x1ab,_0xf3b514:0x199,_0x5279a3:0x19e,_0x25155f:0x170,_0x5d474b:0xaf,_0x3011eb:0x39,_0xa0453e:0x17,_0x5bafd:0x187,_0x1104ec:0x1dd,_0x4c66dd:0x1ce,_0x315d7e:0x8b,_0x401b54:0x5d,_0x189748:0x77,_0x19d4ee:0x76,_0x5e1286:0x18a,_0x5a2648:0x1cc,_0x3075d0:0xaa,_0x185eaa:0x43,_0x33429d:0xbe,_0x36d5eb:0x7a,_0x3b5344:0x68,_0x30ffd9:0x4e,_0x19bfd9:0x3e,_0x56f98c:0x38,_0x1ac5b6:0x205,_0x4c097d:0x1f0,_0x525bee:0x1e3,_0x16c21c:0x67,_0xbdc1c5:0x18b,_0xd3e470:0x1e0,_0x1b62fe:0x98,_0x33221a:0xa6,_0x15a927:0x1de,_0x410011:0x1cd,_0x366c5a:0x45,_0x26f965:0x212,_0x536755:0x4f,_0x15557a:0x39,_0x2ec7f6:0x203,_0xf22a86:0x1f3,_0x43ffe9:0x241,_0x54715b:0x7e,_0x19981d:0x23,_0x6ccf41:0x17,_0x5c48f9:0x0,_0x485465:0x37,_0x1a2b30:0x238,_0x56094a:0x65,_0x57a87f:0x69,_0x39846e:0x89,_0x469cb1:0x7d,_0x5bb46d:0x1f0,_0x18059a:0x1ae,_0x4ce127:0x1b7,_0x2680a3:0x37,_0x25d0e1:0x78,_0x1d338d:0x18f,_0x50fcfb:0x1a6,_0x4f38d6:0x1d7,_0x282414:0x185,_0x3ed31c:0x1e9,_0x1f73e0:0x198,_0x4c9cdb:0x191,_0x41e265:0x51,_0x3d69e3:0x32,_0x37b2bb:0x6d,_0x5bce97:0x89,_0x1190ec:0x6e,_0x353106:0x1ad,_0x339bac:0x1d5,_0x52da00:0x2a,_0x415d65:0x1c1,_0xf8fa66:0x18d,_0xd665c4:0x11,_0x904cc6:0x1a,_0x47ea96:0x1a3,_0x27317a:0x17d,_0x934895:0x2,_0x37cd5d:0x10,_0x49aa57:0x37,_0x476e1b:0x15,_0x30dbb1:0x30,_0x169b8f:0x201,_0x538f19:0x1c1,_0x10e795:0x1e1,_0x1e07f0:0x8a,_0x45be17:0x49,_0xa8afa2:0x7a,_0x382196:0x5a,_0x2e24e5:0xa4,_0x158740:0x1f,_0x2ebca4:0x5f,_0x270a9a:0x3a,_0x4b2f77:0x1de,_0x526566:0x199},_0x14e057={_0x61ab1f:0xea,_0x52662f:0x2f},_0x3e1f78={_0x16cbda:0x26,_0x5c6f56:0x8a},_0x1a103a={};function _0x1d13c0(_0x381575,_0x2db80e,_0x6cb455,_0x5a92bf){return _0xa1c623(_0x381575-_0x3e1f78._0x16cbda,_0x2db80e-_0x3e1f78._0x5c6f56,_0x2db80e- -0x31f,_0x381575);}_0x1a103a[_0x370536(_0x41f876._0x2aced4,-_0x41f876._0xc9a054,_0x41f876._0x466855,_0x41f876._0x3edec7)]='Bad\x20Reques'+'t',_0x1a103a[_0x370536(0x8,-0x1a,-_0x41f876._0x570a14,_0x41f876._0x2b2efd)]='Conflict',_0x1a103a['ONYpQ']=_0x1d13c0(-_0x41f876._0xfddc05,-_0x41f876._0x3deba4,-_0x41f876._0x43ae93,-0x206)+_0x370536(0x66,_0x41f876._0x433cfa,0xf,_0x41f876._0x48835a),_0x1a103a[_0x1d13c0(-_0x41f876._0x8953bd,-0x1ce,-0x18c,-_0x41f876._0x2f3129)]=function(_0x480525,_0xd91a20){return _0x480525===_0xd91a20;},_0x1a103a[_0x370536(0x97,_0x41f876._0x1f5467,_0x41f876._0x466855,0x7d)]=_0x1d13c0(-_0x41f876._0x35fbd1,-0x1c3,-0x1a2,-0x1a3),_0x1a103a[_0x370536(_0x41f876._0xaefca2,_0x41f876._0x2f7867,_0x41f876._0x331117,0x62)]=_0x370536(0x31,_0x41f876._0x46fff9,0x28,0x4b)+_0x1d13c0(-0x1c0,-_0x41f876._0x3263a1,-0x187,-0x1d2),_0x1a103a[_0x370536(_0x41f876._0x325a5a,_0x41f876._0x45d9bc,_0x41f876._0xcd06a6,_0x41f876._0x1a0ed8)]=_0x1d13c0(-0x17e,-_0x41f876._0x440ed3,-0x1df,-0x1d7)+_0x1d13c0(-_0x41f876._0x145f8c,-0x21b,-0x1e6,-0x1f2)+'r',_0x1a103a[_0x1d13c0(-_0x41f876._0x14277a,-_0x41f876._0xd74926,-_0x41f876._0x351bf4,-_0x41f876._0xfa241)]=_0x370536(0x7e,0xaf,0x33,_0x41f876._0x1bf668),_0x1a103a[_0x1d13c0(-_0x41f876._0x502f91,-0x1e4,-0x1ec,-_0x41f876._0x105ff3)]=function(_0xaddfd4,_0x598458){return _0xaddfd4===_0x598458;},_0x1a103a[_0x1d13c0(-_0x41f876._0x20531c,-_0x41f876._0x4e9beb,-_0x41f876._0x4d1c55,-_0x41f876._0x587513)]=_0x1d13c0(-_0x41f876._0x56e9e9,-0x1e5,-_0x41f876._0x7be01c,-0x217)+'is\x20require'+'d',_0x1a103a['uVYck']=function(_0x751dff,_0x18a34c){return _0x751dff!==_0x18a34c;},_0x1a103a[_0x1d13c0(-0x1b9,-_0x41f876._0x5382c3,-0x18f,-0x183)]=_0x370536(_0x41f876._0xa07acb,_0x41f876._0x43a5f1,_0x41f876._0x343192,0x74),_0x1a103a[_0x1d13c0(-0x1eb,-0x1f1,-_0x41f876._0x485841,-0x1f7)]=_0x1d13c0(-_0x41f876._0xfea80f,-_0x41f876._0x1d52d8,-_0x41f876._0x220540,-_0x41f876._0x1a0481)+_0x1d13c0(-0x20a,-_0x41f876._0x675292,-_0x41f876._0x492759,-_0x41f876._0x4eca49)+_0x1d13c0(-_0x41f876._0x27d71c,-_0x41f876._0x15a412,-_0x41f876._0x2abd71,-0x18f)+'st\x20be\x20a\x20no'+'n-empty\x20ar'+_0x370536(0x73,0xa,0x1a,0x39);function _0x370536(_0x4fcddf,_0x44c69e,_0x4e9868,_0x4964ef){return _0x487d39(_0x4fcddf-0xc0,_0x44c69e-_0x14e057._0x61ab1f,_0x4fcddf,_0x4964ef-_0x14e057._0x52662f);}_0x1a103a[_0x370536(0x8b,_0x41f876._0x189c32,0x3c,0x82)]=function(_0x3f7cf4,_0x511dc8){return _0x3f7cf4>_0x511dc8;},_0x1a103a[_0x1d13c0(-0x1e4,-0x206,-0x20b,-0x1d7)]=function(_0x9c35da,_0x3a271b){return _0x9c35da===_0x3a271b;},_0x1a103a['yRiJW']='Role\x20creat'+'ed\x20success'+'fully',_0x1a103a[_0x370536(-_0x41f876._0xc0e9b,_0x41f876._0x83f6a3,0x4b,0x3a)]=_0x370536(_0x41f876._0x58ab1d,_0x41f876._0x16fe61,_0x41f876._0x3f7d96,0x44)+_0x1d13c0(-_0x41f876._0x5acc57,-0x19d,-0x190,-_0x41f876._0x46ece0);const _0x4634f2=_0x1a103a;try{const {name:_0x3af08d,description:_0x35ade5,permissions:_0x177b60}=_0x3428cf[_0x370536(0x4d,0x46,-_0x41f876._0x11ccdf,_0x41f876._0x39c94a)];if(!_0x3af08d||typeof _0x3af08d!==_0x4634f2[_0x370536(0x3b,_0x41f876._0x16fe61,_0x41f876._0x4520e3,0x1c)]||_0x4634f2[_0x370536(-_0x41f876._0x180c5a,_0x41f876._0x17254f,0x23,_0x41f876._0x46d9b3)](_0x3af08d[_0x370536(0x12,_0x41f876._0x5c8618,_0x41f876._0x3b1c90,0x38)]()[_0x1d13c0(-_0x41f876._0x7b3981,-0x202,-0x220,-0x1eb)],-0x16*0xcb+-0xbac+0xe8f*0x2)){const _0x93e6bf={};return _0x93e6bf[_0x1d13c0(-_0x41f876._0x492327,-_0x41f876._0x364088,-0x1d8,-0x231)]=_0x4634f2[_0x370536(0x18,0xb,_0x41f876._0x11f6e0,_0x41f876._0x5b4ba5)],_0x93e6bf['message']=_0x4634f2[_0x370536(_0x41f876._0x901571,_0x41f876._0x4e63df,0x57,0x6d)],_0x11e632['status'](-0x2*-0x37d+-0x11b5+0xc4b)[_0x370536(_0x41f876._0x216921,0x8d,0xb6,0x7a)](_0x93e6bf);}if(!_0x177b60||!Array[_0x370536(0x57,_0x41f876._0x32e267,-_0x41f876._0x180c5a,_0x41f876._0x12731d)](_0x177b60)||_0x4634f2['ywUvg'](_0x177b60[_0x370536(-0x24,-0x17,_0x41f876._0x42dc99,_0x41f876._0x433cfa)],-0x2340*-0x1+-0x1441+-0xeff)){if(_0x4634f2[_0x370536(0xa1,0x36,0x5f,0x7e)](_0x4634f2[_0x370536(_0x41f876._0x1f97ad,0x49,_0x41f876._0x33ef0e,0x57)],_0x4634f2[_0x1d13c0(-_0x41f876._0x3d219d,-_0x41f876._0x36f194,-0x1a1,-0x196)])){const _0x1b82e3={};return _0x1b82e3[_0x370536(0x34,_0x41f876._0x55bf9a,0x41,0x37)]=_0x4634f2[_0x1d13c0(-0x237,-0x1f0,-_0x41f876._0x5e0372,-_0x41f876._0x448850)],_0x1b82e3[_0x370536(0x50,_0x41f876._0x66fae6,0xa6,0x5f)]=_0x261223[_0x1d13c0(-_0x41f876._0x28260b,-0x1c1,-0x1e7,-0x188)],_0x2d8e9f['status'](0x1cb2+-0x1057*0x2+-0x2c6*-0x2)[_0x370536(0x52,0x78,_0x41f876._0x203075,0x7a)](_0x1b82e3);}else{const _0x21648f={};return _0x21648f[_0x370536(0x25,_0x41f876._0x1cf751,_0x41f876._0x229d6e,0x37)]=_0x4634f2[_0x370536(_0x41f876._0x926107,0x58,_0x41f876._0x32c218,0x30)],_0x21648f[_0x1d13c0(-_0x41f876._0x43f3dc,-_0x41f876._0x502f91,-0x1e1,-_0x41f876._0x5d9c61)]=_0x4634f2[_0x1d13c0(-0x1c5,-0x1f1,-_0x41f876._0x49832f,-_0x41f876._0x1d52d8)],_0x11e632[_0x1d13c0(-0x18f,-_0x41f876._0x125e6a,-_0x41f876._0x845ef7,-_0x41f876._0x1744e1)](-0xfbf*-0x1+0xc2e+-0x1a5d)[_0x370536(_0x41f876._0x49fe9,0x37,_0x41f876._0x41f071,0x7a)](_0x21648f);}}const _0x3ee3ea=_0x177b60[_0x1d13c0(-_0x41f876._0x2b9519,-0x1c2,-_0x41f876._0x4c06e3,-_0x41f876._0xf3b514)](_0x5b609c=>!isValidPermission(_0x5b609c));if(_0x4634f2[_0x1d13c0(-0x16d,-_0x41f876._0x5279a3,-0x169,-_0x41f876._0x25155f)](_0x3ee3ea[_0x370536(-_0x41f876._0x11ccdf,0x49,0xf,0x1e)],-0x21*0xd3+0x19cd+0x166)){if(_0x4634f2['eTmOq'](_0x370536(_0x41f876._0x5d474b,0x8d,0x99,0x8f),'wRPOc')){const _0x10fcf7={};return _0x10fcf7[_0x370536(0x15,_0x41f876._0x3011eb,_0x41f876._0xa0453e,0x37)]=_0x4634f2['WmOZl'],_0x10fcf7[_0x1d13c0(-_0x41f876._0x5bafd,-_0x41f876._0x502f91,-_0x41f876._0x1104ec,-_0x41f876._0x4c66dd)]=_0x1dd625[_0x370536(_0x41f876._0x315d7e,_0x41f876._0x401b54,0x5b,0x5f)],_0x39a666[_0x370536(_0x41f876._0x189748,0x78,0x85,_0x41f876._0x19d4ee)](-0xdfb+-0x2059+-0x2fed*-0x1)[_0x1d13c0(-_0x41f876._0x5e1286,-0x1a6,-0x1b9,-0x1b4)](_0x10fcf7);}else return _0x11e632[_0x1d13c0(-0x178,-0x1aa,-0x1ac,-_0x41f876._0x5a2648)](-0x3*0xccf+-0x1b71+-0x167a*-0x3)[_0x370536(_0x41f876._0x3075d0,_0x41f876._0x185eaa,_0x41f876._0x33429d,_0x41f876._0x36d5eb)]({'error':_0x370536(0x48,0x48,_0x41f876._0x45d9bc,_0x41f876._0x466855)+'t','message':_0x370536(0x48,0x91,0x37,_0x41f876._0x3b5344)+_0x370536(0x96,0x60,_0x41f876._0x45d9bc,_0x41f876._0x30ffd9)+'\x20'+_0x3ee3ea['join'](',\x20')});}const _0x33b3fd=await createRole({'name':_0x3af08d[_0x370536(_0x41f876._0x19bfd9,0x4d,0x6c,_0x41f876._0x56f98c)](),'description':_0x35ade5,'permissions':_0x177b60}),_0x2b4986={};return _0x2b4986['message']=_0x4634f2[_0x1d13c0(-0x1d6,-_0x41f876._0x1ac5b6,-_0x41f876._0x4c097d,-_0x41f876._0x525bee)],_0x2b4986[_0x370536(0x78,_0x41f876._0x16c21c,0x54,0x61)]=_0x33b3fd,_0x11e632[_0x1d13c0(-_0x41f876._0xbdc1c5,-0x1aa,-0x1bb,-_0x41f876._0xd3e470)](-0x17c5+-0x1*-0x1c97+0x409*-0x1)[_0x370536(_0x41f876._0x1b62fe,_0x41f876._0x33221a,0xa0,0x7a)](_0x2b4986);}catch(_0x9e159c){if(_0x9e159c['message'][_0x1d13c0(-_0x41f876._0x15a927,-0x203,-_0x41f876._0x410011,-_0x41f876._0x410011)](_0x370536(0x1a,0x66,_0x41f876._0x366c5a,0x54)+_0x1d13c0(-_0x41f876._0x26f965,-0x1ea,-0x1bb,-0x1bd))){if(_0x4634f2['ywUvg'](_0x370536(0x6c,0x75,_0x41f876._0x536755,0x6c),'sfXNy')){if(_0x3399db[_0x370536(_0x41f876._0x15557a,0xa6,0x1a,0x5f)][_0x1d13c0(-0x1f6,-_0x41f876._0x2ec7f6,-_0x41f876._0xf22a86,-_0x41f876._0x43ffe9)](_0x4634f2[_0x370536(_0x41f876._0x54715b,_0x41f876._0x19981d,_0x41f876._0x6ccf41,_0x41f876._0x216921)])){const _0x37fb87={};return _0x37fb87[_0x370536(-0xb,_0x41f876._0x5c48f9,-0x2,_0x41f876._0x485465)]=_0x4634f2[_0x1d13c0(-_0x41f876._0x1a2b30,-0x218,-0x24d,-0x1dc)],_0x37fb87['message']=_0x43a2c6[_0x370536(0x30,0x44,_0x41f876._0x56094a,0x5f)],_0x4c8bfd['status'](0x63*0x1d+-0x2a*-0x2d+-0x1100)[_0x370536(_0x41f876._0x57a87f,_0x41f876._0x30ffd9,0x3c,_0x41f876._0x36d5eb)](_0x37fb87);}if(_0x4634f2['ywUvg'](_0x2b4ea9['code'],_0x4634f2[_0x370536(_0x41f876._0x39846e,0x55,0xbf,_0x41f876._0x469cb1)])){const _0x1088b4={};return _0x1088b4['error']=_0x4634f2[_0x1d13c0(-0x1da,-_0x41f876._0x5bb46d,-0x1e7,-_0x41f876._0x18059a)],_0x1088b4[_0x1d13c0(-0x199,-0x1c1,-0x1ab,-_0x41f876._0x4ce127)]=_0x4b56fd[_0x370536(_0x41f876._0x2680a3,0x52,_0x41f876._0x25d0e1,0x5f)],_0x157ba5[_0x1d13c0(-_0x41f876._0x1d338d,-0x1aa,-0x16a,-0x17c)](-0x1288+-0x163d*0x1+-0x2a55*-0x1)[_0x1d13c0(-0x1bc,-_0x41f876._0x50fcfb,-_0x41f876._0x4f38d6,-_0x41f876._0x282414)](_0x1088b4);}const _0x1f02c8={};_0x1f02c8['error']=_0x27b016['message'],_0x3879c1[_0x1d13c0(-0x1fb,-_0x41f876._0x3ed31c,-0x1a8,-_0x41f876._0x5382c3)](_0x4634f2[_0x1d13c0(-_0x41f876._0x1f73e0,-0x1be,-_0x41f876._0x4c9cdb,-0x1f7)],_0x1f02c8);const _0x12e399={};return _0x12e399[_0x370536(0x13,_0x41f876._0x41e265,_0x41f876._0x3d69e3,_0x41f876._0x2680a3)]=_0x4634f2[_0x370536(_0x41f876._0x37b2bb,_0x41f876._0x5bce97,_0x41f876._0x1190ec,0x66)],_0x2be77b[_0x1d13c0(-0x17e,-_0x41f876._0x125e6a,-0x1a6,-_0x41f876._0x353106)](0x1*0xbb9+0x2267+-0x2c2c)[_0x370536(0x9c,0x7a,_0x41f876._0x46fff9,_0x41f876._0x36d5eb)](_0x12e399);}else{const _0x4fb431={};return _0x4fb431['error']=_0x4634f2[_0x1d13c0(-0x1fe,-0x218,-_0x41f876._0x339bac,-0x236)],_0x4fb431[_0x370536(0x41,0x4b,_0x41f876._0x52da00,0x5f)]=_0x9e159c[_0x1d13c0(-0x1f0,-_0x41f876._0x415d65,-0x17e,-_0x41f876._0xf8fa66)],_0x11e632['status'](-0x61*-0x53+0x2007+0x1*-0x3de1)[_0x1d13c0(-0x1a1,-0x1a6,-0x1d6,-0x1bb)](_0x4fb431);}}if(_0x4634f2[_0x370536(-0x1e,-_0x41f876._0xd665c4,-0x2c,_0x41f876._0x904cc6)](_0x9e159c[_0x370536(0x2b,0x6b,0x40,_0x41f876._0x331117)],_0x4634f2[_0x1d13c0(-0x18d,-_0x41f876._0x47ea96,-0x1dc,-_0x41f876._0x27317a)])){const _0x16f749={};return _0x16f749[_0x370536(-_0x41f876._0x934895,0xe,-_0x41f876._0x37cd5d,_0x41f876._0x49aa57)]=_0x4634f2[_0x370536(-0x11,-_0x41f876._0x476e1b,-0x9,_0x41f876._0x30dbb1)],_0x16f749['message']=_0x9e159c[_0x1d13c0(-_0x41f876._0x169b8f,-_0x41f876._0x538f19,-_0x41f876._0x410011,-0x1f7)],_0x11e632[_0x1d13c0(-_0x41f876._0x339bac,-_0x41f876._0x125e6a,-_0x41f876._0x10e795,-0x1c8)](-0x1*-0xb25+-0x4*0x489+0x88f)[_0x370536(0x57,_0x41f876._0x1e07f0,_0x41f876._0x45be17,_0x41f876._0xa8afa2)](_0x16f749);}const _0x1d5b48={};_0x1d5b48['error']=_0x9e159c[_0x370536(_0x41f876._0x382196,_0x41f876._0x2e24e5,_0x41f876._0x158740,_0x41f876._0x2ebca4)],logger['error'](_0x4634f2[_0x370536(0x54,0x44,_0x41f876._0x5c48f9,_0x41f876._0x270a9a)],_0x1d5b48);const _0x6b8a53={};return _0x6b8a53['error']=_0x4634f2['KoUal'],_0x11e632[_0x1d13c0(-_0x41f876._0x4b2f77,-_0x41f876._0x125e6a,-_0x41f876._0x526566,-0x1a5)](0x5*-0x3e4+-0x282*-0x5+0x8de*0x1)[_0x370536(_0x41f876._0x32c218,_0x41f876._0x366c5a,0x93,0x7a)](_0x6b8a53);}}),router[_0xa1c623(0xf3,0x158,0x11f,0x167)](_0xa1c623(0x136,0x136,0x168,0x16c),requirePermission('settings:m'+_0x487d39(0x69,0x1e,0xa,0x26)),async(_0x195b84,_0x55becd)=>{const _0x232f72={_0x120ab9:0x3a0,_0x224d77:0x3e3,_0x1ad63b:0x285,_0xac6197:0x265,_0x3d0409:0x21c,_0x31d056:0x25f,_0x34dfe8:0x25d,_0x115018:0x2b0,_0x1a20d1:0x38b,_0x3b3b60:0x36e,_0x3b993:0x366,_0x1521c4:0x36c,_0x1aebd5:0x22b,_0x1aa969:0x22d,_0xbb943c:0x21f,_0x433e30:0x408,_0x193cde:0x3ce,_0x1d7791:0x3e5,_0x2157a8:0x410,_0xea4849:0x412,_0x545532:0x449,_0x364e8a:0x3d1,_0x315075:0x3c1,_0x185b97:0x3f0,_0x313f87:0x269,_0xa33af0:0x22c,_0x1ffe7e:0x2b6,_0x34c57c:0x3d9,_0x14d6fa:0x3a5,_0x4bb335:0x396,_0x180034:0x3bc,_0x418b16:0x373,_0x2c9341:0x28c,_0x504eb4:0x240,_0x44cfc0:0x3e6,_0x178aec:0x264,_0x3b9494:0x292,_0x32babb:0x2d0,_0x4b5eb3:0x38b,_0x3fb101:0x3a3,_0x36801a:0x3d6,_0x48b466:0x382,_0x30fe34:0x37c,_0x343f24:0x258,_0x48db8d:0x28e,_0x2fc8b1:0x3a8,_0x4f7cf6:0x3f7,_0x134943:0x1f5,_0x4f2691:0x254,_0x3b2cca:0x394,_0x2176bd:0x37a,_0x325f70:0x22b,_0x2a9c06:0x25c,_0xde3eb2:0x237,_0xd26119:0x222,_0x2afaf2:0x215,_0x29666d:0x393,_0x5e7d8b:0x3ce,_0x551ed6:0x3c0,_0x25b1dc:0x394,_0xfa0680:0x398,_0x5992a7:0x3f0,_0x5b1a4d:0x20d,_0x4ca5c6:0x260,_0x2ae835:0x3b8,_0x43a0e7:0x388,_0x528547:0x3ee,_0x1d76ef:0x2d9,_0x4a8264:0x29d,_0x473134:0x26f,_0x13ea94:0x276,_0x4f748a:0x277,_0x3d5c98:0x23a,_0x5df526:0x27f,_0x2351c3:0x3af,_0x1cf358:0x36d,_0x21f142:0x3c2,_0x26dc53:0x2cf,_0x2ef8e9:0x24f,_0x24ea6b:0x2ba,_0x17f6fc:0x3ae,_0x120c54:0x3cf,_0x178815:0x388,_0x501c2f:0x3c3,_0x2dfc43:0x389,_0x56dbb0:0x3ad,_0x404cfe:0x3b8,_0x2fcefc:0x3de,_0x1a436b:0x376,_0x586f07:0x29c,_0x6167c0:0x25b,_0x1cea35:0x3e8,_0x18155c:0x3e9,_0x440d2e:0x1f8,_0x5daa0b:0x420,_0x17b825:0x27c,_0x11e649:0x281,_0x47444f:0x277,_0x224afa:0x3b7,_0x1f5141:0x38f,_0x378cae:0x3ae,_0x2d3a29:0x28a,_0x1d131a:0x2ae,_0x2cc6d7:0x250,_0x242fa9:0x249,_0x372105:0x2b1,_0x2c48dc:0x3fd,_0x216fb8:0x416,_0x4465f5:0x3ca,_0x11fbcc:0x275,_0x5400bb:0x20c,_0x9333be:0x20c,_0x1091cb:0x387,_0x1a489a:0x3a8,_0x4d375d:0x365,_0x3ae0c1:0x3f1,_0x1613b4:0x429,_0x16370c:0x3f6,_0x28627f:0x406,_0x2a4911:0x411,_0x2e0d9d:0x3f0,_0x52119b:0x3f2,_0x5418b7:0x3e2,_0xca25cd:0x41e,_0x466a52:0x268,_0x3cc3cb:0x24f,_0x185603:0x291,_0x14cae2:0x26b,_0x437480:0x253,_0x5ecf51:0x1f7,_0x9dc653:0x299,_0x1d6754:0x2d1,_0x4610fa:0x2a2,_0x5791b7:0x2e4,_0x5014da:0x283,_0x5a933b:0x282,_0x3c3993:0x298,_0x247b37:0x40e,_0x4e72db:0x40f,_0x127d9e:0x43b,_0x377d0b:0x26f,_0x11c76e:0x25b,_0x521557:0x3dc,_0x465f9a:0x3c6,_0x354cdf:0x3bb,_0x385b79:0x3e0,_0x452dcd:0x3f5,_0x496bd6:0x40d,_0x1ec523:0x273,_0x5f5528:0x292,_0x2c6e03:0x3b0,_0x4b6eb9:0x277,_0xb84a1e:0x27e,_0xba6e0f:0x23c,_0x333441:0x3cc,_0x8e1cb:0x272,_0x948356:0x382,_0x30f5c8:0x3f7,_0x58a926:0x3e2,_0x274add:0x2aa,_0x1a16e8:0x292,_0x34caf4:0x2af},_0x337fdf={_0x49f677:0x164,_0x49ea34:0x247},_0x622719={_0x47a847:0x282},_0x3a1093={'MIJhG':'Role\x20not\x20f'+_0x226db1(_0x232f72._0x120ab9,0x3be,_0x232f72._0x224d77,0x377),'AcjOQ':_0x1c6aca(_0x232f72._0x1ad63b,0x28b,_0x232f72._0xac6197,0x26b)+_0x1c6aca(_0x232f72._0x3d0409,0x261,0x24e,_0x232f72._0x31d056)+'ined\x20role','PmPUk':function(_0x42a710,_0x51daaa){return _0x42a710(_0x51daaa);},'LzSLK':function(_0x4a049e,_0x137a55){return _0x4a049e!==_0x137a55;},'uAHng':function(_0x572426,_0x2b45e9){return _0x572426!==_0x2b45e9;},'HTDhq':_0x1c6aca(_0x232f72._0x34dfe8,0x273,0x272,_0x232f72._0x115018)+'t','oddvX':_0x226db1(_0x232f72._0x1a20d1,_0x232f72._0x3b3b60,0x393,0x359)+'s\x20must\x20be\x20'+_0x226db1(0x398,0x39c,_0x232f72._0x3b993,_0x232f72._0x1521c4)+_0x226db1(0x3f0,0x435,0x414,0x3b7),'rsFVo':function(_0x1c9b8d,_0xa50759){return _0x1c9b8d!==_0xa50759;},'nBHob':_0x1c6aca(_0x232f72._0x1aebd5,_0x232f72._0x1aa969,_0x232f72._0xbb943c,0x1f0),'XWSve':_0x226db1(_0x232f72._0x433e30,_0x232f72._0x193cde,_0x232f72._0x1d7791,_0x232f72._0x2157a8)+_0x226db1(_0x232f72._0xea4849,_0x232f72._0x545532,0x3df,0x42f)+_0x226db1(_0x232f72._0x364e8a,_0x232f72._0x315075,0x39c,_0x232f72._0x185b97),'cDJlp':_0x1c6aca(0x1ff,0x226,0x26c,0x204),'sBrAL':function(_0x572e6f,_0x50cba4){return _0x572e6f===_0x50cba4;},'EUjEI':'VALIDATION','LMVgO':_0x1c6aca(_0x232f72._0x313f87,_0x232f72._0xa33af0,0x1fc,0x236),'kDJPF':_0x1c6aca(0x294,0x283,0x282,_0x232f72._0x1ffe7e)+_0x1c6aca(0x246,0x21d,0x1ea,0x22c)+'r'};function _0x226db1(_0x36ed8b,_0x15c070,_0x486676,_0x38939d){return _0xa1c623(_0x36ed8b-0x14e,_0x15c070-0x4d,_0x36ed8b-_0x622719._0x47a847,_0x486676);}function _0x1c6aca(_0x432389,_0x423fdc,_0x2faf9d,_0x23ca15){return _0x487d39(_0x432389-0x1e9,_0x423fdc-_0x337fdf._0x49f677,_0x2faf9d,_0x423fdc-_0x337fdf._0x49ea34);}try{const _0x4cc92f=await _0x3a1093[_0x226db1(0x3b3,_0x232f72._0x34c57c,0x38a,0x3a8)](getRoleById,_0x195b84[_0x226db1(_0x232f72._0x14d6fa,_0x232f72._0x4bb335,_0x232f72._0x180034,_0x232f72._0x418b16)]['id']);if(!_0x4cc92f){const _0x488610={};return _0x488610[_0x1c6aca(0x217,0x24f,_0x232f72._0x2c9341,_0x232f72._0x504eb4)]=_0x3a1093[_0x226db1(0x405,0x446,_0x232f72._0x44cfc0,0x411)],_0x55becd['status'](0xa3a+-0xa3*0x2b+0x12bb)[_0x1c6aca(_0x232f72._0x178aec,_0x232f72._0x3b9494,0x297,_0x232f72._0x32babb)](_0x488610);}const _0x58a0d7={};if(_0x195b84[_0x226db1(_0x232f72._0x315075,_0x232f72._0x4b5eb3,_0x232f72._0x3fb101,_0x232f72._0x36801a)][_0x226db1(0x3c4,0x3c4,_0x232f72._0x48b466,_0x232f72._0x30fe34)]!==undefined)_0x58a0d7['name']=_0x195b84[_0x1c6aca(0x25f,_0x232f72._0x343f24,0x237,_0x232f72._0x48db8d)][_0x226db1(0x3c4,_0x232f72._0x2fc8b1,_0x232f72._0x4f7cf6,0x3fa)];if(_0x3a1093['LzSLK'](_0x195b84[_0x226db1(_0x232f72._0x315075,0x37c,0x3a8,0x38a)][_0x1c6aca(_0x232f72._0x134943,0x22b,_0x232f72._0x4f2691,0x24f)+'n'],undefined))_0x58a0d7[_0x226db1(_0x232f72._0x3b2cca,0x37e,0x3d3,_0x232f72._0x2176bd)+'n']=_0x195b84[_0x1c6aca(0x238,0x258,0x259,0x28d)][_0x1c6aca(0x24e,_0x232f72._0x325f70,_0x232f72._0x2a9c06,_0x232f72._0xde3eb2)+'n'];if(_0x3a1093['uAHng'](_0x195b84[_0x1c6aca(0x246,0x258,_0x232f72._0xd26119,_0x232f72._0x2afaf2)][_0x226db1(_0x232f72._0x1a20d1,0x354,0x3b6,0x3b7)+'s'],undefined)){if(!Array[_0x226db1(_0x232f72._0x29666d,0x358,_0x232f72._0x5e7d8b,0x3bc)](_0x195b84[_0x226db1(0x3c1,0x406,0x37a,_0x232f72._0x551ed6)][_0x226db1(0x38b,0x34c,_0x232f72._0x25b1dc,_0x232f72._0x120ab9)+'s'])||_0x195b84[_0x226db1(_0x232f72._0x315075,_0x232f72._0xfa0680,_0x232f72._0x5992a7,0x3ae)][_0x1c6aca(_0x232f72._0x5b1a4d,_0x232f72._0xd26119,0x236,_0x232f72._0x4ca5c6)+'s']['length']===-0xe37+-0xc3*0x1c+0x238b){const _0x27ac66={};return _0x27ac66[_0x226db1(_0x232f72._0x2ae835,_0x232f72._0x43a0e7,0x373,_0x232f72._0x528547)]=_0x3a1093[_0x1c6aca(_0x232f72._0x1d76ef,_0x232f72._0x4a8264,_0x232f72._0x473134,0x295)],_0x27ac66[_0x1c6aca(_0x232f72._0x13ea94,_0x232f72._0x4f748a,_0x232f72._0x3d5c98,_0x232f72._0x5df526)]=_0x3a1093[_0x226db1(_0x232f72._0x2351c3,_0x232f72._0x1cf358,0x368,_0x232f72._0x21f142)],_0x55becd[_0x1c6aca(_0x232f72._0x26dc53,0x28e,0x2a0,_0x232f72._0x2ef8e9)](0xb1a+0x1cc3+-0x264d)[_0x1c6aca(0x284,0x292,0x24b,_0x232f72._0x24ea6b)](_0x27ac66);}const _0x5d99d8=_0x195b84['body'][_0x1c6aca(0x262,0x222,0x264,_0x232f72._0xd26119)+'s']['filter'](_0x4670df=>!isValidPermission(_0x4670df));if(_0x5d99d8['length']>-0x21a6+0x12c1*0x1+0xee5){if(_0x3a1093[_0x226db1(_0x232f72._0x17f6fc,_0x232f72._0x120c54,_0x232f72._0x178815,0x367)](_0x3a1093['nBHob'],_0x3a1093[_0x226db1(_0x232f72._0x501c2f,_0x232f72._0x2dfc43,0x37b,_0x232f72._0x56dbb0)])){const _0x413be6={};return _0x413be6[_0x226db1(_0x232f72._0x404cfe,_0x232f72._0x2fcefc,_0x232f72._0x1a436b,0x37c)]=_0x3a1093[_0x1c6aca(0x2dd,_0x232f72._0x586f07,0x268,_0x232f72._0x6167c0)],_0x2f9e15['status'](-0x83e+0xab9+0x4d*-0x3)['json'](_0x413be6);}else return _0x55becd[_0x226db1(0x3f7,0x3c0,0x3fa,0x3fb)](0x1218+0x15a6+-0x262e)[_0x226db1(0x3fb,0x443,0x412,_0x232f72._0x1cea35)]({'error':'Bad\x20Reques'+'t','message':_0x226db1(_0x232f72._0x18155c,0x3e3,0x416,_0x232f72._0x315075)+'rmissions:'+'\x20'+_0x5d99d8['join'](',\x20')});}_0x58a0d7['permission'+'s']=_0x195b84['body'][_0x1c6aca(0x212,0x222,0x20f,_0x232f72._0x440d2e)+'s'];}const _0x3ac27d=await updateRole(_0x4cc92f['id'],_0x58a0d7),_0x325896={};return _0x325896[_0x226db1(0x3e0,0x418,_0x232f72._0x5daa0b,0x3d8)]=_0x3a1093[_0x1c6aca(0x2b6,0x27f,0x27d,_0x232f72._0x17b825)],_0x325896['role']=_0x3ac27d,_0x55becd['json'](_0x325896);}catch(_0x1294f6){if(_0x1294f6[_0x1c6aca(_0x232f72._0x11e649,_0x232f72._0x47444f,0x269,0x27c)]['includes']('already\x20ex'+_0x226db1(_0x232f72._0x224afa,_0x232f72._0x1f5141,0x395,0x374))){const _0x10a532={};return _0x10a532[_0x226db1(_0x232f72._0x2ae835,0x379,0x3b1,_0x232f72._0x378cae)]=_0x3a1093[_0x1c6aca(_0x232f72._0x2d3a29,0x278,_0x232f72._0x1d131a,_0x232f72._0x2cc6d7)],_0x10a532[_0x1c6aca(_0x232f72._0x242fa9,_0x232f72._0x47444f,_0x232f72._0x372105,0x2ab)]=_0x1294f6['message'],_0x55becd['status'](-0x7d*0x49+0x101*0x15+-0x1029*-0x1)['json'](_0x10a532);}if(_0x3a1093[_0x226db1(_0x232f72._0x2c48dc,0x3d6,_0x232f72._0x216fb8,_0x232f72._0x4465f5)](_0x1294f6[_0x1c6aca(_0x232f72._0x11fbcc,0x240,_0x232f72._0x5400bb,_0x232f72._0x9333be)],_0x3a1093[_0x226db1(_0x232f72._0x1091cb,_0x232f72._0x1a489a,0x343,_0x232f72._0x4d375d)])){if(_0x3a1093[_0x226db1(_0x232f72._0x3ae0c1,_0x232f72._0x1613b4,_0x232f72._0x16370c,_0x232f72._0x28627f)](_0x3a1093[_0x226db1(_0x232f72._0x2a4911,0x3f6,_0x232f72._0x2e0d9d,_0x232f72._0x52119b)],_0x3a1093[_0x226db1(0x411,_0x232f72._0x5418b7,0x3fe,_0x232f72._0xca25cd)])){const _0xdd30a3={};return _0xdd30a3[_0x1c6aca(_0x232f72._0x466a52,_0x232f72._0x3cc3cb,0x274,_0x232f72._0x9333be)]=_0x3a1093[_0x226db1(0x3d4,0x3a0,0x3b9,0x3c5)],_0xdd30a3[_0x1c6aca(_0x232f72._0x185603,0x277,_0x232f72._0x14cae2,0x293)]=_0x1c6aca(_0x232f72._0x437480,0x224,_0x232f72._0x5ecf51,0x201)+_0x5c6148[_0x1c6aca(0x21b,0x25b,0x293,0x284)]+(_0x1c6aca(_0x232f72._0x178aec,_0x232f72._0x9dc653,0x27a,_0x232f72._0x1d6754)+_0x1c6aca(0x2df,_0x232f72._0x4610fa,_0x232f72._0x5791b7,_0x232f72._0x5014da)+'le\x20and\x20can'+_0x1c6aca(0x281,_0x232f72._0x5a933b,_0x232f72._0x343f24,_0x232f72._0x3c3993)+_0x226db1(0x415,_0x232f72._0x247b37,0x3d2,_0x232f72._0x4e72db)),_0x2fc521[_0x226db1(0x3f7,0x414,0x425,_0x232f72._0x127d9e)](0x1*-0x20a5+-0x1caa+0x3edf)[_0x1c6aca(_0x232f72._0x377d0b,0x292,_0x232f72._0x3cc3cb,_0x232f72._0x11c76e)](_0xdd30a3);}else{const _0x5c9a1d={};return _0x5c9a1d[_0x226db1(_0x232f72._0x404cfe,0x384,0x3a6,0x3d8)]=_0x226db1(_0x232f72._0x521557,0x40a,_0x232f72._0x465f9a,_0x232f72._0x354cdf)+'t',_0x5c9a1d[_0x226db1(_0x232f72._0x385b79,_0x232f72._0x452dcd,_0x232f72._0x496bd6,0x3bf)]=_0x1294f6['message'],_0x55becd[_0x1c6aca(0x26b,0x28e,_0x232f72._0x11e649,_0x232f72._0x34dfe8)](0xc2+0x12d6+0x482*-0x4)[_0x1c6aca(_0x232f72._0x1ec523,_0x232f72._0x5f5528,0x27d,0x286)](_0x5c9a1d);}}const _0x57ae84={};_0x57ae84[_0x226db1(0x3b8,0x388,0x3c8,_0x232f72._0x2c6e03)]=_0x1294f6[_0x1c6aca(0x271,_0x232f72._0x4b6eb9,_0x232f72._0xb84a1e,_0x232f72._0xba6e0f)],logger[_0x226db1(0x3b8,0x3bb,_0x232f72._0xfa0680,_0x232f72._0x120ab9)](_0x226db1(_0x232f72._0x333441,_0x232f72._0x25b1dc,0x3a3,0x387)+_0x1c6aca(0x271,0x29b,0x296,0x2bb),_0x57ae84);const _0xb7e7a2={};return _0xb7e7a2[_0x1c6aca(_0x232f72._0x8e1cb,0x24f,0x266,0x22e)]=_0x3a1093[_0x226db1(0x38e,0x3d4,0x371,_0x232f72._0x948356)],_0x55becd[_0x226db1(_0x232f72._0x30f5c8,0x3f4,_0x232f72._0x58a926,0x3e9)](-0x10e4+-0x4a*-0x14+0xb0*0x13)[_0x1c6aca(_0x232f72._0x274add,_0x232f72._0x1a16e8,_0x232f72._0x34caf4,0x292)](_0xb7e7a2);}}),router[_0xa1c623(0x195,0x187,0x185,0x18d)](_0x487d39(0x3b,0x78,-0xa,0x3a),requirePermission(_0x487d39(0x2b,0x5d,0x6e,0x4a)+_0x487d39(0x60,0x4c,0x3d,0x26)),async(_0x1bd020,_0x8018cb)=>{const _0x20fcab={_0x3d260a:0x2d,_0x47bea9:0x46,_0x4aea12:0x13,_0x54c9b9:0x49a,_0x545b76:0x47f,_0x297907:0x483,_0x18f9b0:0x5a,_0x3a45e7:0x78,_0x2fa6fe:0x4dd,_0x551be6:0x469,_0x50156c:0x49d,_0x513436:0x425,_0x4d0dd4:0x43c,_0x173951:0x4d3,_0x1041cb:0x4dc,_0x82d332:0x40b,_0x262a7b:0x53,_0x359a:0xd,_0x193e47:0x48b,_0x497f26:0x4cd,_0x3fa4c1:0x4b5,_0x9f3f61:0x9,_0x3a756b:0xc,_0x585316:0x1,_0x32340a:0x43f,_0x476527:0x4a9,_0x58d3d7:0x467,_0x582183:0x462,_0x8e3cc4:0x27,_0x57f964:0x14,_0x4c54ed:0x4b,_0x206ff0:0x491,_0x4deaed:0x45f,_0x2f4f1f:0x4bd,_0x191bed:0x47b,_0x338c20:0x24,_0x1159e9:0x35,_0x310c30:0x493,_0xe0815b:0x4aa,_0xc420a8:0x4e9,_0x506fa7:0x4e7,_0x598464:0x497,_0x2e4078:0x485,_0x281aca:0x4ac,_0x42a2b0:0x47c,_0x2b8738:0x3c,_0x5251c4:0x23,_0x4afa34:0x1f,_0x3b5511:0x4e,_0x3b7eb5:0x3f,_0x2d742f:0x4b1,_0x53ed37:0x1,_0x59b8c3:0x2c,_0x4015c3:0x31,_0x390c47:0x4a3,_0x5f3361:0x48e,_0x399d78:0x462,_0xf353e9:0x32,_0x44b45c:0x6d,_0x3f46e5:0x5,_0x520d7a:0x7,_0x5b62ab:0x38,_0x58a816:0x4bc,_0x4c496f:0x495,_0x21b4f5:0x4af,_0x4b8177:0x4d9,_0x177c5c:0x4a5,_0x5c9a74:0x4b3,_0x1a1193:0x47,_0x15eff7:0x5a,_0x4d9764:0x1c,_0x3459a8:0x20,_0x45ba0f:0x2b,_0x546b76:0x3,_0xc080f1:0x11,_0x13fa76:0x70,_0x50792b:0x471,_0x2772c2:0x4de,_0xf07767:0x21,_0x2109f8:0x64,_0x2d3179:0x10,_0x44ecde:0x492,_0x6c790d:0x472,_0x3a3d3a:0x44c,_0x289496:0x4d5,_0x31cb51:0x4c5,_0x5193d0:0x6a,_0x3ae767:0x26,_0x5b33ac:0x6e,_0x871488:0x4b7,_0x51bd16:0x49f,_0x44a1a4:0x465,_0x3222fb:0x31,_0xe36e86:0x28,_0x50ae9c:0x1b,_0x126974:0x489,_0x2f3775:0x481,_0x20868c:0x5b,_0x1bed90:0x3c,_0x548b4e:0x472,_0xd9c956:0x487,_0x3829e5:0x21,_0x444b29:0xf,_0x20f21e:0x24,_0x320b5b:0x7,_0x49b4c0:0x44,_0x2c473f:0x44b,_0x1ed39c:0x4a1,_0x283f8a:0x4b5,_0x153604:0x49b,_0x2b6f54:0x476,_0x3e51fd:0x4b1,_0x56f683:0x499,_0x27f042:0x4a2,_0xa6a833:0x5e,_0x1c4328:0x47e,_0x406dfd:0x14,_0x569908:0x7e,_0x19e60c:0x25,_0x5dd6b9:0x4d,_0x5e3f6b:0x2e,_0x1d7c08:0x45c,_0x2ee2c8:0x510,_0x3bf2c8:0x4c8,_0x218c6a:0x26,_0x4187d2:0xf,_0x432fde:0x25,_0x3fec13:0x4d8,_0x5cc7af:0x4b5,_0x62ceaa:0x4b0,_0x2571aa:0x4a4,_0x238b05:0x496,_0x26215a:0x472,_0x2974b5:0x48f,_0x15f360:0x4a2,_0x550ab1:0x486,_0x1b12a7:0x38,_0x25bd9b:0x32,_0x2384d5:0x4ba},_0x266335={_0x5ba157:0x1b6,_0x2a1752:0x140,_0x39ad7b:0x33c},_0x5882a2={_0x3efc7d:0x161,_0x95c1a2:0x19c},_0x5d03ca={'kPPXN':_0x5a3778(0x1d,0x1f,-0x16,-0x1)+'t','KNyiP':_0x5a3778(0x16,0x35,-0x14,_0x20fcab._0x3d260a)+'ists','HJQyK':function(_0x4548a9,_0x3144af){return _0x4548a9===_0x3144af;},'IDMEu':_0x5a3778(0x1f,_0x20fcab._0x47bea9,_0x20fcab._0x4aea12,0x66),'REJWh':_0x2f4441(0x4b1,_0x20fcab._0x54c9b9,_0x20fcab._0x545b76,_0x20fcab._0x297907)+_0x5a3778(0x45,_0x20fcab._0x18f9b0,-0x2,_0x20fcab._0x3a45e7),'oczDc':_0x2f4441(_0x20fcab._0x2fa6fe,_0x20fcab._0x551be6,0x4a6,_0x20fcab._0x50156c)+_0x2f4441(_0x20fcab._0x513436,0x41a,0x440,_0x20fcab._0x4d0dd4)+'r','qdaof':_0x2f4441(0x4c3,_0x20fcab._0x173951,0x4c7,_0x20fcab._0x1041cb),'EEfvf':_0x2f4441(_0x20fcab._0x82d332,0x465,0x44b,0x452),'AxQIj':'WKHxY','jjHNO':function(_0x3d8b77,_0x2515a4){return _0x3d8b77(_0x2515a4);},'UJeoN':'Role\x20delet'+_0x5a3778(_0x20fcab._0x262a7b,0x29,0x1b,_0x20fcab._0x359a)+_0x2f4441(_0x20fcab._0x193e47,_0x20fcab._0x497f26,0x48b,_0x20fcab._0x3fa4c1)};function _0x5a3778(_0x67f9d6,_0x3639c9,_0x2ca6a6,_0x16609f){return _0x487d39(_0x67f9d6-_0x5882a2._0x3efc7d,_0x3639c9-_0x5882a2._0x95c1a2,_0x2ca6a6,_0x67f9d6- -0xf);}function _0x2f4441(_0x5bcfc0,_0x5389a2,_0xe9034b,_0x47f055){return _0xa1c623(_0x5bcfc0-_0x266335._0x5ba157,_0x5389a2-_0x266335._0x2a1752,_0xe9034b-_0x266335._0x39ad7b,_0x5bcfc0);}try{if(_0x5d03ca[_0x5a3778(0x26,-_0x20fcab._0x9f3f61,_0x20fcab._0x3a756b,-_0x20fcab._0x585316)](_0x5d03ca[_0x2f4441(_0x20fcab._0x32340a,_0x20fcab._0x476527,_0x20fcab._0x58d3d7,_0x20fcab._0x582183)],_0x5d03ca[_0x5a3778(_0x20fcab._0x8e3cc4,_0x20fcab._0x57f964,0x17,_0x20fcab._0x4c54ed)])){const _0x3cc8d1={};return _0x3cc8d1[_0x2f4441(_0x20fcab._0x206ff0,_0x20fcab._0x4deaed,0x472,0x436)]=_0x5d03ca['kPPXN'],_0x3cc8d1[_0x2f4441(_0x20fcab._0x2f4f1f,_0x20fcab._0x191bed,0x49a,0x4b4)]=_0x5a3778(-0x34,0x13,-_0x20fcab._0x338c20,-0x1a)+'s\x20must\x20be\x20'+_0x5a3778(-_0x20fcab._0x8e3cc4,0x20,-_0x20fcab._0x1159e9,-0x23)+_0x2f4441(0x4c0,_0x20fcab._0x310c30,_0x20fcab._0xe0815b,_0x20fcab._0xc420a8),_0x473e12[_0x2f4441(0x49f,0x48e,0x4b1,0x4dd)](0x2064+-0xb*0x1f3+-0x1*0x963)[_0x2f4441(_0x20fcab._0x506fa7,_0x20fcab._0x598464,0x4b5,_0x20fcab._0x2e4078)](_0x3cc8d1);}else{const _0x32d6a8=await getRoleById(_0x1bd020['params']['id']);if(!_0x32d6a8){const _0x48e4a2={};return _0x48e4a2[_0x2f4441(_0x20fcab._0x281aca,0x44d,0x472,_0x20fcab._0x42a2b0)]=_0x5a3778(-0xa,-_0x20fcab._0x2b8738,-_0x20fcab._0x8e3cc4,-_0x20fcab._0x5251c4)+_0x5a3778(-_0x20fcab._0x4afa34,-0x27,-_0x20fcab._0x3b5511,-_0x20fcab._0x3b7eb5),_0x8018cb[_0x2f4441(0x4df,0x48e,_0x20fcab._0x2d742f,0x48e)](-0x2601+0x4a5*0x2+0x205*0xf)['json'](_0x48e4a2);}if(_0x32d6a8[_0x5a3778(_0x20fcab._0x3a756b,-_0x20fcab._0x53ed37,_0x20fcab._0x59b8c3,0x3a)]){const _0x4bc044={};return _0x4bc044[_0x5a3778(-0x7,0xd,0x26,_0x20fcab._0x4015c3)]='Cannot\x20del'+_0x5a3778(0xb,0x28,-0x7,-0x1)+_0x2f4441(_0x20fcab._0x390c47,_0x20fcab._0x5f3361,_0x20fcab._0x399d78,_0x20fcab._0x2e4078),_0x4bc044['message']=_0x5a3778(-_0x20fcab._0xf353e9,-0x71,-_0x20fcab._0x44b45c,-0x20)+_0x32d6a8[_0x5a3778(_0x20fcab._0x3f46e5,_0x20fcab._0x520d7a,_0x20fcab._0x5b62ab,-0x28)]+(_0x2f4441(_0x20fcab._0x58a816,0x4fc,_0x20fcab._0x58a816,0x4d3)+_0x2f4441(_0x20fcab._0x4c496f,0x4aa,0x4c5,_0x20fcab._0x21b4f5)+'le\x20and\x20can'+_0x2f4441(0x4ea,_0x20fcab._0x4b8177,_0x20fcab._0x177c5c,_0x20fcab._0x5c9a74)+'eted'),_0x8018cb[_0x5a3778(0x38,_0x20fcab._0x1a1193,_0x20fcab._0x15eff7,_0x20fcab._0x4d9764)](-0x1441+-0x1224*-0x1+0x1*0x3ad)['json'](_0x4bc044);}const _0x5ac217=await getBindings(),_0x519c0b=_0x5ac217[_0x5a3778(_0x20fcab._0x3459a8,_0x20fcab._0x45ba0f,0x50,0x30)](_0x1f4938=>_0x1f4938[_0x2f4441(0x4b4,0x4ba,0x4bb,0x487)]===_0x32d6a8['id']);if(_0x519c0b['length']>-0x25ae*0x1+0x1fba+0x5f4){if(_0x5d03ca[_0x5a3778(0x3a,_0x20fcab._0x546b76,_0x20fcab._0xc080f1,_0x20fcab._0x13fa76)]!==_0x5d03ca[_0x2f4441(0x49a,_0x20fcab._0x50792b,0x4b3,_0x20fcab._0x2772c2)]){if(_0x50a31e['message'][_0x5a3778(-_0x20fcab._0xf07767,0xf,-_0x20fcab._0x2109f8,_0x20fcab._0x2d3179)](_0x5d03ca['KNyiP'])){const _0x45fb7d={};return _0x45fb7d[_0x2f4441(_0x20fcab._0x44ecde,0x49d,_0x20fcab._0x6c790d,_0x20fcab._0x3a3d3a)]='Conflict',_0x45fb7d[_0x2f4441(0x45d,_0x20fcab._0x289496,0x49a,_0x20fcab._0x31cb51)]=_0x495bd5[_0x2f4441(0x48a,_0x20fcab._0x50792b,0x49a,0x4a2)],_0x3074c9[_0x5a3778(0x38,_0x20fcab._0x5193d0,_0x20fcab._0x3ae767,0x21)](-0x1*0x12c7+0x704+0xd5c)[_0x5a3778(_0x20fcab._0x2b8738,0x58,-0x1,_0x20fcab._0x5b33ac)](_0x45fb7d);}if(_0x5d03ca[_0x2f4441(_0x20fcab._0x871488,0x48a,_0x20fcab._0x51bd16,0x4d3)](_0x4390e1['code'],_0x5d03ca['IDMEu'])){const _0x54777e={};return _0x54777e[_0x2f4441(_0x20fcab._0x44a1a4,0x480,0x472,0x43e)]=_0x5d03ca[_0x5a3778(_0x20fcab._0x546b76,-_0x20fcab._0x3222fb,_0x20fcab._0xe36e86,_0x20fcab._0x50ae9c)],_0x54777e[_0x2f4441(0x499,_0x20fcab._0x126974,0x49a,_0x20fcab._0x2f3775)]=_0x26d1d2[_0x5a3778(_0x20fcab._0xf07767,-_0x20fcab._0x3ae767,_0x20fcab._0x20868c,-0x9)],_0x3076b0['status'](0x2*0xa2d+0x1*0x20e3+-0x1*0x33ad)[_0x5a3778(_0x20fcab._0x1bed90,0x4f,0x2d,0x49)](_0x54777e);}const _0x5be052={};_0x5be052[_0x2f4441(0x457,_0x20fcab._0x2d742f,_0x20fcab._0x548b4e,_0x20fcab._0xd9c956)]=_0x2bc18e[_0x5a3778(_0x20fcab._0x3829e5,_0x20fcab._0x444b29,0x45,_0x20fcab._0x20f21e)],_0x5b1829[_0x5a3778(-_0x20fcab._0x320b5b,-0x14,0x41,0x41)](_0x5d03ca[_0x5a3778(0x54,0x96,0x45,_0x20fcab._0x49b4c0)],_0x5be052);const _0x5e802f={};return _0x5e802f['error']=_0x5d03ca[_0x2f4441(_0x20fcab._0x2e4078,_0x20fcab._0x2c473f,0x46c,_0x20fcab._0x551be6)],_0x35f32e[_0x5a3778(_0x20fcab._0x5b62ab,0x5d,0x55,0x47)](0xcc6+-0xb3d+0x6b)[_0x2f4441(0x4da,_0x20fcab._0x1ed39c,_0x20fcab._0x283f8a,_0x20fcab._0x153604)](_0x5e802f);}else return _0x8018cb[_0x2f4441(_0x20fcab._0x2b6f54,_0x20fcab._0x289496,_0x20fcab._0x3e51fd,_0x20fcab._0x56f683)](0x1d19+-0x3*0x71+-0x1a2d)[_0x2f4441(_0x20fcab._0x27f042,0x4bf,0x4b5,_0x20fcab._0x56f683)]({'error':'Role\x20in\x20us'+'e','message':_0x5a3778(-0x32,-0x49,-_0x20fcab._0xa6a833,-0x10)+_0x32d6a8[_0x2f4441(0x48b,_0x20fcab._0x32340a,_0x20fcab._0x1c4328,0x43a)]+(_0x5a3778(0x50,_0x20fcab._0x406dfd,0x37,_0x20fcab._0x569908)+_0x5a3778(0x1e,-_0x20fcab._0x19e60c,0x1b,_0x20fcab._0x5dd6b9))+_0x519c0b[_0x5a3778(-0x20,-0x59,-0x1,-_0x20fcab._0x5e3f6b)]+('\x20binding(s'+_0x2f4441(0x45b,0x475,_0x20fcab._0x1d7c08,_0x20fcab._0x56f683)+_0x2f4441(_0x20fcab._0x2ee2c8,0x489,_0x20fcab._0x3bf2c8,0x4f1)+_0x5a3778(-_0x20fcab._0x218c6a,-0x7,0x16,0xa)),'bindings':_0x519c0b[_0x5a3778(0x25,_0x20fcab._0x4187d2,-0x1b,0x3e)](_0x3fda3b=>({'id':_0x3fda3b['id'],'resource_type':_0x3fda3b[_0x5a3778(-0x1c,0x22,-0x24,0x28)+_0x5a3778(-0x13,-0x26,-0x39,-0x46)],'resource_id':_0x3fda3b['resource_i'+'d'],'subject_type':_0x3fda3b[_0x2f4441(0x4c7,0x49e,0x483,0x455)+'pe'],'subject_id':_0x3fda3b['subject_id']}))});}await _0x5d03ca['jjHNO'](deleteRole,_0x32d6a8['id']);const _0x2093f1={};return _0x2093f1[_0x2f4441(0x4a5,0x4a5,0x49a,0x4cb)]=_0x5d03ca[_0x5a3778(-_0x20fcab._0x432fde,0x6,-0x39,-0x1)],_0x8018cb[_0x2f4441(_0x20fcab._0x3fec13,0x484,_0x20fcab._0x5cc7af,_0x20fcab._0x62ceaa)](_0x2093f1);}}catch(_0x8e88b0){const _0x4ea42a={};_0x4ea42a[_0x2f4441(_0x20fcab._0x2571aa,_0x20fcab._0x238b05,_0x20fcab._0x26215a,_0x20fcab._0x2974b5)]=_0x8e88b0[_0x2f4441(0x475,0x4c3,0x49a,_0x20fcab._0x15f360)],logger['error'](_0x2f4441(0x46c,0x4c2,_0x20fcab._0x281aca,_0x20fcab._0x550ab1)+_0x5a3778(0x45,_0x20fcab._0x4015c3,0x3a,0x75),_0x4ea42a);const _0x3709a6={};return _0x3709a6[_0x2f4441(0x473,0x45f,0x472,_0x20fcab._0x3e51fd)]=_0x5d03ca['oczDc'],_0x8018cb[_0x5a3778(_0x20fcab._0x1b12a7,0x35,0x1c,_0x20fcab._0x25bd9b)](0x198a*0x1+-0x21*-0xb9+-0x2f6f)[_0x2f4441(0x4cd,_0x20fcab._0x31cb51,_0x20fcab._0x5cc7af,_0x20fcab._0x2384d5)](_0x3709a6);}});function _0x74db(_0x172b6b,_0x1c2e03){_0x172b6b=_0x172b6b-(-0x1175*-0x2+0x2bb+-0x253c);const _0x4cd8de=_0x5da4();let _0x527724=_0x4cd8de[_0x172b6b];if(_0x74db['HSXhxx']===undefined){var _0x2f1b21=function(_0x5c9d51){const _0x4e1fc1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2334e5='',_0x585f66='';for(let _0x5011d0=-0x257f+0x1fd+0x2382,_0x310c86,_0x175f39,_0x473e12=0x754+0x203d+-0x5a7*0x7;_0x175f39=_0x5c9d51['charAt'](_0x473e12++);~_0x175f39&&(_0x310c86=_0x5011d0%(-0x119a+0x138c+-0x1ee)?_0x310c86*(-0x1087+0x26*-0x11+-0x9*-0x225)+_0x175f39:_0x175f39,_0x5011d0++%(-0x1ca1+0x1*-0x20b9+-0x2*-0x1eaf))?_0x2334e5+=String['fromCharCode'](-0x4*-0x22c+-0xdb5+0x604&_0x310c86>>(-(0xa55+0x2f*-0x47+0x2b6)*_0x5011d0&0x3b9+-0x2*0x10bb+0x191*0x13)):-0x22a*-0x4+0x224a+-0x1*0x2af2){_0x175f39=_0x4e1fc1['indexOf'](_0x175f39);}for(let _0x5f13a0=-0x521*-0x1+0xa1+0x86*-0xb,_0x237b00=_0x2334e5['length'];_0x5f13a0<_0x237b00;_0x5f13a0++){_0x585f66+='%'+('00'+_0x2334e5['charCodeAt'](_0x5f13a0)['toString'](0x829+-0xea0+0x687))['slice'](-(-0x7e1+-0x22f*0x2+0xc41));}return decodeURIComponent(_0x585f66);};_0x74db['jypCfi']=_0x2f1b21,_0x74db['erYIsM']={},_0x74db['HSXhxx']=!![];}const _0x2a0a85=_0x4cd8de[-0x1039+0x1*-0x4e0+0x1519],_0x52e839=_0x172b6b+_0x2a0a85,_0x35366f=_0x74db['erYIsM'][_0x52e839];return!_0x35366f?(_0x527724=_0x74db['jypCfi'](_0x527724),_0x74db['erYIsM'][_0x52e839]=_0x527724):_0x527724=_0x35366f,_0x527724;}export default router;function _0x5da4(){const _0x511e93=['EvjPsLC','DLfqtKy','Aw5JBhvKzxm','BgvUz3rO','B3vUza','Chv0','ksbHBMqGy2fUBG','CMvZB3vYy2vFDa','Aw5NihjVBgu','CgfYyw1Z','mJiYnZmYnvDuzvDpsW','Cg9ZDa','Aw5LzcbYB2XL','y29Kzq','uM9SzsbPBIb1CW','CYbPCYbYzxf1Aq','ExbL','CwrHB2y','CNngvM8','B2rKDLG','EenRAeK','vfvbwuy','B2n6rgm','ug1qvwS','C3bSAxq','uM9SzsbUB3qGzG','rgXZv1e','Axn0CW','zxjYB3i','DhjPBq','CMf5','u1r3Axu','uM9SzsbUyw1Lia','we12Awy','EwTptvC','m1j0wfDxDq','nfv2ChbkDW','yM9KEq','A1bqwe4','BKjiB2i','BMfTzq','rxjYB3iGy3jLyq','Aw5NihjVBgvZ','DezPvwC','nta0mtq3C3LkvwHH','C3vIAMvJDf90Eq','zxrLihbYzwrLzG','ChjLzgvMAw5Lza','rxjYB3iGDxbKyq','t05zCfe','CMvKigfUzcbTDq','CM1PC3nPB25ZoG','CMvZB3vYy2vFAq','zNvSBhK','z2v0','ExDvDMC','qwnQt1e','ywXYzwfKEsbLEa','yw5Hz2u','uM1Yv3i','vvn2tvy','mJa0mZm4nfHdEu1hqq','ntG5nta4EujMzvbH','zfPOvMm','qMfKifjLCxvLCW','zw5JzwqGyNKG','vKfmsurbveLptG','zMLSDgvY','BwvZC2fNzq','y0rkBha','CM9Szq','sK5NA0m','BwfW','sePrEuS','ruvMDMy','s29vywW','wfDtDMu','sw52ywXPzcbWzq','lZPPza','BM90igjLigrLBa','sw50zxjUywWGCW','D21mA2u','EM5lCve','ww5YBLq','EsbHCNjHEq','DufiBMC','rxjYB3iGzgvSzq','DvHHDve','q2fUBM90igrLBa','A2LowuG','EeXgquW','C3rHDhvZ','C3rYAw5N','qxHrswO','C2v0DgLUz3m6Bq','ANnVBG','mtzpBKD3AK0','C0jYquW','re5Qt1O','Dvzzy2S','C3vIAMvJDf9Pza','CM9Szv9Pza','jYbPCYbHihbYzq','BM50D1e','DgLUzYbYB2XL','tuLkAeC','sfreAhe','zgvSzxrL','uM9Szsb1CgrHDa','mJuWoti3mdb5uMXuC2i','zenUy1q','zgvMAw5LzcbYBW','zw50CMLLCW','DMrhug0','B3qGyMuGzgvSzq','jYbPCYbYzwzLCG','Au5ltM0','te1wz08','zwqGC3vJy2vZCW','uKvkv2G','y21Hy20','zxrLza','zxj2zxiGzxjYBW','rvvQruK','CLfty0G','v21pwMW','ndK0odq1mKjzrhfYBa','CgvYBwLZC2LVBG','AvzwD2W','vgHLihjVBguGjW','A0rkuey','q29UzMXPy3q','uM91DgvY','sgfPDuO','mJK3mJq0oe1OsM5LuW','AxnbCNjHEq','zgvZy3jPChrPBW','Du9QBxG','tgLnEKe','BNzNzgy','ysbUB24Tzw1WDa','DgvK','vuPLB04','zvrTt3e'];_0x5da4=function(){return _0x511e93;};return _0x5da4();}
1
+ (function(_0x55002e,_0xca168f){const _0x5c74e7={_0x4812d9:0x573,_0x5bed77:0x56b,_0x276c4c:0x500,_0x3802ac:0x543,_0x21eba1:0x5c8,_0x23e791:0x593,_0x5363b8:0x581,_0x1f8b27:0x561,_0x4973f3:0x5a6,_0x43d062:0x52a,_0x1213eb:0x520,_0x4de532:0x4da,_0x355a24:0x528,_0x5aa1e8:0x569,_0x3136d6:0x58d,_0x1eac84:0x556,_0x50105d:0x55a,_0x4f2478:0x454,_0x547317:0x47b,_0xd87994:0x558,_0x298e78:0x58a,_0x69386c:0x54c};function _0x163807(_0x189b67,_0x5c8841,_0x149a93,_0xab705d){return _0x562c(_0xab705d-0x29d,_0x5c8841);}function _0x5b1cac(_0x28410d,_0x1b8bc0,_0x22784b,_0x45fcde){return _0x562c(_0x22784b-0x353,_0x28410d);}const _0x53dc9e=_0x55002e();while(!![]){try{const _0x5b0e7c=parseInt(_0x5b1cac(0x589,0x594,_0x5c74e7._0x4812d9,0x56e))/(-0x260+0x1752+0x14f1*-0x1)+parseInt(_0x5b1cac(_0x5c74e7._0x5bed77,_0x5c74e7._0x276c4c,0x544,_0x5c74e7._0x3802ac))/(0x11ae+-0x25d4+-0x1ae*-0xc)+parseInt(_0x5b1cac(_0x5c74e7._0x21eba1,0x549,_0x5c74e7._0x23e791,0x56b))/(0x406+-0x1cfc+0x18f9)+-parseInt(_0x5b1cac(_0x5c74e7._0x5363b8,0x542,_0x5c74e7._0x1f8b27,_0x5c74e7._0x4973f3))/(0xc17*0x2+0x1*-0x1fe7+0x11b*0x7)+-parseInt(_0x5b1cac(_0x5c74e7._0x43d062,0x4ef,_0x5c74e7._0x1213eb,_0x5c74e7._0x4de532))/(-0x2*0x7+0x1913+-0x1900)*(-parseInt(_0x5b1cac(_0x5c74e7._0x355a24,0x526,0x56c,0x52c))/(0x126+0x65*-0x22+0x2*0x625))+parseInt(_0x5b1cac(_0x5c74e7._0x5aa1e8,_0x5c74e7._0x3136d6,_0x5c74e7._0x1eac84,_0x5c74e7._0x50105d))/(-0x1337*0x2+-0x1a2c+-0x158b*-0x3)+parseInt(_0x163807(_0x5c74e7._0x4f2478,0x433,0x455,_0x5c74e7._0x547317))/(0x1*0x727+-0x7*0x237+-0x4a*-0x1d)*(-parseInt(_0x5b1cac(_0x5c74e7._0xd87994,_0x5c74e7._0x298e78,_0x5c74e7._0x69386c,0x52f))/(0x18e2+-0x172c+-0x1ad));if(_0x5b0e7c===_0xca168f)break;else _0x53dc9e['push'](_0x53dc9e['shift']());}catch(_0x148fde){_0x53dc9e['push'](_0x53dc9e['shift']());}}}(_0x5dde,0x28fd*-0x53+0x14d44d+0x321b3*0x1));import _0x3aba42 from'express';import{logger}from'../lib/logger.js';function _0x45a205(_0x1c1d46,_0x406c7e,_0x592b8c,_0x2d4b55){return _0x562c(_0x592b8c-0x365,_0x2d4b55);}function _0x5dde(){const _0x3d655d=['Affzwe8','C0X0vxG','rxjYB3iGzgvSzq','zhb4BuG','y2fIsKi','EuvKBgO','CMvZB3vYy2vFDa','vxnNugW','ExbL','rxjYB3iGDxbKyq','zwXfsfy','uM9SzsbPBIb1CW','rxjYB3iGBgLZDa','AxnLsMG','zgvZy3jPChrPBW','rLfeywe','wKToDw4','CM9Szxm','zxjYB3i','CM1PC3nPB25ZoG','yw5Hz2u','AM9PBG','mZmWnJvOqunhDeW','AxmGCMvXDwLYzq','CMvZB3vYy2vFAq','quvUCge','l2f2ywLSywjSzq','BM90igjLigrLBa','uM91DgvY','B3vUza','jYbPCYbHihbYzq','BwfW','CYbPCYbYzxf1Aq','wu9sBum','y29Kzq','DgvK','BI1LBxb0EsbHCG','AMXvq1y','zxrLza','mZC1ntKYyNL1AeDS','DhjPBq','qM5kDKi','jYbPCYbYzwzLCG','EsbHCNjHEq','q3n2sxi','yM9KEq','vgHLihjVBguGjW','rfHethC','zMLSDgvY','B0Toqvm','u2niugO','C2v0DgLUz3m6Bq','ueHmB3i','ysbUB24Tzw1WDa','zuT0tfa','Chv0','uM9SzsbKzwXLDa','uhDUq1i','odqXodu2qu1rq0zm','zxrLihbYzwrLzG','r3L1we4','CfzpCKm','vM9OAhq','uKHfzLO','Aw5JBhvKzxm','u3rSDK4','mZG3AfD2sLjQ','q29UzMXPy3q','igjPBMrPBMCOCW','CgvYBwLZC2LVBG','CYbTDxn0igjLia','sw52ywXPzcbWzq','B3qGyMuGzgvSzq','ksbHBMqGy2fUBG','s0Xrq1m','vfLAtwO','oda5mZq5ofPouKXOAq','zNvSBhK','DfH1BLi','ChjLzgvMAw5Lza','q1HjDMG','rNPlsfy','z2rTCgW','BMfTzq','AMjXvKK','CMf5','C3vIAMvJDf90Eq','mJC1oda4ogztDfLovW','BguGyw5KignHBG','DgLUzYbYB2XL','Aw5NihjVBgu','lZPPza','CLvjtMu','D1f1zhG','CM9Szq','ug1krgC','C2DWzgi','z2v0','nJa2ELD1CMnR','C3qGyMuGysbUBW','rxjYB3iGz2v0Da','AxnbCNjHEq','uer2Cfi','t0Hjv0i','BNj3txu','mtuXnZqZs0TVEwHe','BwzYvva','rNr4q0e','uM9SzsbJCMvHDa','qMfKifjLCxvLCW','rKvss28','z2XWA1m','Aw5NihjVBgvZ','ANnVBG','ywjbDKm','CMvKigfUzcbTDq','q05LCNi','zxj2zxiGzxjYBW','sw50zxjUywWGCW','C3rHDhvZ','B2zsAvq','vKfmsurbveLptG','C1bttxy','BvL2C0S','ALfbv24','zwqGC3vJy2vZCW','CvLmuxe','q3btufm','CgfYyw1Z','zKfMvxe','zw50CMLLCW','Axn0CW','zgvSzxrL','C3bSAxq','BwvZC2fNzq','CK1JA2y','B0LnzxK','mZaZmJC0ogXhuKD3vq','s29gthu','uM9SzsbUB3qGzG','C3rYAw5N','BgvUz3rO','tuPYsgC','AuTTvvy','ywXYzwfKEsbLEa','zw5JzwqGyNKG','rNnqvei'];_0x5dde=function(){return _0x3d655d;};return _0x5dde();}import{getRoles,getRoleById,createRole,updateRole,deleteRole,isValidPermission,inferRoleResourceType}from'../lib/role-definitions.js';import{getBindings}from'../lib/bindings.js';function _0x29e1a7(_0x3daa9d,_0x121a31,_0x3e765c,_0x29c1cb){const _0xffb1e8={_0x2186f4:0x278};return _0x562c(_0x121a31- -_0xffb1e8._0x2186f4,_0x3daa9d);}import{getAllPermissionsFlat,getPermissionScope}from'../lib/roles.js';import{requirePermission}from'../middleware/requirePermission.js';const router=_0x3aba42[_0x29e1a7(-0xd2,-0xa5,-0xc9,-0x67)]();function _0x562c(_0x500ee7,_0x62ecf9){_0x500ee7=_0x500ee7-(0x6df*-0x1+-0x8*0x34+0xa2e);const _0x155b0f=_0x5dde();let _0x2c3bbb=_0x155b0f[_0x500ee7];if(_0x562c['qEvPEY']===undefined){var _0x503163=function(_0x740997){const _0x3103f9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ece10='',_0x2d05e6='';for(let _0x7a5877=-0x17*0x5d+-0x1*-0x1ab6+-0x125b,_0x538749,_0x27168b,_0x4bcc86=-0x18bd+-0xd31+0x25ee;_0x27168b=_0x740997['charAt'](_0x4bcc86++);~_0x27168b&&(_0x538749=_0x7a5877%(-0x3e*-0x47+-0x182d+0x6ff)?_0x538749*(0x1*0x220d+-0x73c*0x3+-0xc19)+_0x27168b:_0x27168b,_0x7a5877++%(0x3*0x6e9+-0xade+-0x9d9*0x1))?_0x3ece10+=String['fromCharCode'](0x442+0x2131+-0x1*0x2474&_0x538749>>(-(-0x8b8+0x1a85+-0x11cb)*_0x7a5877&-0xf*-0x17+-0x3e1+0x28e)):-0x216c*0x1+0x142*-0x16+-0x44*-0xe6){_0x27168b=_0x3103f9['indexOf'](_0x27168b);}for(let _0x596459=0x119b*-0x1+-0x2315+0x34b0,_0xd2e465=_0x3ece10['length'];_0x596459<_0xd2e465;_0x596459++){_0x2d05e6+='%'+('00'+_0x3ece10['charCodeAt'](_0x596459)['toString'](0x26b*-0x2+0x1fea+-0x1*0x1b04))['slice'](-(0x1d3a+-0xf*-0x118+-0x2da0));}return decodeURIComponent(_0x2d05e6);};_0x562c['sgcoxh']=_0x503163,_0x562c['ASPoBc']={},_0x562c['qEvPEY']=!![];}const _0x13821e=_0x155b0f[0x198+0x6e*-0x55+0x22ee],_0x28e1a9=_0x500ee7+_0x13821e,_0x34ee96=_0x562c['ASPoBc'][_0x28e1a9];return!_0x34ee96?(_0x2c3bbb=_0x562c['sgcoxh'](_0x2c3bbb),_0x562c['ASPoBc'][_0x28e1a9]=_0x2c3bbb):_0x2c3bbb=_0x34ee96,_0x2c3bbb;}router[_0x45a205(0x5a2,0x5c1,0x57d,0x537)](_0x29e1a7(-0x7c,-0xa7,-0x74,-0xac)+'-permissio'+'ns',(_0x593e6c,_0x525b0f)=>{const _0x3b37c6={_0x5d2a90:0xb9,_0x2ffdc7:0x128,_0x11ece2:0x128,_0x16e23f:0x315,_0x84eee3:0x339,_0xf57cd:0x11c,_0x1be876:0xec,_0x2597f9:0x113},_0x425656={_0x4a6497:0x18f,_0x3c89b6:0xeb},_0x3a21a4={_0x3bcf9b:0x3d,_0xefe2dc:0x212};function _0x438cd0(_0x1a8eb3,_0x347113,_0x353903,_0x4977ca){return _0x45a205(_0x1a8eb3-0x127,_0x347113-_0x3a21a4._0x3bcf9b,_0x4977ca- -_0x3a21a4._0xefe2dc,_0x353903);}const _0x59d081={'BnJvB':function(_0x58b4b1){return _0x58b4b1();}};function _0x445429(_0x25b1a8,_0xade258,_0x14226c,_0x278436){return _0x29e1a7(_0x14226c,_0x278436-_0x425656._0x4a6497,_0x14226c-_0x425656._0x3c89b6,_0x278436-0xa);}const _0x1b9e5c=_0x59d081[_0x445429(0x141,0x10f,_0x3b37c6._0x5d2a90,0xf7)](getAllPermissionsFlat),_0x4c192c=Object[_0x445429(0x14f,_0x3b37c6._0x2ffdc7,_0x3b37c6._0x11ece2,0x150)](_0x1b9e5c)[_0x438cd0(_0x3b37c6._0x16e23f,_0x3b37c6._0x84eee3,0x33c,0x329)](([_0x1ffcc5,_0x3e3348])=>({'key':_0x1ffcc5,'description':_0x3e3348,'category':_0x1ffcc5[_0x445429(0x17d,0x179,0x14b,0x153)](':')[-0x126b+0x20c4+-0xe59*0x1],'scope':getPermissionScope(_0x1ffcc5)})),_0x1610eb={};return _0x1610eb[_0x445429(0xec,_0x3b37c6._0xf57cd,_0x3b37c6._0x1be876,_0x3b37c6._0x2597f9)+'s']=_0x4c192c,_0x525b0f[_0x438cd0(0x396,0x382,0x389,0x37b)](_0x1610eb);}),router['get']('/',async(_0x7f4eac,_0x370265)=>{const _0x3b5379={_0x43533e:0x415,_0xb668b6:0x3f0,_0x5107da:0x48a,_0xbd3d41:0x467,_0x5242a0:0x4a0,_0x389bcb:0x42b,_0x522584:0x44b,_0x59c3f3:0x3eb,_0x345868:0x491,_0x18cf20:0x431,_0x256f56:0x45e,_0x5c5149:0x427,_0x3ceeb4:0x46a,_0x4f684b:0x4a9,_0x99d4e6:0x44d,_0x57141f:0x493,_0x5bd83c:0x3c8,_0x5010d4:0x410,_0xfcc50:0x3c6},_0x2dc59f={_0x5957b8:0x1e1},_0x36cb98={};_0x36cb98[_0x12d3bc(0x3f3,0x438,_0x3b5379._0x43533e,_0x3b5379._0xb668b6)]=_0x4c36b8(0x447,0x454,0x462,_0x3b5379._0x5107da)+_0x4c36b8(0x4e9,0x4bf,0x4c6,0x497);function _0x12d3bc(_0x31ba20,_0x4da783,_0x2fb36b,_0xb9cd7f){return _0x29e1a7(_0x4da783,_0x31ba20-0x477,_0x2fb36b-0x62,_0xb9cd7f-_0x2dc59f._0x5957b8);}function _0x4c36b8(_0x289cc5,_0x1ebd9b,_0x2b7bfd,_0x47bf71){return _0x45a205(_0x289cc5-0x14a,_0x1ebd9b-0x67,_0x2b7bfd- -0xc6,_0x1ebd9b);}_0x36cb98[_0x4c36b8(0x491,_0x3b5379._0xbd3d41,_0x3b5379._0x5242a0,0x49a)]='Internal\x20s'+_0x12d3bc(_0x3b5379._0x389bcb,_0x3b5379._0x522584,0x469,_0x3b5379._0x59c3f3)+'r';const _0x56c8df=_0x36cb98;try{const _0x4d4511=await getRoles(),_0x4f542b=_0x4d4511[_0x4c36b8(_0x3b5379._0x345868,_0x3b5379._0x18cf20,0x475,_0x3b5379._0x256f56)](_0x1045a2=>({..._0x1045a2,'resource_type':inferRoleResourceType(_0x1045a2[_0x12d3bc(0x3fb,0x40b,0x405,0x42b)+'s'])})),_0x3e1320={};return _0x3e1320[_0x12d3bc(0x3c7,0x3c7,0x3de,0x3be)]=_0x4f542b,_0x370265[_0x12d3bc(_0x3b5379._0x5c5149,0x42d,0x3ef,0x462)](_0x3e1320);}catch(_0x27b596){const _0x1cc912={};_0x1cc912[_0x4c36b8(0x465,_0x3b5379._0x3ceeb4,0x468,_0x3b5379._0x4f684b)]=_0x27b596['message'],logger['error'](_0x56c8df[_0x4c36b8(_0x3b5379._0x99d4e6,0x4a3,_0x3b5379._0x57141f,0x495)],_0x1cc912);const _0xedb73f={};return _0xedb73f[_0x12d3bc(_0x3b5379._0x5bd83c,0x3a4,0x3fa,_0x3b5379._0x5010d4)]=_0x56c8df[_0x12d3bc(0x400,_0x3b5379._0xfcc50,0x449,0x3d3)],_0x370265['status'](-0x24bf+-0x255e*0x1+0x4c11)['json'](_0xedb73f);}}),router['get'](_0x45a205(0x5a3,0x59b,0x577,0x5aa),async(_0x43d41c,_0x47ee46)=>{const _0x1baea6={_0x363a26:0x485,_0x532807:0x45b,_0x43864a:0x444,_0x5896cb:0xfb,_0x392464:0xb5,_0x4faca3:0xc2,_0x4b051:0xc9,_0xd94614:0xe2,_0x3e2897:0xb7,_0x4a0a11:0xa7,_0x351172:0x4b0,_0x217fca:0x44e,_0x1c7fed:0x47e,_0x1e51df:0xbb,_0x49784d:0xa0,_0x5030b6:0xb9,_0x16c530:0xe4,_0x4e20b4:0xb8,_0x93000b:0x40b,_0x4e388e:0x471,_0x59c6e6:0x4d3,_0x25bbaa:0x4aa,_0x498752:0x4a4,_0x394039:0x4df,_0x55d8a9:0x4e8,_0x1d56bb:0x496,_0x17310b:0x4ae,_0x625fb6:0x2b,_0x1cc181:0x4f,_0x14cf93:0x487,_0x6fefa7:0x481,_0x113ba1:0x456,_0x4a56df:0x495,_0x3cb655:0x35,_0x5b35f1:0x55,_0x4d5370:0x94,_0x5aaaa7:0x99,_0x5e2dd1:0xba,_0x2d5ff3:0x72,_0x2dcebd:0xb4,_0x2a84e2:0x48c,_0x1487ab:0x468,_0x264009:0x482,_0x1d9680:0x450,_0x215924:0x47c,_0x17799c:0xdc,_0x3288b6:0x101,_0x10ce6a:0xc9,_0xe34b:0x454,_0x27699c:0x431,_0x29ff3c:0x86,_0x7e1d0d:0x47b,_0x1845bc:0x48c,_0x2a9ca9:0x423,_0xac5e3c:0x462};function _0x541aa9(_0x23b74a,_0xad14eb,_0x22a054,_0x90955){return _0x29e1a7(_0xad14eb,_0x90955-0x104,_0x22a054-0x12d,_0x90955-0x24);}const _0x3d7079={'FzKHV':_0x541aa9(-0x1,-0x5,0xf,0x3b)+_0x1c6bb1(_0x1baea6._0x363a26,_0x1baea6._0x532807,_0x1baea6._0x43864a,0x441),'YORmC':function(_0x13c35f,_0x110817){return _0x13c35f(_0x110817);},'mGxrv':function(_0x55f141,_0x144ccc){return _0x55f141===_0x144ccc;},'KoFLu':_0x541aa9(0x7c,_0x1baea6._0x5896cb,_0x1baea6._0x392464,_0x1baea6._0x4faca3),'iseJh':_0x541aa9(_0x1baea6._0x4b051,_0x1baea6._0xd94614,_0x1baea6._0x3e2897,_0x1baea6._0x4a0a11)+_0x1c6bb1(_0x1baea6._0x351172,_0x1baea6._0x217fca,0x467,_0x1baea6._0x1c7fed),'Vohht':_0x541aa9(0xc6,_0x1baea6._0x1e51df,_0x1baea6._0x49784d,_0x1baea6._0x5030b6)+_0x541aa9(_0x1baea6._0x16c530,0xdd,0xff,_0x1baea6._0x4e20b4)+'r'};function _0x1c6bb1(_0x5c5291,_0x594c82,_0x477550,_0x3f613d){return _0x29e1a7(_0x477550,_0x3f613d-0x4e5,_0x477550-0xa2,_0x3f613d-0x33);}try{const _0x5669d4=await _0x3d7079[_0x1c6bb1(_0x1baea6._0x93000b,0x48a,_0x1baea6._0x43864a,0x445)](getRoleById,_0x43d41c[_0x1c6bb1(_0x1baea6._0x4e388e,_0x1baea6._0x59c6e6,_0x1baea6._0x25bbaa,_0x1baea6._0x498752)]['id']);if(!_0x5669d4){if(_0x3d7079['mGxrv'](_0x3d7079[_0x1c6bb1(0x4d0,0x4e6,0x4af,0x4ae)],_0x3d7079[_0x1c6bb1(_0x1baea6._0x394039,_0x1baea6._0x55d8a9,_0x1baea6._0x1d56bb,_0x1baea6._0x17310b)])){const _0x3f553f={};return _0x3f553f[_0x541aa9(0x84,_0x1baea6._0x625fb6,0x2d,0x55)]=_0x3d7079[_0x541aa9(_0x1baea6._0x1cc181,0xbb,0xab,0x94)],_0x47ee46[_0x1c6bb1(0x484,_0x1baea6._0x14cf93,0x4e2,0x49b)](-0x8a5+0x1*-0x611+0x104a)[_0x1c6bb1(_0x1baea6._0x6fefa7,_0x1baea6._0x113ba1,0x487,_0x1baea6._0x4a56df)](_0x3f553f);}else{const _0x5c4e2f={};return _0x5c4e2f[_0x541aa9(0x20,0x47,_0x1baea6._0x3cb655,_0x1baea6._0x5b35f1)]=_0x3d7079[_0x541aa9(0x82,0xc1,0x67,_0x1baea6._0x4d5370)],_0x510036[_0x541aa9(0xcc,_0x1baea6._0x5aaaa7,0x7d,_0x1baea6._0x5e2dd1)](0xd8f+-0xe*-0x18e+0x21bf*-0x1)[_0x541aa9(0xe6,_0x1baea6._0x2d5ff3,0xe8,_0x1baea6._0x2dcebd)](_0x5c4e2f);}}const _0x43d1ef={};return _0x43d1ef[_0x1c6bb1(_0x1baea6._0x2a84e2,0x49d,_0x1baea6._0x1487ab,_0x1baea6._0x264009)]=_0x5669d4,_0x47ee46[_0x1c6bb1(0x44f,_0x1baea6._0x1d9680,_0x1baea6._0x215924,_0x1baea6._0x4a56df)](_0x43d1ef);}catch(_0x40f86a){const _0x42fcad={};_0x42fcad['error']=_0x40f86a[_0x541aa9(_0x1baea6._0x17799c,_0x1baea6._0x3288b6,0xa5,_0x1baea6._0x10ce6a)],logger['error'](_0x3d7079[_0x1c6bb1(_0x1baea6._0xe34b,0x423,0x3ef,_0x1baea6._0x27699c)],_0x42fcad);const _0x28ead8={};return _0x28ead8[_0x541aa9(0x9e,_0x1baea6._0x29ff3c,0x5a,0x55)]=_0x3d7079[_0x1c6bb1(_0x1baea6._0x7e1d0d,_0x1baea6._0x1845bc,_0x1baea6._0x2a9ca9,_0x1baea6._0xac5e3c)],_0x47ee46['status'](0x3be+0xcb+-0x295)['json'](_0x28ead8);}}),router['post']('/',requirePermission(_0x29e1a7(-0xb9,-0x8e,-0x74,-0xa2)+'anage'),async(_0xc3411c,_0x29b4f6)=>{const _0x3a5938={_0xda86a4:0x1aa,_0xd696f4:0x1e3,_0x48eb6c:0x21b,_0x1e44b1:0xd3,_0xa59eff:0x106,_0x5a18b7:0xc8,_0x3d6f8c:0x97,_0x3fdee1:0x22d,_0x4b9dec:0x1ea,_0x53bf81:0xa8,_0x5294ed:0xc1,_0x53894a:0x103,_0x3857e2:0x108,_0x20775d:0x14c,_0x1c6293:0x156,_0x4a7a46:0x17b,_0x3b798c:0x16e,_0x2b85d5:0x136,_0x29572f:0x132,_0x5d8eb2:0x113,_0x395cd:0x13b,_0x5de1ec:0x149,_0x2306ab:0xd1,_0x218d51:0x101,_0x3aef7a:0x1d4,_0x5c4db5:0x1fa,_0x4d3f5b:0x1e6,_0x1987db:0x1dd,_0x32544d:0x1bc,_0x5e93b7:0x181,_0x5e666d:0x1c2,_0x114e7c:0x17e,_0x54bc49:0x14b,_0x56c6c8:0x1a2,_0x53d3ba:0x135,_0x37c4e1:0xbb,_0x46c4df:0x192,_0x31234a:0x1d1,_0x382b34:0x241,_0x3f3ede:0xbd,_0x2d06be:0xf3,_0x371e64:0xe1,_0x598e7a:0x1f0,_0x393737:0x1c4,_0x4798ab:0x205,_0x46892d:0x1d9,_0xa5a8bb:0x1ce,_0x4bdb04:0x20d,_0x269ff4:0x215,_0x25a492:0x1e1,_0x391585:0x18f,_0x18866f:0x18e,_0xbcc827:0x1a6,_0x160e56:0x13e,_0x1736eb:0x128,_0x1788da:0xf1,_0x2d636c:0x16f,_0x394629:0x1a9,_0x4f1c1b:0x19b,_0x1a07b6:0x200,_0x3804e5:0xfc,_0x4ab1dd:0x21f,_0xa63ffc:0x1fe,_0xa66b67:0x1df,_0x216d66:0xe8,_0xb7588f:0x12d,_0x2f94aa:0x1ed,_0x2b8b0f:0x1ae,_0x63dee3:0x226,_0x3e39cc:0x1ff,_0x597239:0x1c2,_0x4a411f:0x1cf,_0xb19986:0x1d5,_0x535397:0xed,_0x364991:0xb2,_0x296d49:0x13a,_0x383ed4:0x104,_0x44d1df:0x130,_0x3d995d:0x133,_0x574dd4:0x20f,_0x3eaab0:0x1cb,_0x35bd87:0x203,_0x286067:0x1b0,_0x2d1c63:0x159,_0x2bc968:0x14a,_0x2fd421:0x1ba,_0x5a8fd9:0x15f,_0x18d066:0x109,_0x27550a:0x192,_0xfa68b7:0x1a2,_0x2eab1e:0x18f,_0x40f87b:0x185,_0x4b7949:0x93,_0x899a32:0x20c,_0x234de6:0x214,_0x548cdd:0x111,_0x196217:0x17b,_0x585c28:0x177,_0x1241fc:0x15d,_0x495d34:0x103,_0x56d503:0x147,_0x4710cd:0x114,_0x1d5575:0x177,_0x26886d:0x14b,_0xde3892:0x194,_0x943663:0x19e,_0x41799a:0x15d,_0x123558:0xbb,_0x5c43a5:0x14e,_0x44d440:0xfc,_0x2e3665:0x1dc,_0x4dfcf0:0x16f,_0xab7a5b:0x1db,_0x169653:0x1f4,_0x5bc809:0x1f6,_0x40f80c:0x9c,_0x15138e:0xc4,_0x502e6d:0xfb,_0x343256:0xf9,_0x492f9a:0x163,_0x179624:0x174,_0x521eee:0x187,_0x20f54f:0x1d1,_0x48eb0b:0x16d,_0x487d86:0x182,_0xfaa748:0x17a,_0x39fa0e:0x19a,_0x4c3407:0x1c1,_0x3d3096:0x18d,_0x404856:0x161,_0x1cfc2e:0x1e5,_0x529083:0x227,_0x4f16d1:0x220,_0x432bcd:0x1d6,_0x5b30be:0x242,_0x57f02a:0x239,_0x23712a:0x23a,_0x1c8f13:0xf1,_0x347fe0:0xac,_0x34348c:0x22a,_0x598d1f:0x206,_0x463689:0x1f4,_0x364351:0x1ee,_0x27f975:0x143,_0x273275:0xe7,_0x341161:0xc0,_0xe85a9c:0x119,_0x3c13ac:0x1b8,_0x116a29:0x161,_0x3c9ef3:0x188,_0x5b010c:0x16e,_0x28ac27:0x1a9,_0x1979da:0x168,_0x58d531:0x17f,_0x1c1128:0x1c0,_0x3ee92a:0x1d3,_0x1f776f:0x1d9,_0x29cf02:0x10d,_0x2ac41c:0x138,_0x3c1139:0x167,_0x2c0677:0x16f,_0x342f67:0x132,_0x1293ba:0x12b,_0x515b48:0xb8,_0x5f0405:0x13d,_0x557638:0x1e4,_0x2b0abd:0x1ef,_0x289851:0x229,_0x13bf56:0x21b,_0x542119:0x1c8,_0x530bec:0x10e,_0x59099a:0x132,_0x8778fc:0x15c,_0x1fe57a:0x1d3,_0x5a214a:0x124,_0x39a6e2:0x142,_0x268cf0:0x165,_0x367081:0x17f,_0x96e30d:0x147,_0x581366:0x10a,_0x6cbb10:0x133,_0x481366:0x10c,_0x1e43a9:0x132,_0x1ebe7a:0x14a,_0x3aa7a3:0xd3,_0x446cec:0x151,_0xd273c2:0x172,_0x1b8225:0xee,_0x49ffdf:0xd0,_0x339386:0xcd,_0x42a2df:0x10b,_0x323a40:0x21b,_0x3ff96c:0x211,_0x415db7:0x1b5,_0x33a691:0x1f4,_0x50b59a:0x1b3,_0x45d724:0x132,_0x23b3e9:0xee,_0x330fc6:0xd3,_0x13685b:0xc6,_0x39f1b3:0x1be,_0x180ee1:0xef,_0xa324f4:0xd1,_0x15c640:0xb6,_0x37983f:0x1d0,_0x2ac659:0x238,_0x527881:0xfe,_0xeea9af:0x132},_0x45525a={_0x4c6b7c:0x23e,_0x4036d0:0x42},_0x2472fb={_0x5ea61a:0x182},_0x1d7c82={};function _0x51bcba(_0x5162b4,_0xd634be,_0x1d2460,_0x55c1c2){return _0x29e1a7(_0x1d2460,_0xd634be-_0x2472fb._0x5ea61a,_0x1d2460-0x1df,_0x55c1c2-0x172);}_0x1d7c82[_0x5392ad(0x224,_0x3a5938._0xda86a4,_0x3a5938._0xd696f4,_0x3a5938._0x48eb6c)]='already\x20ex'+'ists',_0x1d7c82[_0x51bcba(_0x3a5938._0x1e44b1,0xc4,0x104,0x7b)]=function(_0x4812b6,_0x24960b){return _0x4812b6===_0x24960b;},_0x1d7c82[_0x51bcba(0xf0,0x11d,_0x3a5938._0xa59eff,0x144)]=_0x5392ad(0x22c,0x1c3,0x1f6,0x23b),_0x1d7c82[_0x51bcba(0xe1,_0x3a5938._0x5a18b7,0x9a,_0x3a5938._0x3d6f8c)]=_0x5392ad(_0x3a5938._0x3fdee1,0x1b0,_0x3a5938._0x4b9dec,0x214)+'t',_0x1d7c82[_0x51bcba(_0x3a5938._0x53bf81,_0x3a5938._0x5294ed,_0x3a5938._0x53894a,0xfc)]='Error\x20crea'+_0x51bcba(_0x3a5938._0x3857e2,0x11a,0x137,_0x3a5938._0x20775d),_0x1d7c82[_0x5392ad(_0x3a5938._0x1c6293,_0x3a5938._0x4a7a46,0x18d,0x16b)]='Internal\x20s'+_0x51bcba(_0x3a5938._0x3b798c,_0x3a5938._0x2b85d5,0x173,_0x3a5938._0x29572f)+'r',_0x1d7c82[_0x51bcba(_0x3a5938._0x5d8eb2,_0x3a5938._0x395cd,_0x3a5938._0x5de1ec,0x108)]=_0x51bcba(0x7e,0xc3,_0x3a5938._0x2306ab,_0x3a5938._0x218d51)+_0x51bcba(_0x3a5938._0x218d51,0x11a,0x138,0x14c),_0x1d7c82[_0x5392ad(_0x3a5938._0x3aef7a,_0x3a5938._0x5c4db5,0x1eb,0x1f8)]=_0x5392ad(_0x3a5938._0x4d3f5b,0x1ee,_0x3a5938._0x1987db,_0x3a5938._0x32544d),_0x1d7c82[_0x5392ad(_0x3a5938._0x5e93b7,_0x3a5938._0x5e666d,0x1ae,0x1b5)]='uIoFs',_0x1d7c82[_0x5392ad(0x1b2,0x1ac,_0x3a5938._0x114e7c,_0x3a5938._0x54bc49)]=_0x5392ad(_0x3a5938._0x56c6c8,_0x3a5938._0x53d3ba,0x176,0x1ad),_0x1d7c82[_0x51bcba(_0x3a5938._0x37c4e1,0xcb,0x104,0xfd)]='xneBd',_0x1d7c82[_0x5392ad(0x1b5,_0x3a5938._0x46c4df,_0x3a5938._0x31234a,0x1af)]=_0x5392ad(0x21f,_0x3a5938._0x382b34,0x204,0x24d),_0x1d7c82[_0x51bcba(0xa2,_0x3a5938._0x3f3ede,_0x3a5938._0x53894a,_0x3a5938._0x2d06be)]=_0x51bcba(0x10b,0x106,0x131,0x107)+_0x51bcba(0xa7,_0x3a5938._0x371e64,0xd0,0x115)+_0x5392ad(0x1bd,0x1ad,_0x3a5938._0x598e7a,0x1e2)+_0x5392ad(_0x3a5938._0x393737,0x205,0x1e0,_0x3a5938._0x4798ab)+_0x5392ad(0x1cb,_0x3a5938._0x46892d,0x1a1,_0x3a5938._0xa5a8bb)+_0x5392ad(_0x3a5938._0x4bdb04,_0x3a5938._0x269ff4,0x1d2,_0x3a5938._0x25a492),_0x1d7c82[_0x5392ad(_0x3a5938._0x391585,_0x3a5938._0x18866f,0x1b3,_0x3a5938._0xbcc827)]=_0x5392ad(0x225,0x1c0,0x1e9,0x20b)+_0x51bcba(0x104,_0x3a5938._0x160e56,0x13e,0x13c)+'fully',_0x1d7c82[_0x51bcba(0x125,_0x3a5938._0x1736eb,0xf2,_0x3a5938._0x1788da)]=_0x5392ad(0x1db,_0x3a5938._0x2d636c,_0x3a5938._0x394629,_0x3a5938._0x4f1c1b),_0x1d7c82[_0x5392ad(_0x3a5938._0x1a07b6,0x209,0x1ef,0x1fd)]=_0x51bcba(0xf0,0x104,0x118,_0x3a5938._0x3804e5);function _0x5392ad(_0x13b7a0,_0x57b99f,_0x50e4e4,_0x1e3745){return _0x29e1a7(_0x13b7a0,_0x50e4e4-_0x45525a._0x4c6b7c,_0x50e4e4-0x2e,_0x1e3745-_0x45525a._0x4036d0);}_0x1d7c82[_0x5392ad(0x1ee,_0x3a5938._0x4ab1dd,_0x3a5938._0xa63ffc,_0x3a5938._0xa66b67)]=_0x51bcba(_0x3a5938._0x216d66,0xfd,0xcd,_0x3a5938._0xb7588f);const _0x4d8478=_0x1d7c82;try{if(_0x4d8478['FERKo']===_0x4d8478[_0x5392ad(_0x3a5938._0x2f94aa,0x184,_0x3a5938._0x2b8b0f,0x16b)]){if(_0x144e69[_0x5392ad(_0x3a5938._0x63dee3,0x22f,0x203,_0x3a5938._0x3e39cc)]['includes'](_0x4d8478[_0x5392ad(_0x3a5938._0x597239,_0x3a5938._0x4a411f,0x1e3,_0x3a5938._0xb19986)])){const _0x139817={};return _0x139817[_0x51bcba(0xf3,0xd3,_0x3a5938._0x535397,_0x3a5938._0x364991)]=_0x51bcba(_0x3a5938._0x296d49,_0x3a5938._0x383ed4,_0x3a5938._0x44d1df,_0x3a5938._0x3d995d),_0x139817[_0x5392ad(_0x3a5938._0x574dd4,0x204,0x203,0x1f4)]=_0x1a337c[_0x5392ad(_0x3a5938._0x3eaab0,_0x3a5938._0x4b9dec,_0x3a5938._0x35bd87,0x1fe)],_0x1cd800[_0x5392ad(_0x3a5938._0x4d3f5b,_0x3a5938._0x286067,0x1f4,0x1ac)](-0x13e3+0x15f6+-0x2*0x3d)['json'](_0x139817);}if(_0x4d8478[_0x5392ad(_0x3a5938._0x2d1c63,0x1b4,0x180,_0x3a5938._0x2bc968)](_0xdea354[_0x5392ad(_0x3a5938._0x2fd421,_0x3a5938._0x5a8fd9,0x19f,0x1c2)],_0x4d8478[_0x51bcba(0x166,0x11d,_0x3a5938._0x18d066,0xdc)])){const _0x3262aa={};return _0x3262aa[_0x5392ad(_0x3a5938._0x27550a,_0x3a5938._0xfa68b7,_0x3a5938._0x2eab1e,_0x3a5938._0x40f87b)]=_0x4d8478[_0x51bcba(0x8f,_0x3a5938._0x5a18b7,0x100,_0x3a5938._0x4b7949)],_0x3262aa[_0x5392ad(_0x3a5938._0x899a32,_0x3a5938._0x234de6,0x203,0x23e)]=_0x537bfa[_0x51bcba(0x138,0x147,_0x3a5938._0x548cdd,_0x3a5938._0x196217)],_0x4deffc['status'](0x1dd4+0x2*0xb1e+-0x3280)[_0x51bcba(_0x3a5938._0x585c28,_0x3a5938._0x29572f,0x15f,_0x3a5938._0x1241fc)](_0x3262aa);}const _0x350fdb={};_0x350fdb[_0x51bcba(0xcb,_0x3a5938._0x1e44b1,_0x3a5938._0x495d34,0xdc)]=_0x51a306[_0x51bcba(0x151,_0x3a5938._0x56d503,0x156,_0x3a5938._0x4710cd)],_0x43677f['error'](_0x4d8478['hQYXO'],_0x350fdb);const _0xec9e41={};return _0xec9e41['error']=_0x4d8478['ZKNun'],_0x363871[_0x51bcba(_0x3a5938._0x1d5575,0x138,_0x3a5938._0x26886d,0x100)](-0xcb*-0x11+-0x1*0x253b+0xa*0x292)['json'](_0xec9e41);}else{const {name:_0x3f69b6,description:_0x17fa99,permissions:_0x79970d}=_0xc3411c[_0x5392ad(0x1d4,_0x3a5938._0xde3892,0x1aa,_0x3a5938._0x943663)];if(!_0x3f69b6||typeof _0x3f69b6!==_0x4d8478['sLtUx']||_0x3f69b6[_0x5392ad(_0x3a5938._0x41799a,0x1c5,0x1a5,_0x3a5938._0x5e93b7)]()[_0x51bcba(0x85,_0x3a5938._0x123558,0xd1,0x81)]===0x1de*-0x13+-0x16db+0x3a55){const _0x4002a9={};return _0x4002a9[_0x5392ad(0x1d4,_0x3a5938._0x5c43a5,_0x3a5938._0x2eab1e,0x1ab)]=_0x4d8478[_0x51bcba(0x8a,0xc8,0x100,_0x3a5938._0x44d440)],_0x4002a9[_0x51bcba(_0x3a5938._0x395cd,0x147,0x113,0x14c)]='Role\x20name\x20'+_0x5392ad(_0x3a5938._0x2e3665,_0x3a5938._0x4dfcf0,_0x3a5938._0xde3892,_0x3a5938._0xab7a5b)+'d',_0x29b4f6[_0x5392ad(0x216,0x21e,_0x3a5938._0x169653,_0x3a5938._0x598e7a)](0x27*-0x19+0x1d8b+-0x182c)[_0x5392ad(0x210,0x1af,0x1ee,0x1f1)](_0x4002a9);}if(!_0x79970d||!Array[_0x5392ad(0x1b4,0x1d0,0x1e2,_0x3a5938._0x5bc809)](_0x79970d)||_0x79970d[_0x51bcba(0x82,_0x3a5938._0x123558,0xf5,_0x3a5938._0x40f80c)]===-0x1*0x1a21+-0xce*0x2c+0x3d89){if(_0x4d8478[_0x51bcba(0x97,_0x3a5938._0x15138e,_0x3a5938._0x502e6d,_0x3a5938._0x343256)](_0x4d8478[_0x5392ad(_0x3a5938._0x492f9a,_0x3a5938._0x179624,_0x3a5938._0x521eee,0x16e)],_0x4d8478[_0x5392ad(0x218,0x1de,_0x3a5938._0x20f54f,0x219)])){const _0x26bf5a={};_0x26bf5a['error']=_0x5e470c[_0x51bcba(_0x3a5938._0x3d995d,_0x3a5938._0x56d503,_0x3a5938._0x48eb0b,0x150)],_0x2d5bfe[_0x5392ad(_0x3a5938._0x487d86,_0x3a5938._0xfaa748,_0x3a5938._0x391585,0x183)](_0x4d8478[_0x51bcba(_0x3a5938._0x4710cd,_0x3a5938._0x395cd,0x155,0x101)],_0x26bf5a);const _0xa332a9={};return _0xa332a9[_0x5392ad(_0x3a5938._0x39fa0e,_0x3a5938._0x4c3407,0x18f,0x181)]=_0x4d8478[_0x5392ad(0x14c,0x1a9,_0x3a5938._0x3d3096,_0x3a5938._0x404856)],_0x1cc750[_0x5392ad(0x1b9,0x1bf,0x1f4,_0x3a5938._0x1cfc2e)](0x2540+0x1b24+-0x14d0*0x3)[_0x5392ad(_0x3a5938._0x529083,_0x3a5938._0x4f16d1,0x1ee,_0x3a5938._0x432bcd)](_0xa332a9);}else{const _0x11f4d0={};return _0x11f4d0['error']=_0x4d8478['UsgPl'],_0x11f4d0[_0x5392ad(_0x3a5938._0x5b30be,_0x3a5938._0x57f02a,0x203,_0x3a5938._0x23712a)]=_0x4d8478['iKmUV'],_0x29b4f6['status'](-0x1b47+0x17a4+0x533)['json'](_0x11f4d0);}}const _0x230692=_0x79970d[_0x51bcba(0x12d,_0x3a5938._0x1c8f13,_0x3a5938._0x347fe0,0x100)](_0x5c581e=>!isValidPermission(_0x5c581e));if(_0x230692['length']>-0xc3*0x10+-0x1*0x709+0x85*0x25)return _0x29b4f6[_0x5392ad(_0x3a5938._0x34348c,_0x3a5938._0x598d1f,_0x3a5938._0x463689,0x1c2)](0x5*0x3a0+0x2648+0x6*-0x924)[_0x5392ad(0x1a8,_0x3a5938._0x4b9dec,_0x3a5938._0x364351,0x1be)]({'error':_0x4d8478[_0x5392ad(0x1bf,_0x3a5938._0x27f975,0x184,0x1b4)],'message':_0x51bcba(0x12d,0x108,_0x3a5938._0x216d66,_0x3a5938._0x273275)+_0x51bcba(_0x3a5938._0x341161,0xd4,0x91,_0x3a5938._0xe85a9c)+'\x20'+_0x230692[_0x5392ad(0x1cd,_0x3a5938._0x3c13ac,_0x3a5938._0x46c4df,_0x3a5938._0x116a29)](',\x20')});const _0x167268=await createRole({'name':_0x3f69b6['trim'](),'description':_0x17fa99,'permissions':_0x79970d}),_0x30bc41={};return _0x30bc41['message']=_0x4d8478[_0x5392ad(_0x3a5938._0x3c9ef3,0x19d,0x1b3,0x174)],_0x30bc41[_0x51bcba(0x153,0x11f,_0x3a5938._0x116a29,0xde)]=_0x167268,_0x29b4f6[_0x5392ad(_0x3a5938._0xa63ffc,0x224,_0x3a5938._0x169653,0x1e1)](0xe45*0x1+0x449*0x3+-0x1a57*0x1)['json'](_0x30bc41);}}catch(_0x36f79b){if(_0x5392ad(_0x3a5938._0x5b010c,0x16e,_0x3a5938._0x28ac27,_0x3a5938._0x1979da)!==_0x4d8478['OHIWB']){const _0x2e223a={};return _0x2e223a[_0x5392ad(0x199,0x1a2,0x18f,0x15b)]=_0x5392ad(0x1c9,_0x3a5938._0x58d531,_0x3a5938._0x1c1128,0x17a),_0x2e223a[_0x5392ad(_0x3a5938._0x3ee92a,_0x3a5938._0x1f776f,0x203,0x244)]=_0xc452b7['message'],_0x3c61fa[_0x51bcba(_0x3a5938._0x29cf02,_0x3a5938._0x2ac41c,0x105,_0x3a5938._0x3c1139)](-0x1*0x1a2b+0x1221+-0x9a3*-0x1)[_0x51bcba(_0x3a5938._0x2c0677,_0x3a5938._0x342f67,_0x3a5938._0x1293ba,0x140)](_0x2e223a);}else{if(_0x36f79b['message'][_0x51bcba(0xe3,0x101,0x132,_0x3a5938._0x515b48)]('already\x20ex'+_0x51bcba(_0x3a5938._0x5f0405,0x144,_0x3a5938._0x3b798c,0x17e))){const _0x577e77={};return _0x577e77[_0x5392ad(_0x3a5938._0x432bcd,0x19a,0x18f,0x178)]=_0x4d8478[_0x5392ad(_0x3a5938._0x557638,0x1ae,_0x3a5938._0x2b0abd,0x1cc)],_0x577e77[_0x51bcba(_0x3a5938._0x48eb0b,0x147,0x15a,0x14f)]=_0x36f79b[_0x5392ad(_0x3a5938._0x289851,_0x3a5938._0x13bf56,0x203,_0x3a5938._0x20f54f)],_0x29b4f6[_0x5392ad(0x1e8,_0x3a5938._0x2b0abd,0x1f4,_0x3a5938._0x542119)](-0x3d*-0xa+-0x52a+0x461)[_0x51bcba(_0x3a5938._0x530bec,_0x3a5938._0x59099a,0x122,_0x3a5938._0x8778fc)](_0x577e77);}if(_0x4d8478['dpxmH'](_0x36f79b[_0x5392ad(0x17c,0x185,0x19f,_0x3a5938._0x1fe57a)],_0x4d8478[_0x51bcba(_0x3a5938._0x5a214a,0x11d,_0x3a5938._0x5a214a,0x166)])){if(_0x4d8478[_0x51bcba(0x18b,_0x3a5938._0x39a6e2,_0x3a5938._0x268cf0,0x160)]===_0x4d8478[_0x51bcba(_0x3a5938._0x367081,0x142,0xff,0x182)]){const _0x2ff33b={};return _0x2ff33b[_0x5392ad(_0x3a5938._0x286067,_0x3a5938._0x116a29,0x18f,0x152)]=_0x4d8478['UsgPl'],_0x2ff33b[_0x51bcba(0x15c,_0x3a5938._0x96e30d,_0x3a5938._0x1293ba,_0x3a5938._0x581366)]=_0x36f79b[_0x51bcba(0x148,_0x3a5938._0x56d503,0x11e,0x11c)],_0x29b4f6[_0x51bcba(_0x3a5938._0x6cbb10,0x138,0x167,_0x3a5938._0x481366)](0x2136+-0x14d2+-0xad4)[_0x51bcba(0x128,_0x3a5938._0x1e43a9,_0x3a5938._0x1ebe7a,0x10c)](_0x2ff33b);}else{const _0x22e98d={};_0x22e98d[_0x51bcba(_0x3a5938._0x53bf81,_0x3a5938._0x3aa7a3,0x110,0x10a)]=_0x522215[_0x51bcba(0x13c,_0x3a5938._0x56d503,_0x3a5938._0x446cec,_0x3a5938._0xd273c2)],_0x153306[_0x51bcba(0xff,_0x3a5938._0x3aa7a3,0x94,_0x3a5938._0x1b8225)](_0x51bcba(_0x3a5938._0x49ffdf,_0x3a5938._0x339386,0xa8,_0x3a5938._0x42a2df)+_0x5392ad(_0x3a5938._0x323a40,_0x3a5938._0x3ff96c,0x1ed,_0x3a5938._0x415db7),_0x22e98d);const _0x48d9be={};return _0x48d9be['error']=_0x4d8478['ZKNun'],_0x3614d9[_0x5392ad(0x1b9,0x1e2,_0x3a5938._0x33a691,_0x3a5938._0x50b59a)](-0x3cd+0xee4+0x923*-0x1)[_0x51bcba(0x114,_0x3a5938._0x45d724,_0x3a5938._0x23b3e9,0xfb)](_0x48d9be);}}const _0x4f529a={};_0x4f529a[_0x51bcba(0x107,_0x3a5938._0x330fc6,_0x3a5938._0x13685b,0x112)]=_0x36f79b['message'],logger['error'](_0x4d8478[_0x5392ad(0x18f,0x163,0x17d,0x1a6)],_0x4f529a);const _0x476cd8={};return _0x476cd8[_0x5392ad(_0x3a5938._0x39f1b3,0x149,0x18f,0x189)]=_0x4d8478[_0x51bcba(_0x3a5938._0x180ee1,_0x3a5938._0xa324f4,_0x3a5938._0x15c640,_0x3a5938._0x37c4e1)],_0x29b4f6[_0x5392ad(_0x3a5938._0x37983f,_0x3a5938._0x2ac659,_0x3a5938._0x169653,0x1cf)](-0x439*-0x5+-0x100f*-0x1+-0x2338)[_0x51bcba(_0x3a5938._0x527881,_0x3a5938._0xeea9af,_0x3a5938._0x5f0405,0x101)](_0x476cd8);}}}),router[_0x45a205(0x51d,0x530,0x553,0x55b)]('/:id',requirePermission(_0x29e1a7(-0x72,-0x8e,-0xb7,-0xd6)+'anage'),async(_0x30915b,_0x83ed7d)=>{const _0x48ad8f={_0x3fb849:0x526,_0x22fbe1:0x4e6,_0x409f38:0x4ed,_0x37def2:0x50c,_0x3c28ec:0x545,_0x22edfc:0x553,_0x1f6b67:0x180,_0x47481f:0x9e,_0x5d662c:0x124,_0x51f64c:0x162,_0x29b6dc:0x11c,_0x4ee2d7:0x550,_0x4da2e:0x539,_0x1433aa:0x548,_0x20d816:0x512,_0x1b6028:0x549,_0x48051f:0x580,_0x3d5e51:0x511,_0x424601:0xd0,_0xd700d7:0xaf,_0x36733d:0xba,_0x44fd67:0x10d,_0x50dfde:0x114,_0x29e895:0x178,_0x12951b:0xac,_0x17c00d:0xe4,_0x1060ad:0xdb,_0x2ebc78:0x113,_0x1bfb99:0xa7,_0x1a44dc:0xaa,_0x3a62aa:0x52d,_0x36637f:0xe1,_0x1636aa:0x105,_0x276104:0x94,_0x5a8f55:0x72,_0x2c5a34:0xeb,_0x4ce264:0x13b,_0xa0b214:0xb8,_0x4c12b8:0xed,_0x5aa4d5:0xc4,_0x54a2e0:0xa4,_0xb09952:0x7d,_0x5e9522:0xa7,_0xb2da89:0xed,_0x2a76cf:0x95,_0x3d8f16:0x119,_0x304844:0x549,_0x5d8443:0x133,_0x3488a7:0xdc,_0x5e71bb:0xbd,_0x22e67b:0xd6,_0x186580:0xdb,_0x259fc7:0x121,_0xa15f5:0x50e,_0x5e80c0:0x4d0,_0x483dc2:0x4fb,_0x41b4b7:0x13e,_0x4de122:0x129,_0x3f1ad8:0x130,_0x3748a7:0xfa,_0x4b3061:0x50a,_0x538382:0x552,_0x403605:0x86,_0x3eedaf:0xb1,_0x1e6cc4:0xb7,_0x4b3fb4:0xf1,_0x31e57f:0xad,_0x57c8a8:0x106,_0x13c433:0x10d,_0x58e449:0x50e,_0x5b2ee8:0x543,_0x23428d:0xd5,_0x4b690e:0x52a,_0x2767ec:0x500,_0xc03059:0x557,_0x44b28a:0x53f,_0x4b2345:0xc9,_0x3e152b:0xc2,_0xaf6bf6:0x9c,_0x4010ec:0x567,_0x30d122:0x57a,_0x35c7ee:0x59e,_0x88a59f:0x11c,_0x310b18:0x17d,_0x466eac:0x98,_0x577ee9:0x552,_0x518b2a:0x126,_0x300cb7:0xe5,_0xbc599b:0x123,_0x3b822a:0x132,_0x1c00f3:0x142,_0x1ef6cf:0x8d,_0x501ad7:0xf9,_0x4a3c59:0xdf,_0x317b9c:0xbe,_0xea283:0xe8,_0x18b1b4:0x580,_0xfdc722:0x514,_0x19754d:0x111,_0x450091:0x11c,_0x34ddf0:0x4f9,_0x4de3c7:0xd7,_0xae77f0:0x50e,_0x3d15be:0x51c,_0x986606:0x53d,_0x40b56d:0x51e,_0x385233:0xe5,_0x33b00f:0xf5,_0x4b0969:0x50e,_0x5b5dc5:0x4f7,_0x3badd2:0x4d8,_0x3bab4c:0xda,_0x6fa51f:0x12a,_0x36e4b5:0xee,_0x2ee495:0x4e5,_0x16c400:0x50f,_0x13234d:0x529,_0x319c77:0x567,_0x54d984:0x58b,_0x1edebb:0x58a,_0x56bc39:0x117,_0x2af62c:0x513,_0x54cfdf:0x169,_0x163f0c:0x149,_0x2020b2:0x512,_0x5c187d:0x4b8,_0x3a9ad1:0xe8,_0x23082c:0x10f,_0x12735b:0x526,_0x465904:0x102,_0x440549:0xd8,_0x35a79d:0xa9,_0x10b1bb:0xa6,_0x37041a:0x55e,_0x37ecea:0x589,_0x8bbc9f:0x57f,_0x5c2954:0x4f3,_0x146ee5:0x50b,_0x467676:0x4dd,_0xcb322d:0x4be,_0x285aa4:0x510,_0x2e47cb:0x551,_0x24e5b6:0x7f,_0x4ad468:0x552,_0x5c99cc:0x525,_0x1eb4ef:0xb4,_0x26d4a2:0x4f7,_0x232bc5:0x4cf,_0x5336f4:0x505,_0x463b37:0x558,_0x4aad79:0x55c,_0xd65f96:0x549,_0xf0340d:0x57b,_0x19d184:0x54a,_0x17b0ca:0x585,_0x17bb7a:0x12b,_0x495c5a:0x528,_0x21c3b3:0x505,_0x193d43:0x14f,_0x147d57:0x158,_0x582e72:0x4f6,_0x3968fa:0x4e3,_0x151792:0x51e,_0x5f6d77:0xef,_0x430122:0x116,_0x25b30c:0xdf,_0x31c39e:0x102,_0x134309:0xb0,_0x1dad11:0x50f,_0x335737:0x52c,_0x18b599:0xc3,_0x4a69f5:0x145,_0x5bfd2a:0x131,_0x4a0128:0xfe,_0x269399:0x537,_0x802cea:0x4df,_0x5c420d:0x51a,_0x1ff3a3:0x4cd,_0x5ec756:0xe6,_0x73c883:0xf4,_0x37150d:0xcf,_0x383a4f:0x516,_0x303123:0x4cc,_0x8c4622:0x11d,_0x4eea6d:0xee,_0x50b75a:0x524,_0x301c1c:0x522,_0x579d5a:0x77,_0x262edb:0x98,_0x294583:0xea,_0x1198cd:0x52a,_0x2c4519:0x4d4,_0xb09830:0x587,_0x7bc508:0x513,_0x1b399c:0x154,_0x366189:0xf8,_0x47824f:0x5b1,_0x159c30:0x58e,_0x51a649:0x102,_0x2c84b5:0x11d,_0x10e123:0xa9,_0x3dd460:0xab,_0x5a9184:0x513,_0x55dd99:0x534,_0x4d2d82:0x16e,_0x522f69:0x501,_0x303ed2:0x9f},_0x276b17={_0x1f7fe5:0x14b,_0x26c293:0x167,_0x24516c:0x64b},_0x5e2fd1={_0x337d6a:0xee};function _0x9ef95d(_0x2862f4,_0x321389,_0x3ae57b,_0x4ef1f4){return _0x45a205(_0x2862f4-_0x5e2fd1._0x337d6a,_0x321389-0xd6,_0x2862f4- -0x3b,_0x3ae57b);}function _0x4fd5a9(_0x4f7ece,_0xb29b5f,_0xd36ba9,_0x5b2879){return _0x45a205(_0x4f7ece-_0x276b17._0x1f7fe5,_0xb29b5f-_0x276b17._0x26c293,_0x4f7ece- -_0x276b17._0x24516c,_0xb29b5f);}const _0x271d03={'PwnCR':function(_0x30500a,_0x1abcd7){return _0x30500a===_0x1abcd7;},'MJrHg':_0x9ef95d(_0x48ad8f._0x3fb849,0x523,_0x48ad8f._0x22fbe1,_0x48ad8f._0x409f38)+'s\x20must\x20be\x20'+'a\x20non-empt'+_0x9ef95d(_0x48ad8f._0x37def2,_0x48ad8f._0x3c28ec,_0x48ad8f._0x22edfc,0x52c),'DXDLw':_0x4fd5a9(-0x137,-0x101,-0x10e,-_0x48ad8f._0x1f6b67)+'ound','cabJB':_0x4fd5a9(-0xc2,-0x7e,-_0x48ad8f._0x47481f,-0xae)+'t','ScHPj':_0x4fd5a9(-_0x48ad8f._0x5d662c,-_0x48ad8f._0x51f64c,-0x143,-_0x48ad8f._0x29b6dc)+'e','oIMey':function(_0xc0c6ee,_0x12a180){return _0xc0c6ee!==_0x12a180;},'yEdlj':_0x9ef95d(_0x48ad8f._0x4ee2d7,_0x48ad8f._0x4da2e,_0x48ad8f._0x1433aa,_0x48ad8f._0x20d816),'RhAsm':_0x9ef95d(_0x48ad8f._0x1b6028,0x592,_0x48ad8f._0x48051f,_0x48ad8f._0x3d5e51),'tXunR':function(_0x2258bf,_0x4b9c30){return _0x2258bf(_0x4b9c30);},'jlUCV':function(_0x55eb75,_0x2decbd){return _0x55eb75!==_0x2decbd;},'FsPTB':function(_0x327a11,_0x201073){return _0x327a11!==_0x201073;},'ofRiT':function(_0x163644,_0x5415b9){return _0x163644===_0x5415b9;},'EQIBG':_0x9ef95d(0x54c,0x57f,0x559,0x55c),'VicJI':function(_0x2692cb,_0x46df8d){return _0x2692cb>_0x46df8d;},'mYvsK':function(_0x33fd69,_0x3b7ff5){return _0x33fd69===_0x3b7ff5;},'PHLor':_0x4fd5a9(-_0x48ad8f._0x424601,-0xf6,-_0x48ad8f._0xd700d7,-_0x48ad8f._0x36733d),'ubOqj':_0x4fd5a9(-0x132,-_0x48ad8f._0x44fd67,-_0x48ad8f._0x50dfde,-_0x48ad8f._0x29e895)+_0x4fd5a9(-_0x48ad8f._0x12951b,-0x65,-0xa8,-0xe3),'RHEfZ':function(_0xdd649b,_0x4b7e9e){return _0xdd649b===_0x4b7e9e;},'StlvN':_0x4fd5a9(-_0x48ad8f._0x17c00d,-_0x48ad8f._0x1060ad,-0xad,-_0x48ad8f._0x2ebc78),'mfrUP':'Internal\x20s'+'erver\x20erro'+'r'};try{if(_0x271d03[_0x4fd5a9(-_0x48ad8f._0x1bfb99,-0xb1,-_0x48ad8f._0x1a44dc,-0xe3)](_0x271d03[_0x9ef95d(0x4e6,_0x48ad8f._0x3a62aa,0x4d8,0x4e2)],_0x271d03['RhAsm'])){const _0x3a54f4=await _0x271d03[_0x4fd5a9(-_0x48ad8f._0x36637f,-_0x48ad8f._0x1636aa,-0xa8,-0x108)](getRoleById,_0x30915b[_0x4fd5a9(-_0x48ad8f._0xd700d7,-_0x48ad8f._0x276104,-_0x48ad8f._0x5a8f55,-0xb2)]['id']);if(!_0x3a54f4){const _0xcc92b7={};return _0xcc92b7[_0x4fd5a9(-0x11d,-_0x48ad8f._0x2c5a34,-0x153,-_0x48ad8f._0x4ce264)]=_0x271d03[_0x4fd5a9(-0x100,-0xd7,-0x137,-0xe2)],_0x83ed7d[_0x4fd5a9(-_0x48ad8f._0xa0b214,-_0x48ad8f._0x4c12b8,-0xd1,-_0x48ad8f._0x5aa4d5)](-0x2478+-0x71e+0x3*0xf0e)[_0x4fd5a9(-0xbe,-_0x48ad8f._0x54a2e0,-_0x48ad8f._0xb09952,-0xd2)](_0xcc92b7);}const _0x49f038={};if(_0x271d03[_0x4fd5a9(-_0x48ad8f._0x5e9522,-_0x48ad8f._0xb2da89,-0x9c,-_0x48ad8f._0x2a76cf)](_0x30915b['body'][_0x4fd5a9(-0xdc,-0xf5,-_0x48ad8f._0x3d8f16,-0xd2)],undefined))_0x49f038[_0x9ef95d(0x534,0x545,_0x48ad8f._0x304844,0x4f8)]=_0x30915b[_0x4fd5a9(-0x102,-0x126,-_0x48ad8f._0x5d8443,-0x11c)][_0x4fd5a9(-_0x48ad8f._0x3488a7,-0x9c,-_0x48ad8f._0x5e71bb,-0xc0)];if(_0x271d03[_0x4fd5a9(-0x10a,-_0x48ad8f._0x22e67b,-_0x48ad8f._0x186580,-0xfb)](_0x30915b['body'][_0x4fd5a9(-_0x48ad8f._0x259fc7,-0x137,-0xdb,-0x165)+'n'],undefined))_0x49f038[_0x9ef95d(0x4ef,0x535,0x506,0x4e7)+'n']=_0x30915b[_0x9ef95d(_0x48ad8f._0xa15f5,_0x48ad8f._0x5e80c0,_0x48ad8f._0x483dc2,0x4fb)][_0x4fd5a9(-0x121,-_0x48ad8f._0x41b4b7,-0x10c,-_0x48ad8f._0x4de122)+'n'];if(_0x271d03[_0x4fd5a9(-_0x48ad8f._0x3f1ad8,-_0x48ad8f._0x3748a7,-0x115,-0x121)](_0x30915b[_0x9ef95d(0x50e,0x4fa,_0x48ad8f._0x4b3061,_0x48ad8f._0x538382)]['permission'+'s'],undefined)){if(_0x271d03[_0x4fd5a9(-0xb7,-_0x48ad8f._0x403605,-_0x48ad8f._0x22e67b,-0xca)](_0x271d03['EQIBG'],_0x4fd5a9(-_0x48ad8f._0x3eedaf,-0xd8,-_0x48ad8f._0x1e6cc4,-_0x48ad8f._0x4b3fb4))){if(!_0x3f6d29[_0x4fd5a9(-0xca,-_0x48ad8f._0x31e57f,-_0x48ad8f._0x57c8a8,-_0x48ad8f._0x13c433)](_0x48e3db[_0x9ef95d(_0x48ad8f._0x58e449,0x538,_0x48ad8f._0x5b2ee8,0x527)][_0x4fd5a9(-0xea,-0xe9,-0xb6,-_0x48ad8f._0x23428d)+'s'])||_0x271d03[_0x9ef95d(0x51a,_0x48ad8f._0x4b690e,_0x48ad8f._0x2767ec,0x564)](_0x133c5b[_0x9ef95d(0x50e,_0x48ad8f._0xc03059,_0x48ad8f._0x44b28a,0x4e3)][_0x4fd5a9(-0xea,-0x11f,-0xfd,-_0x48ad8f._0x4b2345)+'s'][_0x9ef95d(0x4db,0x519,0x4d4,0x4f0)],0x2614+0x12e8+0x1c7e*-0x2)){const _0x2caf62={};return _0x2caf62[_0x9ef95d(0x4f3,0x4bc,0x524,0x50e)]=_0x4fd5a9(-_0x48ad8f._0x3e152b,-_0x48ad8f._0xaf6bf6,-0xec,-0xe7)+'t',_0x2caf62[_0x9ef95d(_0x48ad8f._0x4010ec,_0x48ad8f._0x30d122,_0x48ad8f._0x35c7ee,0x5a6)]=_0x271d03[_0x4fd5a9(-0x134,-_0x48ad8f._0x88a59f,-_0x48ad8f._0x310b18,-0x16a)],_0x28e1a9[_0x4fd5a9(-0xb8,-_0x48ad8f._0x466eac,-0xf9,-0x81)](-0xb1e*-0x1+-0x853*0x2+0x718)[_0x9ef95d(_0x48ad8f._0x577ee9,0x519,_0x48ad8f._0x3d5e51,0x529)](_0x2caf62);}const _0x5c47e1=_0x62ecf9[_0x4fd5a9(-0x102,-0x10e,-0xe9,-_0x48ad8f._0x518b2a)][_0x4fd5a9(-0xea,-_0x48ad8f._0x300cb7,-0xa2,-_0x48ad8f._0xbc599b)+'s']['filter'](_0x4a63c3=>!_0x34ee96(_0x4a63c3));if(_0x5c47e1[_0x4fd5a9(-0x135,-_0x48ad8f._0x3b822a,-_0x48ad8f._0x1c00f3,-0x13f)]>-0x347+-0x6*0x679+0x2a1d*0x1)return _0x740997[_0x4fd5a9(-_0x48ad8f._0xa0b214,-_0x48ad8f._0x1ef6cf,-_0x48ad8f._0x501ad7,-_0x48ad8f._0x4a3c59)](0xe*-0x1a5+0x1*-0x1c6e+-0x24*-0x179)[_0x4fd5a9(-_0x48ad8f._0x317b9c,-0x104,-_0x48ad8f._0xea283,-0xef)]({'error':_0x9ef95d(0x54e,0x585,_0x48ad8f._0x18b1b4,0x525)+'t','message':_0x9ef95d(0x528,0x520,0x56f,_0x48ad8f._0xfdc722)+_0x4fd5a9(-_0x48ad8f._0x29b6dc,-_0x48ad8f._0x19754d,-_0x48ad8f._0x450091,-0x118)+'\x20'+_0x5c47e1[_0x9ef95d(0x4f6,0x4fd,_0x48ad8f._0x34ddf0,0x4ee)](',\x20')});_0x503163[_0x4fd5a9(-0xea,-0xac,-0xa2,-_0x48ad8f._0x4de3c7)+'s']=_0x13821e[_0x9ef95d(_0x48ad8f._0xae77f0,_0x48ad8f._0x3d15be,0x547,_0x48ad8f._0x986606)][_0x9ef95d(0x526,_0x48ad8f._0x40b56d,0x53d,0x565)+'s'];}else{if(!Array[_0x4fd5a9(-0xca,-_0x48ad8f._0x385233,-_0x48ad8f._0x33b00f,-_0x48ad8f._0x44fd67)](_0x30915b[_0x9ef95d(_0x48ad8f._0x4b0969,0x4c9,_0x48ad8f._0x5b5dc5,_0x48ad8f._0x3badd2)]['permission'+'s'])||_0x30915b[_0x4fd5a9(-0x102,-_0x48ad8f._0x3bab4c,-_0x48ad8f._0x3748a7,-_0x48ad8f._0x6fa51f)][_0x4fd5a9(-0xea,-0xf6,-0xe8,-_0x48ad8f._0x36e4b5)+'s']['length']===-0x248f+-0xc8a+-0x1*-0x3119){const _0x1e274a={};return _0x1e274a['error']=_0x271d03[_0x9ef95d(_0x48ad8f._0x2ee495,_0x48ad8f._0x16c400,0x4c4,_0x48ad8f._0x13234d)],_0x1e274a[_0x9ef95d(_0x48ad8f._0x319c77,0x520,_0x48ad8f._0x54d984,_0x48ad8f._0x1edebb)]=_0x271d03[_0x4fd5a9(-0x134,-_0x48ad8f._0x56bc39,-_0x48ad8f._0x1636aa,-0x11d)],_0x83ed7d[_0x4fd5a9(-0xb8,-0x87,-0x7a,-0xbb)](-0x607*-0x6+0x907*-0x4+0xc1*0x2)['json'](_0x1e274a);}const _0x449c18=_0x30915b['body']['permission'+'s'][_0x9ef95d(0x511,0x537,_0x48ad8f._0x2af62c,0x4f1)](_0x3f53e7=>!isValidPermission(_0x3f53e7));if(_0x271d03['VicJI'](_0x449c18[_0x4fd5a9(-0x135,-0xfa,-_0x48ad8f._0x54cfdf,-_0x48ad8f._0x163f0c)],-0x2*-0x1024+0x1f5a+-0x3fa2))return _0x83ed7d['status'](0x3*-0xa3d+0xe2*-0x17+0x3495)[_0x9ef95d(0x552,0x560,0x57f,0x550)]({'error':_0x271d03[_0x9ef95d(_0x48ad8f._0x2ee495,0x4f4,_0x48ad8f._0x2020b2,_0x48ad8f._0x5c187d)],'message':_0x4fd5a9(-_0x48ad8f._0x3a9ad1,-0x10e,-_0x48ad8f._0x23082c,-0x10a)+_0x4fd5a9(-0x11c,-0xff,-0xd4,-_0x48ad8f._0x259fc7)+'\x20'+_0x449c18['join'](',\x20')});_0x49f038[_0x9ef95d(_0x48ad8f._0x12735b,0x547,0x52a,0x527)+'s']=_0x30915b[_0x4fd5a9(-_0x48ad8f._0x465904,-0x10b,-_0x48ad8f._0x440549,-0x113)]['permission'+'s'];}}const _0x1049b1=await updateRole(_0x3a54f4['id'],_0x49f038),_0x74803b={};return _0x74803b[_0x4fd5a9(-_0x48ad8f._0x35a79d,-0xf2,-0xf0,-_0x48ad8f._0x10b1bb)]='Role\x20updat'+_0x9ef95d(_0x48ad8f._0x37041a,0x543,_0x48ad8f._0x37ecea,_0x48ad8f._0x8bbc9f)+'fully',_0x74803b['role']=_0x1049b1,_0x83ed7d['json'](_0x74803b);}else{const _0x1137a2={};return _0x1137a2[_0x9ef95d(_0x48ad8f._0x5c2954,_0x48ad8f._0x146ee5,_0x48ad8f._0x467676,_0x48ad8f._0xcb322d)]=_0x271d03[_0x9ef95d(_0x48ad8f._0x285aa4,_0x48ad8f._0x2e47cb,0x51d,0x527)],_0x2f8c7e[_0x4fd5a9(-0xb8,-_0x48ad8f._0x24e5b6,-0xdd,-0x75)](0x9e9+-0x1*0x1947+0x10f2)[_0x9ef95d(_0x48ad8f._0x4ad468,0x572,0x51c,_0x48ad8f._0x5c99cc)](_0x1137a2);}}catch(_0x2e16f5){if(_0x271d03[_0x4fd5a9(-0xb4,-_0x48ad8f._0x1eb4ef,-0xbe,-_0x48ad8f._0x403605)](_0x271d03[_0x9ef95d(0x515,_0x48ad8f._0x26d4a2,_0x48ad8f._0x232bc5,_0x48ad8f._0x5336f4)],'bmMWS'))return _0x4bcc86[_0x9ef95d(_0x48ad8f._0x463b37,_0x48ad8f._0x4aad79,0x58d,_0x48ad8f._0xd65f96)](0x2*0x11ad+-0x1ab1+-0x719)[_0x9ef95d(0x552,_0x48ad8f._0xf0340d,_0x48ad8f._0x19d184,_0x48ad8f._0x17b0ca)]({'error':_0x271d03[_0x4fd5a9(-_0x48ad8f._0x17bb7a,-0x116,-_0x48ad8f._0x17c00d,-0x16a)],'message':_0x9ef95d(_0x48ad8f._0x495c5a,0x551,_0x48ad8f._0x21c3b3,0x4f5)+_0x4fd5a9(-_0x48ad8f._0x29b6dc,-_0x48ad8f._0x193d43,-_0x48ad8f._0x147d57,-0x115)+'\x20'+_0x596459[_0x9ef95d(_0x48ad8f._0x582e72,_0x48ad8f._0x3968fa,_0x48ad8f._0x5e80c0,_0x48ad8f._0x151792)](',\x20')});else{if(_0x2e16f5[_0x4fd5a9(-0xa9,-_0x48ad8f._0x403605,-0xd2,-0xa1)][_0x4fd5a9(-_0x48ad8f._0x5f6d77,-0xd9,-_0x48ad8f._0x430122,-0xbd)](_0x271d03['ubOqj'])){if(_0x271d03[_0x9ef95d(0x520,0x51d,0x54c,0x527)](_0x4fd5a9(-_0x48ad8f._0x25b30c,-0x9a,-_0x48ad8f._0x31c39e,-_0x48ad8f._0x134309),_0x271d03[_0x9ef95d(0x522,0x4de,_0x48ad8f._0x1dad11,_0x48ad8f._0x335737)]))return _0xf10e5f['status'](0x106*-0xf+0x912+0x1*0x7e1)['json']({'error':_0x271d03[_0x4fd5a9(-0xfd,-0xf0,-0xfd,-0x135)],'message':_0x4fd5a9(-0x101,-_0x48ad8f._0x18b599,-_0x48ad8f._0x4a69f5,-_0x48ad8f._0x5bfd2a)+_0x2cf70e[_0x4fd5a9(-0xdc,-_0x48ad8f._0x4a0128,-0x9f,-0xd8)]+(_0x9ef95d(0x50b,_0x48ad8f._0x269399,0x4ed,_0x48ad8f._0xfdc722)+_0x9ef95d(_0x48ad8f._0x802cea,_0x48ad8f._0x5c420d,_0x48ad8f._0x1ff3a3,0x51f))+_0xbbe061['length']+('\x20binding(s'+_0x4fd5a9(-_0x48ad8f._0x5ec756,-_0x48ad8f._0x73c883,-0xc8,-_0x48ad8f._0x37150d)+'ot\x20be\x20dele'+_0x9ef95d(0x504,0x545,_0x48ad8f._0x383a4f,_0x48ad8f._0x303123)),'bindings':_0x351024['map'](_0x4f1159=>({'id':_0x4f1159['id'],'resource_type':_0x4f1159[_0x9ef95d(0x4e7,0x52d,0x50e,0x4cf)+_0x4fd5a9(-0x127,-0x10f,-0x137,-0x160)],'resource_id':_0x4f1159[_0x4fd5a9(-0x117,-0x104,-0x10e,-0x122)+'d'],'subject_type':_0x4f1159[_0x4fd5a9(-0xd9,-0xa2,-0x92,-0xc2)+'pe'],'subject_id':_0x4f1159['subject_id']}))});else{const _0x43a275={};return _0x43a275[_0x4fd5a9(-_0x48ad8f._0x8c4622,-0x148,-_0x48ad8f._0x4eea6d,-_0x48ad8f._0x193d43)]=_0x9ef95d(_0x48ad8f._0x50b75a,_0x48ad8f._0x301c1c,0x545,0x559),_0x43a275[_0x9ef95d(0x567,0x541,0x571,0x53b)]=_0x2e16f5[_0x4fd5a9(-0xa9,-_0x48ad8f._0xaf6bf6,-_0x48ad8f._0x579d5a,-_0x48ad8f._0x262edb)],_0x83ed7d[_0x4fd5a9(-0xb8,-0xed,-_0x48ad8f._0x294583,-0x7f)](0x8d5+0x2dc*0x2+0x67a*-0x2)['json'](_0x43a275);}}if(_0x2e16f5[_0x9ef95d(0x503,_0x48ad8f._0x1198cd,0x52f,_0x48ad8f._0x2c4519)]===_0x9ef95d(0x55a,0x54c,_0x48ad8f._0xb09830,0x516)){const _0x58270f={};return _0x58270f[_0x9ef95d(0x4f3,0x4d8,0x50d,_0x48ad8f._0x7bc508)]=_0x271d03[_0x4fd5a9(-0x12b,-_0x48ad8f._0x1b399c,-_0x48ad8f._0x366189,-0x100)],_0x58270f[_0x9ef95d(0x567,_0x48ad8f._0x47824f,_0x48ad8f._0x159c30,0x576)]=_0x2e16f5['message'],_0x83ed7d['status'](0x1936+0x879+-0x201f)[_0x4fd5a9(-0xbe,-_0x48ad8f._0x1636aa,-0x78,-_0x48ad8f._0x51a649)](_0x58270f);}const _0x4c8b62={};_0x4c8b62[_0x4fd5a9(-_0x48ad8f._0x2c84b5,-0x108,-0x10c,-0x148)]=_0x2e16f5[_0x4fd5a9(-_0x48ad8f._0x10e123,-0xb4,-_0x48ad8f._0x3dd460,-_0x48ad8f._0x440549)],logger[_0x9ef95d(0x4f3,_0x48ad8f._0x5a9184,0x4d0,_0x48ad8f._0x55dd99)](_0x4fd5a9(-0x126,-0x11c,-_0x48ad8f._0x4d2d82,-0x108)+'ting\x20role',_0x4c8b62);const _0x294b9c={};return _0x294b9c['error']=_0x271d03[_0x9ef95d(0x54b,0x53b,0x593,_0x48ad8f._0x522f69)],_0x83ed7d[_0x4fd5a9(-_0x48ad8f._0xa0b214,-0xe8,-0xaf,-_0x48ad8f._0x303ed2)](0x13c3+0x1cd1+-0x2ea0)[_0x4fd5a9(-0xbe,-_0x48ad8f._0x424601,-_0x48ad8f._0x10b1bb,-0xb9)](_0x294b9c);}}}),router[_0x29e1a7(-0x4d,-0x3d,-0x76,-0x35)](_0x29e1a7(-0x68,-0x66,-0xa4,-0x6d),requirePermission(_0x29e1a7(-0x47,-0x8e,-0x69,-0xcd)+_0x29e1a7(-0xe6,-0xad,-0xe6,-0x7a)),async(_0x4cf6b8,_0x4c4998)=>{const _0xec2d72={_0x45184a:0x29b,_0x486c8e:0x251,_0x43302b:0x12,_0x15a6c0:0x1e,_0x17f967:0x240,_0x58df31:0x231,_0x5dbd3c:0x234,_0x250476:0x26d,_0x37903e:0x289,_0x56dbf4:0x248,_0x4cd593:0x9,_0x39b02a:0x3,_0x6ad09:0x2b5,_0x9fe4e8:0x2c4,_0x38111a:0x2e9,_0x1f2e43:0x2f1,_0xe0920e:0x50,_0x4000d4:0x5,_0x24b302:0x14,_0x1caac9:0x2ac,_0x5f3ed8:0x27e,_0x487f72:0x283,_0x385727:0x13,_0x24fc14:0x2b,_0x579f9d:0x19,_0x3164ee:0x1c,_0x3c359a:0x1a,_0x2609bb:0x2b1,_0xf7f59:0x2e5,_0x58601e:0x25,_0x27fff8:0x27,_0x29ea39:0xc,_0x193dcc:0x67,_0x5a4c47:0x44,_0x24bdbb:0xd,_0x430934:0x22,_0x2307bf:0xa,_0x5ce8c9:0x47,_0x3bf2b0:0x80,_0x32b6d2:0x62,_0x225786:0x3c,_0x18c7f3:0x64,_0x4edc8d:0x2ac,_0x31955b:0x28f,_0x49bf25:0x2b4,_0x5d1244:0x2b2,_0x13a8b7:0x2b3,_0x4ff4f9:0x247,_0x2bad4a:0x273,_0x1053a6:0x2bb,_0x48325f:0x2fc,_0x2125e8:0x2f7,_0x1eda55:0x2ab,_0xf46d1d:0x255,_0x30774f:0x1f,_0x189a2c:0x2ad,_0x12e1a8:0x25e,_0xacd211:0x15,_0x452706:0x1e,_0x4ba4ed:0x1,_0x1d3977:0x265,_0x52e0e8:0x24a,_0x582ecc:0x280,_0x5ba221:0x22f,_0x5af5ab:0x238,_0x51ac87:0xf,_0xccd737:0x8,_0x16589e:0xf,_0x48ba91:0x9,_0xe8e0f2:0x21,_0x5bd87a:0x1fa,_0x4f43ca:0x279,_0x42cf7b:0x268,_0x42e157:0x1b,_0x4df0b3:0x26,_0x1e3ad6:0x1a,_0x5af35a:0x258,_0x5e0cfa:0x223,_0xe00ce3:0x226,_0xa97096:0x10,_0x2bab20:0x29,_0x34c56e:0x18,_0x3a0809:0x40,_0x7d8c62:0x24,_0x433ca2:0xf,_0x3473d9:0x264,_0x4ea5eb:0x214,_0x2f21f0:0x26b,_0x4f2820:0x291,_0x5aa6b2:0x15,_0x1532c:0x4,_0x46ab1a:0xf,_0x1782d0:0x38,_0x572893:0x2c},_0x8512dd={_0x23a3e3:0x9c},_0x158a89={_0x2b8c0b:0x88},_0x3f2cb={'Nldkj':_0xa4c4c1(0xb,0x45,0x2e,-0x5)+'t','wQudx':'Role\x20not\x20f'+_0xf81b03(0x252,_0xec2d72._0x45184a,_0xec2d72._0x486c8e,0x260),'jQAWn':_0xa4c4c1(_0xec2d72._0x43302b,-_0xec2d72._0x15a6c0,0x21,-0xe),'FQDaa':_0xf81b03(_0xec2d72._0x17f967,_0xec2d72._0x58df31,0x1fb,_0xec2d72._0x5dbd3c)+'e','oIHFJ':function(_0x2fdfe9,_0x27d60f){return _0x2fdfe9(_0x27d60f);},'gdmpl':_0xf81b03(_0xec2d72._0x250476,0x279,_0xec2d72._0x37903e,_0xec2d72._0x56dbf4)+_0xf81b03(0x2b2,0x2c8,0x273,0x26a)+_0xf81b03(0x282,0x25f,0x266,0x271),'AEnpa':_0xf81b03(0x237,0x238,0x272,0x237)+_0xa4c4c1(-_0xec2d72._0x4cd593,-0x4a,-_0xec2d72._0x39b02a,0x27)};function _0xa4c4c1(_0x2e2ef2,_0x9aadf1,_0x39fd6f,_0x41108d){return _0x29e1a7(_0x41108d,_0x2e2ef2-0x5f,_0x39fd6f-0x1c4,_0x41108d-_0x158a89._0x2b8c0b);}function _0xf81b03(_0x15b83b,_0x27f289,_0x5dd0ba,_0x3aaae4){return _0x45a205(_0x15b83b-0xa4,_0x27f289-_0x8512dd._0x23a3e3,_0x15b83b- -0x2e7,_0x5dd0ba);}try{const _0x1fed7c=await getRoleById(_0x4cf6b8[_0xf81b03(_0xec2d72._0x6ad09,_0xec2d72._0x9fe4e8,_0xec2d72._0x38111a,_0xec2d72._0x1f2e43)]['id']);if(!_0x1fed7c){const _0x48bdd7={};return _0x48bdd7[_0xa4c4c1(-_0xec2d72._0xe0920e,-0x8f,-0x44,-0x6d)]=_0x3f2cb[_0xa4c4c1(-_0xec2d72._0x4000d4,-0x20,-_0xec2d72._0x24b302,0x44)],_0x4c4998[_0xf81b03(_0xec2d72._0x1caac9,_0xec2d72._0x5f3ed8,_0xec2d72._0x487f72,0x2d7)](-0x108e+-0x63a+0x185c)['json'](_0x48bdd7);}if(_0x1fed7c[_0xa4c4c1(-_0xec2d72._0x385727,_0xec2d72._0x24fc14,-_0xec2d72._0x579f9d,-_0xec2d72._0x3164ee)]){if(_0x3f2cb[_0xa4c4c1(_0xec2d72._0x3c359a,-_0xec2d72._0x43302b,0x60,-0x2d)]===_0x3f2cb[_0xf81b03(_0xec2d72._0x2609bb,_0xec2d72._0xf7f59,0x26f,0x2b8)]){const _0x1a06e9={};return _0x1a06e9[_0xa4c4c1(-0x50,-0x78,-_0xec2d72._0x58601e,-0x7e)]='Cannot\x20del'+_0xa4c4c1(-_0xec2d72._0x27fff8,-0x4b,-0xd,-_0xec2d72._0x29ea39)+'ined\x20role',_0x1a06e9[_0xa4c4c1(0x24,_0xec2d72._0x193dcc,0x20,_0xec2d72._0x193dcc)]=_0xf81b03(0x263,0x21c,0x21e,0x22e)+_0x1fed7c['name']+(_0xa4c4c1(-_0xec2d72._0x5a4c47,-_0xec2d72._0x24bdbb,-_0xec2d72._0x430934,-0x7a)+'defined\x20ro'+_0xa4c4c1(-_0xec2d72._0x2307bf,-0x3b,-0x11,_0xec2d72._0x43302b)+_0xa4c4c1(-_0xec2d72._0x5ce8c9,-0x7,-_0xec2d72._0x3bf2b0,-_0xec2d72._0x32b6d2)+_0xa4c4c1(-_0xec2d72._0x225786,0x2,-0x3a,-_0xec2d72._0x18c7f3)),_0x4c4998[_0xf81b03(_0xec2d72._0x4edc8d,0x278,_0xec2d72._0x31955b,_0xec2d72._0x49bf25)](0x106*0x2+0x1*0xfea+0x833*-0x2)[_0xf81b03(0x2a6,_0xec2d72._0x5d1244,0x28d,_0xec2d72._0x13a8b7)](_0x1a06e9);}else{const _0x5c748a={};return _0x5c748a[_0xf81b03(_0xec2d72._0x4ff4f9,0x237,_0xec2d72._0x2bad4a,0x26b)]=_0x3f2cb['Nldkj'],_0x5c748a[_0xf81b03(_0xec2d72._0x1053a6,0x2ad,_0xec2d72._0x48325f,_0xec2d72._0x2125e8)]=_0xf81b03(0x27a,0x252,_0xec2d72._0x1eda55,_0xec2d72._0xf46d1d)+_0xa4c4c1(-0x1c,-0x1b,-_0xec2d72._0x30774f,0x29)+_0xf81b03(0x26a,_0xec2d72._0x189a2c,_0xec2d72._0x12e1a8,0x29f)+'y\x20array',_0x7a5877[_0xa4c4c1(_0xec2d72._0xacd211,-_0xec2d72._0x452706,0x14,-0xc)](0x10bb+-0x1*-0x2071+-0x2f9c)[_0xa4c4c1(0xf,_0xec2d72._0x4ba4ed,0x25,0x21)](_0x5c748a);}}const _0x4c41c8=await getBindings(),_0x47c095=_0x4c41c8[_0xf81b03(_0xec2d72._0x1d3977,_0xec2d72._0x52e0e8,0x27e,_0xec2d72._0x582ecc)](_0x17e238=>_0x17e238['role_id']===_0x1fed7c['id']);if(_0x47c095[_0xf81b03(_0xec2d72._0x5ba221,0x20b,0x1ff,_0xec2d72._0x5af5ab)]>0x31*0xc9+-0x1b70+-0xb09)return _0x4c4998[_0xf81b03(0x2ac,0x2c3,0x287,0x2c4)](0x20*-0x61+-0x17c0+-0x2579*-0x1)[_0xa4c4c1(_0xec2d72._0x51ac87,_0xec2d72._0xccd737,-0x16,0x2d)]({'error':_0x3f2cb[_0xa4c4c1(-0x53,-0x94,-0x76,-_0xec2d72._0x5ce8c9)],'message':'The\x20role\x20\x27'+_0x1fed7c[_0xa4c4c1(-_0xec2d72._0x16589e,-0xf,-_0xec2d72._0x48ba91,-0x13)]+(_0xa4c4c1(-0x38,-_0xec2d72._0xe8e0f2,-0x4c,-0x11)+_0xf81b03(0x233,_0xec2d72._0x5bd87a,0x1ea,0x27c))+_0x47c095['length']+(_0xf81b03(_0xec2d72._0x4f43ca,0x277,_0xec2d72._0x42cf7b,0x291)+_0xa4c4c1(-0x19,_0xec2d72._0x42e157,_0xec2d72._0x4df0b3,-0x26)+_0xa4c4c1(-_0xec2d72._0x1e3ad6,_0xec2d72._0x39b02a,-_0xec2d72._0x579f9d,-_0xec2d72._0x4df0b3)+_0xf81b03(_0xec2d72._0x5af35a,0x27b,_0xec2d72._0x5e0cfa,_0xec2d72._0xe00ce3)),'bindings':_0x47c095['map'](_0x419a94=>({'id':_0x419a94['id'],'resource_type':_0x419a94[_0xf81b03(0x23b,0x27d,0x232,0x254)+_0xa4c4c1(-0x5a,-0xa3,-0x3b,-0x53)],'resource_id':_0x419a94[_0xf81b03(0x24d,0x245,0x28b,0x26a)+'d'],'subject_type':_0x419a94[_0xf81b03(0x28b,0x294,0x284,0x2cc)+'pe'],'subject_id':_0x419a94['subject_id']}))});await _0x3f2cb['oIHFJ'](deleteRole,_0x1fed7c['id']);const _0x547c71={};return _0x547c71[_0xa4c4c1(0x24,-0xd,0x2b,-0x14)]=_0x3f2cb[_0xa4c4c1(-_0xec2d72._0xa97096,_0xec2d72._0x2bab20,-0x30,-_0xec2d72._0x34c56e)],_0x4c4998['json'](_0x547c71);}catch(_0xd4a7c7){const _0x4ff5c8={};_0x4ff5c8[_0xa4c4c1(-_0xec2d72._0xe0920e,-0x10,-_0xec2d72._0x3a0809,-0x94)]=_0xd4a7c7[_0xa4c4c1(_0xec2d72._0x7d8c62,-0x1f,-0x4,-_0xec2d72._0x433ca2)],logger[_0xf81b03(0x247,_0xec2d72._0x3473d9,_0xec2d72._0x4ea5eb,_0xec2d72._0x2f21f0)](_0x3f2cb[_0xf81b03(0x24e,0x288,_0xec2d72._0x4f2820,0x257)],_0x4ff5c8);const _0x35f2cd={};return _0x35f2cd[_0xa4c4c1(-_0xec2d72._0xe0920e,-0x23,-0x89,-0x4f)]='Internal\x20s'+'erver\x20erro'+'r',_0x4c4998[_0xa4c4c1(_0xec2d72._0x5aa6b2,_0xec2d72._0x1532c,0x40,0x47)](-0x2c3+0x70a*-0x1+-0xbc1*-0x1)[_0xa4c4c1(_0xec2d72._0x46ab1a,-_0xec2d72._0x1782d0,-0x36,-_0xec2d72._0x572893)](_0x35f2cd);}});export default router;