@profoundlogic/coderflow-server 0.6.5 → 0.6.6

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 (169) hide show
  1. package/dist/coder-server.js +1 -1
  2. package/dist/config.js +1 -1
  3. package/dist/lib/agent-keepalive.js +1 -1
  4. package/dist/lib/agent-models.js +1 -1
  5. package/dist/lib/api-keys.js +1 -1
  6. package/dist/lib/apiKeys.js +1 -1
  7. package/dist/lib/app-server-ports.js +1 -1
  8. package/dist/lib/auto-judge.js +1 -1
  9. package/dist/lib/automation-service.js +1 -1
  10. package/dist/lib/basic-auth.js +1 -1
  11. package/dist/lib/bindings.js +1 -1
  12. package/dist/lib/build-history.js +1 -1
  13. package/dist/lib/build-output-service.js +1 -1
  14. package/dist/lib/build-scheduler.js +1 -1
  15. package/dist/lib/build-service.js +1 -1
  16. package/dist/lib/ca-certificates.js +1 -1
  17. package/dist/lib/claude-oauth-refresh.js +1 -1
  18. package/dist/lib/cli/build.js +1 -1
  19. package/dist/lib/cli/cleanup-users.js +1 -1
  20. package/dist/lib/cli/config-command.js +1 -1
  21. package/dist/lib/cli/config.js +1 -1
  22. package/dist/lib/cli/create-user.js +1 -1
  23. package/dist/lib/cli/grant-admin.js +1 -1
  24. package/dist/lib/cli/init.js +1 -1
  25. package/dist/lib/cli/jira.js +1 -1
  26. package/dist/lib/cli/license.js +1 -1
  27. package/dist/lib/cli/list-roles.js +1 -1
  28. package/dist/lib/cli/list-users.js +1 -1
  29. package/dist/lib/cli/server-manager.js +1 -1
  30. package/dist/lib/cli/set-password.js +1 -1
  31. package/dist/lib/config-migration.js +1 -1
  32. package/dist/lib/container-credential-sync.js +1 -1
  33. package/dist/lib/container-tokens.js +1 -1
  34. package/dist/lib/data-dir.js +1 -1
  35. package/dist/lib/deployment-history.js +1 -1
  36. package/dist/lib/deployment-service.js +1 -1
  37. package/dist/lib/docker-utils.js +1 -1
  38. package/dist/lib/email.js +1 -1
  39. package/dist/lib/emailTemplates.js +1 -1
  40. package/dist/lib/entitlement.js +1 -1
  41. package/dist/lib/external-connections.js +1 -1
  42. package/dist/lib/fetch-utils.js +1 -1
  43. package/dist/lib/git-commit-details-route.js +1 -1
  44. package/dist/lib/git-history-diff-guardrails.js +1 -1
  45. package/dist/lib/git-provider-service.js +1 -1
  46. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  47. package/dist/lib/git-provider-setup/index.js +1 -1
  48. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  49. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  50. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  51. package/dist/lib/git-providers/github-app-provider.js +1 -1
  52. package/dist/lib/git-providers/index.js +1 -1
  53. package/dist/lib/git-providers/provider-factory.js +1 -1
  54. package/dist/lib/git-providers/provider-interface.js +1 -1
  55. package/dist/lib/github-urls.js +1 -1
  56. package/dist/lib/group-objective-linking.js +1 -1
  57. package/dist/lib/ibmi-sync.js +1 -1
  58. package/dist/lib/jira-client.js +1 -1
  59. package/dist/lib/judge-blinding.js +1 -1
  60. package/dist/lib/logger.js +1 -1
  61. package/dist/lib/migration-to-scoped-rbac.js +1 -1
  62. package/dist/lib/model-fetcher.js +1 -1
  63. package/dist/lib/notifications.js +1 -1
  64. package/dist/lib/objective-context.js +1 -1
  65. package/dist/lib/oidc-auth.js +1 -1
  66. package/dist/lib/oidc-device-flow.js +1 -1
  67. package/dist/lib/passwordTokens.js +1 -1
  68. package/dist/lib/permission-resolver.js +1 -1
  69. package/dist/lib/pin-cascade.js +1 -1
  70. package/dist/lib/provider-accounts.js +1 -1
  71. package/dist/lib/provider-oauth.js +1 -1
  72. package/dist/lib/provider-profile.js +1 -1
  73. package/dist/lib/provider-token-refresh.js +1 -1
  74. package/dist/lib/rbac-user-state.js +1 -1
  75. package/dist/lib/request-url.js +1 -1
  76. package/dist/lib/rewind.js +1 -1
  77. package/dist/lib/role-definitions.js +1 -1
  78. package/dist/lib/roles.js +1 -1
  79. package/dist/lib/secrets.js +1 -1
  80. package/dist/lib/setup-repo-git-auth.js +1 -1
  81. package/dist/lib/state-capture.js +1 -1
  82. package/dist/lib/static-files.js +1 -1
  83. package/dist/lib/task-name-format.js +1 -1
  84. package/dist/lib/task-name-generator.js +1 -1
  85. package/dist/lib/task-source-metadata.js +1 -1
  86. package/dist/lib/teams.js +1 -1
  87. package/dist/lib/user-git-oauth.js +1 -1
  88. package/dist/lib/user-git-tokens.js +1 -1
  89. package/dist/lib/users.js +1 -1
  90. package/dist/middleware/requireAuth.js +1 -1
  91. package/dist/middleware/requireInit.js +1 -1
  92. package/dist/middleware/requirePermission.js +1 -1
  93. package/dist/package.json +1 -1
  94. package/dist/playwright.config.js +1 -1
  95. package/dist/playwright.task-terminal.config.js +1 -1
  96. package/dist/routes/apiKeys.js +1 -1
  97. package/dist/routes/auth-oidc.js +1 -1
  98. package/dist/routes/auth.js +1 -1
  99. package/dist/routes/automations.js +1 -1
  100. package/dist/routes/bindings.js +1 -1
  101. package/dist/routes/build.js +1 -1
  102. package/dist/routes/containers.js +1 -1
  103. package/dist/routes/deploy-task.js +1 -1
  104. package/dist/routes/environment-management.js +1 -1
  105. package/dist/routes/environments.js +1 -1
  106. package/dist/routes/external-skills.js +1 -1
  107. package/dist/routes/git-credentials.js +1 -1
  108. package/dist/routes/git-oauth.js +1 -1
  109. package/dist/routes/git-provider-setup.js +1 -1
  110. package/dist/routes/health.js +1 -1
  111. package/dist/routes/jira.js +1 -1
  112. package/dist/routes/objective-management.js +1 -1
  113. package/dist/routes/password.js +1 -1
  114. package/dist/routes/prompt.js +1 -1
  115. package/dist/routes/provider-auth.js +1 -1
  116. package/dist/routes/qa.js +1 -1
  117. package/dist/routes/roles.js +1 -1
  118. package/dist/routes/settings.js +1 -1
  119. package/dist/routes/skill-management.js +1 -1
  120. package/dist/routes/skills.js +1 -1
  121. package/dist/routes/tasks.js +1 -1
  122. package/dist/routes/teams.js +1 -1
  123. package/dist/routes/templates.js +1 -1
  124. package/dist/routes/test-task.js +1 -1
  125. package/dist/routes/test.js +1 -1
  126. package/dist/routes/users.js +1 -1
  127. package/dist/routes/visualizations.js +1 -1
  128. package/dist/scripts/create-user.js +1 -1
  129. package/dist/scripts/migrate-config-to-data-dir.js +1 -1
  130. package/dist/start.js +1 -1
  131. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  132. package/dist/web-ui/public/activity-feed.js +1 -1
  133. package/dist/web-ui/public/activity-formatters.js +1 -1
  134. package/dist/web-ui/public/agent-event-parser.js +1 -1
  135. package/dist/web-ui/public/app.js +1 -1
  136. package/dist/web-ui/public/approve-dialog.js +1 -1
  137. package/dist/web-ui/public/automation-links.js +1 -1
  138. package/dist/web-ui/public/automation-schedule.js +1 -1
  139. package/dist/web-ui/public/comments-widget.js +1 -1
  140. package/dist/web-ui/public/diff-utils.js +1 -1
  141. package/dist/web-ui/public/environments.js +1 -1
  142. package/dist/web-ui/public/feedback-widget.js +1 -1
  143. package/dist/web-ui/public/file-selection-tree.js +1 -1
  144. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  145. package/dist/web-ui/public/git-history.js +1 -1
  146. package/dist/web-ui/public/git-status.js +1 -1
  147. package/dist/web-ui/public/ibmi-file-filter.js +1 -1
  148. package/dist/web-ui/public/index.js +1 -1
  149. package/dist/web-ui/public/login.js +1 -1
  150. package/dist/web-ui/public/markdown-editor.js +1 -1
  151. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  152. package/dist/web-ui/public/modal-maximize.js +1 -1
  153. package/dist/web-ui/public/notifications.js +1 -1
  154. package/dist/web-ui/public/permissions.js +1 -1
  155. package/dist/web-ui/public/pr-dialog.js +1 -1
  156. package/dist/web-ui/public/roles.js +1 -1
  157. package/dist/web-ui/public/server-health.js +1 -1
  158. package/dist/web-ui/public/settings.js +1 -1
  159. package/dist/web-ui/public/setup-password.js +1 -1
  160. package/dist/web-ui/public/skills.js +1 -1
  161. package/dist/web-ui/public/sse-client.js +1 -1
  162. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  163. package/dist/web-ui/public/task.js +1 -1
  164. package/dist/web-ui/public/teams.js +1 -1
  165. package/dist/web-ui/public/terminal.js +1 -1
  166. package/dist/web-ui/public/theme.js +1 -1
  167. package/dist/web-ui/public/users.js +1 -1
  168. package/dist/web-ui/public/variant-grouping.js +1 -1
  169. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x56d7(_0x5adc8b,_0x505250){_0x5adc8b=_0x5adc8b-(0xca0+-0x1a5d*-0x1+0x233*-0x11);const _0x39ff60=_0x1a83();let _0x6f2862=_0x39ff60[_0x5adc8b];if(_0x56d7['jfyVpX']===undefined){var _0x576e24=function(_0x4011d7){const _0x4f1afd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x260514='',_0x272cd4='';for(let _0x16aaa6=0xa2e*-0x2+0x499*0x7+-0x1*0xbd3,_0x191f87,_0x1285fb,_0x51383d=-0x139*0xe+-0x11b6+0x22d4;_0x1285fb=_0x4011d7['charAt'](_0x51383d++);~_0x1285fb&&(_0x191f87=_0x16aaa6%(-0x1d69*0x1+0x86a+0x1e9*0xb)?_0x191f87*(-0x21d8+-0x1a1*0x2+0x255a)+_0x1285fb:_0x1285fb,_0x16aaa6++%(0x1e55+-0x1fa0+-0x1*-0x14f))?_0x260514+=String['fromCharCode'](0x8c5*-0x1+-0x3*0xa18+0xe9*0x2c&_0x191f87>>(-(-0x220+0x822+-0x600)*_0x16aaa6&0x1*0x1d83+0x1328+-0x3*0x1037)):0x1*0x69d+-0x4cc+-0x3*0x9b){_0x1285fb=_0x4f1afd['indexOf'](_0x1285fb);}for(let _0x26f2cb=0xc9*0x1b+-0x1*0x1836+-0x101*-0x3,_0x375c33=_0x260514['length'];_0x26f2cb<_0x375c33;_0x26f2cb++){_0x272cd4+='%'+('00'+_0x260514['charCodeAt'](_0x26f2cb)['toString'](-0x1*0x239+0x13b7+-0x116e))['slice'](-(0x1cbd+-0x6b1*0x3+-0x8*0x115));}return decodeURIComponent(_0x272cd4);};_0x56d7['uzgjRl']=_0x576e24,_0x56d7['cAGTPn']={},_0x56d7['jfyVpX']=!![];}const _0x5ef5db=_0x39ff60[-0x88*0x44+-0x1*0x106b+-0x348b*-0x1],_0x3f53fc=_0x5adc8b+_0x5ef5db,_0x4a1192=_0x56d7['cAGTPn'][_0x3f53fc];return!_0x4a1192?(_0x6f2862=_0x56d7['uzgjRl'](_0x6f2862),_0x56d7['cAGTPn'][_0x3f53fc]=_0x6f2862):_0x6f2862=_0x4a1192,_0x6f2862;}(function(_0x3b099d,_0x50358c){const _0x16f58d={_0x287a53:0xb,_0x3cc5ce:0x2e,_0x69587d:0x325,_0x3cd8e0:0x2f6,_0x33de55:0x2fb,_0x2ace3:0x2f0,_0x37def1:0x308,_0x4f8bd1:0x5b,_0x396eea:0x2d,_0x1205ec:0x37,_0x4808cd:0x2ba,_0x2c6357:0x2e7,_0x3a64d1:0x2d4,_0x463688:0x2bf,_0x5e6fd0:0x30c,_0xb6989e:0x31a,_0x47eb2c:0x2f9,_0x4291eb:0x300,_0x412449:0x312,_0x1e914a:0x47,_0x5b10d2:0x3e},_0x47e34e={_0x54a2d4:0x1ab},_0x161570={_0x47dcd7:0x117},_0x331387=_0x3b099d();function _0x4675c6(_0x3d6dc7,_0x19bfb4,_0x30afa2,_0x529551){return _0x56d7(_0x3d6dc7-_0x161570._0x47dcd7,_0x529551);}function _0x59c1ed(_0x3e2b1c,_0x226c52,_0x5441fe,_0x4b1076){return _0x56d7(_0x4b1076- -_0x47e34e._0x54a2d4,_0x5441fe);}while(!![]){try{const _0x383147=parseInt(_0x59c1ed(0x6,_0x16f58d._0x287a53,-_0x16f58d._0x3cc5ce,0x0))/(0x614*-0x3+-0xad5*0x3+0x17e*0x22)+-parseInt(_0x4675c6(0x2fe,_0x16f58d._0x69587d,_0x16f58d._0x3cd8e0,_0x16f58d._0x33de55))/(-0x1ed9*0x1+-0x1a42+0x1*0x391d)*(parseInt(_0x4675c6(_0x16f58d._0x2ace3,0x30d,0x31a,_0x16f58d._0x37def1))/(-0x20a1*-0x1+0x2704+-0x47a2))+parseInt(_0x59c1ed(_0x16f58d._0x4f8bd1,0x1f,0x4d,_0x16f58d._0x396eea))/(0xe5*-0x1c+0x244d+-0xb3d)*(-parseInt(_0x59c1ed(0x4c,0x2f,0xa,_0x16f58d._0x1205ec))/(0x1*-0x11ec+0x2bd+0xf34))+parseInt(_0x4675c6(_0x16f58d._0x4808cd,_0x16f58d._0x2c6357,_0x16f58d._0x3a64d1,_0x16f58d._0x463688))/(0x118e+0x76c*-0x3+0x4bc)+parseInt(_0x4675c6(0x2e1,0x2b6,0x2f6,_0x16f58d._0x5e6fd0))/(-0x11b9+0x1*-0xe27+0x1fe7*0x1)+-parseInt(_0x4675c6(0x305,0x2ff,_0x16f58d._0xb6989e,_0x16f58d._0x47eb2c))/(0x1*0x1c3f+-0x4c3*0x1+-0x13c*0x13)*(-parseInt(_0x4675c6(0x2e6,_0x16f58d._0x4291eb,0x30e,_0x16f58d._0x412449))/(0x9a2+-0x11d*0x4+0x1*-0x525))+-parseInt(_0x59c1ed(0x21,_0x16f58d._0x1e914a,0x11,_0x16f58d._0x5b10d2))/(-0x9*-0x33d+-0xb5d*-0x3+0x1f99*-0x2);if(_0x383147===_0x50358c)break;else _0x331387['push'](_0x331387['shift']());}catch(_0x441918){_0x331387['push'](_0x331387['shift']());}}}(_0x1a83,0x46bb*0x4+0xf8c9+-0x4adb));import{logger}from'../lib/logger.js';function _0x1a83(){const _0x13e7c3=['DxnLCG','sw52ywXPzcbbua','DgHLBNrPy2f0zq','vK5iC1q','ssbRzxK','ww91ig11C3qGyG','zcbYzxf1zxn0','zgvIDwC','s0nfs04','DgvZDebLEgfTCa','BguUy29T','vgvZDcbvC2vY','zwqGqvbjigTLEq','ntmXndC1rxjuufLR','CKTovMW','EhftDM8','Bxb0','DgvKvMLH','mty4odyWn0PirvHrCa','quPwteq','svj1DM0','igLZigLUDMfSAq','zxjYB3i','Dhj1zq','yxv0Ag9YAxPHDa','Aw4GCgvYBwLZCW','qxv0AgvUDgLJyq','mtCYEhPUEwvp','owfks2fdAW','BMfTzq','Cgf0Aa','ALftyLe','DxnLCKLK','Aw9UCW','u3zfs0i','C29SDMvYlMPZ','y2vvrfi','otuWnwfhDM1usG','BLL3rhi','DgLVBIbYzxf1Aq','z1ndA1G','EfnWC3q','ndaWmZb3D1vjELm','qvbjigTLEsbHDq','mtiZmdmYmen1D2vnrW','zsbSB2DNzwqGAq','sxDgDu8','tK9erv9ftLy','reLtqujmrv9bvq','ohjKtePgvq','AxnZAw9UignOzq','ELvREu4','Bwv0Ag9K','tgvJALG','rMfPBgvKihrVia','CMvXDwLYzwq','yxr0zw1WDa','vgHLihbYB3zPza','rM9YyMLKzgvU','qur0A3G','yxbPx2TLEq','D2fYBG','DgvZDa','CMvK','DxnLCM5HBwu','BIb0BYbHy2nLCW','ANnVBG','C3nOx3vZzxjUyq','mJuYnJz2rKnkqNC','yNzOy08','C3rHDhvZ','vvnOz3a','zw1HAwW','Dur1BLO','DMvYAwz5igfKBq','wvPerK4','mte0mde1q1bduejk','zxj2zxiGzxjYBW','vhD6rNK','sgHfre4','C3vIC3rYAw5N','zhDmq3a','AgvHzgvYCW','qNzxBvG','zguGysb2ywXPza','Aw4GywnJzxnZia','yxv0AgvUDgLJyq','zw52','C2vZC2LVBG','BwvZC2fNzq','B3vYy2u','vw5HDxrOB3jPEG','AvHHqLC','DgvZDc11C2vY'];_0x1a83=function(){return _0x13e7c3;};return _0x1a83();}import{validateApiKey}from'../lib/apiKeys.js';import{findUserById}from'../lib/users.js';export async function requireAuth(_0x110f0f,_0x2f9462,_0x4c9e96){const _0x44a490={_0x76b2e6:0x110,_0x213f03:0xed,_0x54eaf0:0xff,_0x33fa3f:0x46b,_0x2cbf61:0x4a3,_0x16c33a:0x492,_0x138838:0x4a3,_0x5296af:0x4d1,_0x4ad26d:0x476,_0x2fa810:0x4a2,_0x403731:0x4be,_0x41e0fe:0x4d7,_0x325f8c:0x4dd,_0x5d6723:0xe6,_0x441757:0x495,_0xb175d6:0x4ab,_0xaf4ac8:0x4b3,_0x56b280:0x120,_0x61059b:0x101,_0x287789:0xca,_0x56199f:0x103,_0x2f2b4c:0x11b,_0x1d9cdf:0x4a9,_0x1733d2:0x4c7,_0x4f4aea:0x49e,_0x38254f:0x4b4,_0x43eabf:0x112,_0x1341fb:0xe4,_0x17ad3f:0xf1,_0x504069:0xfc,_0x47ce39:0x48f,_0x502d27:0xfc,_0x283252:0x4a8,_0x493271:0x11a,_0x35c98f:0x119,_0x4d84f5:0x12c,_0x33a0ab:0x50e,_0x5c55b8:0x4d6,_0x55868f:0x116,_0x1119e3:0xdf,_0x208ded:0xd0,_0x55e802:0x4bc,_0x20787f:0x4c6,_0x20db87:0x4a1,_0x428075:0x4c8,_0x380468:0x481,_0x1b9e23:0x49c,_0x459555:0x150,_0x3642db:0x4ad,_0x12b15e:0x492,_0x4f2b3b:0x4a4,_0x314531:0x4b2,_0x28bd2a:0x4d0,_0x56de61:0x4c9,_0x3ca8d8:0xed,_0x48d413:0x507,_0x8b0367:0x4ac,_0x33dc8f:0x4da,_0x4d8e67:0x48e,_0x42b71f:0x490,_0x5e9b80:0x4a5,_0x1f69c5:0x4ae,_0x3e59ea:0x4bb,_0x451f89:0x4a3,_0x50287e:0x115,_0x523d06:0x4b6,_0x1476f7:0x4e7,_0x7daf71:0x4aa,_0x324732:0x111,_0x409771:0x489,_0x1e3476:0x4bb,_0x37414d:0x494,_0x23d07e:0xf1,_0xfcbbd:0xea,_0x2d29c0:0x4ab,_0x15517c:0x4c0,_0x39e205:0x4d0,_0x3d26fb:0x108,_0x35718a:0x125,_0x3755ff:0x48a,_0x14a175:0xd4,_0x57ca9e:0x4f6,_0x179ae8:0x4be,_0xe81a0d:0xe3,_0x3bafe7:0x11c,_0x5de609:0x4e6,_0x23ced2:0x130,_0x4ed639:0x131,_0x48d790:0x13a,_0x44032b:0x11f,_0x29eabf:0x138,_0x5ba931:0x4d4,_0x2ff716:0x11d,_0x4911ef:0xe7,_0xdb35d3:0x114,_0x29a070:0xf8,_0x208107:0x49f,_0x2cd22f:0x4c1,_0x34498a:0x47e,_0xf605fc:0x107,_0x5f549a:0x138,_0x205a49:0x12b,_0x2c2ea7:0x10b,_0x2cc4b2:0x4cf,_0x3f1627:0x4c3,_0x56833f:0x106,_0xa1fd60:0x105,_0x1d22c8:0x10f,_0x4384a0:0x4b2,_0x3a641b:0x4cf,_0x3bdec0:0x4ac,_0x47a027:0xef,_0x1c3e44:0xce,_0x5caddf:0xdc,_0x410daf:0x47f,_0x42d6df:0x477,_0x276871:0x494,_0x47dade:0x487,_0x35cf53:0x4b6,_0xd749d3:0x4a0,_0x486734:0xf2,_0x1d1d0b:0x105,_0x10f3ca:0xe5,_0x65c3c5:0x115,_0x7757a2:0x117,_0x3c7857:0x117,_0x3891a9:0x131,_0x5b532b:0x4b9,_0x36d3fb:0x4d3,_0x41e443:0x4e4,_0x3ed8c6:0x4af,_0x223c9d:0x4cb,_0x55fd71:0x4bc,_0x5be212:0x4a9,_0x520fce:0xf1,_0x574617:0xe4,_0x45130f:0xc3,_0x30ee6f:0xfb,_0xf22764:0x4a5,_0x542d2c:0x4a0,_0x5c2ae9:0x10e,_0x1e903d:0xe5,_0x166443:0xdb,_0x5250f9:0x113,_0x275a87:0x103,_0x415027:0xf0,_0x2a7db8:0x127,_0x7a37f5:0x4b7,_0xdb56b5:0x4ae,_0x4491bf:0xf5,_0x42d325:0xd2,_0x32a67e:0x10d,_0x2d4507:0xe8,_0x523e96:0x493,_0x492813:0xf9,_0x252ed4:0x123,_0x487f33:0x479,_0x45f73f:0x4be,_0x429090:0x496},_0x834399={_0x3c6b86:0x2f5};function _0x28b175(_0x38220e,_0x5d03c0,_0x2c604d,_0x3e2576){return _0x56d7(_0x38220e- -0x2cc,_0x2c604d);}const _0x1ec5b0={'BvWmX':function(_0x35e5d9,_0x2f003c){return _0x35e5d9===_0x2f003c;},'IRuvm':_0x28b175(-_0x44a490._0x76b2e6,-_0x44a490._0x213f03,-0x104,-_0x44a490._0x54eaf0),'SvEKB':_0x1cbb64(_0x44a490._0x33fa3f,_0x44a490._0x2cbf61,0x4a7,_0x44a490._0x16c33a),'dMiri':_0x1cbb64(_0x44a490._0x138838,_0x44a490._0x5296af,0x4eb,0x4bd),'gSCkX':function(_0x55c5fb){return _0x55c5fb();},'ADtkx':function(_0x54a21c,_0x83a3a2){return _0x54a21c(_0x83a3a2);},'uDunZ':_0x1cbb64(0x494,_0x44a490._0x4ad26d,_0x44a490._0x2fa810,0x490),'YZDFN':_0x1cbb64(_0x44a490._0x403731,0x4db,_0x44a490._0x41e0fe,_0x44a490._0x325f8c)+'thenticate'+_0x28b175(-0x109,-0x107,-0x12f,-_0x44a490._0x5d6723),'TwzFy':_0x1cbb64(0x4df,_0x44a490._0x441757,_0x44a490._0xb175d6,_0x44a490._0xaf4ac8)+'I\x20key\x20atte'+_0x28b175(-0xff,-_0x44a490._0x56b280,-_0x44a490._0x61059b,-0xfd),'HhEDN':_0x28b175(-0xd6,-0xd2,-0xd4,-_0x44a490._0x287789)+_0x28b175(-_0x44a490._0x56199f,-0xf7,-0xe6,-_0x44a490._0x2f2b4c)+_0x1cbb64(_0x44a490._0x1d9cdf,0x4bf,0x4ca,_0x44a490._0x1733d2)+'d\x20or\x20expir'+'ed','ceUDR':'Session\x20au'+_0x1cbb64(_0x44a490._0x4f4aea,0x4bd,0x4b9,_0x44a490._0x38254f)+_0x28b175(-0x109,-0x115,-0x102,-0xfa),'iXaBW':_0x28b175(-_0x44a490._0x43eabf,-0x132,-_0x44a490._0x1341fb,-_0x44a490._0x17ad3f)+'ed\x20access\x20'+_0x28b175(-0xd7,-_0x44a490._0x504069,-0xfa,-0xd2),'rKNVl':_0x1cbb64(_0x44a490._0x47ce39,0x4e3,0x49a,0x4b7)+_0x28b175(-0xe2,-0x101,-_0x44a490._0x502d27,-0xe4)+'n\x20or\x20provi'+_0x1cbb64(0x484,0x4c1,0x490,_0x44a490._0x283252)+'\x20API\x20key'};if(_0x1ec5b0[_0x28b175(-_0x44a490._0x493271,-0xf2,-_0x44a490._0x35c98f,-_0x44a490._0x4d84f5)](process[_0x1cbb64(0x4a0,0x4b4,0x494,0x4ab)][_0x1cbb64(0x4f4,_0x44a490._0x33a0ab,_0x44a490._0x5c55b8,0x4e1)],'test')||_0x1ec5b0['BvWmX'](process[_0x28b175(-_0x44a490._0x55868f,-0x10c,-0x10a,-0x137)][_0x28b175(-_0x44a490._0x1119e3,-_0x44a490._0x208ded,-0xee,-0xf2)+'TH'],_0x1cbb64(0x4de,0x4cf,0x4d4,0x4c9))){const _0x1ce842={};return _0x1ce842['id']=_0x1ec5b0[_0x1cbb64(0x4cf,_0x44a490._0x55e802,0x4a3,_0x44a490._0x20787f)],_0x1ce842[_0x1cbb64(0x488,0x48c,_0x44a490._0x20db87,0x494)]=_0x1ec5b0[_0x1cbb64(_0x44a490._0x428075,0x4f5,0x4c1,0x4d4)],_0x1ce842[_0x1cbb64(_0x44a490._0x380468,0x4b4,0x4b4,_0x44a490._0x1b9e23)]='test@examp'+_0x28b175(-0x105,-0x12a,-0x120,-0xef),_0x1ce842['name']=_0x1ec5b0['dMiri'],_0x1ce842[_0x28b175(-0x12a,-_0x44a490._0x61059b,-0x143,-_0x44a490._0x459555)+'me']=_0x1cbb64(_0x44a490._0x3642db,0x4a1,0x4af,_0x44a490._0x12b15e),_0x110f0f[_0x1cbb64(0x4c5,0x495,_0x44a490._0x4f2b3b,_0x44a490._0x314531)]=_0x1ce842,_0x110f0f['authentica'+_0x1cbb64(_0x44a490._0x28bd2a,_0x44a490._0x56de61,0x4c2,0x4c3)]=_0x1ec5b0[_0x28b175(-_0x44a490._0x3ca8d8,-_0x44a490._0x504069,-0xe2,-0x116)],_0x1ec5b0[_0x1cbb64(0x4db,_0x44a490._0x48d413,_0x44a490._0x8b0367,_0x44a490._0x33dc8f)](_0x4c9e96);}const _0x572c2b=_0x110f0f[_0x1cbb64(_0x44a490._0x4d8e67,_0x44a490._0x42b71f,0x491,0x4a6)][_0x1cbb64(0x4dd,_0x44a490._0x5e9b80,0x4da,0x4ca)+'ion'];if(_0x572c2b&&_0x572c2b['startsWith']('Bearer\x20')){const _0x4b1c8d=_0x572c2b[_0x1cbb64(0x499,0x4a1,0x47b,0x4a4)](0x1*0x281+-0x5*-0x2c1+0x103f*-0x1),_0x29f1e7=await _0x1ec5b0[_0x1cbb64(_0x44a490._0x1d9cdf,0x49c,_0x44a490._0x1f69c5,_0x44a490._0x47ce39)](validateApiKey,_0x4b1c8d);if(_0x29f1e7){_0x110f0f[_0x1cbb64(_0x44a490._0x1b9e23,_0x44a490._0x3e59ea,_0x44a490._0x451f89,_0x44a490._0x314531)]=_0x29f1e7,_0x110f0f[_0x28b175(-0x117,-0xe9,-_0x44a490._0x50287e,-0x100)+_0x1cbb64(_0x44a490._0x523d06,_0x44a490._0xaf4ac8,_0x44a490._0x1476f7,0x4c3)]=_0x1ec5b0[_0x1cbb64(0x48f,_0x44a490._0x7daf71,_0x44a490._0x12b15e,0x49d)];const _0x4ade32={};return _0x4ade32[_0x28b175(-0xef,-0xd3,-_0x44a490._0x324732,-0xc4)]=_0x29f1e7['id'],_0x4ade32[_0x1cbb64(_0x44a490._0x409771,0x467,0x4af,0x494)]=_0x29f1e7[_0x1cbb64(0x4b3,_0x44a490._0x1e3476,0x4be,_0x44a490._0x37414d)],_0x4ade32[_0x28b175(-_0x44a490._0x23d07e,-0xdd,-_0x44a490._0xfcbbd,-0xc4)]=_0x110f0f[_0x1cbb64(0x4f5,_0x44a490._0x2d29c0,_0x44a490._0x15517c,_0x44a490._0x39e205)],logger[_0x28b175(-_0x44a490._0x3d26fb,-0x129,-_0x44a490._0x35718a,-0xdc)](_0x1ec5b0[_0x1cbb64(0x486,_0x44a490._0x3755ff,0x4c7,0x49f)],_0x4ade32),_0x1ec5b0[_0x28b175(-0xe7,-0xd0,-_0x44a490._0x14a175,-0xda)](_0x4c9e96);}const _0x3b0a41={};_0x3b0a41[_0x1cbb64(0x4da,_0x44a490._0x57ca9e,_0x44a490._0x179ae8,0x4d0)]=_0x110f0f[_0x28b175(-0xf1,-_0x44a490._0xe81a0d,-0x114,-_0x44a490._0x3bafe7)],_0x3b0a41['method']=_0x110f0f[_0x1cbb64(0x4d6,0x504,0x4ba,_0x44a490._0x5de609)],logger[_0x28b175(-_0x44a490._0x23ced2,-_0x44a490._0x4ed639,-0x135,-_0x44a490._0x48d790)](_0x1ec5b0[_0x28b175(-_0x44a490._0x44032b,-0x10b,-_0x44a490._0x29eabf,-0x12e)],_0x3b0a41);const _0x214307={};return _0x214307['error']=_0x1cbb64(0x49e,_0x44a490._0x5ba931,0x4a6,0x4b3)+_0x28b175(-0x10b,-_0x44a490._0x2ff716,-0xe3,-_0x44a490._0x4911ef),_0x214307[_0x28b175(-_0x44a490._0xdb35d3,-0x141,-_0x44a490._0x29a070,-0x12a)]=_0x1ec5b0[_0x1cbb64(_0x44a490._0x208107,_0x44a490._0x2cd22f,_0x44a490._0x34498a,0x4a3)],_0x2f9462[_0x28b175(-0x127,-0x10a,-_0x44a490._0xf605fc,-_0x44a490._0x5f549a)](-0x112d+-0x1*0xf36+0x10fa*0x2)[_0x28b175(-_0x44a490._0x205a49,-_0x44a490._0x2c2ea7,-0x12a,-0x142)](_0x214307);}if(_0x110f0f[_0x1cbb64(0x48b,_0x44a490._0x2cc4b2,_0x44a490._0x3f1627,_0x44a490._0x8b0367)]?.['userId']){const _0x1d10eb=await findUserById(_0x110f0f[_0x28b175(-_0x44a490._0x50287e,-_0x44a490._0x56833f,-_0x44a490._0xa1fd60,-0x115)][_0x1cbb64(0x4ad,0x4af,0x4f1,0x4d2)]);_0x110f0f[_0x28b175(-_0x44a490._0x1d22c8,-0x11b,-0x11c,-0xf0)]={'id':_0x110f0f[_0x1cbb64(0x481,_0x44a490._0x4384a0,_0x44a490._0x3a641b,_0x44a490._0x3bdec0)][_0x28b175(-_0x44a490._0x47a027,-_0x44a490._0x1c3e44,-0xe5,-_0x44a490._0x5caddf)],'username':_0x110f0f[_0x1cbb64(_0x44a490._0x410daf,_0x44a490._0x41e0fe,0x4cb,0x4ac)][_0x1cbb64(0x48d,0x4bc,_0x44a490._0x42d6df,_0x44a490._0x276871)],'email':_0x110f0f[_0x28b175(-0x115,-0x113,-0xf8,-0x102)][_0x1cbb64(_0x44a490._0x47dade,_0x44a490._0x35cf53,_0x44a490._0xd749d3,0x49c)],'name':_0x110f0f[_0x1cbb64(_0x44a490._0x34498a,0x4a4,0x4b7,_0x44a490._0x8b0367)][_0x28b175(-_0x44a490._0x486734,-_0x44a490._0x1c3e44,-_0x44a490._0x1d1d0b,-_0x44a490._0x10f3ca)],'ssh_username':_0x110f0f[_0x28b175(-0x115,-0xfd,-_0x44a490._0x65c3c5,-0x142)]['ssh_userna'+'me']},_0x110f0f[_0x28b175(-_0x44a490._0x7757a2,-_0x44a490._0x3c7857,-_0x44a490._0x3891a9,-_0x44a490._0x3891a9)+'tedVia']='session';const _0x3c4388={};return _0x3c4388[_0x1cbb64(_0x44a490._0x5b532b,_0x44a490._0x36d3fb,_0x44a490._0x41e443,0x4d2)]=_0x110f0f[_0x1cbb64(0x4d9,_0x44a490._0x3ed8c6,0x495,0x4ac)][_0x1cbb64(_0x44a490._0x223c9d,_0x44a490._0x55fd71,_0x44a490._0x5be212,0x4d2)],_0x3c4388['username']=_0x110f0f[_0x28b175(-0x115,-0x10a,-0xf0,-0x12f)]['username'],_0x3c4388[_0x28b175(-_0x44a490._0x520fce,-_0x44a490._0x574617,-_0x44a490._0x45130f,-_0x44a490._0x30ee6f)]=_0x110f0f['path'],logger[_0x1cbb64(_0x44a490._0xf22764,0x4c4,_0x44a490._0x542d2c,0x4b9)](_0x1ec5b0[_0x28b175(-0xeb,-0xbf,-_0x44a490._0x5c2ae9,-0xe6)],_0x3c4388),_0x4c9e96();}const _0x271b09={};_0x271b09['path']=_0x110f0f[_0x28b175(-_0x44a490._0x23d07e,-0xe3,-0xdb,-_0x44a490._0x1e903d)],_0x271b09[_0x1cbb64(0x4f3,0x4e6,0x4bb,0x4e6)]=_0x110f0f[_0x28b175(-_0x44a490._0x166443,-0xdc,-0xbf,-_0x44a490._0xfcbbd)],_0x271b09['ip']=_0x110f0f['ip'],logger[_0x28b175(-0x108,-_0x44a490._0x5250f9,-_0x44a490._0x275a87,-0xf7)](_0x1ec5b0[_0x28b175(-_0x44a490._0x324732,-_0x44a490._0x415027,-_0x44a490._0x2a7db8,-_0x44a490._0x415027)],_0x271b09);const _0xa8f51c={};_0xa8f51c[_0x1cbb64(_0x44a490._0x7a37f5,_0x44a490._0xdb56b5,_0x44a490._0x39e205,0x4c8)]=_0x28b175(-_0x44a490._0x4491bf,-0x109,-_0x44a490._0x42d325,-_0x44a490._0x1e903d)+_0x28b175(-0xe8,-_0x44a490._0x32a67e,-_0x44a490._0x2d4507,-_0x44a490._0x287789)+_0x1cbb64(0x4a3,0x49a,_0x44a490._0x4f2b3b,_0x44a490._0x523e96);function _0x1cbb64(_0x5cb23b,_0x3fd42f,_0x353da0,_0x5b9ae3){return _0x56d7(_0x5b9ae3-_0x834399._0x3c6b86,_0x3fd42f);}return _0xa8f51c[_0x28b175(-0x114,-_0x44a490._0x492813,-0xfc,-0xe8)]=_0x1ec5b0[_0x28b175(-0x101,-0x11b,-0x11c,-_0x44a490._0x252ed4)],_0x2f9462[_0x1cbb64(0x480,0x49c,_0x44a490._0x487f33,0x49a)](0x59*-0x11+0x58+0x722)[_0x1cbb64(_0x44a490._0x45f73f,0x469,0x497,_0x44a490._0x429090)](_0xa8f51c);}export async function requireAdmin(_0xc5f357,_0x2de970,_0x594811){const _0x462f83={_0xfd5ca3:0xee,_0x47d14e:0xe8,_0x1c1191:0x110,_0x45c547:0x12f,_0x447856:0xd6,_0xc2833a:0xf0,_0x28c817:0xf5,_0x26ca09:0x106,_0x1adc82:0xd6,_0x855663:0xc7,_0x574697:0xd2,_0x3ed4e9:0xc8,_0x3f7367:0xc3,_0x3d2b08:0x9e,_0x2e1e40:0x7d,_0x3c8c66:0xba,_0x5edc08:0x11a,_0x16148c:0xec,_0x546dd7:0xd5,_0x44f284:0xb3,_0x5d96be:0xec,_0x5be849:0xf1,_0x13b96f:0xf1,_0x3f0392:0xdd,_0x504a1d:0x8a,_0x399ed0:0xaa,_0x2ea380:0x133,_0x56bd1a:0x122,_0x532002:0x148,_0x4cf320:0xef,_0x5b75ab:0x91,_0x1fc923:0xf1,_0x1993ce:0xe7,_0x27a619:0xc6,_0x301a34:0x13a,_0x52943f:0x13b,_0x44cd60:0x11b,_0x108e09:0x120,_0x381ce1:0xf3,_0x5cf9ef:0xed,_0x247094:0xeb,_0x17dfaf:0x10c,_0x14b177:0x133,_0x391a71:0x13a,_0x29d505:0x127,_0x1fba4f:0x13f,_0x9f17f8:0x15c,_0x277460:0x119,_0x43abac:0x100,_0x352f00:0xaf,_0x586f03:0xcf,_0x257b2e:0xce,_0x2843c8:0xa2,_0x534ee5:0x10f,_0x3f7f2c:0x14a,_0x50f522:0x121,_0x534868:0x130,_0x4f8ed4:0x8f,_0x4d5525:0xa7,_0x1e6b8e:0xb2,_0x134a91:0xbd,_0x1cd986:0xba,_0x4e94b1:0xc1,_0x3cb566:0xcc,_0x9e88d5:0xa8,_0x5843c1:0x98,_0x3af6a9:0x12b,_0x16c93b:0x105,_0x5bcf5f:0xfa,_0x295133:0x131,_0x192b37:0x13d,_0x162898:0x13b,_0x388a4d:0xf7,_0x26af3b:0x11f,_0x5369bd:0x104,_0x2f1653:0x149,_0x3525ce:0xb6,_0x4c5457:0xd4,_0x221ead:0x127,_0x339a80:0xa9,_0x1d823b:0xb1,_0x56e13b:0x143,_0xc736dc:0x134,_0x1ccc8d:0xe4,_0xa9de8c:0xf1,_0x2e55e9:0xde,_0x5a727e:0xe3,_0x4d4e8b:0x12a,_0x50bcb4:0xad,_0x47d8ca:0xca,_0xaf0272:0xfb,_0xb18e69:0x117,_0xa6fa5d:0x103,_0x104881:0xff,_0x30df8b:0xd4,_0x1c9bb3:0xda,_0x355344:0xb9,_0x23d282:0xe3,_0x4c0841:0xa1,_0x40f15a:0x11a,_0x38f454:0xe6,_0x215a07:0x12d,_0x283a4a:0xe2,_0x4adfda:0xfc,_0x2743a2:0xd4,_0x1478a3:0xc3,_0x44d6be:0xab,_0x5b81a6:0x127,_0xf65ed0:0xe7,_0xb380c6:0xf9,_0x51bd18:0xf4,_0x5c720d:0xdd,_0x130f58:0x135,_0x3df19c:0x116,_0x20e96e:0x14c,_0x3caf25:0xd7,_0xe32921:0x10a,_0x25ab48:0xdf,_0x833c83:0xf2,_0x5f1e32:0x112},_0x3448e6={_0x12c058:0x2df},_0x56c45e={'NlSGl':_0x119f11(-_0x462f83._0xfd5ca3,-_0x462f83._0x47d14e,-0xf1,-0x116),'dwLCp':'Server\x20Adm'+_0x119f11(-0x134,-0x12b,-_0x462f83._0x1c1191,-_0x462f83._0x45c547)+_0x2981b5(_0x462f83._0x447856,_0x462f83._0xc2833a,_0x462f83._0x28c817,_0x462f83._0x26ca09),'VNHsT':'test','bvhcO':_0x2981b5(_0x462f83._0x1adc82,0xd9,_0x462f83._0x855663,_0x462f83._0x574697)+'le.com','jQSbQ':'Admin\x20perm'+_0x119f11(-0xca,-_0x462f83._0xc2833a,-0x111,-0xf2)+'ck\x20failed','xqSvo':'Internal\x20s'+_0x2981b5(0x9c,0xc8,0xad,0xa8)+'r','xSpst':_0x2981b5(0xdb,_0x462f83._0x3ed4e9,_0x462f83._0x3f7367,_0x462f83._0x3d2b08)+_0x2981b5(_0x462f83._0x3ed4e9,0xef,0xeb,0xd0)+_0x2981b5(_0x462f83._0x2e1e40,0xa0,0xa1,0x77)+'s\x20this\x20res'+_0x2981b5(0xc8,0xad,_0x462f83._0x3c8c66,_0x462f83._0x47d14e),'MOMVL':function(_0x528c27,_0x50e82e){return _0x528c27!==_0x50e82e;},'LecjX':_0x2981b5(0xd0,_0x462f83._0x5edc08,_0x462f83._0x16148c,0x106),'FzvfQ':'../lib/per'+'mission-re'+_0x2981b5(_0x462f83._0x546dd7,_0x462f83._0xc2833a,0xe1,_0x462f83._0x44f284),'AJVLD':function(_0x5b08a3,_0x1173d3){return _0x5b08a3(_0x1173d3);},'UShgp':'MRDfY','nYwDr':_0x2981b5(0xd2,_0x462f83._0x5d96be,_0x462f83._0x5be849,0xc8),'KCEKN':_0x119f11(-_0x462f83._0x5edc08,-_0x462f83._0x16148c,-_0x462f83._0x13b96f,-_0x462f83._0x3f0392)+_0x2981b5(0xb4,_0x462f83._0x504a1d,_0x462f83._0x399ed0,0x84)+_0x2981b5(0xfd,0xc2,0xd7,0xb4)+_0x2981b5(0xd6,_0x462f83._0x47d14e,0xdf,0xf1)};function _0x2981b5(_0x4d7acc,_0x3b4f87,_0x5bf27d,_0x54d675){return _0x56d7(_0x5bf27d- -0xff,_0x54d675);}if(!_0xc5f357[_0x119f11(-_0x462f83._0x2ea380,-_0x462f83._0x56bd1a,-0x120,-_0x462f83._0x532002)]){const _0x4244de={};return _0x4244de['error']='Authentica'+_0x119f11(-_0x462f83._0x4cf320,-0xfb,-0xe5,-0x128)+_0x119f11(-0x12e,-0x141,-0x15b,-0x138),_0x4244de[_0x2981b5(0xc6,0x98,0xb9,_0x462f83._0x5b75ab)]=_0x56c45e[_0x2981b5(_0x462f83._0x1fc923,0x112,_0x462f83._0x1993ce,_0x462f83._0x27a619)],_0x2de970[_0x119f11(-0x165,-_0x462f83._0x301a34,-_0x462f83._0x52943f,-0x149)](0x4a2+-0x249f+0x218e)['json'](_0x4244de);}function _0x119f11(_0x31e6f0,_0x36319d,_0x482c1f,_0xd34b11){return _0x56d7(_0x36319d- -_0x3448e6._0x12c058,_0x31e6f0);}try{if(_0x56c45e['MOMVL'](_0x56c45e[_0x2981b5(_0x462f83._0x44cd60,_0x462f83._0x108e09,_0x462f83._0x381ce1,0xca)],_0x56c45e[_0x119f11(-_0x462f83._0x1fc923,-_0x462f83._0x5cf9ef,-0xde,-0xf0)])){const _0x33cecc={};return _0x33cecc[_0x119f11(-_0x462f83._0x247094,-_0x462f83._0x17dfaf,-0x111,-_0x462f83._0x14b177)]=_0x56c45e['NlSGl'],_0x33cecc[_0x119f11(-_0x462f83._0x391a71,-_0x462f83._0x29d505,-0x119,-_0x462f83._0x1fba4f)]=_0x56c45e[_0x119f11(-_0x462f83._0x9f17f8,-0x12f,-_0x462f83._0x277460,-_0x462f83._0x43abac)],_0x916eec[_0x2981b5(_0x462f83._0x352f00,_0x462f83._0x586f03,0xa6,_0x462f83._0x257b2e)](0x128*0x18+0x7c5*-0x3+-0x16f*0x2)[_0x2981b5(0x86,_0x462f83._0x855663,_0x462f83._0x2843c8,_0x462f83._0x3f7367)](_0x33cecc);}else{const {hasAllPermissions:_0x4b412c}=await import(_0x56c45e['FzvfQ']),_0x3105dc=await _0x56c45e[_0x119f11(-0x104,-_0x462f83._0x534ee5,-0x100,-0x112)](_0x4b412c,_0xc5f357[_0x119f11(-_0x462f83._0x3f7f2c,-0x122,-0x12a,-0x120)]['id']);if(!_0x3105dc){if(_0x56c45e[_0x119f11(-_0x462f83._0x50f522,-0x139,-_0x462f83._0x277460,-_0x462f83._0x534868)]!==_0x56c45e[_0x2981b5(0x85,_0x462f83._0x4f8ed4,_0x462f83._0x4d5525,_0x462f83._0x1e6b8e)]){const _0x376aa8={};return _0x376aa8['id']=_0x2981b5(0xec,0xc3,_0x462f83._0x134a91,_0x462f83._0x1cd986),_0x376aa8['username']=_0x56c45e[_0x2981b5(0xa5,0xad,_0x462f83._0x4e94b1,0xae)],_0x376aa8[_0x2981b5(0x9e,_0x462f83._0x3cb566,_0x462f83._0x9e88d5,0xaa)]=_0x56c45e[_0x2981b5(_0x462f83._0x5843c1,_0x462f83._0x586f03,0xa5,0xb8)],_0x376aa8[_0x119f11(-_0x462f83._0x3af6a9,-_0x462f83._0x16c93b,-_0x462f83._0x5bcf5f,-_0x462f83._0x534ee5)]=_0x119f11(-0x10d,-0x117,-_0x462f83._0x295133,-0x143),_0x376aa8[_0x119f11(-0x11c,-_0x462f83._0x192b37,-0x14b,-_0x462f83._0x162898)+'me']=_0x56c45e[_0x119f11(-_0x462f83._0x388a4d,-_0x462f83._0x26af3b,-_0x462f83._0x5369bd,-_0x462f83._0x2f1653)],_0x32eaba['user']=_0x376aa8,_0x272bdb[_0x2981b5(0x8c,0xdf,_0x462f83._0x3525ce,0x8d)+'tedVia']=_0x56c45e['VNHsT'],_0x1acb7d();}else{const _0x367fe1={};return _0x367fe1[_0x2981b5(0xa7,0xad,_0x462f83._0x4c5457,0xfa)]='Forbidden',_0x367fe1[_0x119f11(-_0x462f83._0x295133,-_0x462f83._0x221ead,-0xfb,-0x13e)]=_0x56c45e[_0x2981b5(_0x462f83._0x855663,_0x462f83._0x339a80,_0x462f83._0x1d823b,0x85)],_0x2de970['status'](0x132c+-0x17e3*-0x1+-0x297c)[_0x119f11(-_0x462f83._0x56e13b,-0x13e,-0x15d,-_0x462f83._0xc736dc)](_0x367fe1);}}_0x594811();}}catch(_0x4d6749){if(_0x56c45e[_0x2981b5(0x10e,0xc0,_0x462f83._0x1ccc8d,0xe4)]===_0x56c45e[_0x119f11(-0x111,-0xfc,-_0x462f83._0xa9de8c,-0xdb)]){const _0x4c048b={};_0x4c048b[_0x119f11(-_0x462f83._0x2e55e9,-0x10c,-_0x462f83._0x5a727e,-_0x462f83._0x4d4e8b)]=_0x4d6749[_0x119f11(-0x124,-_0x462f83._0x221ead,-0x12a,-0x13f)],_0x4c048b['userId']=_0xc5f357[_0x2981b5(0x90,_0x462f83._0x50bcb4,0xbe,_0x462f83._0x47d8ca)]['id'],logger[_0x119f11(-0x10f,-0x10c,-0xfd,-_0x462f83._0xaf0272)](_0x56c45e[_0x119f11(-_0x462f83._0xb18e69,-_0x462f83._0xa6fa5d,-_0x462f83._0x2e55e9,-0x11b)],_0x4c048b);const _0x5a00dd={};return _0x5a00dd[_0x2981b5(0xd0,_0x462f83._0x104881,_0x462f83._0x30df8b,_0x462f83._0x339a80)]=_0x56c45e['xqSvo'],_0x5a00dd[_0x2981b5(0xc5,_0x462f83._0x1c9bb3,_0x462f83._0x355344,0xb2)]=_0x56c45e[_0x2981b5(_0x462f83._0x23d282,_0x462f83._0x4c0841,0xc6,0xe4)],_0x2de970['status'](0x2*-0x1351+0x2*0x186+-0x258a*-0x1)[_0x119f11(-0x15f,-0x13e,-0x138,-_0x462f83._0x40f15a)](_0x5a00dd);}else{const _0x2bc23e={};_0x2bc23e['error']=_0xabb588[_0x2981b5(0xaa,0xe8,0xb9,0x8a)],_0x2bc23e[_0x119f11(-_0x462f83._0x38f454,-0x102,-0xfa,-0x113)]=_0x36a7e6[_0x119f11(-_0x462f83._0x215a07,-0x122,-0x141,-0xf7)]['id'],_0x24fc51[_0x2981b5(_0x462f83._0x283a4a,_0x462f83._0x4adfda,_0x462f83._0x2743a2,0xd5)](_0x56c45e['jQSbQ'],_0x2bc23e);const _0x190fd7={};return _0x190fd7[_0x2981b5(0xd8,_0x462f83._0x283a4a,0xd4,0xf9)]=_0x56c45e[_0x2981b5(_0x462f83._0x1478a3,_0x462f83._0x44d6be,0xcd,0xb9)],_0x190fd7[_0x119f11(-0x110,-_0x462f83._0x5b81a6,-0x116,-0x112)]=_0x2981b5(_0x462f83._0xf65ed0,_0x462f83._0xb380c6,_0x462f83._0x51bd18,_0x462f83._0x5c720d)+_0x119f11(-_0x462f83._0x130f58,-0x136,-_0x462f83._0x3df19c,-_0x462f83._0x20e96e)+_0x2981b5(0xc8,_0x462f83._0x399ed0,_0x462f83._0x3caf25,0xcc)+_0x2981b5(0xbb,_0x462f83._0xe32921,_0x462f83._0x25ab48,_0x462f83._0x833c83),_0x5db12b['status'](-0x14a1+0x85*-0x9+0x48b*0x6)[_0x119f11(-0x156,-0x13e,-_0x462f83._0x5f1e32,-0x160)](_0x190fd7);}}}
