@profoundlogic/coderflow-server 0.9.1 → 0.9.3

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 (197) hide show
  1. package/dist/coder-server.js +1 -1
  2. package/dist/config/skill-catalog.json +1 -1
  3. package/dist/config.js +1 -1
  4. package/dist/lib/agent-keepalive.js +1 -1
  5. package/dist/lib/agent-models.js +1 -1
  6. package/dist/lib/api-keys.js +1 -1
  7. package/dist/lib/apiKeys.js +1 -1
  8. package/dist/lib/app-server-ports.js +1 -1
  9. package/dist/lib/auto-judge.js +1 -1
  10. package/dist/lib/automation-service.js +1 -1
  11. package/dist/lib/basic-auth.js +1 -1
  12. package/dist/lib/bindings.js +1 -1
  13. package/dist/lib/build-history.js +1 -1
  14. package/dist/lib/build-output-service.js +1 -1
  15. package/dist/lib/build-scheduler.js +1 -1
  16. package/dist/lib/build-service.js +1 -1
  17. package/dist/lib/ca-certificates.js +1 -1
  18. package/dist/lib/claude-oauth-refresh.js +1 -1
  19. package/dist/lib/cli/build.js +1 -1
  20. package/dist/lib/cli/cleanup-users.js +1 -1
  21. package/dist/lib/cli/config-command.js +1 -1
  22. package/dist/lib/cli/config.js +1 -1
  23. package/dist/lib/cli/create-user.js +1 -1
  24. package/dist/lib/cli/grant-admin.js +1 -1
  25. package/dist/lib/cli/init.js +1 -1
  26. package/dist/lib/cli/jira.js +1 -1
  27. package/dist/lib/cli/license.js +1 -1
  28. package/dist/lib/cli/list-roles.js +1 -1
  29. package/dist/lib/cli/list-users.js +1 -1
  30. package/dist/lib/cli/server-manager.js +1 -1
  31. package/dist/lib/cli/set-password.js +1 -1
  32. package/dist/lib/compression-filter.js +1 -1
  33. package/dist/lib/config-migration.js +1 -1
  34. package/dist/lib/container-credential-sync.js +1 -1
  35. package/dist/lib/container-tokens.js +1 -1
  36. package/dist/lib/data-dir.js +1 -1
  37. package/dist/lib/deployment-history.js +1 -1
  38. package/dist/lib/deployment-service.js +1 -1
  39. package/dist/lib/docker-utils.js +1 -1
  40. package/dist/lib/email.js +1 -1
  41. package/dist/lib/emailTemplates.js +1 -1
  42. package/dist/lib/entitlement.js +1 -1
  43. package/dist/lib/external-connections.js +1 -1
  44. package/dist/lib/fetch-utils.js +1 -1
  45. package/dist/lib/git-commit-details-route.js +1 -1
  46. package/dist/lib/git-history-diff-guardrails.js +1 -1
  47. package/dist/lib/git-provider-service.js +1 -1
  48. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  49. package/dist/lib/git-provider-setup/index.js +1 -1
  50. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  51. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  52. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  53. package/dist/lib/git-providers/github-app-provider.js +1 -1
  54. package/dist/lib/git-providers/index.js +1 -1
  55. package/dist/lib/git-providers/provider-factory.js +1 -1
  56. package/dist/lib/git-providers/provider-interface.js +1 -1
  57. package/dist/lib/github-urls.js +1 -1
  58. package/dist/lib/group-objective-linking.js +1 -1
  59. package/dist/lib/ibmi-sync.js +1 -1
  60. package/dist/lib/jira-client.js +1 -1
  61. package/dist/lib/judge-blinding.js +1 -1
  62. package/dist/lib/logger.js +1 -1
  63. package/dist/lib/memory-utils.js +1 -1
  64. package/dist/lib/migration-to-scoped-rbac.js +1 -1
  65. package/dist/lib/model-fetcher.js +1 -1
  66. package/dist/lib/notifications.js +1 -1
  67. package/dist/lib/objective-context.js +1 -1
  68. package/dist/lib/oidc-auth.js +1 -1
  69. package/dist/lib/oidc-device-flow.js +1 -1
  70. package/dist/lib/passwordTokens.js +1 -1
  71. package/dist/lib/permission-resolver.js +1 -1
  72. package/dist/lib/pin-cascade.js +1 -1
  73. package/dist/lib/provider-accounts.js +1 -1
  74. package/dist/lib/provider-oauth.js +1 -1
  75. package/dist/lib/provider-profile.js +1 -1
  76. package/dist/lib/provider-token-refresh.js +1 -1
  77. package/dist/lib/rbac-user-state.js +1 -1
  78. package/dist/lib/request-url.js +1 -1
  79. package/dist/lib/rewind.js +1 -1
  80. package/dist/lib/role-definitions.js +1 -1
  81. package/dist/lib/roles.js +1 -1
  82. package/dist/lib/secrets.js +1 -1
  83. package/dist/lib/session-file-store.js +1 -0
  84. package/dist/lib/setup-repo-git-auth.js +1 -1
  85. package/dist/lib/slack-service.js +1 -1
  86. package/dist/lib/state-capture.js +1 -1
  87. package/dist/lib/static-files.js +1 -1
  88. package/dist/lib/task-aliases.js +1 -1
  89. package/dist/lib/task-container-init.js +1 -1
  90. package/dist/lib/task-context-usage.js +1 -1
  91. package/dist/lib/task-git-auth-errors.js +1 -1
  92. package/dist/lib/task-name-format.js +1 -1
  93. package/dist/lib/task-name-generator.js +1 -1
  94. package/dist/lib/task-source-metadata.js +1 -1
  95. package/dist/lib/teams.js +1 -1
  96. package/dist/lib/user-git-oauth.js +1 -1
  97. package/dist/lib/user-git-tokens.js +1 -1
  98. package/dist/lib/users.js +1 -1
  99. package/dist/middleware/requireAuth.js +1 -1
  100. package/dist/middleware/requireInit.js +1 -1
  101. package/dist/middleware/requirePermission.js +1 -1
  102. package/dist/package.json +1 -1
  103. package/dist/playwright.config.js +1 -1
  104. package/dist/playwright.task-terminal.config.js +1 -1
  105. package/dist/routes/apiKeys.js +1 -1
  106. package/dist/routes/auth-oidc.js +1 -1
  107. package/dist/routes/auth.js +1 -1
  108. package/dist/routes/automations.js +1 -1
  109. package/dist/routes/bindings.js +1 -1
  110. package/dist/routes/build.js +1 -1
  111. package/dist/routes/containers.js +1 -1
  112. package/dist/routes/deploy-task.js +1 -1
  113. package/dist/routes/environment-management.js +1 -1
  114. package/dist/routes/environments.js +1 -1
  115. package/dist/routes/external-skills.js +1 -1
  116. package/dist/routes/git-credentials.js +1 -1
  117. package/dist/routes/git-oauth.js +1 -1
  118. package/dist/routes/git-provider-setup.js +1 -1
  119. package/dist/routes/health.js +1 -1
  120. package/dist/routes/jira.js +1 -1
  121. package/dist/routes/logs.js +1 -1
  122. package/dist/routes/objective-management.js +1 -1
  123. package/dist/routes/password.js +1 -1
  124. package/dist/routes/prompt.js +1 -1
  125. package/dist/routes/provider-auth.js +1 -1
  126. package/dist/routes/qa.js +1 -1
  127. package/dist/routes/roles.js +1 -1
  128. package/dist/routes/settings.js +1 -1
  129. package/dist/routes/skill-management.js +1 -1
  130. package/dist/routes/skills.js +1 -1
  131. package/dist/routes/slack.js +1 -1
  132. package/dist/routes/stats.js +1 -1
  133. package/dist/routes/tasks.js +1 -1
  134. package/dist/routes/teams.js +1 -1
  135. package/dist/routes/templates.js +1 -1
  136. package/dist/routes/test-task.js +1 -1
  137. package/dist/routes/test.js +1 -1
  138. package/dist/routes/users.js +1 -1
  139. package/dist/routes/visualizations.js +1 -1
  140. package/dist/scripts/create-user.js +1 -1
  141. package/dist/scripts/migrate-config-to-data-dir.js +1 -1
  142. package/dist/start.js +1 -1
  143. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  144. package/dist/web-ui/public/activity-feed.js +1 -1
  145. package/dist/web-ui/public/activity-formatters.js +1 -1
  146. package/dist/web-ui/public/admin.html +6 -6
  147. package/dist/web-ui/public/admin.js +1 -1
  148. package/dist/web-ui/public/agent-event-parser.js +1 -1
  149. package/dist/web-ui/public/app.js +1 -1
  150. package/dist/web-ui/public/approve-dialog.js +1 -1
  151. package/dist/web-ui/public/automation-links.js +1 -1
  152. package/dist/web-ui/public/automation-schedule.js +1 -1
  153. package/dist/web-ui/public/comments-widget.js +1 -1
  154. package/dist/web-ui/public/diff-utils.js +1 -1
  155. package/dist/web-ui/public/docs/admin/automations.md +2 -1
  156. package/dist/web-ui/public/docs/admin/environments.md +2 -0
  157. package/dist/web-ui/public/docs/code/files-and-editing.md +1 -4
  158. package/dist/web-ui/public/docs/docsify-proxy-helper.js +1 -1
  159. package/dist/web-ui/public/environments.css +28 -0
  160. package/dist/web-ui/public/environments.html +33 -7
  161. package/dist/web-ui/public/environments.js +1 -1
  162. package/dist/web-ui/public/feedback-widget.js +1 -1
  163. package/dist/web-ui/public/file-selection-tree.js +1 -1
  164. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  165. package/dist/web-ui/public/git-history.html +1 -1
  166. package/dist/web-ui/public/git-history.js +1 -1
  167. package/dist/web-ui/public/git-status.js +1 -1
  168. package/dist/web-ui/public/ibmi-file-filter.js +1 -1
  169. package/dist/web-ui/public/index.html +1 -1
  170. package/dist/web-ui/public/index.js +1 -1
  171. package/dist/web-ui/public/login.js +1 -1
  172. package/dist/web-ui/public/markdown-editor.js +1 -1
  173. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  174. package/dist/web-ui/public/modal-maximize.js +1 -1
  175. package/dist/web-ui/public/notifications.js +1 -1
  176. package/dist/web-ui/public/permissions.js +1 -1
  177. package/dist/web-ui/public/pr-dialog.js +1 -1
  178. package/dist/web-ui/public/roles.html +1 -1
  179. package/dist/web-ui/public/roles.js +1 -1
  180. package/dist/web-ui/public/settings.html +1 -1
  181. package/dist/web-ui/public/settings.js +1 -1
  182. package/dist/web-ui/public/setup-password.js +1 -1
  183. package/dist/web-ui/public/skills.html +1 -1
  184. package/dist/web-ui/public/skills.js +1 -1
  185. package/dist/web-ui/public/sse-client.js +1 -1
  186. package/dist/web-ui/public/sse-client.transport-warning.js +1 -1
  187. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  188. package/dist/web-ui/public/task-judging-helpers.js +1 -1
  189. package/dist/web-ui/public/task.js +1 -1
  190. package/dist/web-ui/public/teams.html +2 -2
  191. package/dist/web-ui/public/teams.js +1 -1
  192. package/dist/web-ui/public/terminal.js +1 -1
  193. package/dist/web-ui/public/theme.js +1 -1
  194. package/dist/web-ui/public/users.html +2 -2
  195. package/dist/web-ui/public/users.js +1 -1
  196. package/dist/web-ui/public/variant-grouping.js +1 -1
  197. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4b61eb,_0x3fc68){const _0x2a4af0={_0x218097:0x23e,_0x33096f:0x229,_0x2faa95:0x227,_0x138ea2:0x242,_0x2befd0:0x261,_0x5ebafb:0x1e5,_0xcce7f3:0x215,_0x4df051:0x1cb,_0x219685:0x10b,_0x4e374d:0xcf,_0x75b198:0x118,_0x3270da:0xce,_0x4d40d8:0xfd,_0x4fc9ac:0x1dd,_0x4263ae:0x233,_0x17e451:0x1bf,_0x38a244:0x1ec,_0x53f59e:0x21f,_0x476aa8:0x1a6},_0x23547f={_0x2f8d37:0xdb},_0x1d1c21=_0x4b61eb();function _0x3ba38a(_0x438338,_0x3fba21,_0x584032,_0x1d20bf){return _0x1376(_0x584032-_0x23547f._0x2f8d37,_0x3fba21);}function _0x1eb840(_0x34b84b,_0x1976c5,_0x15a4a3,_0x4034ff){return _0x1376(_0x4034ff- -0x3,_0x1976c5);}while(!![]){try{const _0x6ef8c8=parseInt(_0x3ba38a(_0x2a4af0._0x218097,0x24c,0x22b,0x1f8))/(-0x41c*-0x1+-0x5c3+0x1a8)+-parseInt(_0x3ba38a(0x1f9,_0x2a4af0._0x33096f,_0x2a4af0._0x2faa95,_0x2a4af0._0x138ea2))/(-0x2419*-0x1+0x4ee*0x7+-0x1f*0x247)*(parseInt(_0x3ba38a(0x1ea,0x1a8,0x1e2,0x205))/(-0xdf*-0x23+0x1*0x46+-0x1ec0))+parseInt(_0x3ba38a(_0x2a4af0._0x2befd0,0x256,0x225,0x1f7))/(-0x2668+-0x3e3*0xa+-0x2f9*-0x1a)+-parseInt(_0x3ba38a(_0x2a4af0._0x5ebafb,_0x2a4af0._0xcce7f3,_0x2a4af0._0x4df051,0x205))/(-0x22ed+0x11c*-0xd+-0x1*-0x315e)*(-parseInt(_0x1eb840(0xbc,_0x2a4af0._0x219685,_0x2a4af0._0x4e374d,0xfc))/(-0x131f+-0x1921*0x1+0x2c46))+-parseInt(_0x1eb840(0xa8,_0x2a4af0._0x75b198,_0x2a4af0._0x3270da,_0x2a4af0._0x4d40d8))/(-0x51f+-0xe92+0x9dc*0x2)*(-parseInt(_0x3ba38a(_0x2a4af0._0x4fc9ac,_0x2a4af0._0x4263ae,0x1f1,_0x2a4af0._0x17e451))/(-0x1*0x5+0x1*0x1936+-0x1929))+-parseInt(_0x3ba38a(0x1d2,0x22a,0x215,_0x2a4af0._0x38a244))/(-0x99d+-0x1acf+-0x40d*-0x9)+-parseInt(_0x3ba38a(0x1fb,_0x2a4af0._0x53f59e,0x1f9,_0x2a4af0._0x476aa8))/(0x4*-0x937+-0x268c+-0x1d*-0x29a)*(-parseInt(_0x3ba38a(0x23c,0x1e5,0x203,0x22a))/(-0x1*-0x1f45+-0x9*0x83+0x2f*-0x91));if(_0x6ef8c8===_0x3fc68)break;else _0x1d1c21['push'](_0x1d1c21['shift']());}catch(_0x2a5943){_0x1d1c21['push'](_0x1d1c21['shift']());}}}(_0x8616,0x376*0x2cf+0xf9cf7+-0xc66b2));import _0x35fbfb from'express';import{logger}from'../lib/logger.js';function _0x1376(_0x382dff,_0x397947){_0x382dff=_0x382dff-(-0x56+0x1c8c+0x1*-0x1b7f);const _0x43a626=_0x8616();let _0x1fcb1e=_0x43a626[_0x382dff];if(_0x1376['vEKoSM']===undefined){var _0x5e9471=function(_0x2bfbf0){const _0x51ebde='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ee037='',_0x21e9c4='';for(let _0x1443dc=-0xb7*-0x35+0x509*0x7+-0x4922,_0x5a50bf,_0x45648a,_0x161772=-0x17fd+-0x15e1+0x67*0x72;_0x45648a=_0x2bfbf0['charAt'](_0x161772++);~_0x45648a&&(_0x5a50bf=_0x1443dc%(0x1*-0xaab+-0x1fe6+-0xb*-0x3df)?_0x5a50bf*(-0x29*-0xb+-0x1dfc+0x1c79)+_0x45648a:_0x45648a,_0x1443dc++%(-0x3d*-0x35+-0x14e1*-0x1+0x2*-0x10bf))?_0x3ee037+=String['fromCharCode'](-0x1a14*-0x1+0x70*0x50+0x9*-0x6ad&_0x5a50bf>>(-(-0x1409+-0x1661+0xe24*0x3)*_0x1443dc&0x13d0+-0x1*0x1bdf+0x815)):0x12f4+-0x1d*0x21+-0x5f*0x29){_0x45648a=_0x51ebde['indexOf'](_0x45648a);}for(let _0x21ab7d=-0x16e9+-0xa74+-0xdb*-0x27,_0x2857b6=_0x3ee037['length'];_0x21ab7d<_0x2857b6;_0x21ab7d++){_0x21e9c4+='%'+('00'+_0x3ee037['charCodeAt'](_0x21ab7d)['toString'](0x1*0x7cb+0x2af+0x2b*-0x3e))['slice'](-(-0x1e04+0x1b*-0x15+0x1*0x203d));}return decodeURIComponent(_0x21e9c4);};_0x1376['IiiOXj']=_0x5e9471,_0x1376['uFZzXX']={},_0x1376['vEKoSM']=!![];}const _0x1e54bd=_0x43a626[0x185a+-0x140e+-0x44c],_0x319bf7=_0x382dff+_0x1e54bd,_0x5eea8e=_0x1376['uFZzXX'][_0x319bf7];return!_0x5eea8e?(_0x1fcb1e=_0x1376['IiiOXj'](_0x1fcb1e),_0x1376['uFZzXX'][_0x319bf7]=_0x1fcb1e):_0x1fcb1e=_0x5eea8e,_0x1fcb1e;}function _0x8616(){const _0x46cd14=['Exr6tLO','C2v0DxbvCMW','C2vUzcbWyxnZDW','ANnVBG','BgvUz3rO','t0HIy2S','ndq0mJq3ohPsCfjzCW','CvPwr0i','zw1IDMC','vuPfDfy','BMfTzq','zxr1Ca','z2v0ihvZzxiGDa','zgf0yq','ugfZC3DVCMqGDa','r3nXAhG','zxHWAxjLC0LU','vfj4thi','C2vUzevTywLS','z2v0','Eu5ksfa','mZKXmti1nMLLAgjeAa','B2TLBKLK','vxnLCIbjrcbPCW','l3rVA2vUCY86Da','Dg9Rzw4','ihnLDcb1Ccbttq','y29UzMLNDxjHDa','C3DVCMqGDg9Rzq','mZG1mdy3me1Jr3r4yG','wu5bEuS','zxHWAxjLC19HDa','C2v0Dxa','ig9YicjYzxnLDa','AwWGC2vUDcb0BW','wu5stxa','DentDKy','A2vKihn1y2nLCW','BuDqqM4','mtfMugvjt0O','s2z6vuG','C3vIAMvJDa','r2rWwK8','CgfZC3DVCMqGyq','z0PYweq','B2TLBIbJCMvHDa','rMfPBgvKihrVia','Dxn0igjLigf0ia','wxvHt2G','ugfZC3DVCMqGCW','uLfYr0y','yxjHy3rLCNm','vxnLCIbUB3qGzG','CgfZC3DVCMqTCG','DxnLCK5HBwu','Dg9Rzw5jza','yM9KEq','otuWmZm3ovjyvxLjCq','C2v0ihbHC3n3BW','yMXLCYb0BYbZzq','vunVs1e','sNLNz1u','A2vU','Avbqsvq','AMjRreS','C2vUzcbLBwfPBa','zxjYB3i','ihnLBNq','vhLWzsbTDxn0ia','ihjLCxvPCMvK','r1rOvhO','l2nYzwf0zs10BW','AhzzqNq','nde0ntCXnNvtyLHnuW','DhvZ','mKP6D2rLAG','CgfYyw1Z','zxqGC3vJy2vZCW','wuXAwhe','odiWotu5wvzrD0Pd','BgvHC3qGocbJAa','DhLWzq','Dg9Rzw5uExbL','ANLxs1i','vfDlA0u','z2v0igvTywLSia','C2z1BgX5','BwvZC2fNzq','Aw9Uihn0yxr1CW','AxruAui','yK9KveC','p3rVA2vUpq','ruPPCfK','ywrTAw5jza','uNfRswi','rufTsLO','tu9QsLG','zwqGyw5KigvTyq','l3nLDhvWlxbHCW','C3DVCMqUAhrTBa','vg9Rzw4GAxmGCG','zNvSBhK','l3nLDhvW','zxf1AxjLza','CMvZzxq','ze9jB2m','CgfZC3DVCMqTCW','CMv2B2TLihrVAW','sw52ywXPzcbVCG','v3nmuw8','D3Djsve','DxnLCKLK','zM91BMq','qLrcA08','B3vUza','CxvLCNK','q1D0zu4','wgH2y00','tg1gELa','CMuGCMvXDwLYzq','t3flreC','B2TLBG','zwqGC3vJy2vZCW','zxr1CcbLBwfPBa','DxnLCM5HBwu','C3rHDhvZ','v1Drz0C','uw5jshq','BMqGzw1HAwXZlG','zw1HAwXfCNjVCG','C2vYswq','y3jLyxrLihbHCW','Aw5MBW','B3jKigvTywLS','CNvhzha','zw1HAwW','yMuGiNnLDhvWiG','zxqGDMLHihrVAW','B05rz3a','uM91DgvY','z3r2qwm','wufmsMG','Bxn2rfK','Cg9ZDa','s0nTDei','vfaGzw52AxjVBG','Aw5JBhvKzxm','zw1HAwXtzw50','l2vTywLSlwnVBG','DcbJB25MAwD1CG','vg9Rzw4GCMv2BW','A2TnBhi','nufZB0zuBW','DMfSAwq','yw1L','B2TLBNm','DxnLCG','AvjMzfa','sM9eA0S','y29UzMLNihn0yq','u01uucbPCYbUBW','thH1AfG','rhrus2i','wwj0vgm','vg9Rzw4GBM90ia','Dg9Rzw5Z','A2vK','otG0mtm4wu1eCuHk','mtrvv1Lkyuu'];_0x8616=function(){return _0x46cd14;};return _0x8616();}function _0x52dad0(_0x144b70,_0x3baddd,_0x1a024c,_0x3a79db){const _0x37e216={_0x53df97:0x2b6};return _0x1376(_0x1a024c-_0x37e216._0x53df97,_0x144b70);}import{requireAuth,requireAdmin}from'../middleware/requireAuth.js';import{getRequestBaseUrl}from'../lib/request-url.js';import{findUserById,setUserPassword}from'../lib/users.js';import{createPasswordToken,validateToken,markTokenAsUsed,getUserTokens,revokeToken}from'../lib/passwordTokens.js';function _0x21a256(_0x20a233,_0x4240ac,_0x4f17cc,_0x35a407){return _0x1376(_0x35a407-0x2e,_0x4240ac);}import{isEmailConfigured,sendTemplatedEmail,getEmailConfigStatus}from'../lib/email.js';import{renderTemplate}from'../lib/emailTemplates.js';const router=_0x35fbfb[_0x21a256(0x129,0x14d,0x124,0x111)]();router[_0x52dad0(0x383,0x3b0,0x3ca,0x3b8)](_0x21a256(0xeb,0xd3,0x131,0x11a)+'fig',requireAuth,requireAdmin,async(_0x579507,_0x1b5fa5)=>{const _0xe66997={_0x1a2a2f:0x3a7,_0x374327:0x3a1,_0x1724c8:0x36e,_0x3f549b:0x2a,_0x24ee4c:0x32,_0x19bf46:0xbf,_0x589aba:0x4b,_0x54fb6d:0x86,_0x527c24:0x2c2,_0x22a4f5:0x2f6,_0x36add7:0x337,_0x32dab4:0x18,_0x5ae05c:0x6e,_0x327f02:0x79,_0x3297a3:0x336,_0x198f06:0x34f,_0x251ae8:0x57,_0xe0a76:0xbd,_0x21f362:0x88,_0x4bca70:0x325,_0xee0413:0x8f,_0x35115f:0x28,_0x1b2fa0:0x89,_0x4163a8:0x35,_0x34e4cc:0x3f},_0x10450d={_0x9d5324:0x16e,_0x17848e:0xf3},_0x15cfef={_0x34ee63:0x42,_0x23147d:0x9e,_0x4f45d4:0x142},_0x54f1aa={};function _0x3928ae(_0x1d4744,_0x3a129b,_0x5e4fec,_0x174f73){return _0x52dad0(_0x3a129b,_0x3a129b-_0x15cfef._0x34ee63,_0x5e4fec- -_0x15cfef._0x23147d,_0x174f73-_0x15cfef._0x4f45d4);}function _0x55b4a2(_0x51b67f,_0x1798db,_0xcda589,_0x3cf658){return _0x21a256(_0x51b67f-0x1d9,_0xcda589,_0xcda589-_0x10450d._0x9d5324,_0x3cf658- -_0x10450d._0x17848e);}_0x54f1aa['PpJaU']='Failed\x20to\x20'+_0x3928ae(_0xe66997._0x1a2a2f,_0xe66997._0x374327,_0xe66997._0x1724c8,0x392)+_0x55b4a2(0x45,0x16,_0xe66997._0x3f549b,_0xe66997._0x24ee4c)+_0x55b4a2(_0xe66997._0x19bf46,_0xe66997._0x589aba,0x94,_0xe66997._0x54fb6d),_0x54f1aa[_0x3928ae(0x2d6,_0xe66997._0x527c24,_0xe66997._0x22a4f5,_0xe66997._0x36add7)]=_0x55b4a2(_0xe66997._0x32dab4,_0xe66997._0x5ae05c,_0xe66997._0x327f02,0x6a)+_0x3928ae(_0xe66997._0x3297a3,_0xe66997._0x198f06,0x36e,_0xe66997._0x198f06)+_0x55b4a2(0x12,0x4c,0x87,_0xe66997._0x251ae8)+_0x55b4a2(_0xe66997._0xe0a76,0x61,_0xe66997._0x21f362,0x94);const _0x3648e3=_0x54f1aa;try{const _0x22d75c=getEmailConfigStatus();_0x1b5fa5[_0x3928ae(_0xe66997._0x4bca70,0x347,0x31c,0x34b)](_0x22d75c);}catch(_0x3a0747){logger[_0x55b4a2(_0xe66997._0xee0413,0x67,0xcb,0x7e)](_0x3648e3['PpJaU'],_0x3a0747);const _0x2b9b7d={};_0x2b9b7d['error']=_0x3648e3['ruGdp'],_0x1b5fa5['status'](0x7*0x20b+0x2426+-0x307f)[_0x55b4a2(_0xe66997._0x35115f,_0xe66997._0x1b2fa0,_0xe66997._0x4163a8,_0xe66997._0x34e4cc)](_0x2b9b7d);}}),router[_0x21a256(0xd9,0x10f,0xc3,0x115)](_0x21a256(0x15e,0x15c,0x13b,0x176)+_0x52dad0(0x3cf,0x3c3,0x3f5,0x3b3),requireAuth,requireAdmin,async(_0x4511bc,_0x4f2daa)=>{const _0x1049f0={_0x5d23d6:0x4b6,_0x5ee52d:0x501,_0x16e1fd:0x4e9,_0x3dbfa7:0x11b,_0x2f390a:0x468,_0x16bf0e:0x477,_0x2dc3d6:0x4b8,_0x196c78:0x4c6,_0x3d18ae:0x4be,_0x5c245c:0x4c4,_0x236791:0x4bb,_0x5343c8:0x139,_0x5d4996:0xf9,_0x115113:0xac,_0x6a02ff:0xf7,_0xfa03fc:0x98,_0x4c8b2c:0x12d,_0x518413:0xd0,_0x516182:0xb5,_0x4edce0:0x103,_0x5f084d:0x12e,_0x167246:0x506,_0x2b69f1:0x4b5,_0x857c16:0x4b9,_0x575fd4:0x4ae,_0x760639:0x453,_0x2ef58a:0x4a1,_0x461e22:0x4e6,_0x20add7:0x47f,_0x8a33f3:0xbc,_0x4fb859:0x99,_0x4976d9:0x9a,_0x2614e4:0x436,_0x197618:0x449,_0x253d28:0x408,_0x2bbab8:0x42f,_0x3979d9:0x498,_0x5066d4:0x4b7,_0x422576:0xed,_0x26cf94:0xd2,_0x34795e:0xb2,_0x88befa:0x45b,_0x1b3603:0x150,_0xb6f25d:0xff,_0x206c91:0x129,_0x54d440:0xda,_0x563c19:0xf8,_0x4e97db:0x78,_0x29214f:0x44b,_0x3ddf9d:0x476,_0x2a5051:0x497,_0xbfede:0x495,_0x4c3fe7:0x463,_0x115a70:0x5c,_0x2d2aa3:0x45c,_0x3564f5:0x48d,_0x2f17e7:0x4b5,_0x150db5:0x4c3,_0x1b1cf9:0x8f,_0x46fffd:0xa0,_0x3ef5ba:0xb1,_0x12a5ea:0x136,_0x101dcd:0xbd,_0x4658c4:0x4b0,_0x394980:0x4a6,_0x13624b:0x489,_0x209e41:0xd7,_0x173918:0xc4,_0x3c67e1:0x15c,_0x342870:0xe6,_0x2f69a4:0x422,_0x504b2c:0x445,_0x56fff6:0xcf,_0xe55462:0x9a,_0x41227f:0x8c,_0x10c06c:0x5c,_0x457cd7:0x9d,_0x231866:0x4d9,_0x4be7e6:0x10b,_0x4c8b48:0xe0,_0x217a79:0xcb,_0x5d52ae:0x42a,_0x2a81a9:0x4e8,_0x7466af:0x4c7,_0x10270a:0x473,_0x123879:0x440,_0x331698:0x416,_0x34061b:0xd4,_0xa75396:0x14d,_0x29284c:0x109,_0x561cfe:0xfa,_0x14c2a6:0x4cc,_0x1dc65c:0x51c,_0x5301fc:0xea,_0x185366:0xeb,_0x1413d8:0x45e,_0x34eea6:0x4d7,_0x30a3ca:0x515,_0x2b5de:0x4ac,_0x5ca086:0x488,_0x30b885:0x46e,_0x5518cb:0x4f5,_0x2d6283:0x4c6,_0x25f5ce:0x472,_0x4f1348:0x90,_0x73c788:0x82,_0x200dde:0xc6,_0x5d1701:0xf2,_0x1a7aa3:0x10b,_0x393a2f:0xdc,_0x3a8de1:0x153,_0x3a058d:0x4e7,_0x36869b:0x526,_0x274a93:0x52a,_0xb40b7a:0x49c,_0x2b1f14:0x48f,_0x218b0b:0x4cc,_0x4fce53:0x47d,_0x420b82:0x494,_0x5d8e9a:0x11d,_0x98ae73:0xd5,_0x26442e:0x10c,_0x390750:0x4dc,_0x29fc46:0x512,_0x4366c4:0xdd,_0x2e84d6:0x465,_0xe81121:0x487,_0x406b57:0x443,_0x4dbe78:0x178,_0x445092:0x125,_0x5df0f1:0x41,_0x37e3bc:0x84,_0xf8c37b:0xab,_0xed5f3a:0xd4,_0xb721bc:0x111,_0x2715cb:0x4a3,_0x30c330:0x517,_0x389e2d:0xe2,_0x539ab5:0x8e,_0x5d3b5f:0x478,_0x3285c5:0x4ce,_0x1fe127:0x48d,_0x3a6f8d:0x134,_0x6901a3:0xf6,_0x5bf1d6:0x13c,_0x3ae384:0xfa,_0x54e209:0xe7,_0x19c386:0xf4,_0x4fe13f:0x44b,_0x16a55e:0x4c0,_0xc649c8:0x4a3,_0x204376:0x4bc,_0x5a3e46:0x4cd,_0x4612ce:0xeb,_0x58b6c1:0x484,_0x484402:0xe1,_0x325080:0xa5,_0x2cf7b2:0xc3,_0x4fc088:0x4d4,_0xe52ffb:0x513,_0x2817f5:0x504,_0x9a00d9:0xfc,_0x4e8a19:0x140,_0xeaabdd:0xc3,_0x1d1dc1:0x150,_0x47d97a:0x10b,_0x32b237:0x479,_0x4a7ebc:0x48d,_0x1834fb:0x9f,_0x104165:0x9f,_0x3a6f5f:0x4d5,_0x1e10e9:0x48f,_0x4e61f2:0x49a,_0x194c2f:0xad,_0x2751cf:0x9d,_0xaad2f5:0x4b4,_0x58bc11:0x502,_0x5ed228:0xc7,_0x1bb476:0xa4,_0x578419:0x88,_0x447976:0x433,_0xcf0116:0x481,_0x2c207b:0x9e,_0x36298c:0x10a,_0x54f231:0x10e,_0x1a63a4:0x8b,_0x15aaf8:0xc8,_0x3a9843:0x431,_0x34b061:0x120,_0x1742a3:0x492,_0x18c2f9:0x11b,_0x43db3a:0xa3,_0x296cc5:0xcb,_0xc7972a:0x508,_0x8717d2:0x4de,_0x5cfaae:0x4d1,_0x43538c:0x46c,_0xcf8a2b:0x45d,_0xf865d3:0x491,_0x2bc993:0x457,_0xa0d2ff:0x462,_0x145f62:0x466,_0x4d1b10:0x478,_0x4e78da:0xaf,_0x3e9748:0x105,_0x1412ae:0xde,_0x53accb:0xc9,_0x314803:0xea,_0x466235:0xcf,_0x161c29:0xaa,_0x43fbff:0xb5,_0x236469:0x448,_0x398643:0x45f,_0x55e687:0x14f,_0x50e1ad:0x492,_0x3e4b96:0x4b3,_0x463f2a:0x4ab,_0x1a5261:0x474,_0x58d577:0xcd,_0x293cdb:0xb0,_0x47a592:0xd1,_0x35408e:0x4da,_0x4ff46f:0x487,_0x412260:0x47d,_0x95d1d2:0x421,_0x213773:0x438,_0x3aef2e:0x46b,_0x4be5cc:0x151,_0x29b546:0x101,_0x246ff9:0x10c,_0x10153e:0x46f,_0x5d7960:0xc0,_0x3d98c4:0xc1,_0x52a10d:0x4b5,_0x264879:0x4a7,_0x3bef0:0x461,_0x36ac42:0x86,_0x11fc2c:0xd5,_0x4768f3:0x80,_0x501a39:0x9e,_0x1b481a:0xa7,_0x931d1b:0x44d,_0x8f8c00:0x482,_0x5e5af7:0x503,_0x14ef63:0x4ed,_0x48ebf1:0xd6,_0xc0356c:0x470,_0x2fdfe4:0x4a6,_0x200b73:0x4d0,_0x39fe1b:0x4a3,_0x4281b9:0x4a9,_0xc510b0:0x502,_0x44be6e:0xe3,_0x2cb9d1:0xaf,_0x5d9626:0x107,_0x140624:0x49f,_0x24cbb9:0x474,_0x3b2ca3:0x44a,_0x4c5273:0xdc},_0x503c74={_0x333198:0xb9},_0x21f6f0={_0x11dd6e:0xb2,_0x2df6b1:0x496,_0x55eca5:0x54},_0x49fdf6={'iRfdP':_0xd67c84(_0x1049f0._0x5d23d6,0x4ce,_0x1049f0._0x5ee52d,_0x1049f0._0x16e1fd)+_0xfb1e77(-0x14a,-_0x1049f0._0x3dbfa7,-0x122,-0x100)+_0xd67c84(_0x1049f0._0x2f390a,0x4ab,0x4f6,_0x1049f0._0x16bf0e)+'\x22','LmFzP':_0xd67c84(0x50b,_0x1049f0._0x2dc3d6,_0x1049f0._0x196c78,_0x1049f0._0x3d18ae)+_0xd67c84(0x47d,_0x1049f0._0x5c245c,_0x1049f0._0x236791,0x4fc)+'rd','mGPBn':'Email\x20not\x20'+'configured','kkMlr':_0xfb1e77(-_0x1049f0._0x5343c8,-_0x1049f0._0x5d4996,-_0x1049f0._0x115113,-0xe8)+_0xfb1e77(-0x139,-_0x1049f0._0x6a02ff,-0xb8,-0xf3)+'ed.\x20Please'+_0xfb1e77(-0xce,-0xb3,-_0x1049f0._0xfa03fc,-0xc5)+_0xfb1e77(-_0x1049f0._0x4c8b2c,-_0x1049f0._0x518413,-_0x1049f0._0x516182,-_0x1049f0._0x6a02ff)+'ment\x20varia'+_0xfb1e77(-0x79,-0xc3,-0xb8,-0xa4)+_0xfb1e77(-_0x1049f0._0x4edce0,-0xf5,-_0x1049f0._0x5f084d,-0x108),'MOjJX':'Token\x20and\x20'+_0xd67c84(_0x1049f0._0x167246,_0x1049f0._0x2b69f1,0x48b,_0x1049f0._0x857c16)+_0xfb1e77(-0x13e,-0x15a,-0x129,-0x111)+'d','embvg':function(_0x592899,_0x5f3003){return _0x592899===_0x5f3003;},'CWteN':_0xd67c84(0x45f,0x46b,0x445,_0x1049f0._0x575fd4),'wwIIQ':_0xd67c84(0x4b0,0x4aa,0x4b6,0x469),'RQrGF':_0xd67c84(_0x1049f0._0x760639,_0x1049f0._0x2ef58a,_0x1049f0._0x461e22,_0x1049f0._0x20add7)+_0xfb1e77(-_0x1049f0._0x8a33f3,-0xee,-_0x1049f0._0x4fb859,-_0x1049f0._0x4976d9),'RqkIb':_0xd67c84(_0x1049f0._0x2614e4,_0x1049f0._0x197618,_0x1049f0._0x253d28,0x444),'WWQgG':function(_0x2d078b,_0x36b77d){return _0x2d078b===_0x36b77d;},'Ghfyg':_0xd67c84(0x456,0x46f,_0x1049f0._0x2bbab8,0x499),'UCoKQ':function(_0x5500d0,_0x368e27){return _0x5500d0(_0x368e27);},'QnIHt':function(_0x82c720,_0x483f1e,_0x279745){return _0x82c720(_0x483f1e,_0x279745);},'hvYBt':_0xd67c84(0x4e6,_0x1049f0._0x3979d9,_0x1049f0._0x760639,0x46b)+_0xd67c84(0x49a,_0x1049f0._0x5066d4,0x4e1,0x47a)+'ed','YUaeK':_0xfb1e77(-0xfc,-0xdf,-0xe4,-0xd1)+_0xfb1e77(-0x105,-_0x1049f0._0x422576,-_0x1049f0._0x26cf94,-_0x1049f0._0x34795e)+_0xd67c84(0x43a,_0x1049f0._0x88befa,0x433,0x43d)+_0xfb1e77(-_0x1049f0._0x1b3603,-0x13b,-_0x1049f0._0x5d4996,-0x123),'iPPIT':function(_0x328afd,_0x49cc37){return _0x328afd!==_0x49cc37;},'JyggU':'YNAyK','qZVGB':function(_0x457f9d){return _0x457f9d();},'jbkDK':_0xfb1e77(-_0x1049f0._0xb6f25d,-_0x1049f0._0x206c91,-0xdf,-_0x1049f0._0x54d440),'WsLQo':_0xfb1e77(-_0x1049f0._0x563c19,-0xd9,-_0x1049f0._0x4e97db,-0xaa)+'eset','yNJHP':_0xd67c84(0x422,_0x1049f0._0x29214f,0x46f,_0x1049f0._0x3ddf9d)+_0xd67c84(_0x1049f0._0x2a5051,_0x1049f0._0xbfede,0x465,_0x1049f0._0x4c3fe7),'GdpZO':'7\x20days','LxuhX':function(_0x32d7b4,_0x204d06,_0x151300){return _0x32d7b4(_0x204d06,_0x151300);},'gJrXD':function(_0x51d264,_0x3761ff){return _0x51d264(_0x3761ff);},'KfzUH':_0xfb1e77(-0xbf,-0xa4,-_0x1049f0._0x115a70,-0xae)+_0xd67c84(0x41f,_0x1049f0._0x2d2aa3,0x41e,0x41c)+_0xd67c84(_0x1049f0._0x3564f5,0x4cd,_0x1049f0._0x2f17e7,_0x1049f0._0x150db5),'gtvAc':_0xfb1e77(-0xa0,-_0x1049f0._0x1b1cf9,-_0x1049f0._0x46fffd,-_0x1049f0._0x3ef5ba)+_0xfb1e77(-_0x1049f0._0x12a5ea,-0x124,-_0x1049f0._0x101dcd,-0x105)+_0xd67c84(_0x1049f0._0x4658c4,_0x1049f0._0x394980,0x452,_0x1049f0._0x13624b)+'n'};function _0xfb1e77(_0x19f4de,_0x4d7ac8,_0x550e02,_0x556368){return _0x52dad0(_0x550e02,_0x4d7ac8-_0x21f6f0._0x11dd6e,_0x556368- -_0x21f6f0._0x2df6b1,_0x556368-_0x21f6f0._0x55eca5);}function _0xd67c84(_0x437f4a,_0x3816d9,_0x2b6ed8,_0x1e50ff){return _0x52dad0(_0x2b6ed8,_0x3816d9-_0x503c74._0x333198,_0x3816d9-0xd3,_0x1e50ff-0x170);}try{if(_0x49fdf6[_0xfb1e77(-0x11f,-0xbf,-0x10f,-_0x1049f0._0x209e41)](_0xfb1e77(-_0x1049f0._0x173918,-0xac,-0x135,-0xfe),_0x49fdf6[_0xfb1e77(-_0x1049f0._0x3c67e1,-0x10d,-_0x1049f0._0x342870,-0x114)])){const {userId:_0x4b9826,type:type=_0x49fdf6[_0xd67c84(_0x1049f0._0x2f69a4,0x44f,_0x1049f0._0x13624b,_0x1049f0._0x504b2c)],sendEmail:sendEmail=![]}=_0x4511bc[_0xfb1e77(-0xd5,-0x83,-_0x1049f0._0x56fff6,-0xa7)];if(!_0x4b9826){const _0x2429e4={};return _0x2429e4[_0xfb1e77(-_0x1049f0._0xe55462,-_0x1049f0._0x41227f,-_0x1049f0._0x10c06c,-_0x1049f0._0x457cd7)]=_0x49fdf6[_0xd67c84(0x4a6,0x4bc,_0x1049f0._0x231866,0x47d)],_0x4f2daa[_0xfb1e77(-0x13c,-0x152,-0x14b,-_0x1049f0._0x4be7e6)](0x4eb+-0x734+0x3d9)[_0xfb1e77(-_0x1049f0._0x4c8b48,-_0x1049f0._0x217a79,-0x127,-0xdc)](_0x2429e4);}if(![_0x49fdf6[_0xd67c84(0x479,0x44f,0x411,_0x1049f0._0x5d52ae)],_0x49fdf6[_0xd67c84(0x538,_0x1049f0._0x2a81a9,0x520,_0x1049f0._0x7466af)]][_0xd67c84(_0x1049f0._0x88befa,_0x1049f0._0x10270a,0x4a0,_0x1049f0._0x123879)](type)){if(_0x49fdf6[_0xd67c84(0x480,0x45f,0x49e,_0x1049f0._0x331698)](_0x49fdf6['Ghfyg'],_0xfb1e77(-_0x1049f0._0x34061b,-_0x1049f0._0xa75396,-_0x1049f0._0x29284c,-_0x1049f0._0x561cfe))){const _0x103bd4={};return _0x103bd4[_0xd67c84(0x4b0,_0x1049f0._0x14c2a6,0x51e,_0x1049f0._0x1dc65c)]=_0x49fdf6[_0xfb1e77(-0xb7,-0xb1,-_0x1049f0._0x5301fc,-_0x1049f0._0x185366)],_0x4f2daa[_0xd67c84(0x418,_0x1049f0._0x1413d8,_0x1049f0._0x3ddf9d,0x42c)](-0xbd4*-0x1+0x5*0x113+0x1*-0xfa3)['json'](_0x103bd4);}else{const _0x5db8c4={};return _0x5db8c4[_0xd67c84(_0x1049f0._0x34eea6,0x4cc,0x51f,_0x1049f0._0x30a3ca)]=_0x49fdf6[_0xd67c84(0x49c,0x47e,_0x1049f0._0x2b5de,0x45d)],_0x4f8450['status'](-0x1a3d*0x1+-0x1*0xf53+-0x730*-0x6)[_0xd67c84(0x4cd,_0x1049f0._0x3564f5,_0x1049f0._0x5ca086,_0x1049f0._0x30b885)](_0x5db8c4);}}const _0xa7038=await _0x49fdf6[_0xd67c84(_0x1049f0._0x5518cb,_0x1049f0._0x2d6283,0x4be,_0x1049f0._0x25f5ce)](findUserById,_0x4b9826);if(!_0xa7038){const _0x53db99={};return _0x53db99[_0xfb1e77(-_0x1049f0._0x4f1348,-_0x1049f0._0x73c788,-0xf1,-_0x1049f0._0x457cd7)]='User\x20not\x20f'+'ound',_0x4f2daa[_0xfb1e77(-0x154,-_0x1049f0._0x200dde,-_0x1049f0._0x5d1701,-_0x1049f0._0x1a7aa3)](-0x1412+0x16f4+-0x1*0x14e)['json'](_0x53db99);}const _0x54c2ce=await _0x49fdf6[_0xfb1e77(-_0x1049f0._0x393a2f,-_0x1049f0._0x3a8de1,-0x153,-_0x1049f0._0x29284c)](createPasswordToken,_0x4b9826,type),_0x18952a={};_0x18952a[_0xd67c84(0x511,_0x1049f0._0x3a058d,_0x1049f0._0x36869b,_0x1049f0._0x274a93)]=_0x4511bc[_0xd67c84(_0x1049f0._0xb40b7a,0x47d,0x452,_0x1049f0._0x2b1f14)]['id'],_0x18952a['adminUsern'+_0xd67c84(_0x1049f0._0x218b0b,0x47b,0x47a,0x4b0)]=_0x4511bc[_0xd67c84(0x4ba,_0x1049f0._0x4fce53,0x49a,_0x1049f0._0x420b82)][_0xfb1e77(-0xfb,-_0x1049f0._0x5d8e9a,-0xfe,-0x10c)],_0x18952a['targetUser'+'Id']=_0x4b9826,_0x18952a['targetUser'+_0xfb1e77(-0xb2,-0xfb,-0xbc,-_0x1049f0._0x98ae73)]=_0xa7038[_0xfb1e77(-0xfb,-0x15a,-0xc5,-_0x1049f0._0x26442e)],_0x18952a[_0xd67c84(0x4a2,_0x1049f0._0x390750,_0x1049f0._0x29fc46,0x515)]=type,_0x18952a[_0xfb1e77(-0xe8,-_0x1049f0._0x4366c4,-0xa4,-0xcd)]=sendEmail,logger[_0xd67c84(0x424,_0x1049f0._0x2e84d6,_0x1049f0._0x2bbab8,0x458)](_0x49fdf6[_0xd67c84(_0x1049f0._0xe81121,0x4d2,0x503,0x4ae)],_0x18952a);const _0x31077=getRequestBaseUrl(_0x4511bc),_0x2b757a=_0x31077+(_0xd67c84(0x412,_0x1049f0._0x406b57,0x46a,0x481)+_0xfb1e77(-0x169,-_0x1049f0._0x4dbe78,-0xf8,-_0x1049f0._0x445092)+_0xfb1e77(-0x74,-_0x1049f0._0x5df0f1,-0x3e,-_0x1049f0._0x37e3bc))+_0x54c2ce[_0xfb1e77(-_0x1049f0._0xf8c37b,-_0x1049f0._0xed5f3a,-_0x1049f0._0xb721bc,-0xc6)],_0x2971e3={};_0x2971e3['id']=_0x54c2ce['id'],_0x2971e3[_0xd67c84(0x4ca,0x4a3,_0x1049f0._0x2b5de,0x4f7)]=_0x54c2ce[_0xd67c84(0x4be,_0x1049f0._0x2715cb,_0x1049f0._0xb40b7a,0x4ce)],_0x2971e3[_0xd67c84(0x515,0x4db,_0x1049f0._0x30c330,0x50f)]=_0x54c2ce[_0xfb1e77(-0xce,-0x98,-_0x1049f0._0x389e2d,-_0x1049f0._0x539ab5)],_0x2971e3['expires_at']=_0x54c2ce[_0xd67c84(_0x1049f0._0x5d3b5f,0x4a9,0x4ee,_0x1049f0._0x3285c5)],_0x2971e3[_0xd67c84(0x455,0x48b,0x4b4,_0x1049f0._0x1fe127)]=_0x2b757a;const _0x11cd3b={};_0x11cd3b['id']=_0xa7038['id'],_0x11cd3b[_0xfb1e77(-_0x1049f0._0x3a6f8d,-0xbf,-_0x1049f0._0x6901a3,-0x10c)]=_0xa7038[_0xfb1e77(-_0x1049f0._0x5bf1d6,-_0x1049f0._0x3ae384,-_0x1049f0._0x54e209,-_0x1049f0._0x26442e)],_0x11cd3b[_0xfb1e77(-_0x1049f0._0x19c386,-0xef,-0xf6,-0xd5)]=_0xa7038[_0xfb1e77(-0xa4,-0xc1,-_0x1049f0._0x457cd7,-_0x1049f0._0x98ae73)],_0x11cd3b[_0xd67c84(0x43d,_0x1049f0._0x2f390a,0x44f,_0x1049f0._0x4fe13f)]=_0xa7038['email'];const _0x2edc7a={};_0x2edc7a['message']=_0x49fdf6['YUaeK'],_0x2edc7a[_0xd67c84(_0x1049f0._0x16a55e,_0x1049f0._0xc649c8,0x49f,0x45b)]=_0x2971e3,_0x2edc7a[_0xd67c84(_0x1049f0._0x204376,0x47d,0x428,_0x1049f0._0x5a3e46)]=_0x11cd3b,_0x2edc7a[_0xfb1e77(-_0x1049f0._0x4612ce,-0x118,-0x11f,-0xf5)]=![];const _0x4283e7=_0x2edc7a;if(sendEmail){if(_0x49fdf6[_0xd67c84(_0x1049f0._0x16a55e,0x4c9,0x4a3,_0x1049f0._0x58b6c1)](_0xfb1e77(-_0x1049f0._0x484402,-_0x1049f0._0x325080,-_0x1049f0._0x2cf7b2,-0xc1),_0x49fdf6[_0xd67c84(0x4c2,_0x1049f0._0x7466af,_0x1049f0._0x4fc088,_0x1049f0._0xe52ffb)])){_0xb0de6b[_0xd67c84(0x4f2,_0x1049f0._0x14c2a6,0x497,_0x1049f0._0x2817f5)](_0x49fdf6['LmFzP'],_0x2cfcc5);const _0x13f9db={};_0x13f9db[_0xfb1e77(-0xf0,-0x8f,-_0x1049f0._0x342870,-0x9d)]=_0x49fdf6[_0xfb1e77(-_0x1049f0._0x9a00d9,-0x147,-_0x1049f0._0x4e8a19,-0x112)],_0x22a483[_0xfb1e77(-_0x1049f0._0xeaabdd,-0x151,-_0x1049f0._0x1d1dc1,-_0x1049f0._0x47d97a)](0x1*0x18ac+-0x7*-0xa6+-0x1b42)[_0xd67c84(_0x1049f0._0x32b237,_0x1049f0._0x4a7ebc,0x4de,0x49e)](_0x13f9db);}else{if(!_0x49fdf6[_0xfb1e77(-_0x1049f0._0x1834fb,-0x89,-0x108,-0xd8)](isEmailConfigured)){if(_0x49fdf6['WWQgG'](_0x49fdf6[_0xfb1e77(-0xc3,-_0x1049f0._0x104165,-_0x1049f0._0x5301fc,-_0x1049f0._0x104165)],_0xd67c84(_0x1049f0._0x3a6f5f,_0x1049f0._0x1e10e9,0x441,_0x1049f0._0x4e61f2))){const _0x438d0c={};return _0x438d0c[_0xfb1e77(-_0x1049f0._0x194c2f,-0xaf,-0xdc,-_0x1049f0._0x2751cf)]=_0x49fdf6[_0xd67c84(_0x1049f0._0xaad2f5,_0x1049f0._0x4658c4,0x4d3,_0x1049f0._0x58bc11)],_0x438d0c[_0xfb1e77(-_0x1049f0._0x5ed228,-0xae,-_0x1049f0._0x1bb476,-_0x1049f0._0x578419)]=_0x49fdf6[_0xd67c84(0x4cb,0x478,_0x1049f0._0x447976,0x4a2)],_0x4f2daa[_0xd67c84(_0x1049f0._0x3ddf9d,0x45e,0x446,_0x1049f0._0xcf0116)](0x262a+-0x21c7+-0x2d3)[_0xfb1e77(-_0x1049f0._0x2c207b,-_0x1049f0._0x36298c,-_0x1049f0._0x54f231,-0xdc)](_0x438d0c);}else{const _0x4393c7={};return _0x4393c7[_0xd67c84(0x4be,_0x1049f0._0x14c2a6,0x4a8,0x4e0)]=_0x49fdf6[_0xfb1e77(-_0x1049f0._0x1a63a4,-_0x1049f0._0x15aaf8,-0xed,-0xb9)],_0x4393c7['message']=_0x49fdf6[_0xd67c84(0x49d,_0x1049f0._0x5d3b5f,0x436,_0x1049f0._0x3a9843)],_0x4e4e87[_0xfb1e77(-0x102,-_0x1049f0._0x34b061,-0xbf,-_0x1049f0._0x1a7aa3)](-0x7*-0x4b1+-0x1*-0x1161+-0x4*0xc2a)['json'](_0x4393c7);}}try{const _0x4cb4b5=_0x49fdf6[_0xd67c84(0x49d,_0x1049f0._0x1742a3,0x497,_0x1049f0._0x3ddf9d)](type,_0x49fdf6['RqkIb'])?_0x49fdf6[_0xfb1e77(-0x116,-_0x1049f0._0x4edce0,-0x163,-_0x1049f0._0x18c2f9)]:_0x49fdf6[_0xfb1e77(-0x109,-_0x1049f0._0x115113,-_0x1049f0._0x43db3a,-_0x1049f0._0x296cc5)],_0x27a20f={};_0x27a20f[_0xd67c84(_0x1049f0._0xc7972a,0x4c0,_0x1049f0._0x8717d2,_0x1049f0._0x5cfaae)]=_0xa7038['name'],_0x27a20f[_0xd67c84(_0x1049f0._0x43538c,_0x1049f0._0xcf8a2b,_0x1049f0._0xf865d3,_0x1049f0._0x2bc993)]=_0xa7038[_0xd67c84(_0x1049f0._0xa0d2ff,0x45d,_0x1049f0._0x145f62,_0x1049f0._0x4d1b10)],_0x27a20f[_0xfb1e77(-_0x1049f0._0x4c8b48,-_0x1049f0._0x4e78da,-_0x1049f0._0x3e9748,-_0x1049f0._0x1412ae)]=_0x2b757a,_0x27a20f[_0xfb1e77(-_0x1049f0._0x53accb,-_0x1049f0._0x314803,-_0x1049f0._0x217a79,-_0x1049f0._0x466235)]=_0x49fdf6[_0xfb1e77(-_0x1049f0._0x161c29,-0x92,-0x91,-_0x1049f0._0x43fbff)],_0x27a20f[_0xfb1e77(-0xb6,-0xbd,-0x4d,-0x8e)]=type;const _0x38a315=_0x27a20f,{subject:_0x1f4a09}=_0x49fdf6[_0xd67c84(0x4b8,0x482,_0x1049f0._0x236469,_0x1049f0._0x398643)](renderTemplate,_0x4cb4b5,_0x38a315),_0x437544={};_0x437544['to']=_0xa7038[_0xfb1e77(-_0x1049f0._0x55e687,-0x134,-0x12b,-0x101)],_0x437544[_0xd67c84(_0x1049f0._0x50e1ad,_0x1049f0._0x3e4b96,_0x1049f0._0x58b6c1,_0x1049f0._0x218b0b)]=_0x1f4a09,_0x437544['template']=_0x4cb4b5,_0x437544[_0xd67c84(0x44f,0x497,_0x1049f0._0x236469,_0x1049f0._0x5ca086)]=_0x38a315,await _0x49fdf6[_0xd67c84(0x4c4,0x4b6,0x49c,_0x1049f0._0x463f2a)](sendTemplatedEmail,_0x437544),_0x4283e7[_0xd67c84(0x47f,_0x1049f0._0x1a5261,0x495,0x438)]=!![],_0x4283e7['message']=_0xfb1e77(-_0x1049f0._0x58d577,-_0x1049f0._0x293cdb,-0xcc,-_0x1049f0._0x47a592)+_0xd67c84(0x4de,0x4b7,_0x1049f0._0x35408e,_0x1049f0._0x4ff46f)+_0xd67c84(_0x1049f0._0x412260,0x442,_0x1049f0._0x95d1d2,_0x1049f0._0x213773)+_0xd67c84(_0x1049f0._0x3aef2e,0x4ac,0x4a6,0x4cc)+'\x20'+_0xa7038[_0xfb1e77(-0x154,-0xce,-_0x1049f0._0x4366c4,-0x101)];const _0x1eb7a5={};_0x1eb7a5['to']=_0xa7038[_0xfb1e77(-_0x1049f0._0x4be5cc,-0x141,-0xfa,-_0x1049f0._0x29b546)],_0x1eb7a5[_0xd67c84(0x4d9,0x4db,_0x1049f0._0x30a3ca,0x52f)]=type,_0x1eb7a5[_0xfb1e77(-0x145,-0x125,-_0x1049f0._0x393a2f,-_0x1049f0._0x246ff9)]=_0xa7038[_0xd67c84(_0x1049f0._0x10153e,_0x1049f0._0xcf8a2b,0x49f,0x42e)],logger[_0xfb1e77(-_0x1049f0._0x5d7960,-0x13b,-_0x1049f0._0x3d98c4,-0x104)](_0x49fdf6[_0xd67c84(_0x1049f0._0x52a10d,0x4b2,_0x1049f0._0x264879,_0x1049f0._0x3bef0)],_0x1eb7a5);}catch(_0x58e327){logger['error'](_0xfb1e77(-0xf4,-_0x1049f0._0x36ac42,-0xa8,-0xb1)+_0xd67c84(_0x1049f0._0x3564f5,0x48c,0x4d7,0x492)+_0xfb1e77(-_0x1049f0._0x11fc2c,-0x149,-0xfe,-0x103),_0x58e327),_0x4283e7[_0xd67c84(0x460,0x462,0x45a,0x47b)]=_0xfb1e77(-_0x1049f0._0x6a02ff,-0x61,-_0x1049f0._0x1412ae,-0xb1)+_0xfb1e77(-0x78,-0x5b,-_0x1049f0._0x4768f3,-_0x1049f0._0x501a39)+'.\x20Please\x20c'+'opy\x20the\x20li'+'nk\x20manuall'+'y.';}}}_0x4f2daa[_0xfb1e77(-_0x1049f0._0x1b1cf9,-_0x1049f0._0x1b481a,-0xbe,-0xdc)](_0x4283e7);}else{const _0x24226a={};return _0x24226a['error']=_0x49fdf6[_0xd67c84(0x427,0x441,_0x1049f0._0x931d1b,0x407)],_0xd7fce2['status'](-0xa62+0x266e*-0x1+0x3260)[_0xd67c84(0x4c7,0x48d,_0x1049f0._0x8f8c00,0x4b2)](_0x24226a);}}catch(_0x61de3d){logger[_0xd67c84(_0x1049f0._0x5e5af7,0x4cc,_0x1049f0._0x14ef63,0x49f)]('Failed\x20to\x20'+_0xfb1e77(-0x104,-0x126,-_0x1049f0._0x48ebf1,-0x105)+_0xd67c84(_0x1049f0._0xc0356c,_0x1049f0._0x2fdfe4,0x4e9,_0x1049f0._0x200b73)+'n',_0x61de3d);const _0x37df4c={};_0x37df4c[_0xd67c84(_0x1049f0._0x39fe1b,_0x1049f0._0x218b0b,_0x1049f0._0x4281b9,_0x1049f0._0xc510b0)]=_0x49fdf6[_0xfb1e77(-_0x1049f0._0x44be6e,-_0x1049f0._0x2cb9d1,-_0x1049f0._0x5d9626,-0xfc)],_0x4f2daa[_0xd67c84(_0x1049f0._0x140624,_0x1049f0._0x1413d8,_0x1049f0._0x24cbb9,_0x1049f0._0x3b2ca3)](0xeb4*0x1+0x132d+-0x1fed)[_0xfb1e77(-0x131,-0x102,-0xc4,-_0x1049f0._0x4c5273)](_0x37df4c);}}),router[_0x52dad0(0x399,0x3a6,0x3ca,0x398)]('/validate-'+_0x52dad0(0x41f,0x380,0x3d0,0x3fc),async(_0x1f5b82,_0x96ca98)=>{const _0x97ed9e={_0x4c9e4b:0x2c1,_0x3fc9d6:0x328,_0x5de867:0x37d,_0x144c5c:0x3ad,_0x2dd7a1:0x38b,_0xdbd9b3:0x3d8,_0x2422cd:0x423,_0x32ed9b:0x3cd,_0x4caa26:0x3d5,_0x4472c8:0x3b8,_0x3eab76:0x41d,_0x49a891:0x356,_0x6c9ec4:0x2fc,_0xfac715:0x30a,_0x283a12:0x3b9,_0x4a40d3:0x431,_0x454621:0x421,_0x3da57f:0x39e,_0xdfd037:0x3df,_0x519f72:0x38d,_0x318514:0x3b3,_0x9356:0x3f2,_0x2d896e:0x327,_0x584999:0x37c,_0x39f2a3:0x431,_0x593f7f:0x3f9,_0x4d46d3:0x3c4,_0x3f942a:0x3f2,_0xd148e4:0x44b,_0x4374db:0x434,_0x1191ae:0x300,_0x31399f:0x379,_0xed46f3:0x32a,_0x4df9cb:0x3bb,_0x2f3aa3:0x37c,_0x2a7a9f:0x3f7,_0xc35d92:0x3a5,_0x1cc89e:0x3fe,_0x227f57:0x3fc,_0x2fe145:0x3f7,_0x257eca:0x404,_0x20f0e7:0x3b0,_0x193784:0x3c2,_0x13c08a:0x337,_0x5d5338:0x2ee,_0x127baf:0x307,_0x579fa7:0x30d,_0x15572e:0x2d6,_0x55ffe4:0x2d5,_0x3f4c71:0x32a,_0x39bef8:0x39c,_0x166a9c:0x3b7,_0x2533e5:0x38b,_0x382212:0x3c8,_0x5b3ae3:0x416,_0x5d99f1:0x383,_0x220275:0x3a9,_0x10cd42:0x427,_0x1675da:0x3e9,_0xad787e:0x46b,_0x1920b2:0x35a,_0x56d467:0x38e,_0x48001a:0x388,_0x2dbee3:0x36e,_0x31b8ca:0x406,_0x2e1e62:0x3c3,_0x29957c:0x380,_0x2d6657:0x3a0,_0x416ea1:0x3f2,_0x270c8f:0x428},_0x2f2391={_0x2ece6b:0x175,_0x292c2b:0x2c0},_0x51ad43={_0x2883ba:0x1cd};function _0x25e4d9(_0x59c538,_0x5d7304,_0x2ee921,_0x5ef72d){return _0x21a256(_0x59c538-_0x51ad43._0x2883ba,_0x5d7304,_0x2ee921-0xe2,_0x5ef72d-0x20b);}function _0x4ed090(_0x2640db,_0x591412,_0x5f46ef,_0x2755f7){return _0x21a256(_0x2640db-_0x2f2391._0x2ece6b,_0x2755f7,_0x5f46ef-0x170,_0x5f46ef-_0x2f2391._0x292c2b);}const _0x92ad5c={'flaKu':_0x25e4d9(0x329,_0x97ed9e._0x4c9e4b,_0x97ed9e._0x3fc9d6,0x2f5)+_0x4ed090(_0x97ed9e._0x5de867,0x3a5,_0x97ed9e._0x144c5c,_0x97ed9e._0x2dd7a1),'EJipY':function(_0x2f8052,_0x2a7eff){return _0x2f8052(_0x2a7eff);},'EAmJZ':_0x4ed090(0x46f,_0x97ed9e._0xdbd9b3,_0x97ed9e._0x2422cd,0x46a)+_0x4ed090(_0x97ed9e._0x32ed9b,_0x97ed9e._0x4caa26,_0x97ed9e._0x4472c8,0x39b),'YLZXq':_0x4ed090(0x3f4,0x466,_0x97ed9e._0x3eab76,0x413)+'validate\x20t'+_0x25e4d9(_0x97ed9e._0x49a891,_0x97ed9e._0x6c9ec4,0x2cd,_0x97ed9e._0xfac715)};try{const {token:_0x31b324}=_0x1f5b82[_0x4ed090(0x3bc,0x3aa,_0x97ed9e._0x283a12,0x3ad)];if(!_0x31b324){const _0x2fb859={};return _0x2fb859[_0x4ed090(0x477,0x44e,_0x97ed9e._0x4a40d3,_0x97ed9e._0x454621)]=_0x92ad5c['flaKu'],_0x2fb859[_0x4ed090(0x3d0,_0x97ed9e._0x3da57f,_0x97ed9e._0xdfd037,_0x97ed9e._0x519f72)]=![],_0x96ca98['status'](0xdd*-0x1f+0x1ab3+-0x68*-0x4)[_0x4ed090(0x3de,_0x97ed9e._0x318514,_0x97ed9e._0x9356,0x3a3)](_0x2fb859);}const _0x211f05=await validateToken(_0x31b324);if(!_0x211f05){const _0x298002={};return _0x298002[_0x25e4d9(0x369,_0x97ed9e._0x2d896e,_0x97ed9e._0x584999,0x32a)]=![],_0x298002[_0x4ed090(0x471,0x440,_0x97ed9e._0x39f2a3,_0x97ed9e._0x593f7f)]='Invalid\x20or'+'\x20expired\x20t'+'oken',_0x96ca98[_0x4ed090(_0x97ed9e._0x4d46d3,0x410,_0x97ed9e._0x3f942a,0x3d1)](_0x298002);}const _0x57e603=await _0x92ad5c[_0x4ed090(0x42e,0x493,_0x97ed9e._0xd148e4,_0x97ed9e._0x4374db)](findUserById,_0x211f05[_0x25e4d9(0x2fe,0x2d4,0x2d6,_0x97ed9e._0x1191ae)]);if(!_0x57e603){const _0x661a73={};return _0x661a73[_0x25e4d9(0x307,_0x97ed9e._0x31399f,0x2eb,_0x97ed9e._0xed46f3)]=![],_0x661a73[_0x25e4d9(_0x97ed9e._0x4df9cb,0x340,0x37f,_0x97ed9e._0x2f3aa3)]=_0x92ad5c[_0x4ed090(0x3ac,_0x97ed9e._0x2a7a9f,_0x97ed9e._0xc35d92,0x38d)],_0x96ca98[_0x4ed090(_0x97ed9e._0x1cc89e,_0x97ed9e._0x227f57,0x3f2,_0x97ed9e._0x2fe145)](_0x661a73);}const _0x18d3e1={};_0x18d3e1[_0x4ed090(_0x97ed9e._0x257eca,_0x97ed9e._0x20f0e7,_0x97ed9e._0x193784,0x3d8)]=_0x57e603[_0x25e4d9(_0x97ed9e._0x13c08a,_0x97ed9e._0x5d5338,_0x97ed9e._0x127baf,_0x97ed9e._0x579fa7)],_0x18d3e1['name']=_0x57e603['name'];const _0x503860={};_0x503860[_0x25e4d9(_0x97ed9e._0x15572e,_0x97ed9e._0x55ffe4,0x36e,_0x97ed9e._0x3f4c71)]=!![],_0x503860[_0x25e4d9(_0x97ed9e._0x39bef8,_0x97ed9e._0x166a9c,0x39e,_0x97ed9e._0x2533e5)]=_0x211f05[_0x25e4d9(_0x97ed9e._0x382212,0x389,0x368,_0x97ed9e._0x2533e5)],_0x503860[_0x4ed090(0x3a8,_0x97ed9e._0x5b3ae3,0x3e2,0x408)]=_0x18d3e1,_0x96ca98['json'](_0x503860);}catch(_0x47c3e3){logger[_0x25e4d9(_0x97ed9e._0x5d99f1,_0x97ed9e._0x220275,_0x97ed9e._0x382212,0x37c)](_0x92ad5c[_0x4ed090(_0x97ed9e._0x10cd42,_0x97ed9e._0x1675da,0x43d,_0x97ed9e._0xad787e)],_0x47c3e3);const _0x224400={};_0x224400['error']=_0x92ad5c[_0x25e4d9(_0x97ed9e._0x1920b2,_0x97ed9e._0x56d467,0x38f,_0x97ed9e._0x48001a)],_0x224400['valid']=![],_0x96ca98[_0x4ed090(_0x97ed9e._0x2dbee3,_0x97ed9e._0x31b8ca,_0x97ed9e._0x2e1e62,_0x97ed9e._0x29957c)](0x1*0x261f+0x5bb+0x1f*-0x15a)[_0x4ed090(0x43c,_0x97ed9e._0x2d6657,_0x97ed9e._0x416ea1,_0x97ed9e._0x270c8f)](_0x224400);}}),router[_0x21a256(0xf2,0xcf,0xeb,0x115)](_0x21a256(0xfb,0xe5,0xc7,0xec),async(_0x3be220,_0x592af8)=>{const _0x366ade={_0xb04565:0x136,_0x41f093:0x130,_0x305954:0x19d,_0x1a6a28:0x15a,_0x1f3660:0x158,_0x50d513:0x1d9,_0x1ad3d5:0x1f5,_0x2e981c:0x18d,_0x13da3e:0x19b,_0x5c1689:0xf7,_0x5c2428:0x1a2,_0x26865d:0x1dd,_0x43a201:0xf4,_0x49d47c:0x141,_0x5e790c:0x18b,_0x4506b6:0x173,_0x5855ff:0x11e,_0x28a06d:0xca,_0x5cb730:0x117,_0x5325ab:0x171,_0x2c75bf:0x16c,_0x2e55c0:0x158,_0x547712:0x1ae,_0x112380:0x105,_0xe5df7e:0xe4,_0xff8281:0x152,_0x3141a4:0x16b,_0x98f62:0x97,_0x5eb311:0xe7,_0x27eea1:0x6c,_0xd148d6:0x7a,_0x448b4e:0xc9,_0x359dc8:0x15c,_0x13e649:0x120,_0x5048fd:0x127,_0x34731c:0xc7,_0x2e9ad2:0xb8,_0x494a5e:0xfd,_0x1f3f31:0xf2,_0x4a43e5:0xd9,_0x914495:0x11b,_0x871dcc:0x145,_0x2da035:0x104,_0x5c26e7:0x197,_0x3e54b4:0x188,_0x2403a6:0x1d1,_0x2d27b4:0x12f,_0x13f137:0x108,_0x22b483:0x124,_0x2c2ed6:0x118,_0x432a9b:0x13f,_0x344f40:0xb9,_0x2c9c18:0xb1,_0x5eaf34:0x9a,_0x42c5d9:0x129,_0x51dda2:0x166,_0x8970f2:0xe9,_0x3b9028:0x150,_0x5856b6:0x18c,_0x30c6c8:0x1b8,_0x591ce1:0x168,_0x66e002:0x1bb,_0x1c6a21:0x1a8,_0x19c139:0xdd,_0xfbd1ad:0x12d,_0x309ee4:0xfb,_0x37d0e5:0x197,_0xfa20ec:0x152,_0xfcaae5:0x127,_0x3b2102:0x173,_0x3fb671:0xf3,_0x3b31e6:0x42,_0x5db84e:0x3b,_0x5b7c4d:0x198,_0x136ccf:0x182,_0x104aff:0x17d,_0x564a3f:0x159,_0x301385:0x12c,_0x56bfaf:0x1a3,_0x1db7b8:0x1ca,_0x14a319:0xcd,_0x142148:0x82,_0x3382b2:0x101,_0x47f8c7:0x114,_0x1c5583:0xca,_0x4d8208:0x13a,_0x2361b3:0xe3,_0xc50020:0xf0,_0x3897a7:0xa3,_0x148360:0x66,_0x3ee133:0xb6,_0x24e168:0xe5,_0x91f402:0x69,_0x3d06a2:0x13e,_0x1b568a:0x13b,_0x481eb7:0x16d,_0xa7270e:0x16a,_0x134299:0x73,_0x8cc703:0xf1,_0x2f3416:0x10f,_0x33c222:0x13d,_0x45157a:0xda,_0x550cff:0xe5,_0x1eb278:0xc8},_0x356bc6={_0x36d927:0x86,_0x8612fb:0x15e},_0x16efc6={_0x1e60dd:0x50};function _0x262f66(_0x4b8c14,_0x58b11d,_0x23e871,_0x4c63ce){return _0x52dad0(_0x23e871,_0x58b11d-_0x16efc6._0x1e60dd,_0x4b8c14- -0x2f4,_0x4c63ce-0x26);}function _0x262ded(_0x5e4faf,_0x55289c,_0xb6137f,_0x259934){return _0x21a256(_0x5e4faf-_0x356bc6._0x36d927,_0xb6137f,_0xb6137f-_0x356bc6._0x8612fb,_0x5e4faf- -0x29a);}const _0x59662e={'YbtTc':function(_0x28ea69,_0x16f2a5){return _0x28ea69||_0x16f2a5;},'ytzNZ':'Token\x20and\x20'+_0x262f66(0xee,_0x366ade._0xb04565,_0x366ade._0x41f093,0xce)+_0x262ded(-_0x366ade._0x305954,-0x15c,-_0x366ade._0x1a6a28,-0x1c8)+'d','Gsqhx':function(_0x4476a0,_0x34da9d){return _0x4476a0<_0x34da9d;},'YNRMp':'ZushR','bslzG':_0x262ded(-0x112,-0xda,-_0x366ade._0x1f3660,-0xf2),'GThTz':function(_0x43797d,_0x1008de){return _0x43797d(_0x1008de);},'TsZwU':_0x262ded(-0x1a8,-_0x366ade._0x50d513,-_0x366ade._0x1ad3d5,-_0x366ade._0x2e981c)+'\x20expired\x20t'+_0x262ded(-_0x366ade._0x13da3e,-0x19e,-0x14e,-0x17b),'YuaOh':_0x262f66(_0x366ade._0x5c1689,0xfc,0x114,0xdb)+_0x262ded(-_0x366ade._0x5c2428,-_0x366ade._0x26865d,-0x1cc,-0x1e9),'aqbcP':_0x262f66(_0x366ade._0x43a201,_0x366ade._0x49d47c,0xbf,0x136)+_0x262ded(-_0x366ade._0x5e790c,-_0x366ade._0x4506b6,-0x1ba,-_0x366ade._0x1f3660)+'en','JoDkK':_0x262ded(-0x13d,-0x117,-_0x366ade._0x5855ff,-0xfe)+_0x262f66(0xfd,_0x366ade._0x28a06d,_0x366ade._0x5cb730,0x140)+'rd'};try{const {token:_0x1691eb,password:_0x3910dc}=_0x3be220['body'];if(_0x59662e[_0x262ded(-_0x366ade._0x5325ab,-_0x366ade._0x2c75bf,-_0x366ade._0x2e55c0,-_0x366ade._0x547712)](!_0x1691eb,!_0x3910dc)){const _0x385f8d={};return _0x385f8d[_0x262f66(_0x366ade._0x112380,_0x366ade._0xe5df7e,0xe2,_0x366ade._0xff8281)]=_0x59662e[_0x262ded(-_0x366ade._0x3141a4,-0x139,-0x14c,-0x13c)],_0x592af8[_0x262f66(_0x366ade._0x98f62,_0x366ade._0x5eb311,_0x366ade._0x27eea1,_0x366ade._0xd148d6)](0x881*0x3+0xaa9+0x8a7*-0x4)[_0x262f66(0xc6,_0x366ade._0x448b4e,0xae,0xff)](_0x385f8d);}if(_0x59662e[_0x262ded(-_0x366ade._0x359dc8,-0x151,-_0x366ade._0x13e649,-_0x366ade._0x5048fd)](_0x3910dc[_0x262f66(_0x366ade._0x34731c,0xd8,_0x366ade._0x2e9ad2,_0x366ade._0x494a5e)],0x3ad*-0xa+-0x4a8+0x2972)){if(_0x59662e[_0x262ded(-0x148,-0x141,-0xf4,-0x109)]!==_0x59662e['bslzG']){const _0x1309cd={};return _0x1309cd['error']='Password\x20m'+_0x262f66(_0x366ade._0x1f3f31,0x12d,_0x366ade._0x4a43e5,0xa4)+_0x262ded(-_0x366ade._0x914495,-0x144,-0x163,-_0x366ade._0x871dcc)+_0x262ded(-0x138,-0x154,-_0x366ade._0x2da035,-0x17a),_0x592af8[_0x262ded(-_0x366ade._0x5c26e7,-_0x366ade._0x3e54b4,-0x177,-_0x366ade._0x2403a6)](-0x1b*-0xd5+-0x1*-0x10e2+0x25c9*-0x1)['json'](_0x1309cd);}else{_0x51385e[_0x262f66(_0x366ade._0x112380,_0x366ade._0x2d27b4,0x12e,0x12d)](_0x262f66(0xf1,0x12d,_0x366ade._0x13f137,_0x366ade._0x22b483)+_0x262f66(_0x366ade._0x2c2ed6,_0x366ade._0x22b483,0xf1,_0x366ade._0x432a9b)+_0x262f66(_0x366ade._0x344f40,_0x366ade._0x2c9c18,_0x366ade._0x2e9ad2,_0x366ade._0x5eaf34)+'tus',_0x17cca9);const _0x3e2fee={};_0x3e2fee[_0x262ded(-_0x366ade._0x42c5d9,-0x13c,-0x150,-0x161)]='Failed\x20to\x20'+_0x262ded(-0x116,-_0x366ade._0x51dda2,-_0x366ade._0x8970f2,-0x163)+_0x262ded(-_0x366ade._0x3b9028,-0xff,-_0x366ade._0x5856b6,-0x106)+_0x262ded(-0x113,-0xbe,-0xd5,-0xf0),_0x3a7030[_0x262ded(-_0x366ade._0x5c26e7,-0x1bd,-_0x366ade._0x30c6c8,-0x16f)](0x8c7*-0x4+-0xb17+-0x1*-0x3027)[_0x262ded(-_0x366ade._0x591ce1,-_0x366ade._0x66e002,-_0x366ade._0x1c6a21,-0x17d)](_0x3e2fee);}}const _0x90f4d7=await _0x59662e[_0x262ded(-0x125,-_0x366ade._0x19c139,-_0x366ade._0xfbd1ad,-0xe4)](validateToken,_0x1691eb);if(!_0x90f4d7){const _0x2ad2d3={};return _0x2ad2d3[_0x262ded(-0x129,-_0x366ade._0x43a201,-0x14d,-_0x366ade._0x309ee4)]=_0x59662e['TsZwU'],_0x592af8[_0x262ded(-_0x366ade._0x37d0e5,-_0x366ade._0xfa20ec,-0x1bc,-0x186)](-0xc3+0x15d7+-0x9c2*0x2)[_0x262ded(-_0x366ade._0x591ce1,-_0x366ade._0x2d27b4,-_0x366ade._0xfcaae5,-_0x366ade._0x3b2102)](_0x2ad2d3);}const _0x5d5897=await findUserById(_0x90f4d7['userId']);if(!_0x5d5897){const _0x23a297={};return _0x23a297[_0x262ded(-_0x366ade._0x42c5d9,-0xe6,-0x148,-0x146)]=_0x59662e[_0x262f66(0xf3,0xd5,_0x366ade._0x3fb671,0xd7)],_0x592af8[_0x262f66(0x97,0xe8,0x43,0x7c)](0x3*0x832+0x1c9+0xb*-0x241)['json'](_0x23a297);}await setUserPassword(_0x90f4d7[_0x262f66(0x89,_0x366ade._0x3b31e6,0xb3,_0x366ade._0x5db84e)],_0x3910dc),await markTokenAsUsed(_0x1691eb);const _0x442a1a={};_0x442a1a['userId']=_0x5d5897['id'],_0x442a1a['username']=_0x5d5897[_0x262ded(-_0x366ade._0x5b7c4d,-_0x366ade._0x136ccf,-_0x366ade._0x104aff,-0x1d7)],_0x442a1a['tokenType']=_0x90f4d7[_0x262f66(0x114,0xf3,_0x366ade._0x564a3f,_0x366ade._0x301385)],logger[_0x262ded(-0x190,-0x167,-_0x366ade._0x56bfaf,-_0x366ade._0x1db7b8)](_0x59662e['aqbcP'],_0x442a1a);const _0xf1879c={};_0xf1879c['id']=_0x5d5897['id'],_0xf1879c['username']=_0x5d5897[_0x262f66(0x96,0x46,0x41,0xa1)],_0xf1879c[_0x262f66(_0x366ade._0x14a319,_0x366ade._0x142148,0x81,0xad)]=_0x5d5897[_0x262f66(_0x366ade._0x14a319,_0x366ade._0x3382b2,0x106,0x86)];const _0x51e992={};_0x51e992[_0x262ded(-_0x366ade._0x47f8c7,-0x111,-0x107,-_0x366ade._0x1c5583)]=_0x262ded(-_0x366ade._0x4d8208,-0xec,-0x176,-_0x366ade._0x1f3660)+_0x262ded(-_0x366ade._0x5855ff,-0x14d,-_0x366ade._0x2361b3,-_0x366ade._0xc50020)+_0x262f66(0x7f,_0x366ade._0x448b4e,_0x366ade._0x3897a7,_0x366ade._0x148360),_0x51e992[_0x262f66(_0x366ade._0x3ee133,_0x366ade._0x24e168,0x6d,_0x366ade._0x91f402)]=_0xf1879c,_0x592af8[_0x262ded(-_0x366ade._0x591ce1,-_0x366ade._0x3d06a2,-_0x366ade._0x1b568a,-_0x366ade._0x359dc8)](_0x51e992);}catch(_0x1d0787){logger[_0x262ded(-0x129,-_0x366ade._0x481eb7,-0x10a,-_0x366ade._0xa7270e)](_0x59662e[_0x262f66(0xb8,_0x366ade._0x134299,0x92,0xf0)],_0x1d0787);const _0x52ce99={};_0x52ce99['error']=_0x262f66(_0x366ade._0x8cc703,_0x366ade._0x2f3416,_0x366ade._0x33c222,0x124)+_0x262f66(0xfd,_0x366ade._0x1f3f31,0xcf,_0x366ade._0x45157a)+'rd',_0x592af8[_0x262f66(_0x366ade._0x98f62,_0x366ade._0x550cff,_0x366ade._0x1eb278,0xe5)](-0x9e7+0xd2a+-0x5*0x43)['json'](_0x52ce99);}}),router[_0x52dad0(0x3e7,0x3a5,0x3ca,0x39d)]('/tokens/:u'+_0x52dad0(0x3cd,0x362,0x390,0x3e1),requireAuth,requireAdmin,async(_0x4465ad,_0x2f7a97)=>{const _0xac9c6a={_0x447362:0x25a,_0xdf2d87:0x248,_0x21a5de:0x1f3,_0x5b3b85:0x1fd,_0x3c16cf:0x200,_0x464dd9:0x254,_0x387452:0x247,_0x285a9f:0x20e,_0x516c3c:0x1c0,_0x2150df:0x1d7,_0x3d7708:0x1ec,_0x41910a:0x27d,_0x578fd4:0x233,_0x411f77:0x256,_0x31528e:0x21e,_0x23894d:0x24a,_0x5652ca:0x267,_0x663e90:0x2b7,_0x366aff:0x265,_0x4b5051:0x23a,_0x39fc85:0x2a4,_0x5b6a3b:0x268,_0xc501a5:0x20f,_0x346314:0x244,_0x384118:0x255,_0x5c28bf:0x253,_0x5d9057:0x24d,_0x1b5d37:0x28d,_0x1495e2:0x22e,_0xa43298:0x26f,_0x30807e:0x242,_0x3d6fb4:0x246,_0x5fb330:0x24e,_0xea7a91:0x266,_0x145e3c:0x282},_0x450688={_0x6cedae:0x608},_0x32d667={_0x29a243:0x9f,_0x259adb:0xd0},_0x577c5c={'jyWKR':function(_0x1a7bb4,_0x459c66){return _0x1a7bb4(_0x459c66);},'ZdyuL':'User\x20not\x20f'+_0x4b31b0(-0x288,-0x2c0,-_0xac9c6a._0x447362,-_0xac9c6a._0xdf2d87),'YALJh':function(_0x14ec80,_0x165194){return _0x14ec80(_0x165194);},'DtTKb':_0x462fef(-_0xac9c6a._0x21a5de,-0x21a,-0x233,-0x26c)+_0x4b31b0(-0x245,-_0xac9c6a._0x5b3b85,-0x1f0,-_0xac9c6a._0x3c16cf)+'okens'};function _0x462fef(_0x1f515f,_0x39250f,_0x2ccdfa,_0x5d4a96){return _0x52dad0(_0x1f515f,_0x39250f-_0x32d667._0x29a243,_0x2ccdfa- -0x618,_0x5d4a96-_0x32d667._0x259adb);}function _0x4b31b0(_0x346165,_0x532b93,_0x5b7846,_0x56a445){return _0x52dad0(_0x532b93,_0x532b93-0x21,_0x346165- -_0x450688._0x6cedae,_0x56a445-0xea);}try{const {userId:_0x210039}=_0x4465ad[_0x4b31b0(-0x205,-0x1d9,-0x1c3,-_0xac9c6a._0x464dd9)],_0x17f2e4=await _0x577c5c[_0x462fef(-0x247,-_0xac9c6a._0x387452,-_0xac9c6a._0x285a9f,-0x1e0)](findUserById,_0x210039);if(!_0x17f2e4){const _0x3c0092={};return _0x3c0092[_0x4b31b0(-0x20f,-_0xac9c6a._0x516c3c,-_0xac9c6a._0x2150df,-_0xac9c6a._0x3d7708)]=_0x577c5c['ZdyuL'],_0x2f7a97[_0x4b31b0(-_0xac9c6a._0x41910a,-0x270,-_0xac9c6a._0x578fd4,-_0xac9c6a._0x411f77)](0x1*0x6b+0x5f3+0x265*-0x2)['json'](_0x3c0092);}const _0x1f4dc5=await _0x577c5c[_0x4b31b0(-0x26d,-_0xac9c6a._0x31528e,-_0xac9c6a._0x23894d,-0x29e)](getUserTokens,_0x210039),_0x204abd={};_0x204abd[_0x462fef(-_0xac9c6a._0x5652ca,-_0xac9c6a._0x663e90,-_0xac9c6a._0x366aff,-_0xac9c6a._0x4b5051)]=_0x1f4dc5,_0x2f7a97['json'](_0x204abd);}catch(_0x1efb44){logger['error'](_0x577c5c[_0x462fef(-_0xac9c6a._0x39fc85,-0x29f,-_0xac9c6a._0x5b6a3b,-0x21d)],_0x1efb44);const _0x526f12={};_0x526f12[_0x4b31b0(-_0xac9c6a._0xc501a5,-_0xac9c6a._0x346314,-_0xac9c6a._0x384118,-_0xac9c6a._0x5c28bf)]='Failed\x20to\x20'+_0x4b31b0(-0x245,-0x1f2,-_0xac9c6a._0x5d9057,-0x256)+_0x462fef(-_0xac9c6a._0x1b5d37,-_0xac9c6a._0x1495e2,-_0xac9c6a._0xa43298,-0x275),_0x2f7a97[_0x4b31b0(-_0xac9c6a._0x41910a,-0x27b,-_0xac9c6a._0x30807e,-_0xac9c6a._0x3d6fb4)](-0x7*0x587+0x388*0x8+0xc65)[_0x4b31b0(-_0xac9c6a._0x5fb330,-_0xac9c6a._0xea7a91,-_0xac9c6a._0x145e3c,-0x268)](_0x526f12);}}),router['delete'](_0x21a256(0x108,0x172,0x15f,0x147)+_0x21a256(0x176,0x127,0xff,0x145),requireAuth,requireAdmin,async(_0x410f50,_0x6f31ad)=>{const _0x562346={_0x300718:0x483,_0x332eff:0x494,_0x59d9d7:0x46b,_0x14ba31:0x178,_0x2428d0:0x159,_0x21b7f5:0x4b4,_0x18104e:0x4be,_0x4e36e0:0x463,_0x1dbed9:0x197,_0x33b2ca:0x1be,_0x427681:0x4ca,_0x2f6441:0x4dc,_0x3d87d8:0x4b6,_0x4c5008:0x10f,_0x29a194:0xe4,_0x4a83f7:0x4e5,_0x4ae134:0x4c0,_0x4b0995:0x170,_0xb0d825:0x16f,_0x93652c:0x10d,_0x20804e:0x160,_0x2ef5b5:0x11e,_0x1833a8:0x13e,_0x14a5ee:0x4d5,_0x138897:0x511,_0x5047f6:0x525,_0xb9e538:0x526,_0x411561:0x18d,_0x9b3124:0x19d,_0x124de1:0x165,_0x30a54e:0x1e7,_0xeb3e7d:0x1ee,_0x438657:0x142,_0x38b444:0x173,_0x2e1993:0x4f9,_0x1fed6b:0x4ba,_0x321960:0x42f,_0x4cfaf9:0x47b,_0x2ad655:0x426,_0x50bea7:0x14e,_0x5704de:0x181,_0x3ab8ea:0x464,_0x5089db:0x456,_0x2f78b3:0x45a,_0x1ae70e:0x4ee,_0x2ca3d3:0x4f1,_0x3fe88f:0x1a7,_0x242d6a:0x1a9,_0x4b26d5:0x1fb,_0x250977:0x1d7,_0x839366:0x512,_0x2192ea:0x547,_0x397714:0x4f4,_0x173228:0x1a8,_0x57c713:0x16e,_0x221cc1:0x1c8,_0x5d93de:0x158,_0x130432:0x198,_0x5643b6:0x549,_0x39cb65:0x4f9,_0x200b04:0x474,_0x3f3429:0x497,_0x2de90e:0x490},_0x2254ff={_0x39b64f:0x98},_0x4b8461={_0x4cb027:0xb3},_0x43b8e8={'dOIoc':_0x427a29(0x479,0x4ce,0x4ae,0x4f3)+'\x20required','tCSvF':function(_0x72f09d,_0x5cdda5){return _0x72f09d(_0x5cdda5);},'bOdTG':function(_0xafe027,_0x3099e2){return _0xafe027!==_0x3099e2;},'KCmtB':_0x427a29(0x49e,_0x562346._0x300718,_0x562346._0x332eff,_0x562346._0x59d9d7),'BTBkO':_0x427a29(0x4da,0x486,0x472,0x4cd),'TWKkE':_0x44b20e(-_0x562346._0x14ba31,-0x197,-_0x562346._0x2428d0,-0x185)+_0x427a29(0x4c2,_0x562346._0x21b7f5,_0x562346._0x18104e,_0x562346._0x4e36e0),'TRxLr':_0x44b20e(-0x15e,-_0x562346._0x1dbed9,-_0x562346._0x33b2ca,-0x197)+_0x427a29(_0x562346._0x427681,_0x562346._0x2f6441,0x4af,_0x562346._0x3d87d8)+_0x44b20e(-_0x562346._0x4c5008,-0x12e,-0x10e,-_0x562346._0x29a194),'UJEtV':_0x427a29(0x500,_0x562346._0x4a83f7,0x4a4,_0x562346._0x4ae134)+_0x44b20e(-0x206,-0x1c2,-_0x562346._0x4b0995,-_0x562346._0xb0d825)+'en'};function _0x44b20e(_0x5a117f,_0x2901f8,_0x4e4c99,_0x117c37){return _0x52dad0(_0x4e4c99,_0x2901f8-_0x4b8461._0x4cb027,_0x2901f8- -0x53b,_0x117c37-0xda);}function _0x427a29(_0x5ca4b0,_0x2f5739,_0x42cba2,_0xee504e){return _0x21a256(_0x5ca4b0-0x56,_0xee504e,_0x42cba2-_0x2254ff._0x39b64f,_0x2f5739-0x388);}try{const {tokenId:_0x390d3c}=_0x410f50[_0x44b20e(-_0x562346._0x93652c,-0x138,-0x107,-0xe6)],_0x3150f4=await _0x43b8e8[_0x44b20e(-0x177,-_0x562346._0x20804e,-_0x562346._0x2ef5b5,-_0x562346._0x1833a8)](revokeToken,_0x390d3c);if(!_0x3150f4){if(_0x43b8e8[_0x427a29(_0x562346._0x14a5ee,_0x562346._0x138897,_0x562346._0x5047f6,_0x562346._0xb9e538)](_0x43b8e8[_0x44b20e(-_0x562346._0x411561,-_0x562346._0x9b3124,-_0x562346._0x124de1,-0x1b9)],_0x43b8e8[_0x44b20e(-_0x562346._0x30a54e,-0x1bc,-0x1b3,-_0x562346._0xeb3e7d)])){const _0x37dbcb={};return _0x37dbcb[_0x44b20e(-0x126,-_0x562346._0x438657,-0x152,-0x131)]=_0x44b20e(-_0x562346._0x38b444,-0x189,-0x1a0,-0x1dc)+_0x427a29(0x437,0x47e,_0x562346._0x427681,0x4b5),_0x6f31ad['status'](0x1*-0xdca+0x4*-0x62f+0x281a)[_0x427a29(_0x562346._0x2e1993,_0x562346._0x1fed6b,0x46a,0x47f)](_0x37dbcb);}else{const _0x2c2f48={};return _0x2c2f48['error']=_0x43b8e8[_0x427a29(_0x562346._0x321960,0x477,_0x562346._0x4cfaf9,_0x562346._0x2ad655)],_0x5dec03['status'](-0x6ee*0x3+0x1*0x243a+-0xde0)[_0x44b20e(-_0x562346._0x50bea7,-_0x562346._0x5704de,-0x137,-0x1d0)](_0x2c2f48);}}const _0x289f7e={};_0x289f7e['adminId']=_0x410f50['user']['id'],_0x289f7e['adminUsern'+_0x427a29(_0x562346._0x3ab8ea,0x4a8,_0x562346._0x5089db,_0x562346._0x2f78b3)]=_0x410f50['user']['username'],_0x289f7e[_0x427a29(0x51d,_0x562346._0x1ae70e,_0x562346._0x2ca3d3,0x4af)]=_0x390d3c,logger[_0x44b20e(-_0x562346._0x3fe88f,-_0x562346._0x242d6a,-_0x562346._0x4b26d5,-_0x562346._0x250977)](_0x43b8e8[_0x427a29(_0x562346._0x839366,0x50b,0x545,_0x562346._0x2192ea)],_0x289f7e);const _0xadf30e={};_0xadf30e[_0x427a29(0x4d7,0x50e,_0x562346._0x397714,0x54b)]=_0x43b8e8[_0x44b20e(-_0x562346._0x173228,-0x173,-_0x562346._0x57c713,-_0x562346._0x221cc1)],_0x6f31ad[_0x44b20e(-0x137,-_0x562346._0x5704de,-_0x562346._0x5d93de,-_0x562346._0x130432)](_0xadf30e);}catch(_0x331edf){logger[_0x427a29(0x4e8,0x4f9,_0x562346._0x5643b6,0x529)](_0x43b8e8[_0x427a29(0x4f6,0x4c0,_0x562346._0x39cb65,_0x562346._0x200b04)],_0x331edf);const _0x1517fc={};_0x1517fc['error']='Failed\x20to\x20'+_0x427a29(_0x562346._0x3f3429,0x479,0x473,_0x562346._0x2de90e)+'en',_0x6f31ad['status'](-0x43*0x16+-0xdca+-0x1*-0x1580)['json'](_0x1517fc);}});export default router;
1
+ (function(_0x5c05cc,_0x21adb3){const _0x557a85={_0x1b5698:0x283,_0x3351e0:0x2d3,_0x48305e:0x2b8,_0x5c131c:0x12c,_0xb7e04a:0x94,_0x11a74e:0xec,_0x2520ac:0x10b,_0x42358c:0x6d,_0x4a96c3:0x9f,_0xd36b5:0xae,_0x2d8953:0xc2,_0x54697d:0x73,_0x33e261:0x13c,_0x21cc7e:0x105,_0x5a393d:0x294,_0x141186:0x23b,_0x5c5350:0x2c6},_0x2e8959={_0x2d10fc:0x163},_0x54da61={_0x5ed79e:0xa6};function _0x4d97f3(_0x3e27bf,_0x1dcdd2,_0x5a0aa0,_0x1be629){return _0x16f2(_0x1be629-_0x54da61._0x5ed79e,_0x5a0aa0);}const _0x2ee0f0=_0x5c05cc();function _0x5c79c1(_0x19f667,_0x4fa305,_0x3bb173,_0x1c6cd5){return _0x16f2(_0x3bb173- -_0x2e8959._0x2d10fc,_0x1c6cd5);}while(!![]){try{const _0xc53490=parseInt(_0x4d97f3(0x263,_0x557a85._0x1b5698,_0x557a85._0x3351e0,_0x557a85._0x48305e))/(-0x10ca+-0xce9*-0x1+0x3e2)*(parseInt(_0x5c79c1(0x114,0x124,0xe0,_0x557a85._0x5c131c))/(-0x2*0xbee+-0x3*-0x989+0x4bd*-0x1))+-parseInt(_0x5c79c1(_0x557a85._0xb7e04a,0x130,_0x557a85._0x11a74e,_0x557a85._0x2520ac))/(0x2*-0x10fd+0xf2*0x9+0x197b)+parseInt(_0x5c79c1(0x9d,_0x557a85._0x42358c,0x63,0x47))/(-0x38f*-0x3+0x74*-0x37+0x3*0x4c1)+parseInt(_0x5c79c1(0xf7,0xe7,_0x557a85._0x4a96c3,0x6d))/(-0x126c*0x1+-0x1*-0x1ad7+-0x866)*(parseInt(_0x5c79c1(0xdb,0xb8,_0x557a85._0xd36b5,0x96))/(0x1*-0xec+0xf5a+-0xe68))+parseInt(_0x5c79c1(_0x557a85._0x2d8953,0x95,_0x557a85._0x54697d,0x60))/(0x1*0x1a3f+0x272*-0x4+-0x10*0x107)*(-parseInt(_0x5c79c1(_0x557a85._0x33e261,0xde,_0x557a85._0x21cc7e,0x141))/(-0x1192+0xf5a+0x240))+-parseInt(_0x4d97f3(0x244,_0x557a85._0x5a393d,_0x557a85._0x141186,0x26e))/(-0x1baa+0x3*-0x569+0x2bee)+-parseInt(_0x4d97f3(_0x557a85._0x5c5350,0x31a,0x2f2,0x2c8))/(0xd0*0x7+0x2d3+0x9*-0xf1);if(_0xc53490===_0x21adb3)break;else _0x2ee0f0['push'](_0x2ee0f0['shift']());}catch(_0x19b045){_0x2ee0f0['push'](_0x2ee0f0['shift']());}}}(_0x5956,0x7ab61*0x1+-0x293a8+0x1eafa));import _0x23988f from'express';import{logger}from'../lib/logger.js';import{requireAuth,requireAdmin}from'../middleware/requireAuth.js';import{getRequestBaseUrl}from'../lib/request-url.js';import{findUserById,setUserPassword}from'../lib/users.js';import{createPasswordToken,validateToken,markTokenAsUsed,getUserTokens,revokeToken}from'../lib/passwordTokens.js';import{isEmailConfigured,sendTemplatedEmail,getEmailConfigStatus}from'../lib/email.js';import{renderTemplate}from'../lib/emailTemplates.js';const router=_0x23988f['Router']();router['get'](_0x9b392e(0x31f,0x2da,0x325,0x354)+_0x598237(0x434,0x4cd,0x481,0x4b8),requireAuth,requireAdmin,async(_0x33100b,_0x8d473)=>{const _0x43ecc2={_0x3d42d6:0x479,_0x59c154:0x4d5,_0x158879:0x505,_0x3798ac:0x523,_0x56de46:0x517,_0x518cfe:0x23,_0x2a512f:0x62,_0x5152f8:0x470,_0x4c7f63:0x4ad,_0x41633a:0x4c7,_0x254a30:0x2b,_0x51112c:0x32,_0x580222:0x3a,_0x2cb142:0x487,_0x353a21:0x4e2,_0x23c863:0x4b2,_0xcd82b7:0x25,_0x46d922:0x94,_0x547c8f:0x18,_0x272959:0x493,_0x17ed06:0x51c,_0x5cb996:0x516,_0x47f762:0x4ea,_0x14d561:0x50d,_0x241c91:0x4f1,_0x458c61:0x3f,_0x301bb7:0x57,_0x44bf5e:0x449,_0x7269c3:0x4de,_0x2de6b8:0x4a3,_0x54b1b7:0x520,_0x127294:0x512,_0x5209f1:0x70,_0x21d6c2:0x1a,_0x509411:0x4a7,_0x291bbd:0x479,_0x494772:0x49d,_0x5799ba:0x1e,_0x4f9430:0xa1,_0x56b54d:0x4c,_0x23b5d6:0x473,_0x505116:0x6d,_0x1440b7:0x17,_0x2861b6:0x37,_0x69168f:0x56,_0x1ea91e:0x4b3,_0x3e73e7:0xaa,_0x6362fc:0x48a,_0x19273a:0x457,_0x307ecf:0x4a3,_0x41e524:0x4ee,_0x2bb7c6:0x478,_0x197c98:0x514,_0x2796a6:0x517,_0x3f838e:0x4ab,_0x3cdb58:0x4b,_0x2cfe85:0x7f,_0x35462a:0x22,_0x55a065:0x4b7,_0x187fd6:0x47b,_0x5dbe45:0x4bb,_0x58a3fc:0x4c7,_0xf06c2e:0x4ad,_0x2a080f:0x533,_0x3728c3:0x502,_0x3df7ea:0x1,_0x436443:0x54,_0x7c2f1b:0xa9},_0x56862c={_0x1c1618:0x119,_0xef049e:0x114},_0x3f9f34={_0x51fe92:0xa7,_0x179ca3:0x3};function _0x463b79(_0x3cf5c1,_0x43f730,_0x30d25a,_0x59400c){return _0x9b392e(_0x59400c-0x1ca,_0x43f730-_0x3f9f34._0x51fe92,_0x30d25a-_0x3f9f34._0x179ca3,_0x3cf5c1);}const _0x466020={'lnxiF':function(_0xa97a75){return _0xa97a75();},'LIuIb':_0x463b79(0x479,_0x43ecc2._0x3d42d6,0x4e4,0x4c7)+_0x463b79(_0x43ecc2._0x59c154,_0x43ecc2._0x158879,0x55d,0x507)+_0x463b79(_0x43ecc2._0x3798ac,0x4c4,0x54d,_0x43ecc2._0x56de46)+_0x2d9e0f(0x17,0x11,_0x43ecc2._0x518cfe,_0x43ecc2._0x2a512f),'pHelf':_0x463b79(_0x43ecc2._0x5152f8,_0x43ecc2._0x4c7f63,0x4f2,_0x43ecc2._0x41633a)+_0x2d9e0f(_0x43ecc2._0x254a30,_0x43ecc2._0x51112c,_0x43ecc2._0x580222,-0x9)+_0x463b79(_0x43ecc2._0x2cb142,_0x43ecc2._0x353a21,_0x43ecc2._0x23c863,0x48b)+_0x2d9e0f(-_0x43ecc2._0xcd82b7,-0x46,-_0x43ecc2._0x46d922,-_0x43ecc2._0x547c8f),'IfLdA':_0x463b79(0x4ab,0x4cf,0x450,_0x43ecc2._0x272959)+_0x463b79(_0x43ecc2._0x17ed06,_0x43ecc2._0x5cb996,0x4ce,_0x43ecc2._0x47f762),'CpNyk':_0x463b79(_0x43ecc2._0x14d561,0x529,0x530,_0x43ecc2._0x241c91)+_0x2d9e0f(-0x10,_0x43ecc2._0x458c61,_0x43ecc2._0x301bb7,0x48)+'ed.\x20Please'+'\x20set\x20up\x20SM'+'TP\x20environ'+_0x463b79(_0x43ecc2._0x44bf5e,_0x43ecc2._0x7269c3,_0x43ecc2._0x2de6b8,0x485)+_0x463b79(0x50f,_0x43ecc2._0x54b1b7,_0x43ecc2._0x127294,0x4ec)+'nd\x20emails.','QpZWh':_0x2d9e0f(_0x43ecc2._0x5209f1,_0x43ecc2._0x21d6c2,0x39,_0x43ecc2._0x2a512f),'HjmVV':_0x463b79(0x487,_0x43ecc2._0x509411,_0x43ecc2._0x291bbd,_0x43ecc2._0x494772)};function _0x2d9e0f(_0x546a07,_0x172720,_0x41b35f,_0x52e26a){return _0x9b392e(_0x172720- -0x30b,_0x172720-_0x56862c._0x1c1618,_0x41b35f-_0x56862c._0xef049e,_0x52e26a);}try{if(_0x466020[_0x2d9e0f(-_0x43ecc2._0x5799ba,-_0x43ecc2._0x254a30,-0x63,0x10)]===_0x463b79(0x4bc,0x431,0x43e,0x47d))try{const _0x2bd1cc=_0x466020[_0x2d9e0f(-_0x43ecc2._0x4f9430,-_0x43ecc2._0x56b54d,-0x7d,-_0x43ecc2._0x458c61)](_0x4d0b08);_0x767b4['json'](_0x2bd1cc);}catch(_0x5d7594){_0x4affe7[_0x463b79(0x485,_0x43ecc2._0x23b5d6,0x4b0,0x4bb)](_0x466020[_0x2d9e0f(_0x43ecc2._0x505116,_0x43ecc2._0x254a30,-_0x43ecc2._0x1440b7,-0x29)],_0x5d7594);const _0x30e3a3={};_0x30e3a3[_0x463b79(0x4e4,0x46e,0x48d,0x4bb)]=_0x466020[_0x2d9e0f(-_0x43ecc2._0x2861b6,-0x3d,-_0x43ecc2._0x69168f,-0x2d)],_0x450add[_0x463b79(0x521,_0x43ecc2._0x1ea91e,0x51b,0x502)](0x24ec+0x209a+-0x6*0xb43)['json'](_0x30e3a3);}else{const _0x555727=getEmailConfigStatus();_0x8d473[_0x2d9e0f(_0x43ecc2._0x3e73e7,0x54,0xa6,0x7b)](_0x555727);}}catch(_0x4122f2){if(_0x466020[_0x463b79(_0x43ecc2._0x6362fc,0x4ca,_0x43ecc2._0x19273a,0x4ab)]===_0x463b79(0x543,_0x43ecc2._0x307ecf,0x503,_0x43ecc2._0x41e524)){const _0x3ea70a={};return _0x3ea70a[_0x463b79(0x46f,_0x43ecc2._0x2bb7c6,_0x43ecc2._0x197c98,0x4bb)]=_0x466020[_0x463b79(_0x43ecc2._0x2796a6,_0x43ecc2._0x3f838e,0x506,0x4c5)],_0x3ea70a[_0x2d9e0f(-0x23,-_0x43ecc2._0x3cdb58,-_0x43ecc2._0x2cfe85,-0x30)]=_0x466020[_0x2d9e0f(-_0x43ecc2._0x35462a,0x2e,0xa,0x51)],_0x22fd8d['status'](0x7ce*0x1+0x265a+-0x2c98)['json'](_0x3ea70a);}else{logger[_0x463b79(0x4c2,_0x43ecc2._0x55a065,_0x43ecc2._0x187fd6,_0x43ecc2._0x5dbe45)](_0x466020[_0x463b79(_0x43ecc2._0x58a3fc,0x557,_0x43ecc2._0xf06c2e,0x500)],_0x4122f2);const _0xadc0dc={};_0xadc0dc[_0x2d9e0f(0xc,-0x1a,0x7,0x12)]=_0x466020['pHelf'],_0x8d473[_0x463b79(_0x43ecc2._0x2a080f,0x50e,_0x43ecc2._0x241c91,_0x43ecc2._0x3728c3)](0x2531*0x1+0x2199+0xb*-0x642)[_0x2d9e0f(_0x43ecc2._0x3df7ea,_0x43ecc2._0x436443,_0x43ecc2._0x7c2f1b,0x92)](_0xadc0dc);}}}),router['post'](_0x9b392e(0x312,0x2f3,0x324,0x306)+'ken',requireAuth,requireAdmin,async(_0x5ec04f,_0x8b4fbd)=>{const _0x599b6d={_0x2e1265:0xc2,_0x3b57d6:0xac,_0x4d6006:0x9b,_0x2cb560:0x171,_0x1fdab0:0x104,_0x52969d:0x11a,_0x5f1d9b:0x13c,_0x57e05c:0x79,_0x16b111:0xe,_0x1cad04:0x41,_0x11e76a:0x4b,_0x3bb4bc:0x6c,_0x40d92e:0xda,_0x32f0ae:0xca,_0x446e5c:0x110,_0x12f2d6:0x134,_0x467a46:0xc3,_0x166364:0xee,_0x293a27:0x155,_0x137c70:0x125,_0x3e27a4:0x138,_0x25a992:0xfe,_0x1e6ea0:0xbc,_0xa02c61:0xf7,_0x2eb5dd:0x7f,_0x15683b:0x7d,_0x2fb404:0x14d,_0x385bf:0x10f,_0x45acaf:0x166,_0x3bb3b8:0x6b,_0x29ae44:0x7a,_0x1061c7:0xc0,_0x343eb6:0xce,_0x539ba9:0xa1,_0x30564d:0x5f,_0x23abdf:0x61,_0x2a27bc:0x3b,_0x44b834:0xd3,_0x5e4506:0xe9,_0x355708:0xf3,_0x51dd12:0xca,_0x3067e8:0x62,_0x16edf4:0xd9,_0x263a12:0x11e,_0x2ce5ef:0x118,_0x4d9649:0xfa,_0x2e3fde:0x121,_0x32a486:0x10d,_0x3d4579:0x17c,_0xe8161a:0x111,_0x10c592:0x35,_0xa6d5a3:0x8,_0x41e69e:0x43,_0x3dd157:0x68,_0x2de6ce:0x57,_0x1a0017:0xb5,_0x1367a1:0xe1,_0x460bb:0x116,_0x435000:0xe4,_0x74e72e:0xc1,_0x5d88c1:0x16b,_0x5c3416:0x12d,_0x2c2062:0xca,_0x5f3c60:0x8e,_0x524962:0xae,_0x774e2b:0x132,_0x432c6a:0xcf,_0x2a35c1:0x114,_0x20f42d:0xa4,_0x4913bd:0xb0,_0xfb1f0:0xa7,_0xfd8fa4:0x185,_0x2518a1:0x12f,_0x51896b:0x97,_0x5de389:0x123,_0x4ca7fc:0x57,_0x2a5ad5:0x39,_0x384a1d:0x72,_0x2c4f83:0xb1,_0x416b23:0xbf,_0xad26a:0x164,_0x4b87b4:0x152,_0x4f288a:0x14f,_0x484381:0x119,_0x16f9a4:0xd7,_0x4eecc2:0xed,_0x56183c:0xe2,_0x5ac501:0x124,_0x41a12a:0x11f,_0x4809a4:0xd1,_0x5eeed9:0xac,_0x2606d6:0xe7,_0x4927cf:0x142,_0x4a333b:0x49,_0x9304d:0x6b,_0x5baf38:0xca,_0x393930:0x113,_0x44576b:0xde,_0x3e7a81:0x135,_0x214191:0x7c,_0x6d6ca2:0x54,_0x3cfadd:0x156,_0x2633a3:0xd8,_0x5e0bee:0x100,_0x3bc9da:0x45,_0x50f001:0x10,_0x4d700c:0x50,_0x5559a6:0xf4,_0x1dd81e:0x9c,_0x485f87:0xa2,_0x258bcb:0xfa,_0x973570:0x6e,_0x4050f4:0xb2,_0x30d0d0:0x1a,_0x5524b8:0x2f,_0x25fae1:0x26,_0x2862e7:0x30,_0x31003c:0x142,_0x563229:0x189,_0x14550:0x13a,_0x525968:0xee,_0x349b0c:0xb4,_0x3bbd38:0xb4,_0x1e1b5c:0xdc,_0x47e0ac:0x1a8,_0x400713:0xe8,_0x293ad0:0xe7,_0x2ab3eb:0x8a,_0x588b84:0x44,_0x3846e8:0x18,_0x40077c:0x148,_0x1399eb:0xf5,_0x323b33:0x29,_0x410db0:0x6f,_0x5710ef:0xad,_0x5606ba:0x19c,_0x528b6d:0x150,_0x58eaef:0x101,_0x579328:0x53,_0x402e40:0x7d,_0xd7d59e:0xa2,_0x259b27:0xe0,_0x39bb43:0x8a,_0x5de71c:0x146,_0x382e05:0x194,_0x218c9a:0x125,_0x48d76e:0x142,_0x11deba:0x130,_0x1d21c1:0x190,_0xe0f036:0x15e,_0x1652ef:0x129,_0x37b40e:0x12a,_0x389e08:0x60,_0x161246:0xb1,_0x4a27f0:0x8c,_0x4c2da9:0x7,_0x1c605c:0x3,_0x518996:0x7,_0x1e8374:0x16d,_0x91a527:0x138,_0x3b16fa:0x3d,_0x3c39bb:0x83,_0x3d6355:0x12b,_0x266c0d:0x171,_0x23503f:0x117,_0x4c39a3:0x16d,_0x1a7dc3:0x19b,_0x25d991:0x175,_0x33c155:0xac,_0x356a36:0x8d,_0x47567b:0xb3,_0x243cd1:0x99,_0x461d4a:0xd5,_0x154f5f:0xdf,_0x1e892f:0x111,_0x1e91ff:0x5c,_0x5e51d3:0x73,_0x377022:0x9d,_0x4e465a:0x8a,_0x2f34cf:0x75,_0x13b4ff:0xcd,_0x299112:0x58,_0x40e82f:0x49,_0x49b3dd:0x91,_0x5faef:0x106,_0x24f828:0x115,_0x5d8192:0xa8,_0xb6ccef:0x90,_0x445823:0xe9,_0x574242:0xc2,_0x42b978:0xae,_0x22a461:0xe3,_0x54aca1:0xa4,_0x452fdb:0xea,_0x39e4ec:0x159,_0xde2b29:0x18c,_0xe1392:0x18b,_0x37f080:0x133,_0x2bdb7f:0xec,_0x5d75e0:0xc5,_0x1ef37e:0xe2,_0x140700:0x7a,_0x305c40:0xf9,_0x480843:0x8a,_0x4d3980:0x143,_0x2b9b6f:0x149,_0x21bb51:0x107,_0x28fd06:0x40,_0x12bf84:0x133,_0x80abff:0x65,_0x175460:0x14,_0x485ba3:0xec,_0x50b6e0:0xae,_0x36c166:0x147,_0x14ffbf:0x188,_0x4e444d:0x5a,_0x1e3cb8:0xc3,_0x146937:0xc7,_0x3d3a18:0xf1,_0x5987ad:0x14d},_0x4cdc7c={_0x1beea8:0x41e,_0x3a5549:0x1e5},_0x3b3a24={_0x606b3d:0x3d,_0x45a417:0x17e},_0x40bf2a={'jCRuw':_0x3f0da7(-_0x599b6d._0x2e1265,-_0x599b6d._0x3b57d6,-0xba,-_0x599b6d._0x4d6006)+'create\x20pas'+_0x1a6a14(-0x108,-0xf4,-0xcc,-0xc6)+'n','ByOuD':_0x1a6a14(-_0x599b6d._0x2cb560,-_0x599b6d._0x1fdab0,-_0x599b6d._0x52969d,-_0x599b6d._0x5f1d9b),'uZtst':_0x3f0da7(-_0x599b6d._0x57e05c,-0x71,-0xdf,-0x9c)+'\x20required','ncitR':_0x3f0da7(-0x91,-0x22,_0x599b6d._0x16b111,-_0x599b6d._0x1cad04),'wuVgt':function(_0xf0a434,_0x34b1cd){return _0xf0a434(_0x34b1cd);},'FNcnh':_0x3f0da7(-0x9f,-_0x599b6d._0x11e76a,-0x79,-0x8b)+_0x3f0da7(-0x19,-0x26,-0x32,-_0x599b6d._0x3bb4bc),'oWeMS':function(_0x35fd73,_0x1a8292,_0x503e96){return _0x35fd73(_0x1a8292,_0x503e96);},'LYVwH':_0x1a6a14(-0x102,-_0x599b6d._0x40d92e,-_0x599b6d._0x32f0ae,-_0x599b6d._0x446e5c)+_0x1a6a14(-_0x599b6d._0x12f2d6,-0x141,-_0x599b6d._0x467a46,-_0x599b6d._0x166364)+'ed','nNIni':function(_0x4e3409,_0x40813b){return _0x4e3409(_0x40813b);},'ZmAdj':function(_0x54cda4){return _0x54cda4();},'nAbKX':_0x1a6a14(-0x1a3,-0x10c,-0x18e,-_0x599b6d._0x293a27)+_0x1a6a14(-_0x599b6d._0x137c70,-0xe7,-_0x599b6d._0x3e27a4,-_0x599b6d._0x25a992),'sZyut':_0x1a6a14(-0xe4,-_0x599b6d._0x1e6ea0,-0x130,-_0x599b6d._0xa02c61)+_0x3f0da7(-_0x599b6d._0x2eb5dd,-_0x599b6d._0x15683b,-0x4b,-0x4e)+_0x1a6a14(-_0x599b6d._0x2e1265,-_0x599b6d._0x2fb404,-0x14c,-_0x599b6d._0x385bf)+'\x20set\x20up\x20SM'+'TP\x20environ'+'ment\x20varia'+'bles\x20to\x20se'+_0x1a6a14(-0x120,-0x152,-_0x599b6d._0x45acaf,-0x132),'ndqoq':function(_0x292bb4,_0x15fb19){return _0x292bb4===_0x15fb19;},'hTKCF':_0x1a6a14(-0x8b,-_0x599b6d._0x3bb3b8,-_0x599b6d._0x29ae44,-_0x599b6d._0x1061c7)+_0x3f0da7(-0x96,-_0x599b6d._0x343eb6,-0xdf,-_0x599b6d._0x539ba9),'OQcVS':_0x3f0da7(-0x74,-_0x599b6d._0x30564d,-_0x599b6d._0x23abdf,-_0x599b6d._0x2a27bc),'HodXu':'Password\x20s'+_0x1a6a14(-_0x599b6d._0x44b834,-_0x599b6d._0x5e4506,-0x142,-_0x599b6d._0x355708)+'\x20sent','yeLAm':_0x1a6a14(-_0x599b6d._0x5f1d9b,-0x121,-0xd5,-0x121)+_0x3f0da7(-_0x599b6d._0x51dd12,-_0x599b6d._0x3067e8,-0xec,-0xbb)+_0x1a6a14(-_0x599b6d._0x16edf4,-0x137,-0x105,-_0x599b6d._0x263a12),'stuyZ':_0x1a6a14(-_0x599b6d._0x2ce5ef,-0x145,-_0x599b6d._0x4d9649,-_0x599b6d._0x2e3fde)+_0x1a6a14(-_0x599b6d._0x32a486,-_0x599b6d._0x3d4579,-_0x599b6d._0x3e27a4,-0x126)+_0x3f0da7(-0xa2,-0xe0,-_0x599b6d._0xe8161a,-0xda)+_0x3f0da7(0x15,-_0x599b6d._0x10c592,_0x599b6d._0xa6d5a3,-_0x599b6d._0x41e69e)+_0x3f0da7(-0x12,-0x7b,-_0x599b6d._0x3dd157,-_0x599b6d._0x2de6ce)+'y.','hDEgv':function(_0x5078bf,_0x1e372c){return _0x5078bf===_0x1e372c;},'MBqzh':_0x3f0da7(-_0x599b6d._0x1a0017,-_0x599b6d._0x16edf4,-_0x599b6d._0x1367a1,-0xa3)};function _0x3f0da7(_0x528fe0,_0x59d423,_0x3bb9ae,_0x43a0e7){return _0x598237(_0x528fe0-_0x3b3a24._0x606b3d,_0x3bb9ae,_0x43a0e7- -0x4d4,_0x43a0e7-_0x3b3a24._0x45a417);}function _0x1a6a14(_0x1eb6ac,_0x472ac0,_0x3c9463,_0x4985f3){return _0x9b392e(_0x4985f3- -_0x4cdc7c._0x1beea8,_0x472ac0-_0x4cdc7c._0x3a5549,_0x3c9463-0xfa,_0x472ac0);}try{const {userId:_0x2f5c8f,type:type=_0x40bf2a[_0x1a6a14(-0x94,-0xc6,-_0x599b6d._0x460bb,-_0x599b6d._0x435000)],sendEmail:sendEmail=![]}=_0x5ec04f[_0x3f0da7(-0x9c,-0x7a,-0x111,-_0x599b6d._0x74e72e)];if(!_0x2f5c8f){const _0x16a072={};return _0x16a072[_0x1a6a14(-0x16f,-_0x599b6d._0x5d88c1,-0x12e,-_0x599b6d._0x5c3416)]=_0x40bf2a['uZtst'],_0x8b4fbd[_0x1a6a14(-0x11b,-0x127,-_0x599b6d._0x2c2062,-0xe6)](-0x212a+0xa3*-0x1f+0x3677)[_0x1a6a14(-_0x599b6d._0x5f3c60,-0xc4,-_0x599b6d._0x524962,-0xbf)](_0x16a072);}if(![_0x40bf2a['ByOuD'],_0x40bf2a[_0x1a6a14(-0x151,-0x18b,-_0x599b6d._0x774e2b,-0x166)]][_0x1a6a14(-_0x599b6d._0x432c6a,-0x122,-0xd2,-_0x599b6d._0x2a35c1)](type)){const _0x5cb78f={};return _0x5cb78f[_0x3f0da7(-0xf4,-_0x599b6d._0x20f42d,-_0x599b6d._0x4913bd,-_0x599b6d._0xfb1f0)]='Type\x20must\x20'+_0x1a6a14(-_0x599b6d._0xfd8fa4,-0x128,-0x144,-_0x599b6d._0x2518a1)+_0x3f0da7(-0x89,-0x4,-_0x599b6d._0x51896b,-0x59)+'\x22',_0x8b4fbd[_0x1a6a14(-_0x599b6d._0x5de389,-0x100,-_0x599b6d._0x355708,-0xe6)](-0x259d+0x1b*-0x9+0x2820)[_0x3f0da7(-_0x599b6d._0x4ca7fc,-0x77,-0xe,-_0x599b6d._0x2a5ad5)](_0x5cb78f);}const _0x206515=await _0x40bf2a['wuVgt'](findUserById,_0x2f5c8f);if(!_0x206515){const _0x47a7fa={};return _0x47a7fa[_0x3f0da7(-0xb0,-_0x599b6d._0x384a1d,-_0x599b6d._0x2c4f83,-0xa7)]=_0x40bf2a['FNcnh'],_0x8b4fbd['status'](0x10ed*0x2+0x1*-0x1a96+0x70*-0xd)[_0x1a6a14(-0x86,-0xe9,-_0x599b6d._0x3bb3b8,-_0x599b6d._0x416b23)](_0x47a7fa);}const _0x1167d5=await _0x40bf2a['oWeMS'](createPasswordToken,_0x2f5c8f,type),_0x7b84a5={};_0x7b84a5['adminId']=_0x5ec04f[_0x1a6a14(-_0x599b6d._0xad26a,-_0x599b6d._0x4b87b4,-0x185,-_0x599b6d._0x4f288a)]['id'],_0x7b84a5[_0x1a6a14(-_0x599b6d._0x484381,-0xcb,-0x8c,-_0x599b6d._0x16f9a4)+_0x1a6a14(-0x10e,-_0x599b6d._0x4eecc2,-_0x599b6d._0x56183c,-_0x599b6d._0x5ac501)]=_0x5ec04f[_0x3f0da7(-_0x599b6d._0x41a12a,-_0x599b6d._0x4809a4,-0xdd,-0xc9)][_0x3f0da7(-_0x599b6d._0x5eeed9,-0x12e,-0x8f,-_0x599b6d._0x2606d6)],_0x7b84a5[_0x1a6a14(-0x105,-_0x599b6d._0x4927cf,-0x103,-0x148)+'Id']=_0x2f5c8f,_0x7b84a5[_0x3f0da7(-0x84,-0x71,-0x95,-_0x599b6d._0x2e1265)+_0x3f0da7(-_0x599b6d._0xfb1f0,-0x1e,-_0x599b6d._0x4a333b,-_0x599b6d._0x9304d)]=_0x206515[_0x3f0da7(-_0x599b6d._0x5baf38,-0x104,-0x13a,-_0x599b6d._0x2606d6)],_0x7b84a5[_0x1a6a14(-_0x599b6d._0x393930,-_0x599b6d._0x44576b,-0x105,-_0x599b6d._0x3e7a81)]=type,_0x7b84a5[_0x1a6a14(-0xd7,-_0x599b6d._0x32a486,-_0x599b6d._0x3e27a4,-0xf4)]=sendEmail,logger[_0x3f0da7(-0x65,-0x56,-_0x599b6d._0x467a46,-0x90)](_0x40bf2a[_0x3f0da7(-0x68,-0x6,-_0x599b6d._0x214191,-_0x599b6d._0x6d6ca2)],_0x7b84a5);const _0x2b4c8d=_0x40bf2a[_0x1a6a14(-0xf5,-_0x599b6d._0x3cfadd,-0x150,-0x115)](getRequestBaseUrl,_0x5ec04f),_0x3286b0=_0x2b4c8d+(_0x1a6a14(-_0x599b6d._0x2633a3,-_0x599b6d._0x5e0bee,-0xb3,-0xc2)+_0x3f0da7(-_0x599b6d._0x3bc9da,-0x65,-_0x599b6d._0x50f001,-_0x599b6d._0x4d700c)+'?token=')+_0x1167d5[_0x3f0da7(-0x63,-_0x599b6d._0x5559a6,-_0x599b6d._0x1dd81e,-_0x599b6d._0x485f87)],_0x1a56e4={};_0x1a56e4['id']=_0x1167d5['id'],_0x1a56e4[_0x3f0da7(-_0x599b6d._0x258bcb,-_0x599b6d._0x973570,-_0x599b6d._0x4050f4,-0xa2)]=_0x1167d5[_0x3f0da7(-_0x599b6d._0x355708,-0xf5,-0x4d,-_0x599b6d._0x485f87)],_0x1a56e4[_0x3f0da7(-_0x599b6d._0x30d0d0,-_0x599b6d._0x5524b8,-_0x599b6d._0x485f87,-0x4f)]=_0x1167d5[_0x3f0da7(-_0x599b6d._0x25fae1,-0x68,-_0x599b6d._0x2862e7,-0x4f)],_0x1a56e4[_0x1a6a14(-0x10c,-_0x599b6d._0x31003c,-_0x599b6d._0x563229,-_0x599b6d._0x14550)]=_0x1167d5[_0x3f0da7(-0x77,-_0x599b6d._0x525968,-_0x599b6d._0x349b0c,-_0x599b6d._0x3bbd38)],_0x1a56e4[_0x1a6a14(-_0x599b6d._0x5559a6,-0xda,-_0x599b6d._0x1e1b5c,-0x118)]=_0x3286b0;const _0x277314={};_0x277314['id']=_0x206515['id'],_0x277314[_0x1a6a14(-0x153,-0x1a5,-_0x599b6d._0x47e0ac,-0x16d)]=_0x206515[_0x3f0da7(-_0x599b6d._0x460bb,-_0x599b6d._0x400713,-0xaa,-_0x599b6d._0x293ad0)],_0x277314[_0x3f0da7(-0x96,-0x39,-_0x599b6d._0x2ab3eb,-0x6b)]=_0x206515[_0x3f0da7(-_0x599b6d._0x588b84,-_0x599b6d._0x3846e8,-_0x599b6d._0x384a1d,-0x6b)],_0x277314[_0x1a6a14(-0xc6,-_0x599b6d._0x5f1d9b,-_0x599b6d._0x40077c,-_0x599b6d._0x1399eb)]=_0x206515[_0x3f0da7(-0xc2,-_0x599b6d._0x323b33,-0x3a,-_0x599b6d._0x410db0)];const _0x337d71={};_0x337d71['message']=_0x3f0da7(-_0x599b6d._0x5710ef,-0xa5,-0x8a,-0x8a)+'oken\x20creat'+_0x1a6a14(-_0x599b6d._0x5606ba,-_0x599b6d._0x528b6d,-_0x599b6d._0x58eaef,-0x151)+'fully',_0x337d71[_0x3f0da7(-_0x599b6d._0x579328,-_0x599b6d._0x402e40,-_0x599b6d._0x5e4506,-_0x599b6d._0xd7d59e)]=_0x1a56e4,_0x337d71[_0x3f0da7(-_0x599b6d._0x259b27,-0x7f,-_0x599b6d._0x1a0017,-0xc9)]=_0x277314,_0x337d71[_0x3f0da7(-0x60,-0xc7,-0x6f,-0x8d)]=![];const _0xa60cda=_0x337d71;if(sendEmail){if(!_0x40bf2a[_0x3f0da7(-_0x599b6d._0x39bb43,-_0x599b6d._0xe8161a,-0xcc,-0xba)](isEmailConfigured)){const _0x49199b={};return _0x49199b[_0x1a6a14(-0x118,-_0x599b6d._0x5de71c,-0x111,-0x12d)]=_0x40bf2a[_0x1a6a14(-0x11a,-_0x599b6d._0x382e05,-_0x599b6d._0x218c9a,-_0x599b6d._0x48d76e)],_0x49199b[_0x1a6a14(-_0x599b6d._0x11deba,-0x193,-_0x599b6d._0x1d21c1,-_0x599b6d._0xe0f036)]=_0x40bf2a[_0x1a6a14(-0x136,-_0x599b6d._0x1652ef,-0x150,-_0x599b6d._0x37b40e)],_0x8b4fbd[_0x3f0da7(-0x47,-0x25,-_0x599b6d._0x524962,-_0x599b6d._0x389e08)](-0x23f0+0x16de+0xea2*0x1)[_0x1a6a14(-0x98,-0xe3,-_0x599b6d._0x161246,-0xbf)](_0x49199b);}try{const _0x4e3203=_0x40bf2a[_0x3f0da7(-_0x599b6d._0x4a27f0,-0x3f,-_0x599b6d._0x4c2da9,-0x4d)](type,_0x3f0da7(_0x599b6d._0x1c605c,_0x599b6d._0x518996,-0x8c,-0x41))?_0x40bf2a['hTKCF']:_0x1a6a14(-0x14a,-_0x599b6d._0x1e8374,-_0x599b6d._0x91a527,-0x136)+_0x3f0da7(-0xba,-_0x599b6d._0x5524b8,-0xa7,-0x72),_0x324e22={};_0x324e22[_0x3f0da7(-_0x599b6d._0x3b16fa,-_0x599b6d._0x16b111,-_0x599b6d._0x3c39bb,-0x38)]=_0x206515['name'],_0x324e22[_0x1a6a14(-_0x599b6d._0x3d6355,-_0x599b6d._0x266c0d,-0x165,-0x16d)]=_0x206515[_0x1a6a14(-0x19d,-0x135,-_0x599b6d._0x23503f,-_0x599b6d._0x4c39a3)],_0x324e22['setupUrl']=_0x3286b0,_0x324e22['expiresIn']=_0x40bf2a[_0x3f0da7(-0x70,-0xca,-_0x599b6d._0x525968,-0xae)],_0x324e22['type']=type;const _0x4775f8=_0x324e22,{subject:_0x24bb90}=renderTemplate(_0x4e3203,_0x4775f8),_0x3735a0={};_0x3735a0['to']=_0x206515['email'],_0x3735a0[_0x1a6a14(-_0x599b6d._0x563229,-_0x599b6d._0x1a7dc3,-_0x599b6d._0x25d991,-0x168)]=_0x24bb90,_0x3735a0['template']=_0x4e3203,_0x3735a0[_0x3f0da7(-_0x599b6d._0x33c155,-_0x599b6d._0x356a36,-0x54,-0x99)]=_0x4775f8,await _0x40bf2a[_0x3f0da7(-_0x599b6d._0x47567b,-_0x599b6d._0x243cd1,-_0x599b6d._0x461d4a,-0x8f)](sendTemplatedEmail,_0x3735a0),_0xa60cda[_0x3f0da7(-0x46,-_0x599b6d._0x154f5f,-0xb6,-_0x599b6d._0x356a36)]=!![],_0xa60cda[_0x1a6a14(-0x134,-_0x599b6d._0x47e0ac,-_0x599b6d._0x1e892f,-0x15e)]=_0x3f0da7(-_0x599b6d._0x1e91ff,-_0x599b6d._0x5e51d3,-_0x599b6d._0x377022,-_0x599b6d._0x4e465a)+_0x3f0da7(-0x12,-0x25,-_0x599b6d._0x50f001,-0x68)+_0x1a6a14(-_0x599b6d._0x2f34cf,-0xb5,-_0x599b6d._0x356a36,-_0x599b6d._0x13b4ff)+_0x3f0da7(-_0x599b6d._0x299112,-_0x599b6d._0x40e82f,-0x4b,-_0x599b6d._0x49b3dd)+'\x20'+_0x206515['email'];const _0x238a55={};_0x238a55['to']=_0x206515[_0x1a6a14(-_0x599b6d._0x5faef,-_0x599b6d._0x24f828,-_0x599b6d._0x5de71c,-0xf5)],_0x238a55[_0x1a6a14(-0x84,-_0x599b6d._0x33c155,-_0x599b6d._0x5d8192,-0xd5)]=type,_0x238a55[_0x1a6a14(-0x126,-0x19f,-0x16e,-_0x599b6d._0x4c39a3)]=_0x206515[_0x1a6a14(-0x11d,-0x185,-0x1a7,-_0x599b6d._0x1e8374)],logger[_0x3f0da7(-_0x599b6d._0x5e4506,-0x9d,-0x85,-_0x599b6d._0xb6ccef)](_0x40bf2a[_0x1a6a14(-_0x599b6d._0x445823,-_0x599b6d._0x574242,-_0x599b6d._0x42b978,-_0x599b6d._0x22a461)],_0x238a55);}catch(_0x187f24){logger[_0x3f0da7(-_0x599b6d._0x54aca1,-_0x599b6d._0x452fdb,-_0x599b6d._0x4a27f0,-0xa7)](_0x40bf2a[_0x1a6a14(-0xd3,-_0x599b6d._0x39e4ec,-0x146,-_0x599b6d._0x52969d)],_0x187f24),_0xa60cda['emailError']=_0x40bf2a[_0x1a6a14(-_0x599b6d._0xde2b29,-_0x599b6d._0xe1392,-0xfe,-_0x599b6d._0x37f080)];}}_0x8b4fbd[_0x1a6a14(-_0x599b6d._0x2bdb7f,-0xeb,-0xd3,-0xbf)](_0xa60cda);}catch(_0x2902d9){if(_0x40bf2a[_0x1a6a14(-_0x599b6d._0x5d75e0,-0x91,-_0x599b6d._0x1ef37e,-_0x599b6d._0x1e6ea0)](_0x40bf2a[_0x3f0da7(-_0x599b6d._0x389e08,-0xa9,-0x8e,-_0x599b6d._0x140700)],'kACQE')){logger[_0x3f0da7(-_0x599b6d._0x305c40,-_0x599b6d._0x480843,-_0x599b6d._0x1399eb,-0xa7)](_0x40bf2a[_0x1a6a14(-_0x599b6d._0x4d3980,-0x123,-_0x599b6d._0x2b9b6f,-0x169)],_0x2902d9);const _0x1c2d9d={};_0x1c2d9d[_0x3f0da7(-0xd5,-_0x599b6d._0x22a461,-0xb7,-0xa7)]=_0x1a6a14(-_0x599b6d._0x21bb51,-0x15d,-0xf7,-0x121)+'create\x20pas'+_0x3f0da7(-0x6f,-0xa,-0x6c,-_0x599b6d._0x28fd06)+'n',_0x8b4fbd[_0x1a6a14(-0xe3,-0xf4,-_0x599b6d._0x12bf84,-0xe6)](-0x9e3+-0x7*-0x2cc+-0x7bd)[_0x3f0da7(-_0x599b6d._0x80abff,_0x599b6d._0x175460,-0x58,-_0x599b6d._0x2a5ad5)](_0x1c2d9d);}else{_0x4d85b5[_0x3f0da7(-_0x599b6d._0x485ba3,-_0x599b6d._0x50b6e0,-0x89,-0xa7)](_0x1a6a14(-_0x599b6d._0x36c166,-0xca,-0x108,-0x121)+_0x1a6a14(-0x173,-_0x599b6d._0x14ffbf,-0x119,-0x156)+_0x3f0da7(-0x2,-_0x599b6d._0x4e444d,-_0x599b6d._0x299112,-0x40)+'n',_0x3d24ae);const _0x46f946={};_0x46f946[_0x3f0da7(-_0x599b6d._0x1e3cb8,-_0x599b6d._0x146937,-_0x599b6d._0x3d3a18,-0xa7)]=_0x40bf2a[_0x1a6a14(-0x1b6,-_0x599b6d._0x5987ad,-0x1b7,-0x169)],_0x8f2bb8[_0x1a6a14(-0xcb,-0xb6,-0x92,-0xe6)](0x8*0x1d0+0x13e1+-0x206d)['json'](_0x46f946);}}}),router['get']('/validate-'+_0x9b392e(0x2f6,0x2b1,0x2a8,0x2d2),async(_0x471e8c,_0x5229dc)=>{const _0x201796={_0x518f6b:0xc2,_0xe6275a:0x147,_0x27f035:0x4d6,_0xdd9a17:0x48f,_0x259453:0x486,_0x5972d0:0xe0,_0xdad107:0xcd,_0x45f782:0xb7,_0x4db431:0x4eb,_0x42c44e:0x528,_0x3026cd:0x4a2,_0x31104b:0x4e6,_0x22372a:0x533,_0x4ffd86:0x4d0,_0x660ea9:0x1a9,_0x53ff37:0x122,_0x2c4652:0xce,_0x245661:0x141,_0x317741:0x151,_0x36046c:0x140,_0x2f9468:0x518,_0x2dac79:0x492,_0x5d6858:0x438,_0x3e4062:0x442,_0x3e3d61:0x470,_0x243541:0x476,_0x5f1946:0x4c0,_0x498296:0x4b6,_0x97dba0:0x45b,_0x15b2ce:0x4a9,_0x57f0c4:0x47c,_0x9ae429:0x130,_0xd0890e:0x195,_0x869416:0x121,_0x44cf2c:0x111,_0x330b6e:0xc8,_0x2ca047:0x481,_0x1d8f78:0x42c,_0x5a4bdf:0x489,_0x3125ec:0x4d1,_0x95f9f7:0x18e,_0x44fd35:0x1bd,_0xf09db3:0x463,_0x4dfb94:0x4a2,_0x5683e9:0x11a,_0x3381cd:0x143,_0x3efff2:0xed,_0x4f81be:0x13a,_0x54a787:0x46f,_0x34dc1b:0x112,_0x1da15a:0x10d,_0x1e2c05:0xf3,_0x469ca4:0x19b,_0x2f556b:0x49c,_0x373eab:0x4e6,_0x1f7025:0x131,_0x2f2ad5:0xe4,_0x2bf1f4:0x174,_0x1e2051:0x14e,_0x33ac89:0x137,_0x5e594d:0x1b0,_0x582f06:0x452,_0x1d2049:0x421,_0x3fd12d:0x49c,_0x3e0bf1:0x4c1,_0x5e5221:0x47f,_0x4f29ec:0x101,_0xa9b346:0xd7,_0x3c9f32:0x106,_0x218abc:0xd8,_0x383382:0x422,_0x457d39:0x14d,_0x1cad43:0x11b,_0x3bd1e9:0x183,_0x1313f4:0x49e,_0xe4bf3e:0x44c,_0x3eb01d:0x41d,_0xc3eda3:0xfc,_0x2a4347:0xc3,_0x5961e5:0x49f,_0x2f2f80:0x4a5,_0x4908f5:0x167,_0xac47b7:0x10e,_0x4d6a20:0x497,_0x24f390:0x1c4},_0x2b14d3={_0x42588c:0x190,_0x502aa8:0x2e},_0xc495be={_0x13a057:0x84,_0x35015a:0x199};function _0x5bc6ac(_0x9477c7,_0x4c0d04,_0x17c1e8,_0x4462ac){return _0x598237(_0x9477c7-_0xc495be._0x13a057,_0x17c1e8,_0x9477c7- -0x327,_0x4462ac-_0xc495be._0x35015a);}function _0x11dd11(_0x45f27d,_0x4a2a7d,_0x42323d,_0x697e11){return _0x9b392e(_0x45f27d-_0x2b14d3._0x42588c,_0x4a2a7d-_0x2b14d3._0x502aa8,_0x42323d-0x9b,_0x42323d);}const _0x25a1b6={'jLTLY':_0x5bc6ac(0x112,_0x201796._0x518f6b,0x10c,_0x201796._0xe6275a)+_0x11dd11(0x4a8,_0x201796._0x27f035,_0x201796._0xdd9a17,_0x201796._0x259453)+_0x5bc6ac(0x167,0x11e,0x164,0x127),'YjQiA':_0x5bc6ac(_0x201796._0x5972d0,_0x201796._0xdad107,0xf2,_0x201796._0x45f782)+_0x11dd11(_0x201796._0x4db431,_0x201796._0x42c44e,_0x201796._0x3026cd,0x4a8),'MSZAM':function(_0x831fb4,_0x1a75b4){return _0x831fb4(_0x1a75b4);},'utLqg':_0x11dd11(_0x201796._0x31104b,0x4e0,_0x201796._0x22372a,_0x201796._0x4ffd86)+'\x20expired\x20t'+_0x5bc6ac(0x167,0x162,0x167,_0x201796._0x660ea9),'UTytD':function(_0x22e29d,_0x478793){return _0x22e29d(_0x478793);},'olKvn':_0x5bc6ac(_0x201796._0x53ff37,0x16e,0xd2,_0x201796._0x2c4652)+_0x5bc6ac(_0x201796._0x245661,_0x201796._0x317741,0x139,_0x201796._0x36046c),'ZtjyX':function(_0x3c0398,_0x2a6aec){return _0x3c0398!==_0x2a6aec;},'BtGVQ':_0x11dd11(0x4c5,_0x201796._0x2f9468,_0x201796._0x3026cd,_0x201796._0x2dac79)};try{const {token:_0x36f437}=_0x471e8c[_0x11dd11(0x468,0x481,_0x201796._0x5d6858,_0x201796._0x3e4062)];if(!_0x36f437){const _0x137b7a={};return _0x137b7a[_0x11dd11(0x481,0x4aa,_0x201796._0x3e3d61,0x454)]=_0x25a1b6[_0x11dd11(_0x201796._0x243541,0x483,_0x201796._0x5f1946,_0x201796._0x498296)],_0x137b7a[_0x11dd11(0x49c,0x467,_0x201796._0x97dba0,0x4d4)]=![],_0x5229dc[_0x11dd11(0x4c8,_0x201796._0x15b2ce,_0x201796._0x57f0c4,0x517)](-0x3b*0xb+-0x1137+0x1550)['json'](_0x137b7a);}const _0x251e19=await _0x25a1b6[_0x5bc6ac(0x158,_0x201796._0x9ae429,0x140,_0x201796._0xd0890e)](validateToken,_0x36f437);if(!_0x251e19){const _0x21b275={};return _0x21b275[_0x5bc6ac(_0x201796._0x869416,_0x201796._0x44cf2c,0xfd,_0x201796._0x330b6e)]=![],_0x21b275[_0x11dd11(_0x201796._0x2ca047,_0x201796._0x1d8f78,_0x201796._0x5a4bdf,_0x201796._0x3125ec)]=_0x25a1b6['utLqg'],_0x5229dc[_0x5bc6ac(0x174,_0x201796._0x95f9f7,_0x201796._0x44fd35,0x123)](_0x21b275);}const _0x22806d=await _0x25a1b6[_0x11dd11(0x4b8,_0x201796._0xf09db3,_0x201796._0x4dfb94,0x4c5)](findUserById,_0x251e19[_0x5bc6ac(_0x201796._0x5683e9,_0x201796._0x3381cd,_0x201796._0x3efff2,_0x201796._0x4f81be)]);if(!_0x22806d){const _0x5046ee={};return _0x5046ee['valid']=![],_0x5046ee[_0x11dd11(0x481,0x43b,0x46b,_0x201796._0x54a787)]=_0x25a1b6['olKvn'],_0x5229dc['json'](_0x5046ee);}const _0x54ad21={};_0x54ad21['username']=_0x22806d[_0x5bc6ac(0xc6,_0x201796._0x34dc1b,0x8b,_0x201796._0x1da15a)],_0x54ad21[_0x5bc6ac(0x142,_0x201796._0x1e2c05,_0x201796._0x469ca4,0x107)]=_0x22806d['name'];const _0x280dc5={};_0x280dc5[_0x11dd11(_0x201796._0x2f556b,_0x201796._0x373eab,0x4a1,0x458)]=!![],_0x280dc5[_0x5bc6ac(0x15e,_0x201796._0x1f7025,0x146,_0x201796._0x245661)]=_0x251e19['type'],_0x280dc5[_0x5bc6ac(_0x201796._0x2f2ad5,0xb2,0x134,0xb4)]=_0x54ad21,_0x5229dc[_0x5bc6ac(_0x201796._0x2bf1f4,_0x201796._0x1e2051,_0x201796._0x33ac89,_0x201796._0x5e594d)](_0x280dc5);}catch(_0x4443d6){if(_0x25a1b6[_0x11dd11(0x453,_0x201796._0x582f06,0x448,_0x201796._0x1d2049)](_0x25a1b6[_0x11dd11(0x480,0x477,0x482,_0x201796._0x3fd12d)],_0x25a1b6[_0x5bc6ac(0x105,0xc4,0x141,0xb8)])){_0x2ed79f[_0x11dd11(0x481,0x484,_0x201796._0x3e0bf1,_0x201796._0x5e5221)](_0x25a1b6[_0x5bc6ac(0xd1,_0x201796._0x4f29ec,_0x201796._0xa9b346,0x89)],_0x43209a);const _0x5a58fa={};_0x5a58fa[_0x5bc6ac(_0x201796._0x3c9f32,0xcf,_0x201796._0x218abc,0x121)]=_0x25a1b6[_0x11dd11(0x44c,0x45f,_0x201796._0x383382,0x413)],_0x5a58fa['valid']=![],_0x30168e[_0x5bc6ac(_0x201796._0x457d39,_0x201796._0x1cad43,0x167,0x196)](0xa*-0x180+0x2*0xc97+-0x83a)[_0x5bc6ac(0x174,0x175,0x185,_0x201796._0x3bd1e9)](_0x5a58fa);}else{logger[_0x11dd11(0x481,0x496,0x4d0,_0x201796._0x1313f4)](_0x25a1b6[_0x11dd11(_0x201796._0xe4bf3e,0x3fe,_0x201796._0x3eb01d,0x3f7)],_0x4443d6);const _0x1396c6={};_0x1396c6[_0x5bc6ac(_0x201796._0x3c9f32,0x155,_0x201796._0xc3eda3,_0x201796._0x2a4347)]=_0x11dd11(0x48d,_0x201796._0x5961e5,0x4da,_0x201796._0x2f2f80)+_0x5bc6ac(0x12d,0x174,0x130,0x124)+_0x5bc6ac(_0x201796._0x4908f5,0x153,0x166,_0x201796._0xac47b7),_0x1396c6[_0x11dd11(_0x201796._0x3fd12d,0x4c9,_0x201796._0x4d6a20,0x463)]=![],_0x5229dc['status'](-0x461*-0x3+0x930+-0x145f)[_0x5bc6ac(0x174,0x1c0,_0x201796._0x24f390,_0x201796._0x2bf1f4)](_0x1396c6);}}});function _0x598237(_0x33ac58,_0xaa53a8,_0x3bef4b,_0x19ebf0){const _0x49a516={_0x2bb83f:0x22d};return _0x16f2(_0x3bef4b-_0x49a516._0x2bb83f,_0xaa53a8);}function _0x16f2(_0x5d8843,_0x1d8a31){_0x5d8843=_0x5d8843-(-0x1d1b*-0x1+0xe2b+-0x5*0x84e);const _0x529e42=_0x5956();let _0x63eb5c=_0x529e42[_0x5d8843];if(_0x16f2['ZnDlRa']===undefined){var _0xbbc522=function(_0x12ba8f){const _0x5026af='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1daf2e='',_0x1351ba='';for(let _0xa93f05=0x45*-0x74+-0x53*-0x11+-0x15b*-0x13,_0x28f3b2,_0x237907,_0x18c25e=-0xda1+-0x930*0x1+-0x3*-0x79b;_0x237907=_0x12ba8f['charAt'](_0x18c25e++);~_0x237907&&(_0x28f3b2=_0xa93f05%(0x1660+0x33b*-0xb+0xd2d)?_0x28f3b2*(-0x5*-0x33d+-0x2440+-0x144f*-0x1)+_0x237907:_0x237907,_0xa93f05++%(-0x187*0xb+-0x1a86+0x631*0x7))?_0x1daf2e+=String['fromCharCode'](-0x1c2f+0x1*0x1826+-0xe*-0x5c&_0x28f3b2>>(-(-0x1a5d+0x5*-0x13c+0x3*0xad9)*_0xa93f05&0x1*-0x1fbe+-0x10f*-0xf+-0x1*-0xfe3)):0xdc3+0x1*0x1bf0+0x3d*-0xaf){_0x237907=_0x5026af['indexOf'](_0x237907);}for(let _0x31aece=-0x4*0xb1+0xfb8+-0xcf4,_0x1d90ad=_0x1daf2e['length'];_0x31aece<_0x1d90ad;_0x31aece++){_0x1351ba+='%'+('00'+_0x1daf2e['charCodeAt'](_0x31aece)['toString'](0x44f*0x4+-0x1*0x1fdb+0x15*0xb3))['slice'](-(0x1*-0x23bf+0x15ed+-0xb1*-0x14));}return decodeURIComponent(_0x1351ba);};_0x16f2['tXQTqm']=_0xbbc522,_0x16f2['aRhgLY']={},_0x16f2['ZnDlRa']=!![];}const _0xd8a1fc=_0x529e42[-0x24d0+0x38f*-0x1+-0xd*-0x31b],_0xbd98ee=_0x5d8843+_0xd8a1fc,_0x11b6e5=_0x16f2['aRhgLY'][_0xbd98ee];return!_0x11b6e5?(_0x63eb5c=_0x16f2['tXQTqm'](_0x63eb5c),_0x16f2['aRhgLY'][_0xbd98ee]=_0x63eb5c):_0x63eb5c=_0x11b6e5,_0x63eb5c;}router['post'](_0x598237(0x3fa,0x44c,0x41f,0x3d0),async(_0x56b602,_0x101be4)=>{const _0x2f626d={_0x1f5cda:0x390,_0x45b1e4:0x37b,_0x3d709b:0x303,_0x1beaf9:0x333,_0x505c75:0x33d,_0x30edb9:0x34d,_0x886ab4:0x354,_0x8a071e:0x370,_0x34390d:0x36e,_0x3142be:0x393,_0x4f819f:0x3d2,_0x57b407:0x3ce,_0x27068a:0x39f,_0x1a0c0d:0x338,_0x53a14e:0x3bb,_0x4c2ab8:0x352,_0xfcd7f5:0x35c,_0x189369:0x36c,_0x1a679f:0x31c,_0x304b33:0x350,_0x4f2fb0:0x3f1,_0x13bcf6:0x39e,_0x170bf8:0x316,_0x75624b:0x38a,_0x205e67:0x364,_0x1b9c31:0x359,_0x25c223:0x381,_0x12348b:0x38e,_0x2a4e6b:0x397,_0x389008:0x3fd,_0x14535d:0x3db,_0x212a69:0x3c6,_0x5236f2:0x358,_0x51b81d:0x349,_0x552988:0x3a5,_0x2c4fb1:0x392,_0x1e4629:0x366,_0x2be695:0x385,_0x36f9e0:0x326,_0x2791c8:0x34c,_0x77477d:0x335,_0x43f8fb:0x362,_0x249d93:0x3b5,_0x5b564b:0x38e,_0x3b400e:0x3f2,_0x1ce643:0x384,_0x1f2fb4:0x368,_0x167757:0x344,_0x49c075:0x34d,_0xa2e389:0x3a8,_0x36ba0f:0x36e,_0x5b0925:0x2e2,_0x13c7a4:0x3dc,_0x11ca1d:0x3cb,_0x58c277:0x394,_0x21785a:0x39e,_0x49e2e6:0x321,_0x51a542:0x370,_0x47680a:0x361,_0x4e977d:0x36a,_0x283ee9:0x2f5,_0x5d68d3:0x2d3,_0x4c9173:0x363,_0x6cac2a:0x3a7,_0x243d83:0x382,_0x9d81f3:0x3f2,_0x5af2d6:0x3a0,_0x180dc7:0x399,_0x4e1048:0x32b,_0x4744c4:0x367,_0x1ad9cb:0x364,_0x221ee6:0x399,_0xdd78da:0x33e,_0x575f9a:0x368,_0x2584ff:0x41b,_0x5223df:0x429,_0x5034d2:0x41d,_0x2adad3:0x3ed,_0x58754a:0x413,_0xe5dcd1:0x3c4,_0x13379e:0x3ea,_0x1a5e2c:0x412,_0x2fd69c:0x3e9,_0x5f3ca7:0x3d9,_0x34e759:0x37a,_0x2835bd:0x2fc,_0x18aacb:0x2fd,_0x22584e:0x355,_0x363d48:0x3bd,_0x4197d8:0x37c,_0x24c88a:0x388,_0x49719e:0x3af,_0x1fc57b:0x375,_0x53bbb3:0x309,_0x55d235:0x355,_0x123eed:0x429,_0x250f19:0x416,_0x1af324:0x3dc,_0x533bf5:0x3ca,_0x4d9117:0x3b8,_0x2c5c7a:0x38a,_0x13601d:0x3c0,_0x532f6f:0x343,_0x4d50c2:0x37c,_0x5b95f3:0x3cc,_0x5c74dc:0x3c8,_0x37f642:0x36e,_0xadd0cf:0x3f0,_0x38c71d:0x3be,_0x1f6e36:0x369,_0x173b36:0x38e,_0x53f1e2:0x2d5,_0x1a5e2f:0x2de,_0x4f5147:0x301,_0x3cf335:0x3c0,_0x25e978:0x366,_0x127a6d:0x2fe,_0x40c0e8:0x353,_0xfcae3d:0x3e0,_0xc670e7:0x3a9,_0x164b44:0x3d6,_0x23da1a:0x2e6,_0x599e8f:0x31f,_0x134f24:0x3a7,_0x32e03b:0x3e1,_0x53248c:0x379,_0x29e971:0x35e,_0x32f720:0x341,_0xcbd2ab:0x36b,_0x512291:0x39d,_0xb3fd96:0x3b0,_0x53b9dc:0x3e3,_0x5a5dae:0x37e,_0x10ab58:0x38f,_0xf2ce57:0x33d,_0x3d14b5:0x408},_0x40f75c={_0xc3cce5:0x1b6};function _0x5af49a(_0x398312,_0x426a9d,_0x28e798,_0x1676ed){return _0x598237(_0x398312-0xa0,_0x28e798,_0x1676ed- -0xec,_0x1676ed-0x1ca);}function _0x1b3324(_0x3bb92b,_0x573838,_0x39274a,_0x22a9cc){return _0x9b392e(_0x39274a-0x93,_0x573838-0x1b0,_0x39274a-_0x40f75c._0xc3cce5,_0x3bb92b);}const _0x27be23={'rGhyG':_0x1b3324(0x399,0x35c,_0x2f626d._0x1f5cda,_0x2f626d._0x45b1e4)+'get\x20user\x20t'+'okens','XOaqE':_0x5af49a(_0x2f626d._0x3d709b,_0x2f626d._0x1beaf9,_0x2f626d._0x505c75,_0x2f626d._0x30edb9)+_0x1b3324(0x34d,_0x2f626d._0x886ab4,_0x2f626d._0x8a071e,0x332)+_0x1b3324(_0x2f626d._0x34390d,0x36d,_0x2f626d._0x3142be,_0x2f626d._0x4f819f),'gdZub':function(_0x25f26c,_0x439334){return _0x25f26c||_0x439334;},'RSwby':function(_0x2e5c35,_0x3089b8){return _0x2e5c35!==_0x3089b8;},'MEZhw':_0x5af49a(_0x2f626d._0x57b407,0x385,_0x2f626d._0x27068a,0x382),'bpeOI':_0x1b3324(_0x2f626d._0x1a0c0d,_0x2f626d._0x53a14e,0x380,_0x2f626d._0x4c2ab8),'HTgjj':function(_0x36ef69,_0x81cdb6){return _0x36ef69<_0x81cdb6;},'kmcrX':function(_0x216499,_0x136425){return _0x216499!==_0x136425;},'MEfUs':_0x1b3324(0x416,0x37d,0x3c4,0x376),'MAweT':_0x5af49a(0x3a4,_0x2f626d._0xfcd7f5,0x3cc,0x3a0)+'ust\x20be\x20at\x20'+'least\x208\x20ch'+_0x5af49a(_0x2f626d._0x189369,0x319,0x318,_0x2f626d._0x1a679f),'XQGNP':function(_0x3315c3,_0x3681df){return _0x3315c3(_0x3681df);},'DRZZx':_0x5af49a(_0x2f626d._0x304b33,0x3ff,_0x2f626d._0x4f2fb0,0x3a6)+_0x1b3324(0x33a,0x382,0x357,_0x2f626d._0x13bcf6)+'oken','ttBiL':_0x5af49a(0x30b,0x30d,0x326,_0x2f626d._0x170bf8)+_0x1b3324(0x314,_0x2f626d._0x75624b,_0x2f626d._0x205e67,0x352)+'en','Xtvmy':_0x1b3324(0x3a4,0x37b,_0x2f626d._0x1b9c31,0x342)+'et\x20success'+_0x1b3324(_0x2f626d._0x25c223,_0x2f626d._0x12348b,0x3b6,_0x2f626d._0x2a4e6b),'MKkKW':'Failed\x20to\x20'+_0x5af49a(0x35b,0x3ae,0x3d2,_0x2f626d._0x13bcf6)+'rd'};try{const {token:_0xf85d5,password:_0x2f71e2}=_0x56b602['body'];if(_0x27be23[_0x1b3324(_0x2f626d._0x389008,_0x2f626d._0x14535d,0x3ae,_0x2f626d._0x212a69)](!_0xf85d5,!_0x2f71e2)){if(_0x27be23[_0x1b3324(_0x2f626d._0x5236f2,_0x2f626d._0x51b81d,0x36e,0x353)](_0x27be23[_0x1b3324(0x344,0x382,0x345,0x39c)],_0x27be23[_0x5af49a(_0x2f626d._0x552988,0x3ce,0x3d8,_0x2f626d._0x2c4fb1)])){const _0x19af0d={};return _0x19af0d[_0x1b3324(0x3b2,_0x2f626d._0x1e4629,0x384,_0x2f626d._0x2be695)]=_0x5af49a(0x312,_0x2f626d._0x36f9e0,0x2e1,0x31a)+_0x5af49a(0x363,0x2f4,_0x2f626d._0x2791c8,_0x2f626d._0x77477d)+_0x5af49a(_0x2f626d._0x3142be,_0x2f626d._0x43f8fb,_0x2f626d._0x249d93,_0x2f626d._0x5b564b)+'d',_0x101be4['status'](-0x1653+0x9ff+-0x2*-0x6f2)[_0x1b3324(0x3f6,0x42b,_0x2f626d._0x3b400e,0x3b4)](_0x19af0d);}else{_0x41047c[_0x1b3324(0x381,0x3dd,_0x2f626d._0x1ce643,0x38c)](_0x5af49a(_0x2f626d._0x1f2fb4,0x371,_0x2f626d._0x167757,_0x2f626d._0x49c075)+_0x1b3324(0x396,0x363,0x367,_0x2f626d._0xa2e389)+_0x5af49a(_0x2f626d._0x36ba0f,0x35c,0x38c,0x371),_0x238949);const _0x1092b8={};_0x1092b8['error']=_0x27be23[_0x5af49a(0x2ec,_0x2f626d._0x5b0925,0x2e2,0x30a)],_0x3d48b9[_0x1b3324(0x3ca,_0x2f626d._0x13c7a4,_0x2f626d._0x11ca1d,0x3fe)](-0x48*0xb+0x1*-0x382+0x88e)[_0x5af49a(0x357,_0x2f626d._0x58c277,0x383,0x3af)](_0x1092b8);}}if(_0x27be23[_0x5af49a(_0x2f626d._0x21785a,_0x2f626d._0x49e2e6,_0x2f626d._0x51a542,_0x2f626d._0x47680a)](_0x2f71e2['length'],0x2188+-0x1f3c*0x1+0x1d*-0x14)){if(_0x27be23[_0x5af49a(0x3b2,0x366,0x35b,_0x2f626d._0x4e977d)](_0x27be23[_0x5af49a(0x371,_0x2f626d._0x283ee9,_0x2f626d._0x5d68d3,0x320)],'azLKk')){const _0x4f7bfd={};return _0x4f7bfd[_0x1b3324(_0x2f626d._0x4c9173,0x348,_0x2f626d._0x1ce643,0x337)]=_0x27be23[_0x1b3324(0x36a,0x361,_0x2f626d._0x6cac2a,_0x2f626d._0x243d83)],_0x101be4['status'](-0x1b66+0x192d+0x33*0x13)[_0x1b3324(0x3b1,0x39d,_0x2f626d._0x9d81f3,_0x2f626d._0x5af2d6)](_0x4f7bfd);}else _0x1e3470['error'](_0x27be23[_0x1b3324(_0x2f626d._0x180dc7,_0x2f626d._0x4e1048,0x381,_0x2f626d._0x4744c4)],_0xf82ed3),_0x2827e3[_0x5af49a(0x304,0x35c,0x335,0x32a)]=_0x5af49a(_0x2f626d._0x1ad9cb,_0x2f626d._0x3142be,_0x2f626d._0x221ee6,_0x2f626d._0x49c075)+_0x1b3324(0x384,0x3dc,0x38b,0x378)+_0x1b3324(_0x2f626d._0xdd78da,_0x2f626d._0x575f9a,0x351,0x3a2)+_0x1b3324(_0x2f626d._0x2584ff,0x404,0x3e8,_0x2f626d._0x5223df)+_0x1b3324(_0x2f626d._0x5034d2,_0x2f626d._0x2adad3,0x3d4,_0x2f626d._0x58754a)+'y.';}const _0x5f03c8=await _0x27be23[_0x5af49a(0x37c,_0x2f626d._0xe5dcd1,_0x2f626d._0x13379e,0x396)](validateToken,_0xf85d5);if(!_0x5f03c8){const _0x5f3bd2={};return _0x5f3bd2['error']=_0x27be23['DRZZx'],_0x101be4['status'](-0xe69+-0x2*-0x85a+-0xbb)[_0x1b3324(0x3c5,0x3a4,0x3f2,0x3ec)](_0x5f3bd2);}const _0x257bd9=await _0x27be23[_0x1b3324(_0x2f626d._0x1a5e2c,_0x2f626d._0x2fd69c,_0x2f626d._0x5f3ca7,0x3f1)](findUserById,_0x5f03c8[_0x5af49a(_0x2f626d._0x34e759,_0x2f626d._0x2835bd,_0x2f626d._0x18aacb,_0x2f626d._0x22584e)]);if(!_0x257bd9){const _0x40eb48={};return _0x40eb48[_0x1b3324(0x3c6,0x34b,_0x2f626d._0x1ce643,0x366)]='User\x20not\x20f'+_0x5af49a(_0x2f626d._0x363d48,_0x2f626d._0x36f9e0,0x338,_0x2f626d._0x4197d8),_0x101be4[_0x5af49a(0x39c,_0x2f626d._0x57b407,0x396,_0x2f626d._0x24c88a)](0x4*-0x883+0xc45+0x7c9*0x3)[_0x5af49a(_0x2f626d._0x24c88a,0x35d,_0x2f626d._0x2adad3,_0x2f626d._0x49719e)](_0x40eb48);}await setUserPassword(_0x5f03c8[_0x5af49a(_0x2f626d._0x1fc57b,0x36c,_0x2f626d._0x53bbb3,_0x2f626d._0x55d235)],_0x2f71e2),await _0x27be23[_0x1b3324(_0x2f626d._0x123eed,_0x2f626d._0x250f19,0x3d9,_0x2f626d._0x1af324)](markTokenAsUsed,_0xf85d5);const _0x5a95f3={};_0x5a95f3[_0x1b3324(0x35d,_0x2f626d._0x533bf5,0x398,_0x2f626d._0x4d9117)]=_0x257bd9['id'],_0x5a95f3['username']=_0x257bd9[_0x1b3324(0x31b,_0x2f626d._0x2c5c7a,0x344,0x304)],_0x5a95f3[_0x1b3324(_0x2f626d._0x13601d,_0x2f626d._0x532f6f,_0x2f626d._0x4d50c2,_0x2f626d._0x5b95f3)]=_0x5f03c8[_0x5af49a(0x3c5,_0x2f626d._0x5c74dc,0x3c8,_0x2f626d._0x221ee6)],logger[_0x5af49a(_0x2f626d._0x205e67,0x38d,_0x2f626d._0x37f642,_0x2f626d._0x5236f2)](_0x27be23[_0x1b3324(_0x2f626d._0xadd0cf,0x388,_0x2f626d._0xa2e389,_0x2f626d._0x38c71d)],_0x5a95f3);const _0x501164={};_0x501164['id']=_0x257bd9['id'],_0x501164[_0x1b3324(_0x2f626d._0x1f6e36,0x326,0x344,_0x2f626d._0x173b36)]=_0x257bd9[_0x5af49a(_0x2f626d._0x53f1e2,0x2e4,_0x2f626d._0x1a5e2f,_0x2f626d._0x4f5147)],_0x501164['name']=_0x257bd9[_0x1b3324(0x373,0x3a0,_0x2f626d._0x3cf335,0x3d9)];const _0x1feee7={};_0x1feee7[_0x1b3324(_0x2f626d._0x25e978,_0x2f626d._0x127a6d,_0x2f626d._0x40c0e8,0x349)]=_0x27be23[_0x1b3324(_0x2f626d._0xfcae3d,0x3f1,_0x2f626d._0xc670e7,_0x2f626d._0x164b44)],_0x1feee7[_0x5af49a(_0x2f626d._0x23da1a,_0x2f626d._0x1beaf9,0x31b,_0x2f626d._0x599e8f)]=_0x501164,_0x101be4[_0x5af49a(_0x2f626d._0x134f24,0x363,_0x2f626d._0x32e03b,0x3af)](_0x1feee7);}catch(_0x294b32){logger[_0x5af49a(0x2f3,_0x2f626d._0x53248c,_0x2f626d._0x29e971,_0x2f626d._0x32f720)](_0x5af49a(0x326,_0x2f626d._0xcbd2ab,0x320,0x34d)+_0x1b3324(_0x2f626d._0x512291,_0x2f626d._0xb3fd96,_0x2f626d._0x32e03b,_0x2f626d._0x53b9dc)+'rd',_0x294b32);const _0x31f17a={};_0x31f17a[_0x5af49a(0x325,0x32f,0x33e,0x341)]=_0x27be23[_0x1b3324(_0x2f626d._0x5a5dae,0x3f1,0x3cf,_0x2f626d._0x10ab58)],_0x101be4[_0x5af49a(0x390,0x3a5,_0x2f626d._0xf2ce57,0x388)](-0x13*0xda+0xe03+0x41f)[_0x1b3324(0x3ad,0x3af,0x3f2,_0x2f626d._0x3d14b5)](_0x31f17a);}}),router[_0x9b392e(0x2c2,0x273,0x27f,0x281)](_0x9b392e(0x2d5,0x31b,0x2a1,0x2e5)+_0x9b392e(0x333,0x365,0x2fd,0x345),requireAuth,requireAdmin,async(_0x3cbce8,_0x506834)=>{const _0x2cc23e={_0x1a4f3a:0x57f,_0x397d64:0x413,_0x5bfeda:0x3ee,_0x48c9a4:0x56c,_0x92d831:0x562,_0x586902:0x5cb,_0x5c7211:0x537,_0x22187d:0x5d1,_0x4aabab:0x4f6,_0x37aa0f:0x577,_0x4a7db3:0x532,_0x4b4b6f:0x550,_0x1bdccf:0x549,_0x52eab6:0x406,_0x1ebc84:0x44b,_0xf87808:0x54d,_0x24945d:0x5c8,_0x1925e5:0x56f,_0x5ccc50:0x3af,_0x3d9b79:0x383,_0x387db6:0x3a3,_0xa5f472:0x597,_0x1e35ac:0x3eb,_0x1f429d:0x3cc,_0x30ba18:0x3e6,_0x399bac:0x3c3,_0x52d7d4:0x402,_0x50c2ba:0x3d0,_0x313dc8:0x38d,_0x1379d4:0x39c,_0x2a25ce:0x612,_0x30ac89:0x5be,_0x5a8988:0x5e7,_0x4cdfbe:0x3d3,_0x2b8f18:0x389,_0x365a3d:0x3a2,_0xfe0f6f:0x531,_0x9931c1:0x367,_0x144e24:0x37f,_0x492cff:0x3ac,_0x1dce19:0x3c7,_0x4d12f3:0x357,_0xa9593a:0x35b,_0x1cbbac:0x3b7,_0x1e64e1:0x3ef,_0x4724d9:0x3ec,_0x5a8563:0x43e,_0x4f7ee5:0x57e,_0x24498d:0x5be},_0x33272d={_0x38d514:0x162},_0x473d24={_0x3d82c6:0x25f,_0x4ede89:0x1a7,_0x21edce:0x124};function _0x46c14f(_0x533ef8,_0x1b4aad,_0x1e43b5,_0x98cd5a){return _0x9b392e(_0x1e43b5-_0x473d24._0x3d82c6,_0x1b4aad-_0x473d24._0x4ede89,_0x1e43b5-_0x473d24._0x21edce,_0x533ef8);}const _0x5d1faf={'RjSFP':_0x46c14f(0x60c,_0x2cc23e._0x1a4f3a,0x5b3,0x598),'RVOqx':_0x28b764(_0x2cc23e._0x397d64,_0x2cc23e._0x5bfeda,0x3c1,0x40c),'mfhto':function(_0x1bce03,_0x1a4c66){return _0x1bce03(_0x1a4c66);},'QCFdU':_0x46c14f(0x523,0x5b5,_0x2cc23e._0x48c9a4,_0x2cc23e._0x92d831)+_0x46c14f(_0x2cc23e._0x586902,_0x2cc23e._0x5c7211,0x58b,_0x2cc23e._0x22187d),'JAFGr':function(_0x3c4952,_0x500e29){return _0x3c4952(_0x500e29);},'fkHzT':'Failed\x20to\x20'+_0x46c14f(_0x2cc23e._0x4aabab,_0x2cc23e._0x37aa0f,0x533,0x52e)+_0x46c14f(0x576,_0x2cc23e._0x4a7db3,0x580,0x57c)};function _0x28b764(_0x429769,_0x461972,_0x3ec806,_0x3b6f85){return _0x598237(_0x429769-_0x33272d._0x38d514,_0x3b6f85,_0x461972- -0x85,_0x3b6f85-0x58);}try{if(_0x5d1faf['RjSFP']===_0x5d1faf['RVOqx']){const _0x168d3a={};return _0x168d3a[_0x46c14f(0x581,0x515,_0x2cc23e._0x4b4b6f,_0x2cc23e._0x1bdccf)]=_0x28b764(_0x2cc23e._0x52eab6,0x407,0x44c,_0x2cc23e._0x1ebc84)+_0x46c14f(_0x2cc23e._0xf87808,_0x2cc23e._0x24945d,_0x2cc23e._0x1925e5,0x555)+'least\x208\x20ch'+_0x28b764(_0x2cc23e._0x5ccc50,_0x2cc23e._0x3d9b79,0x397,_0x2cc23e._0x387db6),_0x42df97[_0x46c14f(0x593,0x5be,_0x2cc23e._0xa5f472,0x569)](0x25e1+-0x123*-0x10+-0x3681)[_0x28b764(0x438,0x416,0x412,_0x2cc23e._0x1e35ac)](_0x168d3a);}else{const {userId:_0x53d911}=_0x3cbce8['params'],_0xf78e51=await _0x5d1faf[_0x28b764(_0x2cc23e._0x1f429d,_0x2cc23e._0x30ba18,_0x2cc23e._0x399bac,0x3b9)](findUserById,_0x53d911);if(!_0xf78e51){const _0x5da242={};return _0x5da242['error']=_0x5d1faf[_0x28b764(_0x2cc23e._0x52d7d4,_0x2cc23e._0x50c2ba,_0x2cc23e._0x313dc8,_0x2cc23e._0x1379d4)],_0x506834['status'](-0x574*-0x4+0x2*-0xc07+0x3d2)[_0x46c14f(_0x2cc23e._0x2a25ce,0x5dc,_0x2cc23e._0x30ac89,_0x2cc23e._0x5a8988)](_0x5da242);}const _0x275eeb=await _0x5d1faf[_0x28b764(_0x2cc23e._0x4cdfbe,_0x2cc23e._0x2b8f18,_0x2cc23e._0x365a3d,0x3cb)](getUserTokens,_0x53d911),_0x48b072={};_0x48b072[_0x46c14f(_0x2cc23e._0xfe0f6f,0x529,0x560,0x59b)]=_0x275eeb,_0x506834['json'](_0x48b072);}}catch(_0x44ed7a){logger[_0x28b764(_0x2cc23e._0x9931c1,0x3a8,_0x2cc23e._0x144e24,_0x2cc23e._0x492cff)](_0x5d1faf['fkHzT'],_0x44ed7a);const _0x2123fb={};_0x2123fb[_0x28b764(0x3e3,0x3a8,_0x2cc23e._0x1dce19,_0x2cc23e._0x4d12f3)]=_0x5d1faf[_0x28b764(0x3a8,0x396,0x362,_0x2cc23e._0xa9593a)],_0x506834[_0x28b764(_0x2cc23e._0x1cbbac,_0x2cc23e._0x1e64e1,_0x2cc23e._0x4724d9,_0x2cc23e._0x5a8563)](-0x1*0x268f+0xdbf*0x1+0x1ac4)[_0x46c14f(_0x2cc23e._0x4f7ee5,0x60f,_0x2cc23e._0x24498d,0x5a7)](_0x2123fb);}});function _0x9b392e(_0x56e9a6,_0x53ad1f,_0x935b53,_0x599531){return _0x16f2(_0x56e9a6-0xf1,_0x599531);}router['delete'](_0x9b392e(0x34f,0x338,0x38e,0x308)+'okenId',requireAuth,requireAdmin,async(_0x342813,_0x864899)=>{const _0x508a03={_0xbda0f5:0x67,_0x40a224:0x2c,_0x3361bb:0xb,_0x19b279:0x0,_0x306d21:0x43,_0x16d7f8:0x4,_0x386bde:0x53,_0x668143:0x83,_0x3dac9d:0x30,_0x5b7ee2:0x4d,_0xb6e5aa:0x6c,_0x2f3639:0x65,_0x24c70a:0xab,_0x1b6cb9:0x88,_0x223ef2:0x71,_0x5260e9:0x60,_0x19fa08:0x8a,_0x13513e:0x3,_0x5b671f:0x44,_0x59704b:0x15,_0x551744:0xba,_0x21e749:0x20,_0x4dbfd0:0x74,_0x4f9198:0x38,_0xc87284:0x33,_0x151b26:0x28,_0x344aa6:0x2,_0x24678d:0x17,_0x411cd0:0xae,_0xfc1376:0x7b,_0x930811:0x4a,_0x1f0c70:0x7,_0x48aa25:0x34,_0x467a8f:0x3b,_0x3c68b5:0x1a,_0x470795:0x26,_0xb08213:0xd,_0x3d8913:0x96,_0x40bfed:0xee,_0x1908dc:0x93,_0x451901:0x2e,_0x5066a7:0x9,_0x43e503:0x3,_0x5aea44:0x6,_0x6c4cdd:0x72,_0xe947a7:0x5e,_0x54cd05:0x34,_0x3d08e4:0x5c,_0x488c6d:0xac,_0x2cb939:0x9f,_0x194a5a:0xaf};function _0xb0be8f(_0x25852a,_0x9546ad,_0x56cefe,_0x37abc9){return _0x598237(_0x25852a-0xa6,_0x25852a,_0x9546ad- -0x42a,_0x37abc9-0x1ce);}function _0x3bcc24(_0x4db86a,_0x5d58ef,_0x48e7d6,_0x57dde4){return _0x598237(_0x4db86a-0x3c,_0x5d58ef,_0x57dde4- -0x3ec,_0x57dde4-0x128);}const _0x43ee2d={'TUHeG':'User\x20ID\x20is'+_0x3bcc24(0xbe,0x24,0xbd,_0x508a03._0xbda0f5),'OponX':function(_0xb30791,_0x468748){return _0xb30791(_0x468748);},'aSOos':function(_0xa26574,_0x49af9b){return _0xa26574!==_0x49af9b;},'PPDAD':'guFtz','VQUyM':_0xb0be8f(_0x508a03._0x40a224,_0x508a03._0x3361bb,0x23,-0x1e)+_0xb0be8f(-0xf,0x2f,0x1,0x23),'UyMdA':'Token\x20revo'+_0x3bcc24(_0x508a03._0x19b279,-_0x508a03._0x306d21,0x37,_0x508a03._0x16d7f8)+_0xb0be8f(_0x508a03._0x386bde,0x40,0x2a,_0x508a03._0x668143),'FOyPV':_0x3bcc24(0x59,_0x508a03._0x3dac9d,-0x2,_0x508a03._0x5b7ee2)+_0xb0be8f(0x8f,_0x508a03._0xb6e5aa,_0x508a03._0x2f3639,0x55)+'en'};try{const {tokenId:_0x2a98ff}=_0x342813['params'],_0x549682=await _0x43ee2d[_0xb0be8f(-0x33,0x10,0x3,-0x17)](revokeToken,_0x2a98ff);if(!_0x549682){if(_0x43ee2d['aSOos'](_0x43ee2d['PPDAD'],_0x43ee2d[_0x3bcc24(0x91,_0x508a03._0x24c70a,0x9f,0xa3)])){const _0x471ba4={};return _0x471ba4['error']=_0x43ee2d['TUHeG'],_0x9b826b[_0x3bcc24(_0x508a03._0xbda0f5,0x48,0x37,_0x508a03._0x1b6cb9)](0xaaa+-0x7e9+0x3d*-0x5)[_0xb0be8f(0xbe,_0x508a03._0x223ef2,_0x508a03._0x5260e9,_0x508a03._0x19fa08)](_0x471ba4);}else{const _0x5a3dac={};return _0x5a3dac[_0xb0be8f(-0x4b,_0x508a03._0x13513e,-_0x508a03._0x5b671f,-0x31)]=_0x43ee2d[_0xb0be8f(0x54,0x4,-0x8,-_0x508a03._0x59704b)],_0x864899[_0x3bcc24(0xb6,_0x508a03._0x551744,0xd8,0x88)](0x1127+-0x2413+-0x1*-0x1480)[_0xb0be8f(_0x508a03._0x21e749,_0x508a03._0x223ef2,0x1a,0x57)](_0x5a3dac);}}const _0x22d1a3={};_0x22d1a3[_0x3bcc24(_0x508a03._0x4dbfd0,_0x508a03._0x4f9198,_0x508a03._0xc87284,0x29)]=_0x342813[_0xb0be8f(_0x508a03._0x151b26,-0x1f,-_0x508a03._0x344aa6,_0x508a03._0x24678d)]['id'],_0x22d1a3[_0xb0be8f(0x3d,0x59,_0x508a03._0x411cd0,0x15)+_0x3bcc24(0x4b,_0x508a03._0xfc1376,0x1d,_0x508a03._0x930811)]=_0x342813['user']['username'],_0x22d1a3['tokenId']=_0x2a98ff,logger['info'](_0xb0be8f(-0xe,-_0x508a03._0x1f0c70,0x28,-_0x508a03._0x48aa25)+_0xb0be8f(-_0x508a03._0x467a8f,-0x31,-0x12,_0x508a03._0x3c68b5),_0x22d1a3);const _0x20fc87={};_0x20fc87[_0xb0be8f(-0x16,-0x2e,-_0x508a03._0x470795,-_0x508a03._0xb08213)]=_0x43ee2d[_0xb0be8f(_0x508a03._0x3d8913,0x73,0xa5,0x8d)],_0x864899[_0x3bcc24(_0x508a03._0x40bfed,0xaa,0x8d,0xaf)](_0x20fc87);}catch(_0x5c319a){logger[_0x3bcc24(_0x508a03._0x1908dc,_0x508a03._0x451901,0x46,0x41)](_0x43ee2d['FOyPV'],_0x5c319a);const _0x4ff436={};_0x4ff436[_0xb0be8f(-_0x508a03._0x5066a7,_0x508a03._0x43e503,0x41,_0x508a03._0x5aea44)]=_0x43ee2d[_0xb0be8f(_0x508a03._0x6c4cdd,_0x508a03._0xe947a7,_0x508a03._0x54cd05,_0x508a03._0x3d08e4)],_0x864899[_0x3bcc24(0x59,_0x508a03._0x488c6d,0xcb,0x88)](0x10cb+0x1637+-0xba*0x33)[_0xb0be8f(_0x508a03._0x2cb939,0x71,_0x508a03._0x194a5a,0x5c)](_0x4ff436);}});export default router;function _0x5956(){const _0x43f66f=['DgfYz2v0vxnLCG','yM9KEq','CxvLCNK','ywrTAw5jza','zw1HAwXfCNjVCG','uLn3yNK','BKfIs1G','C2vUzcbWyxnZDW','wM1bzgO','zMTiELq','uxbAv2G','sgPTvLy','C2v0Dxa','l3nLDhvW','zxHWAxjLC19HDa','CgfZC3DVCMqGyq','wwPrAue','vg9Rzw4GCMv2BW','CgfZC3DVCMqTCW','Dg9Rzw5uExbL','t1fJvLm','C3r1EvO','BMqGzw1HAwXZlG','BhbdAvO','we9HCuu','yMuGiNnLDhvWiG','qNrhvLe','zxjYB3i','vLfvEu0','mZq2nZvtDfrOsgu','C1P5Dxq','A0fduuu','Dg9Rzw4','zxnLDa','C2vUzcbLBwfPBa','vg9Rzw4GBM90ia','yw1L','swzmzee','vxnLCIbjrcbPCW','rMfPBgvKihrVia','t3bVBLG','zgf0yq','B3jKigvTywLS','Dg9Rzw5Z','nJa2wxzUAwzX','nvHnwufRBq','Ewvmqw0','DxnLCKLK','C2v0DxbvCMW','AwWGC2vUDcb0BW','Aw5MBW','BK5jBMK','Aw5JBhvKzxm','zw1HAwXtzw50','DMfSAwq','vxnLCIbUB3qGzG','ugfZC3DVCMqGDa','zwqUifbSzwfZzq','Dxn0igjLigf0ia','sfrNAMO','l2nYzwf0zs10BW','mtyWndyZmhfutNP1ta','tuf3zvq','DhrcAuW','whr2BxK','ihjLCxvPCMvK','DMfSAwrHDguGDa','uungzfu','A21JCLG','z2rADwi','DhvZ','zM91BMq','tujXEMG','l2vTywLSlwnVBG','y29UzMLNDxjLza','B2TLBNm','yMXLCYb0BYbZzq','zNvSBhK','C2fmvfG','z2HNAMS','zxr1Ca','u01uucbPCYbUBW','vvr5Deq','zw1HAwW','C2vUzevTywLS','zxr1CcbLBwfPBa','B3vUza','BMfTzq','C2z1BgX5','BwzODg8','B2TLBIbJCMvHDa','qK90s0m','yvfZEMq','C2vYswq','mJaYnJq2twLYExjJ','sKP2twu','teL1swi','D09Sr3q','C3rHDhvZ','q3boEwS','qNLpDuq','sg9Kwhu','tuTRs1C','z2v0igvTywLSia','CMuGCMvXDwLYzq','ig9YicjYzxnLDa','mteZmZq1muz3twPbzW','BMSGBwfUDwfSBa','yNbLt0K','tvnAqu0','tfLwD0G','zMLN','wffhtLa','ywrTAw5vC2vYBG','C3DVCMqUAhrTBa','DhLWzq','DcbJB25MAwD1CG','BMrXB3e','rK95ufy','y29UzMLNihn0yq','C2v0ihbHC3n3BW','l3rVA2vUCY86Da','ugfZC3DVCMqGBq','zwqGyw5KigvTyq','B2TLBG','ufbequq','CurVyMq','B3b5ihrOzsbSAq','sw52ywXPzcbVCG','CMvZzxq','C3DVCMqGDg9Rzq','mtm3oteYtxvlD3H2','CMv2B2TLihrVAW','zxf1AxjLza','l3nLDhvWlxbHCW','nYbKyxLZ','CgfZC3DVCMqTCG','ANnVBG','DxnLCK5HBwu','vxLnzee','Aerfz3y','DxnLCM5HBwu','tuvAAhC','uNfRzNC','A2vKihn1y2nLCW','AKnsDxC','C3vIAMvJDa','mJiWnZe1mMvjreLJwa','BMnPDfi','mtu3ndKWmxLwzgDMAW','CKDOEuC','BwvUDcb2yxjPyq','AKXutfK','A2vK','lIbqBgvHC2uGyW','Bg54Auy','BwvZC2fNzq','y29UzMLNDxjHDa','z2v0','wNrQEvG','igv4CgLYzwqGDa','Aw9Uihn0yxr1CW','ugfZC3DVCMqGCW','mJm4ruz3tM1z','y3jLyxrLihbHCW','rw1HAwWGBM90ia','vg9Rzw4Gyw5Kia','vg9Rzw4GAxmGCG','yxjHy3rLCNm','zwqGC3vJy2vZCW','CeHLBgy','DxnLCG','tuvMvxm','zxqGDMLHihrVAW','sKfgr3i','v2DTwfO','z2v0ihvZzxiGDa','l3rVA2vUCY86Dq'];_0x5956=function(){return _0x43f66f;};return _0x5956();}