1
+ function _0x1d5f(){const _0x3a3827=['DgLVBIbYzxf1Aq','vgvZDcbvC2vY','sw52ywXPzcbbua','qMvHCMvYia','q0nyueq','vw5HDxrOB3jPEG','DgvKvMLH','zguGysb2ywXPza','ndiXmdGWm2fICvnQva','tK9erv9ftLy','lI4VBgLIl3bLCG','zwqGywnJzxnZia','De5Lvw4','mJrqyLHfwu8','wfj5D1C','ww5qDwO','qNfTwuq','C3nOx3vZzxjUyq','mte3m0Tlvw56tG','rMfPBgvKihrVia','igLZigLUDMfSAq','v2jVD00','uNrdEwy','Dhj1zq','otbzvgvfCLi','mJy0mKLdr3fysG','qvbjigTLEsbHDq','DxnLCG','y2SGzMfPBgvK','CYb0AgLZihjLCW','zefqDxm','otvvBeTHDg0','r05dDfK','wwfSq2W','CMvXDwLYzwq','DxnLCKLK','zKrtvLy','mZi3ndiXBvDRr2rh','B0fdBvK','zw1HAwW','DxnLCM5HBwu','mtu5otm2n0n1rLjgEG','y2nQzLi','BIb0BYbHy2nLCW','C2vZC2LVBG','Aw4GywnJzxnZia','u2vZC2LVBIbHDq','zsbSB2DNzwqGAq','Cgf0Aa','CeX3CK0','zxjYB3i','uhnmsg8','qxv0AgvUDgLJyq','BIbVCIbWCM92Aq','ANPtAeu','BguUy29T','zwqGqvbjigTLEq','r1HVvva','Bwv0Ag9K','z1HbAva','v09AzuK','vgHLihbYB3zPza','yxbPx2TLEq','yxv0AgvUDgLJyq','DgvZDc11C2vY','CKD3t2O','DgvZDa','sw50zxjUywWGCW','AxvlyMy','BMfTzq','reLtqujmrv9bvq','zw52','zcbVCIbLEhbPCG','ww91ig11C3qGyG','AxnZAw9UignOzq','mJe4mJq0ngros090wa','ANnVBG','rM9YyMLKzgvU','zgvIDwC','mtiZnZq0tMjOzNDN','ssbRzxK','mtCZmJGWnfLeDNzMBG','u2vYDMvYiefKBq','iefqssbRzxK','Aw4GCgvYBwLZCW','Bg9lDNa','zNzIy0q','zcbYzxf1zxn0','wMLMD0W','CMvK','DgvZDebLEgfTCa','C3rHDhvZ','BwvZC2fNzq','vuLbwgm','Bezvse0'];_0x1d5f=function(){return _0x3a3827;};return _0x1d5f();}(function(_0x5aa639,_0x111b4f){const _0x4ca39f={_0x5c2d75:0x3b5,_0x1812c7:0x1b0,_0x3fecb6:0x19a,_0x33319b:0x3ea,_0x1b8fb4:0x3ca,_0x4e0338:0x3fa,_0x5c5fe8:0x3ec,_0x4b35c3:0x3c2,_0xd8f3d1:0x189,_0x548a57:0x3c8,_0x241924:0x3ba,_0x5defda:0x1ff,_0x21ae48:0x3e5,_0x58b91a:0x408,_0x1302f5:0x405,_0x42d0c0:0x3fd,_0x836ebd:0x1b1,_0x305832:0x1a1,_0x155197:0x3c6},_0xf682ea=_0x5aa639();function _0xbb791e(_0x522a1e,_0x42c381,_0x3af0ec,_0x3abffa){return _0xb48d(_0x42c381- -0x379,_0x3af0ec);}function _0x2b4511(_0x344681,_0x9fecd0,_0x2cf58e,_0xdcab3a){return _0xb48d(_0x344681-0x228,_0xdcab3a);}while(!![]){try{const _0x556a9a=-parseInt(_0x2b4511(0x39e,_0x4ca39f._0x5c2d75,0x39d,0x3af))/(0x1ed*0x5+0xaa8+0x58*-0x3b)+parseInt(_0xbb791e(-0x1c9,-_0x4ca39f._0x1812c7,-0x1bd,-_0x4ca39f._0x3fecb6))/(0x2572+-0x3ae*-0x9+-0x468e)*(parseInt(_0x2b4511(_0x4ca39f._0x33319b,0x419,0x3e0,0x3d1))/(0x1bf1+-0x366*0x9+0x2a8))+parseInt(_0x2b4511(_0x4ca39f._0x1b8fb4,_0x4ca39f._0x4e0338,_0x4ca39f._0x5c5fe8,_0x4ca39f._0x4b35c3))/(0x8d1+-0x2021+-0x1754*-0x1)+-parseInt(_0xbb791e(-0x1da,-0x1aa,-_0x4ca39f._0xd8f3d1,-0x1c1))/(0xe26*-0x1+-0x1*-0x1b02+0x13*-0xad)*(-parseInt(_0x2b4511(_0x4ca39f._0x548a57,0x3ed,_0x4ca39f._0x241924,0x3b6))/(0x34*0x9b+-0x1f7+-0x1d7f))+parseInt(_0xbb791e(-0x1d4,-_0x4ca39f._0x5defda,-0x224,-0x1f5))/(0x210f+-0x52c*-0x6+0xcd0*-0x5)*(parseInt(_0x2b4511(_0x4ca39f._0x21ae48,0x412,0x3c4,_0x4ca39f._0x58b91a))/(-0x1325+0x15c+0x11d1))+parseInt(_0x2b4511(0x3e0,_0x4ca39f._0x1302f5,0x40c,_0x4ca39f._0x42d0c0))/(0x197a+-0xd*-0xb5+-0x22a2)+parseInt(_0xbb791e(-0x1a9,-_0x4ca39f._0x836ebd,-0x186,-_0x4ca39f._0x305832))/(-0xd07+-0x1fc9*0x1+0x2cda)*(-parseInt(_0x2b4511(0x3c4,0x3a1,_0x4ca39f._0x155197,0x3e1))/(-0x2ba+-0x19fc+0x1*0x1cc1));if(_0x556a9a===_0x111b4f)break;else _0xf682ea['push'](_0xf682ea['shift']());}catch(_0x5ea2cd){_0xf682ea['push'](_0xf682ea['shift']());}}}(_0x1d5f,-0x813f4+-0x74564+-0x1*-0x152cd5));import{logger}from'../lib/logger.js';function _0xb48d(_0x4066be,_0x10c751){_0x4066be=_0x4066be-(-0x2c+-0xb14+0x43c*0x3);const _0x58541f=_0x1d5f();let _0x496fe0=_0x58541f[_0x4066be];if(_0xb48d['WQpDJb']===undefined){var _0x5e260d=function(_0x1a0157){const _0x15dde7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1abd29='',_0x42630f='';for(let _0x273f00=0xb46+0x1*0x119b+-0x1*0x1ce1,_0x1c2579,_0x534f46,_0x4462bf=-0x1850+0x46d*-0x3+0x2597;_0x534f46=_0x1a0157['charAt'](_0x4462bf++);~_0x534f46&&(_0x1c2579=_0x273f00%(0x47*-0x31+0x2538+0x41*-0x5d)?_0x1c2579*(-0x23ab+0x151d*-0x1+0x3908)+_0x534f46:_0x534f46,_0x273f00++%(-0x1b5e+0xe06+0xd5c))?_0x1abd29+=String['fromCharCode'](-0x2697+0x1eb*0x4+0x1fea&_0x1c2579>>(-(-0xc73+0x1*-0x21e9+0x2e5e)*_0x273f00&0x0+-0x1c66*-0x1+-0x4*0x718)):0x2*0x501+-0x11e6+0x5*0x194){_0x534f46=_0x15dde7['indexOf'](_0x534f46);}for(let _0x843952=-0xe*-0x7d+-0x1e8f+0x17b9,_0x1d389b=_0x1abd29['length'];_0x843952<_0x1d389b;_0x843952++){_0x42630f+='%'+('00'+_0x1abd29['charCodeAt'](_0x843952)['toString'](0x1*0x17be+-0x1d36+0x588*0x1))['slice'](-(0x18dd+0x19c9+0x4*-0xca9));}return decodeURIComponent(_0x42630f);};_0xb48d['NxcGER']=_0x5e260d,_0xb48d['IMuusq']={},_0xb48d['WQpDJb']=!![];}const _0x85cb68=_0x58541f[0x26ce+-0xd*-0x2dd+0x4c07*-0x1],_0x3f6af1=_0x4066be+_0x85cb68,_0x2fe0e8=_0xb48d['IMuusq'][_0x3f6af1];return!_0x2fe0e8?(_0x496fe0=_0xb48d['NxcGER'](_0x496fe0),_0xb48d['IMuusq'][_0x3f6af1]=_0x496fe0):_0x496fe0=_0x2fe0e8,_0x496fe0;}import{validateApiKey}from'../lib/apiKeys.js';import{findUserById}from'../lib/users.js';export async function requireAuth(_0x75dc8f,_0x2c5f16,_0x395729){const _0x5a41df={_0xd86c16:0xac,_0x334fd7:0xdf,_0x3f15d0:0xae,_0x5c2bf5:0xed,_0x5501de:0xe6,_0x58cc1e:0x131,_0x47a3a0:0x125,_0x2b2843:0xd4,_0x26f528:0xe3,_0x23c731:0xab,_0x2341f3:0x140,_0xaf2f50:0x12d,_0x1dab52:0xeb,_0x2d5707:0xfd,_0xd9162d:0xce,_0x4dfffe:0xe5,_0x22411d:0x95,_0x3a6746:0x9f,_0x20dd88:0xc2,_0x4d09c5:0xb8,_0x5e51ee:0xd1,_0x2c244b:0x107,_0x4ef544:0x12b,_0x2a0355:0xae,_0x5f0c87:0x80,_0x510084:0xaf,_0x26cb79:0x117,_0x2c063e:0xfe,_0x1df6ba:0xf1,_0x4bea33:0x127,_0xd9936f:0xfd,_0x373806:0x12c,_0x524bfe:0x11b,_0x2b1fc7:0xbd,_0x1d6f7d:0xb3,_0x4c65f0:0x10d,_0x2894e0:0xd8,_0x40c92b:0xb7,_0x5d83b5:0xfc,_0x45d2b4:0xd7,_0x5060d3:0xea,_0x24e8f5:0x10f,_0x322c2b:0x104,_0x1d8349:0xbb,_0x5f27e7:0xce,_0x4aa342:0xe2,_0x596b60:0xe1,_0x1e6f89:0xe7,_0x9413ea:0x12c,_0x1e09d5:0x104,_0x30800a:0x116,_0x1c4b20:0x13f,_0x177767:0xcd,_0x5bfc82:0x100,_0x3855a2:0xe0,_0x14bf28:0xe8,_0x36596e:0xd3,_0x9e4ad5:0xce,_0x241ba9:0x83,_0x29a348:0x99,_0xdfcfb5:0x13e,_0x7ca6e7:0x14c,_0x10224f:0x11b,_0x16bee9:0xf0,_0xf59168:0x11f,_0x5a88b9:0xdf,_0x4d424a:0xf6,_0x2e9fd4:0xf6,_0x5610de:0x129,_0x15c262:0x102,_0x137309:0x106,_0xbb493:0x109,_0xae8111:0xfa,_0x498646:0xc4,_0xc73588:0x16d,_0x26f117:0x14e,_0x587af9:0xf0,_0x5db7e9:0xcc,_0x28fb45:0xe2,_0x2c7281:0xc1,_0x37712a:0xfa,_0xa001de:0xbc,_0x5887fd:0xd3,_0x179d8a:0x10f,_0xc97808:0x10c,_0x5600ef:0xf7,_0x2db071:0x124,_0x29297d:0x134,_0x5e62cb:0x11a,_0x1e80db:0x142,_0x3cd4e8:0x121,_0x40a795:0x148,_0x1f8184:0x128,_0x6475ae:0xdf,_0xdeed8:0xc3,_0x1c0df1:0x12f,_0x4a43ba:0x15f,_0x36047e:0x103,_0x29f3c7:0xf2,_0x3843b2:0x139,_0x5e5f10:0x131,_0x319b54:0x122,_0x183e8c:0xad,_0x3c05c:0xd6,_0x9ca58:0x88,_0x10c4ab:0x101,_0x59dd3a:0x10d,_0x54e271:0xd9,_0x3fbf79:0xdb,_0x154602:0x14e,_0x18c163:0x149,_0x1228fd:0xea,_0x1d7dc6:0xf7,_0x433f8b:0xeb,_0x3775b6:0x114,_0x5de41b:0xee,_0x18694c:0xf9,_0x315cb8:0xea,_0x27df22:0xc9,_0x4fe637:0xdc,_0x516b01:0xef,_0x1db96f:0xca,_0x18de54:0xf9,_0x584775:0xcf,_0x5343cb:0x122,_0x492246:0xd9,_0x100305:0x109,_0x10da82:0x117,_0x3487ae:0xcb,_0x5daf4b:0x111,_0x2cf878:0xc8,_0x403632:0x10d,_0x429c08:0x11e,_0x2853ee:0xa7,_0x274553:0xba,_0x3478a6:0xb6,_0x1d48d1:0xd1,_0x18225b:0xfe,_0x2f84c4:0x10e,_0x2a1ecb:0x111,_0x43c927:0xfb,_0x1e468c:0xf9,_0x3e022d:0xf5,_0x4155c6:0x108,_0x4ab76e:0xcd,_0x39852c:0xfb,_0x4c3f8b:0x111,_0x560c51:0x16d,_0x2d8b1e:0x15c,_0x1b115e:0x119,_0x198d31:0xeb,_0x2fa460:0x134,_0x3caf2c:0x136,_0x4e37da:0xf5,_0xc435e:0xc8,_0x58b7a4:0xf3,_0x5294bb:0xfa,_0x1e6425:0xa5,_0x5df3ad:0x112,_0x405c75:0x11b,_0xd9cf61:0xff,_0x12c0e3:0xdf,_0x4326a9:0xf1,_0x567a27:0xfc,_0x154370:0x109,_0x30ef2e:0xe8,_0x52f8ff:0xfd,_0x217876:0xed,_0x5baf3d:0xe3,_0x57edb9:0x101,_0x3dd9f2:0x12a,_0x38c852:0xaa,_0x54a9d5:0x94,_0x68c390:0x13c,_0xb6fbc1:0x13d,_0x1afca7:0xc6,_0x3f36df:0xa8},_0x52815c={_0x3f092a:0x82},_0x4dd5f0={'WOZeI':_0x2ce1bd(-0xc7,-0xa6,-_0x5a41df._0xd86c16,-0xe3)+_0x2ce1bd(-0xea,-0xfe,-_0x5a41df._0x334fd7,-0xe4),'loKvp':_0x2ce1bd(-0xc1,-_0x5a41df._0x3f15d0,-_0x5a41df._0x5c2bf5,-_0x5a41df._0x5501de),'pLwrM':_0x2041b4(0x111,0xed,_0x5a41df._0x58cc1e,_0x5a41df._0x47a3a0),'ZifwL':function(_0x282af0){return _0x282af0();},'ccjfR':_0x2ce1bd(-_0x5a41df._0x2b2843,-0xb6,-_0x5a41df._0x26f528,-_0x5a41df._0x23c731),'TbxeM':'Server\x20Adm'+_0x2ce1bd(-0xf4,-0x106,-0xf1,-0xd0)+_0x2041b4(0x150,0x155,0x137,0x127),'UIAXc':function(_0x3c05b0,_0xd01bad){return _0x3c05b0===_0xd01bad;},'GXoUP':_0x2041b4(0x145,_0x5a41df._0x2341f3,_0x5a41df._0xaf2f50,0x16c),'YalCl':_0x2ce1bd(-_0x5a41df._0x1dab52,-0xc2,-0xf6,-_0x5a41df._0x2d5707),'BqmYD':'test-user','HGqzR':function(_0x1bd3ec,_0x1be6dd){return _0x1bd3ec(_0x1be6dd);},'WbowM':_0x2041b4(0xf5,0xdd,0xf1,_0x5a41df._0xd9162d),'HJrJa':_0x2ce1bd(-0xc0,-0xc7,-_0x5a41df._0x4dfffe,-_0x5a41df._0x22411d)+'I\x20key\x20atte'+'mpt','fvbcD':_0x2ce1bd(-0xc0,-_0x5a41df._0x3a6746,-_0x5a41df._0x20dd88,-_0x5a41df._0x4d09c5)+_0x2ce1bd(-_0x5a41df._0x5e51ee,-0xb9,-0xe1,-0xd9),'lxXIA':_0x2ce1bd(-0xe4,-_0x5a41df._0x26f528,-0x111,-0xbc)+_0x2041b4(_0x5a41df._0x2c244b,_0x5a41df._0x4ef544,0x121,0x108)+_0x2ce1bd(-_0x5a41df._0x2a0355,-_0x5a41df._0x5f0c87,-_0x5a41df._0x510084,-0xa5)+_0x2041b4(_0x5a41df._0x26cb79,_0x5a41df._0x2c063e,_0x5a41df._0x1df6ba,_0x5a41df._0x4bea33)+'ed','PsLHo':_0x2041b4(_0x5a41df._0xd9936f,0xe9,_0x5a41df._0x373806,_0x5a41df._0x524bfe)+'thenticate'+'d\x20request','RtCyf':function(_0x569922){return _0x569922();},'rGwOj':_0x2ce1bd(-_0x5a41df._0x2b1fc7,-0xda,-_0x5a41df._0x1dab52,-_0x5a41df._0x1d6f7d)+_0x2041b4(0x139,0x166,_0x5a41df._0x4c65f0,0x151)+'attempt','tNeUn':_0x2ce1bd(-0xed,-0xd1,-0xcf,-0xc9)+_0x2ce1bd(-0xc2,-_0x5a41df._0x2894e0,-_0x5a41df._0x40c92b,-0xe8)+'red','XRywW':_0x2ce1bd(-0xd8,-_0x5a41df._0x5d83b5,-0xcc,-_0x5a41df._0x45d2b4)+_0x2ce1bd(-0xf2,-_0x5a41df._0x5060d3,-0xcb,-_0x5a41df._0x24e8f5)+_0x2041b4(_0x5a41df._0x322c2b,0xf4,0x113,0xde)+_0x2ce1bd(-_0x5a41df._0x1d8349,-0xa9,-0x8c,-0xb2)+_0x2ce1bd(-_0x5a41df._0x5f27e7,-_0x5a41df._0x4aa342,-_0x5a41df._0x596b60,-_0x5a41df._0x1e6f89)};if(_0x4dd5f0[_0x2041b4(_0x5a41df._0x9413ea,_0x5a41df._0x1e09d5,0x13b,0x13f)](process[_0x2041b4(_0x5a41df._0x30800a,_0x5a41df._0x2c244b,0x124,_0x5a41df._0x1c4b20)][_0x2ce1bd(-0xb9,-0xd3,-0xe1,-_0x5a41df._0x177767)],_0x4dd5f0[_0x2041b4(_0x5a41df._0x5bfc82,_0x5a41df._0x2c063e,_0x5a41df._0x3855a2,0xeb)])||_0x4dd5f0[_0x2ce1bd(-0xc4,-0xee,-0xeb,-0xc0)](process['env'][_0x2041b4(0x115,0x124,0xfd,0x13a)+'TH'],_0x4dd5f0[_0x2ce1bd(-_0x5a41df._0x14bf28,-0x108,-_0x5a41df._0x36596e,-_0x5a41df._0x9e4ad5)])){if(_0x4dd5f0[_0x2ce1bd(-0xa1,-0x83,-0x84,-_0x5a41df._0x241ba9)]===_0x4dd5f0[_0x2ce1bd(-0xa1,-0x99,-_0x5a41df._0x29a348,-_0x5a41df._0x4d09c5)]){const _0x1d4ea4={};return _0x1d4ea4['id']=_0x4dd5f0[_0x2041b4(_0x5a41df._0xdfcfb5,_0x5a41df._0x7ca6e7,_0x5a41df._0x10224f,0x130)],_0x1d4ea4['username']=_0x4dd5f0[_0x2ce1bd(-_0x5a41df._0x16bee9,-_0x5a41df._0xf59168,-_0x5a41df._0x5a88b9,-0xe7)],_0x1d4ea4[_0x2041b4(_0x5a41df._0x4d424a,_0x5a41df._0x26cb79,0x109,_0x5a41df._0x2e9fd4)]=_0x2041b4(_0x5a41df._0x5610de,0x127,0x13f,_0x5a41df._0x15c262)+_0x2ce1bd(-_0x5a41df._0x5060d3,-_0x5a41df._0x137309,-_0x5a41df._0xbb493,-0xe6),_0x1d4ea4[_0x2ce1bd(-0xdc,-_0x5a41df._0xae8111,-_0x5a41df._0x1d8349,-_0x5a41df._0x498646)]=_0x4dd5f0['loKvp'],_0x1d4ea4[_0x2041b4(0x13f,_0x5a41df._0xc73588,0x112,_0x5a41df._0x26f117)+'me']=_0x4dd5f0[_0x2ce1bd(-_0x5a41df._0x587af9,-0x120,-_0x5a41df._0x3855a2,-_0x5a41df._0x5db7e9)],_0x75dc8f['user']=_0x1d4ea4,_0x75dc8f[_0x2ce1bd(-_0x5a41df._0x28fb45,-0xde,-_0x5a41df._0x2c7281,-_0x5a41df._0x37712a)+_0x2ce1bd(-_0x5a41df._0xa001de,-0xe5,-0xda,-0xbd)]=_0x4dd5f0[_0x2ce1bd(-_0x5a41df._0x16bee9,-0xe7,-0xd6,-_0x5a41df._0x5887fd)],_0x395729();}else{const _0xa1f5f2={};return _0xa1f5f2['id']=_0x2041b4(_0x5a41df._0x179d8a,0xfc,_0x5a41df._0xc97808,0x12e),_0xa1f5f2[_0x2041b4(_0x5a41df._0x5600ef,0x11e,0xd4,_0x5a41df._0x2db071)]='test',_0xa1f5f2['email']=_0x4dd5f0[_0x2041b4(0x10b,_0x5a41df._0x29297d,_0x5a41df._0x5e62cb,0x11a)],_0xa1f5f2['name']=_0x4dd5f0[_0x2041b4(_0x5a41df._0x2db071,_0x5a41df._0x1e80db,_0x5a41df._0x3cd4e8,_0x5a41df._0x40a795)],_0xa1f5f2[_0x2041b4(_0x5a41df._0x1c4b20,0x12c,_0x5a41df._0x1f8184,_0x5a41df._0xc73588)+'me']=_0x2ce1bd(-_0x5a41df._0x6475ae,-_0x5a41df._0xdeed8,-0xff,-0xdb),_0x12034e[_0x2041b4(0x149,_0x5a41df._0x1c0df1,0x13d,_0x5a41df._0x4a43ba)]=_0xa1f5f2,_0x1f7baa[_0x2ce1bd(-0xe2,-_0x5a41df._0x36047e,-0x102,-_0x5a41df._0xc97808)+'tedVia']=_0x4dd5f0[_0x2041b4(0x100,0xfe,_0x5a41df._0x29f3c7,0x11f)],_0x4dd5f0[_0x2041b4(_0x5a41df._0x4bea33,0x104,0x13d,_0x5a41df._0x3843b2)](_0x29d764);}}const _0xc39161=_0x75dc8f['headers']['authorizat'+'ion'];if(_0xc39161&&_0xc39161['startsWith'](_0x2041b4(_0x5a41df._0x5e5f10,_0x5a41df._0x319b54,0x152,0x110))){const _0x5c4379=_0xc39161['substring'](-0x24c4+-0x15a3+0x9*0x67e),_0x5af62c=await _0x4dd5f0['HGqzR'](validateApiKey,_0x5c4379);if(_0x5af62c){if(_0x4dd5f0[_0x2ce1bd(-_0x5a41df._0x183e8c,-_0x5a41df._0x3c05c,-0x85,-0xd8)]!==_0x4dd5f0[_0x2ce1bd(-0xad,-0xa2,-0xdc,-_0x5a41df._0x9ca58)]){const _0x393fbb={};return _0x393fbb[_0x2041b4(_0x5a41df._0x10c4ab,0xeb,_0x5a41df._0x59dd3a,_0x5a41df._0x54e271)]=_0x4dd5f0[_0x2ce1bd(-0xf7,-0xca,-0xfe,-_0x5a41df._0x3fbf79)],_0x393fbb['message']=_0x4dd5f0['TbxeM'],_0xbd6cc2[_0x2041b4(0x12a,0x15a,0x118,_0x5a41df._0x154602)](-0x790+0x60b+-0x108*-0x3)[_0x2ce1bd(-0xd5,-_0x5a41df._0x5c2bf5,-0xf3,-0xfd)](_0x393fbb);}else{_0x75dc8f['user']=_0x5af62c,_0x75dc8f[_0x2ce1bd(-0xe2,-_0x5a41df._0xa001de,-0xf9,-0xf0)+_0x2041b4(_0x5a41df._0x29297d,0x13c,0x14f,_0x5a41df._0x18c163)]=_0x2ce1bd(-_0x5a41df._0x26f528,-0xfa,-_0x5a41df._0x1228fd,-0xdc);const _0x146f0b={};return _0x146f0b['userId']=_0x5af62c['id'],_0x146f0b[_0x2041b4(_0x5a41df._0x1d7dc6,_0x5a41df._0x433f8b,_0x5a41df._0x3775b6,_0x5a41df._0x5de41b)]=_0x5af62c[_0x2ce1bd(-_0x5a41df._0x18694c,-_0x5a41df._0x315cb8,-0x108,-_0x5a41df._0x27df22)],_0x146f0b[_0x2ce1bd(-0xf1,-0x120,-_0x5a41df._0x2894e0,-0x10f)]=_0x75dc8f['path'],logger[_0x2ce1bd(-0xd3,-_0x5a41df._0x4fe637,-_0x5a41df._0x516b01,-0xd6)]('API\x20key\x20au'+'thenticate'+_0x2ce1bd(-_0x5a41df._0x1db96f,-_0x5a41df._0x18de54,-_0x5a41df._0x4dfffe,-_0x5a41df._0x584775),_0x146f0b),_0x395729();}}const _0x4d1ecf={};_0x4d1ecf['path']=_0x75dc8f[_0x2041b4(0xff,_0x5a41df._0x5343cb,_0x5a41df._0x492246,0xf8)],_0x4d1ecf[_0x2041b4(0x109,0xf2,0xeb,_0x5a41df._0x30800a)]=_0x75dc8f[_0x2ce1bd(-0xe7,-_0x5a41df._0x100305,-0xe8,-_0x5a41df._0x10da82)],logger['warn'](_0x4dd5f0['HJrJa'],_0x4d1ecf);const _0x23b64c={};return _0x23b64c['error']=_0x4dd5f0[_0x2ce1bd(-_0x5a41df._0x3487ae,-0xe9,-0xda,-0xa2)],_0x23b64c[_0x2041b4(0x12b,0x14e,0x141,_0x5a41df._0x5daf4b)]=_0x4dd5f0['lxXIA'],_0x2c5f16[_0x2ce1bd(-0xc6,-_0x5a41df._0x3855a2,-0xa1,-_0x5a41df._0x2cf878)](-0x7*0x41f+0x610*-0x2+0x2a8a)[_0x2041b4(0x11b,0xf0,_0x5a41df._0x29297d,0x133)](_0x23b64c);}if(_0x75dc8f['session']?.['userId']){const _0x231fea=await _0x4dd5f0['HGqzR'](findUserById,_0x75dc8f[_0x2041b4(0xfb,_0x5a41df._0x4bea33,0xe3,_0x5a41df._0x403632)][_0x2041b4(0xf2,0xd9,_0x5a41df._0x429c08,0x10b)]);_0x75dc8f[_0x2ce1bd(-_0x5a41df._0x2853ee,-_0x5a41df._0x274553,-0xca,-_0x5a41df._0x3478a6)]={'id':_0x75dc8f[_0x2041b4(0xfb,0xd7,0x129,_0x5a41df._0x1d48d1)][_0x2ce1bd(-_0x5a41df._0x18225b,-_0x5a41df._0x2f84c4,-0x11e,-_0x5a41df._0x2a1ecb)],'username':_0x75dc8f[_0x2041b4(_0x5a41df._0x43c927,_0x5a41df._0x3775b6,0x114,0x112)][_0x2ce1bd(-_0x5a41df._0x1e468c,-_0x5a41df._0x5a88b9,-0xd4,-0xdb)],'email':_0x75dc8f[_0x2ce1bd(-_0x5a41df._0x3e022d,-_0x5a41df._0x4155c6,-_0x5a41df._0x4ab76e,-_0x5a41df._0x27df22)][_0x2ce1bd(-_0x5a41df._0xae8111,-_0x5a41df._0x4ab76e,-0x10c,-0xd4)],'name':_0x75dc8f[_0x2041b4(_0x5a41df._0x39852c,0xdb,_0x5a41df._0x4c3f8b,_0x5a41df._0x137309)]['name'],'ssh_username':_0x75dc8f['session'][_0x2041b4(_0x5a41df._0x1c4b20,_0x5a41df._0x560c51,_0x5a41df._0x2d8b1e,_0x5a41df._0x1b115e)+'me']},_0x75dc8f[_0x2ce1bd(-0xe2,-_0x5a41df._0x198d31,-_0x5a41df._0x492246,-0xfc)+_0x2041b4(_0x5a41df._0x2fa460,_0x5a41df._0xf59168,_0x5a41df._0x3caf2c,0x14b)]=_0x2ce1bd(-0xf5,-0xc8,-0xf9,-0xff);const _0x13ef9e={};return _0x13ef9e[_0x2041b4(0xf2,0x110,0x104,0xc2)]=_0x75dc8f[_0x2041b4(0xfb,0x110,_0x5a41df._0x1df6ba,0x105)]['userId'],_0x13ef9e['username']=_0x75dc8f[_0x2ce1bd(-_0x5a41df._0x4e37da,-_0x5a41df._0x36596e,-_0x5a41df._0xc435e,-0x123)][_0x2041b4(0xf7,_0x5a41df._0x58b7a4,0xdd,_0x5a41df._0x3cd4e8)],_0x13ef9e[_0x2ce1bd(-_0x5a41df._0x1df6ba,-0xd7,-_0x5a41df._0x429c08,-0x10f)]=_0x75dc8f['path'],logger[_0x2ce1bd(-0xd3,-_0x5a41df._0x5294bb,-0xe1,-_0x5a41df._0x1e6425)](_0x4dd5f0[_0x2041b4(0x102,_0x5a41df._0x5df3ad,_0x5a41df._0x405c75,0x112)],_0x13ef9e),_0x4dd5f0[_0x2041b4(0x144,0x14e,0x15c,0x13a)](_0x395729);}const _0x17a123={};_0x17a123[_0x2041b4(_0x5a41df._0xd9cf61,_0x5a41df._0x4c65f0,_0x5a41df._0x12c0e3,0xdd)]=_0x75dc8f[_0x2ce1bd(-_0x5a41df._0x4326a9,-_0x5a41df._0x567a27,-_0x5a41df._0x154370,-_0x5a41df._0x405c75)],_0x17a123[_0x2041b4(0x109,0x126,0x122,_0x5a41df._0x30ef2e)]=_0x75dc8f[_0x2041b4(0x109,0xf2,_0x5a41df._0x52f8ff,_0x5a41df._0x217876)],_0x17a123['ip']=_0x75dc8f['ip'];function _0x2041b4(_0x191f95,_0x1c0a26,_0x427442,_0x2c807f){return _0xb48d(_0x191f95- -_0x52815c._0x3f092a,_0x1c0a26);}logger['debug'](_0x4dd5f0[_0x2ce1bd(-0xe0,-0xdc,-_0x5a41df._0x5baf3d,-0xc9)],_0x17a123);const _0x2311ed={};_0x2311ed[_0x2041b4(_0x5a41df._0x57edb9,_0x5a41df._0x3dd9f2,0xed,0x112)]=_0x4dd5f0[_0x2ce1bd(-_0x5a41df._0x3478a6,-_0x5a41df._0x38c852,-_0x5a41df._0x54a9d5,-0xc0)];function _0x2ce1bd(_0x5d3c88,_0x305d85,_0x8ac902,_0x678907){return _0xb48d(_0x5d3c88- -0x272,_0x305d85);}return _0x2311ed['message']=_0x4dd5f0[_0x2041b4(_0x5a41df._0x68c390,0x148,0x160,_0x5a41df._0xb6fbc1)],_0x2c5f16[_0x2ce1bd(-_0x5a41df._0x1afca7,-_0x5a41df._0x3f36df,-_0x5a41df._0x2b1fc7,-0xe3)](0x102a+-0x1827+0x1*0x98e)['json'](_0x2311ed);}export async function requireAdmin(_0x3e58a4,_0x3a941c,_0x44d184){const _0x4ca329={_0x598cae:0x2df,_0x4d5302:0x2d1,_0x230afe:0x30a,_0xe06ae8:0x323,_0x56ced6:0x2fb,_0x166f50:0x2bc,_0x3ba3da:0x2ea,_0x5bc88f:0x2f2,_0x588b8b:0x4dc,_0x2e7fe8:0x4c0,_0x6e94fc:0x302,_0x236fa3:0x321,_0x5a91ac:0x2cd,_0x75f90a:0x510,_0x40e5f0:0x4cd,_0x180caf:0x2c2,_0x35c826:0x4cf,_0x2294df:0x4ad,_0x416675:0x4da,_0x1a366f:0x312,_0x322e24:0x4ee,_0x5449d7:0x509,_0x5a36b8:0x30d,_0x36053c:0x2e5,_0x29f8b9:0x306,_0x365ec6:0x2d7,_0x9a88c0:0x50a,_0x5b2cc1:0x520,_0x389eec:0x504,_0x3611a6:0x2bd,_0x57bfd5:0x528,_0x2a7024:0x4ed,_0x538746:0x4fc,_0x22174b:0x514,_0x4b5fb5:0x50c,_0x8d968:0x526,_0x518b6e:0x316,_0x41477c:0x30b,_0x44b600:0x506,_0x38eeff:0x4ed,_0x8395d1:0x50c,_0x1e7ba8:0x511,_0xdba4fb:0x4e8,_0x30e389:0x50f,_0x45800a:0x522,_0x343c6b:0x4fd,_0xdaef03:0x2c9,_0x2d323d:0x525,_0x322669:0x30a,_0x22ddd3:0x310,_0x31316d:0x50d,_0x1059fc:0x4bf,_0x46bb2f:0x323,_0x3a59c5:0x2f8,_0x201186:0x323,_0x255c99:0x2ba,_0x6d682f:0x2af,_0x407bb6:0x28c,_0x3367e5:0x2bb,_0x40b8f0:0x291,_0x4c3f87:0x2ad,_0x10f4ee:0x4f6,_0xde3f4e:0x518,_0x48be16:0x50d,_0x5a56c5:0x2fa,_0x301a58:0x2ef,_0x1f8b76:0x2d1,_0xb42756:0x309,_0x3e2cb3:0x2f8,_0x12a310:0x519,_0x5321ad:0x4ff,_0x22af5a:0x4ef,_0x509b8e:0x52c,_0x47543d:0x4b7,_0x1782ff:0x327,_0x185876:0x2d1,_0x534526:0x2c1,_0x3845fa:0x2ef,_0x20e010:0x2f8,_0x58e8b5:0x4cc,_0xdfe7ca:0x4ea,_0x35d8f7:0x4de,_0x312662:0x2de,_0x6f32eb:0x2fe,_0x4e9948:0x308,_0x41c24e:0x301,_0x4d7b38:0x2ed},_0x348359={'JgpbG':_0x4307af(_0x4ca329._0x598cae,0x2c0,_0x4ca329._0x4d5302,0x2a2),'HfIqV':_0x4307af(_0x4ca329._0x230afe,_0x4ca329._0xe06ae8,0x30c,_0x4ca329._0x56ced6)+'thenticate'+_0x4307af(0x2da,_0x4ca329._0x166f50,_0x4ca329._0x3ba3da,_0x4ca329._0x5bc88f),'Mpytc':function(_0x451a82){return _0x451a82();},'zNVpz':_0x3cccef(_0x4ca329._0x588b8b,0x4fb,_0x4ca329._0x2e7fe8,0x4d8)+_0x4307af(0x312,_0x4ca329._0x6e94fc,0x2f2,_0x4ca329._0x236fa3)+_0x4307af(_0x4ca329._0x5a91ac,0x2d1,0x2ec,0x2f5),'lFUHM':_0x3cccef(0x4f1,_0x4ca329._0x75f90a,0x50f,_0x4ca329._0x40e5f0)+_0x4307af(0x2d2,0x2c3,_0x4ca329._0x180caf,0x2a8)+_0x3cccef(0x4d3,_0x4ca329._0x35c826,_0x4ca329._0x2294df,_0x4ca329._0x416675)+_0x4307af(0x2f1,0x2e1,0x30f,_0x4ca329._0x1a366f)+'ource','iuKbf':function(_0x19da89,_0x518bf3){return _0x19da89!==_0x518bf3;},'dAPus':_0x3cccef(0x4e3,_0x4ca329._0x322e24,0x4e7,_0x4ca329._0x5449d7),'wEkZs':_0x4307af(_0x4ca329._0x5a36b8,0x303,_0x4ca329._0x36053c,_0x4ca329._0x29f8b9)+'in\x20access\x20'+'required','YnPuj':function(_0x12f080){return _0x12f080();},'CCXPD':'Admin\x20perm'+_0x4307af(0x2dd,_0x4ca329._0x365ec6,0x2dd,0x301)+_0x3cccef(0x523,_0x4ca329._0x9a88c0,_0x4ca329._0x5b2cc1,_0x4ca329._0x389eec),'GNCtY':_0x4307af(0x2ed,0x302,0x2d6,_0x4ca329._0x3611a6)+'erver\x20erro'+'r','fDSVV':_0x3cccef(0x51a,_0x4ca329._0x57bfd5,0x500,_0x4ca329._0x2a7024)+'verify\x20adm'+_0x3cccef(_0x4ca329._0x538746,0x501,_0x4ca329._0x22174b,_0x4ca329._0x4b5fb5)+'ions'};function _0x3cccef(_0x30e64f,_0x2bab30,_0x4a05a0,_0x7f1f5){return _0xb48d(_0x30e64f-0x357,_0x2bab30);}if(!_0x3e58a4[_0x3cccef(0x522,0x53b,0x53d,_0x4ca329._0x8d968)]){const _0x460d06={};return _0x460d06[_0x3cccef(0x4da,0x4d3,0x4d3,0x4b1)]=_0x348359['zNVpz'],_0x460d06[_0x4307af(0x2ef,_0x4ca329._0x518b6e,0x2ef,_0x4ca329._0x41477c)]=_0x348359[_0x3cccef(_0x4ca329._0x44b600,_0x4ca329._0x38eeff,0x52e,_0x4ca329._0x8395d1)],_0x3a941c['status'](0xb*0x242+-0x3e3*-0x7+0x3e2*-0xd)[_0x4307af(0x2f0,_0x4ca329._0x230afe,_0x4ca329._0x598cae,0x2bf)](_0x460d06);}function _0x4307af(_0x51f0c8,_0xe5e252,_0x27f82b,_0x3981cd){return _0xb48d(_0x27f82b-0x142,_0xe5e252);}try{const {hasAllPermissions:_0xae0c56}=await import(_0x3cccef(_0x4ca329._0x1e7ba8,_0x4ca329._0xdba4fb,_0x4ca329._0x30e389,_0x4ca329._0x44b600)+'mission-re'+'solver.js'),_0x3c4af3=await _0xae0c56(_0x3e58a4[_0x3cccef(_0x4ca329._0x45800a,_0x4ca329._0x5449d7,_0x4ca329._0x343c6b,0x4f6)]['id']);if(!_0x3c4af3){if(_0x348359[_0x4307af(0x2f7,_0x4ca329._0xdaef03,0x2d7,0x2ae)](_0x348359[_0x3cccef(_0x4ca329._0x2d323d,0x516,_0x4ca329._0x1e7ba8,0x520)],_0x348359[_0x4307af(_0x4ca329._0x322669,0x32c,_0x4ca329._0x22ddd3,0x313)])){_0x58cfa5[_0x3cccef(0x522,0x511,0x51f,_0x4ca329._0x31316d)]=_0x472b7a,_0x4278aa[_0x3cccef(0x4e7,_0x4ca329._0x1059fc,0x508,0x4e7)+_0x4307af(0x30c,_0x4ca329._0x46bb2f,_0x4ca329._0x3a59c5,_0x4ca329._0x201186)]=_0x348359['JgpbG'];const _0x33cf36={};return _0x33cf36[_0x4307af(0x28f,_0x4ca329._0x255c99,0x2b6,_0x4ca329._0x6d682f)]=_0x246f7d['id'],_0x33cf36[_0x4307af(0x2bf,_0x4ca329._0x407bb6,_0x4ca329._0x3367e5,_0x4ca329._0x40b8f0)]=_0x44f4f6[_0x4307af(_0x4ca329._0x4c3f87,0x2c6,_0x4ca329._0x3367e5,0x290)],_0x33cf36['path']=_0x5e05d9['path'],_0x15eb78[_0x3cccef(_0x4ca329._0x10f4ee,_0x4ca329._0xde3f4e,0x4d7,_0x4ca329._0x48be16)](_0x348359['HfIqV'],_0x33cf36),_0x348359['Mpytc'](_0xe48c5a);}else{const _0x4573be={};return _0x4573be['error']=_0x4307af(0x2e2,0x2c4,0x2e0,0x30a),_0x4573be[_0x4307af(0x2c2,_0x4ca329._0x5a56c5,_0x4ca329._0x301a58,0x319)]=_0x348359['wEkZs'],_0x3a941c['status'](0xd0f*0x1+-0x907*-0x1+-0x1483*0x1)[_0x4307af(_0x4ca329._0x365ec6,0x2db,_0x4ca329._0x598cae,_0x4ca329._0x1f8b76)](_0x4573be);}}_0x348359[_0x4307af(0x30f,_0x4ca329._0xb42756,0x301,_0x4ca329._0x3e2cb3)](_0x44d184);}catch(_0x469e4b){const _0x52525={};_0x52525[_0x3cccef(0x4da,0x4cf,_0x4ca329._0x35c826,0x4ce)]=_0x469e4b[_0x3cccef(0x504,_0x4ca329._0x12a310,0x517,_0x4ca329._0x5321ad)],_0x52525['userId']=_0x3e58a4[_0x3cccef(0x522,0x54b,0x535,0x510)]['id'],logger[_0x3cccef(0x4da,_0x4ca329._0x22af5a,0x4e5,0x4fa)](_0x348359[_0x3cccef(0x50b,0x4db,_0x4ca329._0x509b8e,0x520)],_0x52525);const _0x33fa64={};return _0x33fa64[_0x3cccef(0x4da,0x4b2,0x4b6,_0x4ca329._0x47543d)]=_0x348359[_0x4307af(0x318,_0x4ca329._0x1782ff,0x312,0x2e6)],_0x33fa64[_0x4307af(_0x4ca329._0x185876,_0x4ca329._0x534526,_0x4ca329._0x3845fa,_0x4ca329._0x20e010)]=_0x348359[_0x3cccef(_0x4ca329._0x58e8b5,_0x4ca329._0xdfe7ca,0x4e5,_0x4ca329._0x35d8f7)],_0x3a941c[_0x4307af(_0x4ca329._0x312662,_0x4ca329._0x6f32eb,0x2ee,_0x4ca329._0x4e9948)](-0x1e0d+0x21e7+-0x1e6)[_0x4307af(0x2cf,_0x4ca329._0x41c24e,0x2df,_0x4ca329._0x4d7b38)](_0x33fa64);}}