@profoundlogic/coderflow-server 0.6.6 → 0.6.7

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 (178) hide show
  1. package/dist/base-image/agent-wrapper.sh +1 -1
  2. package/dist/base-image/sync-repos.sh +7 -1
  3. package/dist/coder-server.js +1 -1
  4. package/dist/config/cli-models.json +0 -12
  5. package/dist/config.js +1 -1
  6. package/dist/lib/agent-keepalive.js +1 -1
  7. package/dist/lib/agent-models.js +1 -1
  8. package/dist/lib/api-keys.js +1 -1
  9. package/dist/lib/apiKeys.js +1 -1
  10. package/dist/lib/app-server-ports.js +1 -1
  11. package/dist/lib/auto-judge.js +1 -1
  12. package/dist/lib/automation-service.js +1 -1
  13. package/dist/lib/basic-auth.js +1 -1
  14. package/dist/lib/bindings.js +1 -1
  15. package/dist/lib/build-history.js +1 -1
  16. package/dist/lib/build-output-service.js +1 -1
  17. package/dist/lib/build-scheduler.js +1 -1
  18. package/dist/lib/build-service.js +1 -1
  19. package/dist/lib/ca-certificates.js +1 -1
  20. package/dist/lib/claude-oauth-refresh.js +1 -1
  21. package/dist/lib/cli/build.js +1 -1
  22. package/dist/lib/cli/cleanup-users.js +1 -1
  23. package/dist/lib/cli/config-command.js +1 -1
  24. package/dist/lib/cli/config.js +1 -1
  25. package/dist/lib/cli/create-user.js +1 -1
  26. package/dist/lib/cli/grant-admin.js +1 -1
  27. package/dist/lib/cli/init.js +1 -1
  28. package/dist/lib/cli/jira.js +1 -1
  29. package/dist/lib/cli/license.js +1 -1
  30. package/dist/lib/cli/list-roles.js +1 -1
  31. package/dist/lib/cli/list-users.js +1 -1
  32. package/dist/lib/cli/server-manager.js +1 -1
  33. package/dist/lib/cli/set-password.js +1 -1
  34. package/dist/lib/config-migration.js +1 -1
  35. package/dist/lib/container-credential-sync.js +1 -1
  36. package/dist/lib/container-tokens.js +1 -1
  37. package/dist/lib/data-dir.js +1 -1
  38. package/dist/lib/deployment-history.js +1 -1
  39. package/dist/lib/deployment-service.js +1 -1
  40. package/dist/lib/docker-utils.js +1 -1
  41. package/dist/lib/email.js +1 -1
  42. package/dist/lib/emailTemplates.js +1 -1
  43. package/dist/lib/entitlement.js +1 -1
  44. package/dist/lib/external-connections.js +1 -1
  45. package/dist/lib/fetch-utils.js +1 -1
  46. package/dist/lib/git-commit-details-route.js +1 -1
  47. package/dist/lib/git-history-diff-guardrails.js +1 -1
  48. package/dist/lib/git-provider-service.js +1 -1
  49. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  50. package/dist/lib/git-provider-setup/index.js +1 -1
  51. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  52. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  53. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  54. package/dist/lib/git-providers/github-app-provider.js +1 -1
  55. package/dist/lib/git-providers/index.js +1 -1
  56. package/dist/lib/git-providers/provider-factory.js +1 -1
  57. package/dist/lib/git-providers/provider-interface.js +1 -1
  58. package/dist/lib/github-urls.js +1 -1
  59. package/dist/lib/group-objective-linking.js +1 -1
  60. package/dist/lib/ibmi-sync.js +1 -1
  61. package/dist/lib/jira-client.js +1 -1
  62. package/dist/lib/judge-blinding.js +1 -1
  63. package/dist/lib/logger.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/setup-repo-git-auth.js +1 -1
  84. package/dist/lib/state-capture.js +1 -1
  85. package/dist/lib/static-files.js +1 -1
  86. package/dist/lib/task-aliases.js +1 -0
  87. package/dist/lib/task-name-format.js +1 -1
  88. package/dist/lib/task-name-generator.js +1 -1
  89. package/dist/lib/task-source-metadata.js +1 -1
  90. package/dist/lib/teams.js +1 -1
  91. package/dist/lib/user-git-oauth.js +1 -1
  92. package/dist/lib/user-git-tokens.js +1 -1
  93. package/dist/lib/users.js +1 -1
  94. package/dist/middleware/requireAuth.js +1 -1
  95. package/dist/middleware/requireInit.js +1 -1
  96. package/dist/middleware/requirePermission.js +1 -1
  97. package/dist/package.json +1 -1
  98. package/dist/playwright.config.js +1 -1
  99. package/dist/playwright.task-terminal.config.js +1 -1
  100. package/dist/routes/apiKeys.js +1 -1
  101. package/dist/routes/auth-oidc.js +1 -1
  102. package/dist/routes/auth.js +1 -1
  103. package/dist/routes/automations.js +1 -1
  104. package/dist/routes/bindings.js +1 -1
  105. package/dist/routes/build.js +1 -1
  106. package/dist/routes/containers.js +1 -1
  107. package/dist/routes/deploy-task.js +1 -1
  108. package/dist/routes/environment-management.js +1 -1
  109. package/dist/routes/environments.js +1 -1
  110. package/dist/routes/external-skills.js +1 -1
  111. package/dist/routes/git-credentials.js +1 -1
  112. package/dist/routes/git-oauth.js +1 -1
  113. package/dist/routes/git-provider-setup.js +1 -1
  114. package/dist/routes/health.js +1 -1
  115. package/dist/routes/jira.js +1 -1
  116. package/dist/routes/objective-management.js +1 -1
  117. package/dist/routes/password.js +1 -1
  118. package/dist/routes/prompt.js +1 -1
  119. package/dist/routes/provider-auth.js +1 -1
  120. package/dist/routes/qa.js +1 -1
  121. package/dist/routes/roles.js +1 -1
  122. package/dist/routes/settings.js +1 -1
  123. package/dist/routes/skill-management.js +1 -1
  124. package/dist/routes/skills.js +1 -1
  125. package/dist/routes/tasks.js +1 -1
  126. package/dist/routes/teams.js +1 -1
  127. package/dist/routes/templates.js +1 -1
  128. package/dist/routes/test-task.js +1 -1
  129. package/dist/routes/test.js +1 -1
  130. package/dist/routes/users.js +1 -1
  131. package/dist/routes/visualizations.js +1 -1
  132. package/dist/scripts/create-user.js +1 -1
  133. package/dist/scripts/migrate-config-to-data-dir.js +1 -1
  134. package/dist/start.js +1 -1
  135. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  136. package/dist/web-ui/public/activity-feed.js +1 -1
  137. package/dist/web-ui/public/activity-formatters.js +1 -1
  138. package/dist/web-ui/public/agent-event-parser.js +1 -1
  139. package/dist/web-ui/public/app.js +1 -1
  140. package/dist/web-ui/public/approve-dialog.js +1 -1
  141. package/dist/web-ui/public/automation-links.js +1 -1
  142. package/dist/web-ui/public/automation-schedule.js +1 -1
  143. package/dist/web-ui/public/comments-widget.js +1 -1
  144. package/dist/web-ui/public/diff-utils.js +1 -1
  145. package/dist/web-ui/public/environments.js +1 -1
  146. package/dist/web-ui/public/feedback-widget.css +39 -0
  147. package/dist/web-ui/public/feedback-widget.js +1 -1
  148. package/dist/web-ui/public/file-selection-tree.js +1 -1
  149. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  150. package/dist/web-ui/public/git-history.js +1 -1
  151. package/dist/web-ui/public/git-status.js +1 -1
  152. package/dist/web-ui/public/ibmi-file-filter.js +1 -1
  153. package/dist/web-ui/public/index.js +1 -1
  154. package/dist/web-ui/public/login.js +1 -1
  155. package/dist/web-ui/public/markdown-editor.js +1 -1
  156. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  157. package/dist/web-ui/public/modal-maximize.js +1 -1
  158. package/dist/web-ui/public/notifications.js +1 -1
  159. package/dist/web-ui/public/permissions.js +1 -1
  160. package/dist/web-ui/public/pr-dialog.js +1 -1
  161. package/dist/web-ui/public/roles.js +1 -1
  162. package/dist/web-ui/public/server-health.js +1 -1
  163. package/dist/web-ui/public/settings.html +0 -4
  164. package/dist/web-ui/public/settings.js +1 -1
  165. package/dist/web-ui/public/setup-password.js +1 -1
  166. package/dist/web-ui/public/skills.js +1 -1
  167. package/dist/web-ui/public/sse-client.js +1 -1
  168. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  169. package/dist/web-ui/public/styles.css +34 -0
  170. package/dist/web-ui/public/task-judging-helpers.js +1 -0
  171. package/dist/web-ui/public/task.html +1 -0
  172. package/dist/web-ui/public/task.js +1 -1
  173. package/dist/web-ui/public/teams.js +1 -1
  174. package/dist/web-ui/public/terminal.js +1 -1
  175. package/dist/web-ui/public/theme.js +1 -1
  176. package/dist/web-ui/public/users.js +1 -1
  177. package/dist/web-ui/public/variant-grouping.js +1 -1
  178. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x24f6(_0x1f08e7,_0x4b13e5){_0x1f08e7=_0x1f08e7-(-0x2*-0xcdb+-0xf*-0x27a+-0x3e20);const _0x29f111=_0x3275();let _0x498df3=_0x29f111[_0x1f08e7];if(_0x24f6['FMsBaU']===undefined){var _0x43a14f=function(_0x1d44bd){const _0x3d6dc3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xcf0370='',_0x1efb58='';for(let _0x1fa652=0x1*-0x579+0x4b8*0x8+-0x2047,_0x33bf3f,_0xd8003c,_0x2822f8=0x11df+0xec2+-0x20a1;_0xd8003c=_0x1d44bd['charAt'](_0x2822f8++);~_0xd8003c&&(_0x33bf3f=_0x1fa652%(0x25d9+0x10bb*-0x2+-0x45f)?_0x33bf3f*(-0x15aa+0x1*-0x12d4+-0x1*-0x28be)+_0xd8003c:_0xd8003c,_0x1fa652++%(0x1ae0+0x137d+0x3*-0xf73))?_0xcf0370+=String['fromCharCode'](0x44b+-0x1*-0xa01+-0xd4d&_0x33bf3f>>(-(-0x111a+-0x825+0x1941)*_0x1fa652&-0x5e8*-0x3+0x223*-0x10+-0x107e*-0x1)):-0x49b*0x1+-0x1bd6*0x1+0x2071){_0xd8003c=_0x3d6dc3['indexOf'](_0xd8003c);}for(let _0x356dce=0x89f+-0x14cf+0xc30,_0x4bcc93=_0xcf0370['length'];_0x356dce<_0x4bcc93;_0x356dce++){_0x1efb58+='%'+('00'+_0xcf0370['charCodeAt'](_0x356dce)['toString'](-0x1*0x198c+0xaa+0x18f2))['slice'](-(-0x1377+-0x49b*0x2+0x1caf));}return decodeURIComponent(_0x1efb58);};_0x24f6['VdFSGN']=_0x43a14f,_0x24f6['WBaHVZ']={},_0x24f6['FMsBaU']=!![];}const _0x597e62=_0x29f111[-0x18e8+-0x2*-0x9b2+-0x161*-0x4],_0x64bcb4=_0x1f08e7+_0x597e62,_0x1bb602=_0x24f6['WBaHVZ'][_0x64bcb4];return!_0x1bb602?(_0x498df3=_0x24f6['VdFSGN'](_0x498df3),_0x24f6['WBaHVZ'][_0x64bcb4]=_0x498df3):_0x498df3=_0x1bb602,_0x498df3;}(function(_0x10e0de,_0x5a4ea5){const _0x17a8d1={_0x1c6360:0x21f,_0xf6b748:0x1e7,_0x31cfe1:0x26a,_0x4bcfe3:0x1ed,_0x49130d:0x23a,_0x177578:0x293,_0x6faaef:0x2c7,_0x861d03:0x233,_0x2d351f:0x306,_0x5b3405:0x31d,_0x10675c:0x2e5,_0x4bc8a9:0x268,_0x1e2d0e:0x26d,_0x4598df:0x2b8,_0x130016:0x27c,_0x1053de:0x233,_0x94308e:0x2bc,_0x45096e:0x300,_0x25f360:0x2fd},_0x3d9451={_0x48cce8:0xda};function _0x28cf80(_0x59b302,_0x3d7b64,_0x43565b,_0xaf5f2e){return _0x24f6(_0x59b302- -0x3b4,_0x43565b);}function _0x2e8454(_0x14d316,_0x3a53d3,_0x553e68,_0x566904){return _0x24f6(_0x566904-_0x3d9451._0x48cce8,_0x553e68);}const _0x4d8e42=_0x10e0de();while(!![]){try{const _0x7fac0f=parseInt(_0x2e8454(_0x17a8d1._0x1c6360,_0x17a8d1._0xf6b748,0x21d,0x218))/(-0x173*0xc+0x5*0x78a+0x144d*-0x1)+parseInt(_0x28cf80(-_0x17a8d1._0x31cfe1,-0x22d,-0x2b1,-0x29e))/(-0xbda+0x10f2+-0x516)+-parseInt(_0x2e8454(0x202,0x279,_0x17a8d1._0x4bcfe3,_0x17a8d1._0x49130d))/(-0x1*-0xd22+-0xd8*0x2+-0xb6f*0x1)+-parseInt(_0x28cf80(-0x27f,-_0x17a8d1._0x177578,-0x2c7,-_0x17a8d1._0x6faaef))/(-0x41f*0x4+0x23db+-0x135b)+-parseInt(_0x2e8454(_0x17a8d1._0x861d03,0x1fa,0x22a,0x244))/(-0x130*0x10+-0x25ae*0x1+-0x38b3*-0x1)*(parseInt(_0x28cf80(-0x2e3,-_0x17a8d1._0x2d351f,-_0x17a8d1._0x5b3405,-_0x17a8d1._0x10675c))/(-0x2579+-0x1*0x1b97+0x15b2*0x3))+-parseInt(_0x28cf80(-0x24c,-0x21e,-0x295,-0x2a0))/(-0x8d1+0x20*0xbf+-0x94*0x1a)*(parseInt(_0x28cf80(-_0x17a8d1._0x4bc8a9,-_0x17a8d1._0x1e2d0e,-0x230,-_0x17a8d1._0x4598df))/(-0x2091+-0x14a9+0x3542))+parseInt(_0x2e8454(0x28d,0x263,_0x17a8d1._0x130016,_0x17a8d1._0x1053de))/(-0x3*-0x902+0x797*-0x1+-0x17e*0xd)*(parseInt(_0x28cf80(-_0x17a8d1._0x94308e,-0x2b8,-_0x17a8d1._0x45096e,-_0x17a8d1._0x25f360))/(-0x1977+-0x1*0x3b9+-0xe9d*-0x2));if(_0x7fac0f===_0x5a4ea5)break;else _0x4d8e42['push'](_0x4d8e42['shift']());}catch(_0x4a3be3){_0x4d8e42['push'](_0x4d8e42['shift']());}}}(_0x3275,0x43*0x1a5d+-0x30*0x6c2+0x3*-0x5867));import _0x36eace 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';function _0x3275(){const _0x24ddbd=['sw52ywXPzcbVCG','z2P4AwG','v0H5se8','ugfZC3DVCMqGCW','zM91BMq','DgfYz2v0vxnLCG','zwqGyw5KigvTyq','CgfZC3DVCMqTCW','z2v0igvTywLSia','C3vIAMvJDa','y3jLyxrLihbHCW','DMfSAwq','zgf0yq','vg9Rzw4GCMv2BW','EuD0svK','mJbICer4rg8','vxnLCIbjrcbPCW','rvzRt1K','wwT2qwy','CwHcrgy','Dxn0igjLigf0ia','yMXLCYb0BYbZzq','ihnLDcb1Ccbttq','l3nLDhvWlxbHCW','zxnLDa','yKXTuha','v1HMtLO','DxnLCM5HBwu','zxr1CcbLBwfPBa','BwvUDcb2yxjPyq','ugfZC3DVCMqGDa','EMffChq','vvvXveK','C2vUzcbWyxnZDW','v014Cwq','DhLWzq','zxqGDMLHihrVAW','zwqUifbSzwfZzq','z2v0ihvZzxiGDa','CMuGCMvXDwLYzq','Dg9Rzw5jza','A2vK','Ahb4C3e','vg9Rzw4GBM90ia','l3zHBgLKyxrLlq','Cg9ZDa','AfbHzgK','p3rVA2vUpq','t3PHvLe','B2TLBIbJCMvHDa','yM9KEq','qNnPzMW','l2vTywLSlwnVBG','AhDMtwC','A2vU','EhrWCwO','BgvUz3rO','z3rnBem','lIbqBgvHC2uGyW','l3rVA2vUCY86Dq','zvnHBKC','DhD0Cem','tK1lwLy','vg9Rzw4GAxmGCG','vfaGzw52AxjVBG','ywrTAw5jza','nYbKyxLZ','wwrpCwW','qvPksui','C2vUzevTywLS','A21prNu','Aw5MBW','C2v0Dxa','u01uucbPCYbUBW','Bxn1yuS','ChHcD2G','mZy1oda0qxLjALHL','igv4CgLYzwqGDa','ANnVBG','zxHWAxjLC0LU','DxnLCK5HBwu','ihjLCxvPCMvK','BuP0uwy','tLnUDhe','DKrqEKO','mtC3odK0vxzfDuvJ','yMuGiNnLDhvWiG','DxnLCKLK','DgvTCgXHDgu','rMfPBgvKihrVia','Aw9Uihn0yxr1CW','tvH0wfu','CMvZzxq','ywrTAw5vC2vYBG','zwqGC3vJy2vZCW','B2TLBNm','B3b5ihrOzsbSAq','mJa3ntu2s0XqwuXn','Dg9Rzw4','ohHZCgfIyG','zxf1AxjLza','BwvZC2fNzq','C2z1BgX5','zxqGC3vJy2vZCW','BMSGBwfUDwfSBa','sMPMDLe','uM91DgvY','yw1L','AuDiBuu','ig9YicjYzxnLDa','B2TLBG','zw1HAwXtzw50','nJK0mZe0ouTTEvfODG','t3nfwuG','vxnLCIbUB3qGzG','C2v0DxbvCMW','Dg9Rzw5Z','z3reyxO','Cwf1CLG','odCZmdC4DxPSBxPk','CxvLCNK','zw1HAwW','r1vsB2C','r1vnEKy','C2vUzcbLBwfPBa','AursDwq','wKzWv1y','nde5ota1nwLcufDtBa','AezqqNm','mtC1nJvlz0nOu1m','rg9rveq','BunSq00','vhLWzsbTDxn0ia','vg9Rzw4Gyw5Kia','ihnLBNq','tun3ugm','z2v0','yM9dqLC','DfDHu3O','quzQs1C','r21tsey','AwWGC2vUDcb0BW','D0nxrNO','B3jKigvTywLS','D0HSsw0','CMv2B2TLihrVAW','B2TLBKLK','rw1HAwWGBM90ia','Eg9Nt0i','DhvZ','BMfTzq','rNLQB2O','zw1HAwXfCNjVCG','zMLhz2e','l3rVA2vUCY86Da','B3vUza','oti0qu9hy0Pw','zNvSBhK','De1QvfG','l2nYzwf0zs10BW','EwXNtLe','v3Plvg8','CK5vruu','zMLN','CgfZC3DVCMqTCG','z2Lrv0e','tefzuuC','C2v0ihbHC3n3BW','zxjYB3i','DMfSAwrHDguGDa','uxjoAfa','vKTvAK0','C3DVCMqUAhrTBa','wwrisLa','zxHWAxjLC19HDa','C3rHDhvZ','CxLKELm','DxnLCG','yxjHy3rLCNm','y29UzMLNDxjHDa'];_0x3275=function(){return _0x24ddbd;};return _0x3275();}import{isEmailConfigured,sendTemplatedEmail,getEmailConfigStatus}from'../lib/email.js';import{renderTemplate}from'../lib/emailTemplates.js';function _0x2ce8db(_0x4b67a4,_0x40eccc,_0xc397d6,_0x47042f){const _0x270244={_0x594e16:0x16};return _0x24f6(_0x47042f-_0x270244._0x594e16,_0xc397d6);}const router=_0x36eace[_0x2ce8db(0x134,0x1ba,0x17e,0x169)]();function _0x20f75b(_0x4c0cc5,_0x842dd6,_0x412859,_0xb37e5e){const _0x4a0050={_0x511e5e:0x149};return _0x24f6(_0x842dd6- -_0x4a0050._0x511e5e,_0x4c0cc5);}router[_0x2ce8db(0xcf,0x92,0xff,0xd3)](_0x20f75b(-0x21,-0x2c,-0x80,-0x4b)+_0x2ce8db(0x112,0x10c,0xb1,0xee),requireAuth,requireAdmin,async(_0x2ca84e,_0x3db1a1)=>{const _0x2b7665={_0x1ab130:0x4ee,_0x290da4:0x52e,_0x42ba17:0x528,_0x59610a:0xc6,_0x143b5c:0x130,_0x22e9a2:0x103,_0x4c8555:0x13e,_0x507cd8:0x4a3,_0x5d4de7:0x101,_0x3e50e3:0x8e,_0x5e642f:0xb8,_0x151c30:0x145,_0x459a97:0x13f,_0x52b6d5:0x488,_0x3dcebb:0x4cc,_0x34f55a:0x504,_0x44c85d:0x4df,_0x1cbd82:0x4b3,_0xc51108:0x4f4,_0x301ba6:0x4be,_0x1cc4ce:0x4f2,_0x159be0:0xf9,_0x44bad3:0x107,_0x3181ec:0x106,_0x35e3e9:0xb4,_0x54feac:0xab,_0x58efb8:0xd7,_0x489db0:0xc9,_0x33fbe1:0x169,_0x28ce91:0x13e,_0x34b4d1:0x144,_0x194c2d:0xe2,_0x4a8059:0x157,_0x38393e:0x4fb,_0x4c586c:0x4f9,_0x1c8809:0x545,_0x1bad9c:0x52a,_0x2608ed:0x506,_0x3727c6:0x558,_0x371d41:0x142,_0x92dd2d:0xf9,_0x9f4f53:0x4e9,_0x39e167:0x509,_0x5c16ac:0x116,_0x2532d8:0xaf,_0x3ab93a:0xd9,_0x113ff2:0xdb,_0x1620bf:0x133,_0x213b7c:0xa7,_0x19c87e:0xff,_0x51266c:0x4e9,_0x3839e9:0x51a,_0x2c6d06:0x531},_0x150e2b={_0x4c8b11:0x145,_0x201cda:0x147};function _0x332a36(_0x2f471f,_0x48ba5d,_0x3a3f9a,_0x4ca1b6){return _0x2ce8db(_0x2f471f-0x82,_0x48ba5d-0xa9,_0x48ba5d,_0x2f471f-0x39c);}const _0x329768={'WzKTo':function(_0x57cdcd,_0x1376d8){return _0x57cdcd===_0x1376d8;},'XInpr':_0x332a36(0x4ef,0x4ff,_0x2b7665._0x1ab130,0x4d2),'JjfvQ':'TKjCY','zaEpt':function(_0x516000){return _0x516000();},'QrNhP':_0x332a36(0x4f4,0x4c0,_0x2b7665._0x290da4,_0x2b7665._0x42ba17)+'get\x20email\x20'+'config\x20sta'+_0x2e641a(0x119,0x101,0x11d,_0x2b7665._0x59610a),'yRoHo':_0x2e641a(_0x2b7665._0x143b5c,0x11d,_0x2b7665._0x22e9a2,_0x2b7665._0x4c8555)+_0x332a36(_0x2b7665._0x507cd8,0x4ec,0x4a0,0x4cf)+_0x2e641a(_0x2b7665._0x5d4de7,_0x2b7665._0x3e50e3,_0x2b7665._0x5e642f,0xe4)+_0x2e641a(0x129,_0x2b7665._0x151c30,0x162,_0x2b7665._0x459a97)};function _0x2e641a(_0x4794a5,_0x1fa147,_0x8001b7,_0x4b30b2){return _0x20f75b(_0x4794a5,_0x4b30b2-_0x150e2b._0x4c8b11,_0x8001b7-_0x150e2b._0x201cda,_0x4b30b2-0x1f0);}try{if(_0x329768[_0x332a36(_0x2b7665._0x52b6d5,_0x2b7665._0x3dcebb,0x44f,0x4c1)](_0x329768['XInpr'],_0x329768[_0x332a36(_0x2b7665._0x34f55a,0x4ea,_0x2b7665._0x44c85d,0x533)]))_0xcf2aad[_0x332a36(0x48f,0x48c,_0x2b7665._0x1cbd82,0x4a7)](_0x332a36(_0x2b7665._0xc51108,_0x2b7665._0x301ba6,_0x2b7665._0x1cc4ce,0x500)+_0x2e641a(_0x2b7665._0x159be0,0x116,_0x2b7665._0x44bad3,_0x2b7665._0x3181ec)+_0x2e641a(_0x2b7665._0x35e3e9,_0x2b7665._0x54feac,0xa2,0xc0),_0x455024),_0x5f66b0[_0x2e641a(0x117,_0x2b7665._0x58efb8,0xd2,_0x2b7665._0x489db0)]=_0x2e641a(0x130,0xe8,_0x2b7665._0x33fbe1,_0x2b7665._0x28ce91)+_0x2e641a(0x177,0x184,0x177,0x161)+_0x2e641a(_0x2b7665._0x34b4d1,_0x2b7665._0x194c2d,_0x2b7665._0x4a8059,0x11f)+_0x332a36(_0x2b7665._0x38393e,_0x2b7665._0x4c586c,0x540,_0x2b7665._0x1c8809)+_0x332a36(0x503,_0x2b7665._0x1bad9c,_0x2b7665._0x2608ed,_0x2b7665._0x3727c6)+'y.';else{const _0x387cd7=_0x329768[_0x2e641a(_0x2b7665._0x371d41,0xef,_0x2b7665._0x92dd2d,0x104)](getEmailConfigStatus);_0x3db1a1[_0x332a36(_0x2b7665._0x9f4f53,0x4a9,_0x2b7665._0x39e167,0x509)](_0x387cd7);}}catch(_0x48e489){logger[_0x2e641a(0x128,_0x2b7665._0x5c16ac,_0x2b7665._0x2532d8,_0x2b7665._0x3ab93a)](_0x329768[_0x2e641a(0xed,0xe0,0xc2,_0x2b7665._0x113ff2)],_0x48e489);const _0x4676ea={};_0x4676ea[_0x2e641a(_0x2b7665._0x1620bf,_0x2b7665._0x213b7c,_0x2b7665._0x19c87e,_0x2b7665._0x3ab93a)]=_0x329768['yRoHo'],_0x3db1a1['status'](-0x53a+0x14a5+-0xd77)[_0x332a36(_0x2b7665._0x51266c,0x51d,_0x2b7665._0x3839e9,_0x2b7665._0x2c6d06)](_0x4676ea);}}),router[_0x20f75b(-0x1d,-0x33,-0x7c,0x10)](_0x2ce8db(0xa4,0x99,0xfa,0xea)+_0x2ce8db(0xfe,0x118,0x162,0x135),requireAuth,requireAdmin,async(_0x357afc,_0x399b77)=>{const _0x30c3bc={_0x3b974b:0x2c7,_0x476cb5:0x29f,_0x4acfca:0x2cf,_0x52ff0d:0x152,_0x31612f:0x18a,_0x3a79cf:0x305,_0x1e5bb5:0x25e,_0x566ea2:0x291,_0x1b3ec1:0x269,_0x30f8af:0x2d5,_0x2d1a79:0x262,_0x4c988f:0x29d,_0x239852:0x314,_0x4298d9:0x2db,_0x26d816:0x339,_0x170b6b:0x345,_0x187a0c:0xdb,_0x4d61ef:0x96,_0x120049:0x31d,_0x32e990:0x2fa,_0x44aaba:0x133,_0x4f056e:0x11b,_0x5c10d5:0xd3,_0xce0b94:0xfa,_0x3572fd:0x287,_0x32811f:0x261,_0x5b4b9c:0x25a,_0x314406:0x148,_0x39cd45:0x317,_0x3d0e2e:0x2d2,_0x5deeaf:0xd0,_0x4609ff:0xa4,_0x2c006b:0x166,_0x331e88:0x114,_0x3ccacc:0x2d6,_0x5f0f33:0x30e,_0x5d8822:0x120,_0x38ac6c:0xd7,_0x1238cc:0x146,_0xed4e27:0x316,_0x5d9c10:0x2cd,_0x46a218:0x24b,_0x2724b3:0x103,_0xe43254:0x328,_0x5d84c4:0x278,_0x4f64cf:0x2ec,_0x3a2129:0x25d,_0x22a194:0x118,_0x3b2126:0x16b,_0x162f6f:0xec,_0x5450f7:0x141,_0x5adeee:0xc0,_0x2b9989:0xc2,_0x22c3d3:0xa0,_0x1149f4:0x2f7,_0x8e5352:0x2e0,_0x14c419:0x2b9,_0x177d64:0x2d7,_0x3fc4a2:0x2bd,_0x10b692:0x2b1,_0x1b2605:0x2bf,_0x14524b:0x198,_0x33c88f:0x15f,_0x3b42a3:0x15d,_0x97d501:0x277,_0x54acb1:0x273,_0x14d938:0xf7,_0x19bae6:0x10f,_0x20bcd0:0x26d,_0x54eb99:0x137,_0x40421a:0xdd,_0x167e3b:0xcb,_0x287e45:0x151,_0x10b176:0x32a,_0x448ede:0x303,_0x1bd921:0x14a,_0x24c640:0x149,_0x596d43:0x132,_0x7c5d2:0x233,_0x4701e2:0x25f,_0x487821:0x14a,_0x369ef4:0x15a,_0x1db6e3:0x166,_0x171141:0x29e,_0x3de453:0x2da,_0x5c5fe0:0x10e,_0x5e0163:0xd0,_0x21193f:0xb0,_0x34a811:0x107,_0x47de85:0x1a8,_0x69586f:0x12b,_0x7a0064:0x15d,_0x317e71:0x32f,_0x37d3fe:0x2db,_0x42aca4:0x30d,_0xe3d9d5:0xf8,_0x528ebc:0x281,_0x4845e3:0x288,_0x9be5f4:0xfa,_0x451506:0x144,_0x49e871:0x273,_0x5504e8:0x2af,_0x321270:0x27e,_0x19107a:0x273,_0x560c12:0x148,_0x4fab4c:0x115,_0x4778bb:0x329,_0x5a6387:0xda,_0x98a666:0x12c,_0x4f5703:0x1a1,_0x23b1bb:0x187,_0x2f3472:0x164,_0x12d235:0x12a,_0x45502f:0x136,_0x397714:0x123,_0x1c370b:0x17b,_0x189b17:0x1a4,_0xbd5a2d:0x308,_0x5808b1:0x2d2,_0x5380b7:0x2de,_0x51525c:0x2d4,_0x570b5d:0x32e,_0xd022d5:0x108,_0x6d7c91:0xc6,_0x5dedcc:0x2a4,_0x47075b:0x14d,_0x198c7d:0x116,_0x4e8b24:0x333,_0x442b95:0x2ef,_0x39eaf2:0x309,_0x77d3dc:0x2ed,_0x12bb4e:0x2e7,_0x43969d:0x2e8,_0x1716b5:0x2b0,_0x2811a4:0x240,_0x1082d9:0x287,_0x4f9c90:0x296,_0x1be9bc:0x23d,_0x473339:0x287,_0x344cdd:0x355,_0x3dc2fb:0x327,_0x3c1a28:0x2f1,_0x2c9380:0x2a8,_0x375ee2:0x26b,_0x23c210:0x271,_0x4c8166:0x283,_0x48cc5a:0x2e4,_0xef4012:0x1a9,_0x3742c7:0x138,_0x2226e0:0x2d9,_0x14c60c:0x306,_0x3a1a5f:0x2cb,_0x497251:0x2fb,_0x473f6d:0x301,_0x43ff24:0x27a,_0x1dc8d8:0x2ab,_0x3be65c:0x2a2,_0x3530b1:0xad,_0x29f57b:0x125,_0xd4504e:0x2be,_0x20f2b2:0x2ad,_0x444232:0x276,_0x5c431a:0x119,_0x800c66:0x126,_0x318b4d:0x142,_0xd41a0b:0x165,_0x42fd61:0x159,_0x1a2340:0x122,_0x19fe7b:0x29d,_0x49fc14:0x298,_0x147257:0x259,_0x13f049:0x2a2,_0x4cd975:0x126,_0x523b11:0x27f,_0x2b74b6:0x239,_0x25832a:0x15b,_0x23e867:0xe0,_0x5e0bdd:0xc6,_0x5c3066:0x175,_0xcf4e61:0xd9,_0x3d608d:0x163,_0x18b5c5:0x2cc,_0x3687f2:0x280,_0x1a88ec:0x12d,_0x22351a:0x150,_0x154bea:0x2e3,_0x5c3edd:0x249,_0x182436:0x32b,_0x736206:0x2ca,_0x1f88ca:0x2c7,_0x455c1f:0x10f,_0x2f408b:0x14e,_0x5cf468:0x28f,_0x5cea9e:0x2c1,_0x580a89:0x2c0,_0x53b104:0x2dc,_0x3bf4d9:0x2ff,_0x3c65ae:0x2b0,_0x552c38:0xef,_0x30684b:0x16c,_0x459560:0x32d,_0x41bcb3:0x2f0,_0x1fa40b:0x2df,_0x5bf27a:0x161,_0x5411b8:0xd6,_0x264ea0:0x104,_0x3f6a92:0xcd,_0x1b2099:0x179,_0x53701c:0x145,_0x135923:0x192,_0x14364c:0x1b6,_0x4f8ec2:0x2be,_0x5e2f96:0x2b5,_0xf0c84b:0x306,_0x37d8c3:0x2d7,_0x46a3cf:0x111,_0x43766f:0x2a1,_0x3797ae:0x2f8,_0x50337f:0x2d4,_0x501bf6:0x2e5,_0x48ce92:0x290,_0x3322fc:0x238,_0x3902c1:0x129,_0x2bf3d1:0x15b,_0x1c5be5:0x13d,_0x2127a9:0x322,_0xe80a93:0x313,_0x37c49a:0x137,_0x2d3df7:0x173,_0xb081f4:0x16f,_0x573c8d:0x1ac,_0x44fa87:0x18f,_0x4cb16e:0x31e,_0x49718e:0x156,_0x226dde:0x281,_0x2b10dc:0x102,_0x13758f:0x164,_0x16e34e:0x2a5,_0x18abce:0x267,_0x14089c:0x2bc,_0x2b1d61:0x125,_0x3925b2:0x117,_0x3c0c2b:0x307,_0x420937:0x2a4,_0x1e8d4e:0x244,_0xa558fe:0x117},_0x13610a={_0x313990:0x1c4},_0x16ad2b={_0x4d8936:0x8e,_0x1f37da:0x244};function _0x4eb66e(_0x544060,_0x4f51f5,_0x25495c,_0x3839f3){return _0x2ce8db(_0x544060-0xe2,_0x4f51f5-_0x16ad2b._0x4d8936,_0x3839f3,_0x544060- -_0x16ad2b._0x1f37da);}function _0x48646e(_0x40adff,_0x18606f,_0x21136d,_0x48b105){return _0x2ce8db(_0x40adff-_0x13610a._0x313990,_0x18606f-0x16b,_0x18606f,_0x21136d-0x18e);}const _0x4befa6={'qaurX':_0x48646e(_0x30c3bc._0x3b974b,_0x30c3bc._0x476cb5,0x2e6,_0x30c3bc._0x4acfca)+_0x4eb66e(-_0x30c3bc._0x52ff0d,-0x19b,-_0x30c3bc._0x31612f,-0x115)+'rd','WCrvs':'Failed\x20to\x20'+'get\x20user\x20t'+'okens','wCWFz':_0x48646e(0x2b4,0x300,0x2e6,_0x30c3bc._0x3a79cf)+_0x48646e(_0x30c3bc._0x1e5bb5,_0x30c3bc._0x566ea2,0x297,_0x30c3bc._0x1b3ec1)+'sword\x20toke'+'n','OzaVQ':_0x48646e(0x320,0x2bd,_0x30c3bc._0x30f8af,0x2c5),'cmFDA':_0x48646e(_0x30c3bc._0x2d1a79,0x2f3,_0x30c3bc._0x4c988f,0x29e)+'\x20required','yGtIY':_0x48646e(0x296,_0x30c3bc._0x239852,0x2e9,0x2bf),'pxBwh':'MKVqT','AFjKW':_0x48646e(_0x30c3bc._0x4298d9,_0x30c3bc._0x26d816,0x311,_0x30c3bc._0x170b6b)+_0x4eb66e(-0xef,-_0x30c3bc._0x187a0c,-_0x30c3bc._0x4d61ef,-0xb4)+_0x48646e(0x2e9,_0x30c3bc._0x120049,_0x30c3bc._0x32e990,0x327)+'\x22','GURog':function(_0x41a15,_0x3d13ce){return _0x41a15(_0x3d13ce);},'DoQTD':_0x4eb66e(-_0x30c3bc._0x44aaba,-_0x30c3bc._0x4f056e,-0x147,-0x135),'WXfNZ':_0x4eb66e(-_0x30c3bc._0x5c10d5,-0x106,-_0x30c3bc._0xce0b94,-0x129)+'ound','giQWA':function(_0x24fe14,_0x31c9dc,_0x7f1d77){return _0x24fe14(_0x31c9dc,_0x7f1d77);},'twtpC':_0x48646e(_0x30c3bc._0x3572fd,_0x30c3bc._0x32811f,0x2ab,_0x30c3bc._0x5b4b9c)+_0x4eb66e(-0x114,-_0x30c3bc._0x314406,-0x135,-0xff)+'ed','MXtXU':_0x48646e(_0x30c3bc._0x39cd45,0x321,0x2d1,_0x30c3bc._0x3d0e2e),'xogOB':_0x4eb66e(-_0x30c3bc._0x5deeaf,-0x102,-0x121,-_0x30c3bc._0x4609ff),'okZki':function(_0xe932df){return _0xe932df();},'tMjTX':_0x4eb66e(-_0x30c3bc._0x2c006b,-0x14f,-0x1ab,-_0x30c3bc._0x331e88)+'configured','IJvQL':_0x48646e(0x32e,0x284,_0x30c3bc._0x3ccacc,_0x30c3bc._0x5f0f33)+'t\x20configur'+_0x4eb66e(-_0x30c3bc._0x5d8822,-0x102,-_0x30c3bc._0x38ac6c,-0x14f)+_0x4eb66e(-0x12f,-_0x30c3bc._0x1238cc,-0xec,-0x111)+_0x48646e(0x2db,_0x30c3bc._0xed4e27,_0x30c3bc._0x5d9c10,0x2e3)+_0x4eb66e(-0x128,-0xdb,-0xe3,-0x112)+_0x48646e(_0x30c3bc._0x46a218,0x2cd,0x2a2,0x2ac)+'nd\x20emails.','vHpLX':_0x4eb66e(-_0x30c3bc._0x2724b3,-0x11b,-0xaa,-0xba),'xtpqj':function(_0x2b3ff1,_0x5b0e6a){return _0x2b3ff1(_0x5b0e6a);},'tvWwA':_0x48646e(0x2da,_0x30c3bc._0xe43254,0x2e6,0x299)+_0x48646e(_0x30c3bc._0x5d84c4,_0x30c3bc._0x4f64cf,0x2ae,_0x30c3bc._0x3a2129)+_0x4eb66e(-0x16a,-_0x30c3bc._0x22a194,-0x173,-_0x30c3bc._0x3b2126),'tWaSz':_0x4eb66e(-_0x30c3bc._0x162f6f,-_0x30c3bc._0x5450f7,-0x109,-0xab)+'send\x20email'+_0x4eb66e(-0x10b,-_0x30c3bc._0x162f6f,-_0x30c3bc._0x5adeee,-_0x30c3bc._0x2b9989)+_0x4eb66e(-0xe5,-0xb0,-_0x30c3bc._0x22c3d3,-0x9c)+_0x48646e(0x2bc,0x2b7,0x2f5,_0x30c3bc._0x1149f4)+'y.','cahXS':'lJdOW','hwfMg':_0x48646e(0x2a0,0x328,_0x30c3bc._0x8e5352,_0x30c3bc._0x14c419)};try{const {userId:_0x589236,type:type=_0x4befa6[_0x48646e(0x2b3,_0x30c3bc._0x177d64,_0x30c3bc._0x3fc4a2,_0x30c3bc._0x10b692)],sendEmail:sendEmail=![]}=_0x357afc[_0x48646e(0x297,0x2dc,_0x30c3bc._0x1b2605,0x279)];if(!_0x589236){const _0x124ed7={};return _0x124ed7[_0x4eb66e(-0x151,-_0x30c3bc._0x14524b,-_0x30c3bc._0x33c88f,-_0x30c3bc._0x3b42a3)]=_0x4befa6['cmFDA'],_0x399b77[_0x48646e(_0x30c3bc._0x97d501,0x2d0,0x288,_0x30c3bc._0x54acb1)](0x12d3*-0x2+0x19ae+0x362*0x4)[_0x4eb66e(-_0x30c3bc._0x14d938,-0xc3,-_0x30c3bc._0x19bae6,-0x136)](_0x124ed7);}if(![_0x4befa6[_0x48646e(_0x30c3bc._0x20bcd0,0x311,_0x30c3bc._0x3fc4a2,0x2cf)],_0x4befa6[_0x4eb66e(-_0x30c3bc._0x54eb99,-0x16d,-_0x30c3bc._0x40421a,-_0x30c3bc._0x1238cc)]]['includes'](type)){if(_0x4befa6['pxBwh']!==_0x4befa6[_0x4eb66e(-0xfa,-0x145,-_0x30c3bc._0x167e3b,-_0x30c3bc._0x287e45)]){_0x101715[_0x4eb66e(-_0x30c3bc._0x287e45,-0x16b,-0x174,-0x165)](_0x4befa6['qaurX'],_0x114a07);const _0x28dd0f={};_0x28dd0f[_0x48646e(0x260,0x2b8,0x281,0x251)]=_0x4befa6[_0x48646e(0x30a,_0x30c3bc._0x10b176,_0x30c3bc._0x448ede,0x342)],_0x475a80[_0x4eb66e(-_0x30c3bc._0x1bd921,-0xf7,-_0x30c3bc._0x24c640,-_0x30c3bc._0x596d43)](0x115*-0x11+-0x1*-0x703+0x6*0x239)[_0x4eb66e(-0xf7,-0x121,-0x141,-0xc2)](_0x28dd0f);}else{const _0xd19e5a={};return _0xd19e5a['error']=_0x4befa6[_0x48646e(_0x30c3bc._0x7c5d2,0x23f,0x264,_0x30c3bc._0x4701e2)],_0x399b77[_0x4eb66e(-_0x30c3bc._0x487821,-0x107,-_0x30c3bc._0x369ef4,-_0x30c3bc._0x1db6e3)](-0x1135+-0x1a94+-0x13*-0x263)[_0x48646e(_0x30c3bc._0x171141,0x2ce,_0x30c3bc._0x4298d9,_0x30c3bc._0x3de453)](_0xd19e5a);}}const _0x254df5=await _0x4befa6[_0x4eb66e(-_0x30c3bc._0x167e3b,-_0x30c3bc._0x5c5fe0,-_0x30c3bc._0x5e0163,-0xde)](findUserById,_0x589236);if(!_0x254df5){if('YkvAf'===_0x4befa6[_0x4eb66e(-0xc3,-_0x30c3bc._0x21193f,-_0x30c3bc._0x34a811,-0x8f)]){const _0x3f2d5b={};return _0x3f2d5b[_0x4eb66e(-0x151,-0x15d,-_0x30c3bc._0x47de85,-_0x30c3bc._0x33c88f)]=_0x4befa6[_0x4eb66e(-_0x30c3bc._0x69586f,-_0x30c3bc._0x7a0064,-0x116,-0x105)],_0x399b77[_0x4eb66e(-_0x30c3bc._0x487821,-_0x30c3bc._0x19bae6,-0x122,-0x1a2)](-0x1d8f+0x8c9+0x165a)[_0x48646e(_0x30c3bc._0x317e71,0x2f7,_0x30c3bc._0x37d3fe,_0x30c3bc._0x42aca4)](_0x3f2d5b);}else{_0x1f08e7[_0x4eb66e(-0x151,-_0x30c3bc._0xe3d9d5,-0x16d,-0x170)](_0x4befa6['WCrvs'],_0x4b13e5);const _0xbbfe5f={};_0xbbfe5f[_0x48646e(0x28c,0x2c8,_0x30c3bc._0x528ebc,0x295)]=_0x4befa6['WCrvs'],_0x29f111[_0x48646e(0x2c4,0x28c,_0x30c3bc._0x4845e3,0x2ce)](0x946+0x15dd+-0x1d2f)[_0x4eb66e(-0xf7,-0xe8,-_0x30c3bc._0x9be5f4,-_0x30c3bc._0x451506)](_0xbbfe5f);}}const _0x42971b=await _0x4befa6[_0x48646e(_0x30c3bc._0x49e871,_0x30c3bc._0x5504e8,_0x30c3bc._0x321270,_0x30c3bc._0x19107a)](createPasswordToken,_0x589236,type),_0x11cc60={};_0x11cc60['adminId']=_0x357afc[_0x4eb66e(-_0x30c3bc._0x560c12,-0x162,-0x134,-_0x30c3bc._0x4fab4c)]['id'],_0x11cc60[_0x48646e(0x33e,0x2ed,0x2ea,_0x30c3bc._0x4778bb)+_0x4eb66e(-_0x30c3bc._0x5a6387,-0x109,-0x10d,-_0x30c3bc._0x98a666)]=_0x357afc[_0x4eb66e(-0x148,-_0x30c3bc._0x4f5703,-_0x30c3bc._0x23b1bb,-_0x30c3bc._0x2f3472)][_0x4eb66e(-_0x30c3bc._0x12d235,-0x10d,-_0x30c3bc._0x45502f,-0x138)],_0x11cc60[_0x4eb66e(-0x140,-_0x30c3bc._0x397714,-_0x30c3bc._0x69586f,-0x13c)+'Id']=_0x589236,_0x11cc60['targetUser'+_0x4eb66e(-0x163,-_0x30c3bc._0x1c370b,-0x14d,-_0x30c3bc._0x189b17)]=_0x254df5['username'],_0x11cc60['tokenType']=type,_0x11cc60[_0x48646e(_0x30c3bc._0xbd5a2d,0x300,_0x30c3bc._0x5808b1,0x2d2)]=sendEmail,logger[_0x48646e(_0x30c3bc._0x3d0e2e,_0x30c3bc._0x5380b7,_0x30c3bc._0x51525c,_0x30c3bc._0x570b5d)](_0x4befa6[_0x4eb66e(-_0x30c3bc._0xd022d5,-0x156,-_0x30c3bc._0x6d7c91,-0x105)],_0x11cc60);const _0x3fd43b=_0x4befa6['GURog'](getRequestBaseUrl,_0x357afc),_0x1d0862=_0x3fd43b+(_0x48646e(0x2e1,0x2e4,_0x30c3bc._0x5dedcc,0x2f5)+_0x4eb66e(-_0x30c3bc._0x47075b,-0x18c,-0x13b,-0x123)+_0x4eb66e(-_0x30c3bc._0x198c7d,-0x143,-0x16a,-0xf2))+_0x42971b[_0x48646e(0x2ec,_0x30c3bc._0x4e8b24,_0x30c3bc._0x442b95,0x313)],_0x1c7a88={};_0x1c7a88['id']=_0x42971b['id'],_0x1c7a88['token']=_0x42971b[_0x48646e(_0x30c3bc._0x39eaf2,0x308,0x2ef,0x2fe)],_0x1c7a88[_0x48646e(_0x30c3bc._0x77d3dc,_0x30c3bc._0x448ede,0x2b0,_0x30c3bc._0x12bb4e)]=_0x42971b[_0x48646e(_0x30c3bc._0x43969d,0x2d4,_0x30c3bc._0x1716b5,_0x30c3bc._0x4acfca)],_0x1c7a88[_0x48646e(_0x30c3bc._0x2811a4,0x27a,_0x30c3bc._0x1082d9,_0x30c3bc._0x4f9c90)]=_0x42971b[_0x48646e(_0x30c3bc._0x1be9bc,0x2da,_0x30c3bc._0x473339,0x24c)],_0x1c7a88[_0x48646e(0x2ae,_0x30c3bc._0x344cdd,0x300,_0x30c3bc._0x3dc2fb)]=_0x1d0862;const _0x106f1b={};_0x106f1b['id']=_0x254df5['id'],_0x106f1b[_0x48646e(_0x30c3bc._0x3c1a28,0x26d,_0x30c3bc._0x2c9380,_0x30c3bc._0x375ee2)]=_0x254df5[_0x48646e(_0x30c3bc._0x23c210,_0x30c3bc._0x4c8166,0x2a8,_0x30c3bc._0x48cc5a)],_0x106f1b[_0x4eb66e(-0x163,-_0x30c3bc._0xef4012,-0x137,-_0x30c3bc._0x3742c7)]=_0x254df5['name'],_0x106f1b[_0x48646e(0x2ef,_0x30c3bc._0x2226e0,_0x30c3bc._0x14c60c,0x346)]=_0x254df5['email'];const _0x14d023={};_0x14d023[_0x48646e(_0x30c3bc._0x3a1a5f,_0x30c3bc._0x497251,0x2f2,_0x30c3bc._0x473f6d)]=_0x48646e(_0x30c3bc._0x43ff24,_0x30c3bc._0x5dedcc,_0x30c3bc._0x1dc8d8,_0x30c3bc._0x3be65c)+'oken\x20creat'+_0x4eb66e(-0xe7,-_0x30c3bc._0x3530b1,-0x93,-_0x30c3bc._0x29f57b)+_0x48646e(_0x30c3bc._0xd4504e,_0x30c3bc._0x20f2b2,_0x30c3bc._0x444232,0x266),_0x14d023['token']=_0x1c7a88,_0x14d023[_0x4eb66e(-0x148,-_0x30c3bc._0x3b2126,-_0x30c3bc._0x5c431a,-0x155)]=_0x106f1b,_0x14d023['emailSent']=![];const _0x275e07=_0x14d023;if(sendEmail){if(_0x4befa6[_0x4eb66e(-0xea,-_0x30c3bc._0x800c66,-0xc6,-_0x30c3bc._0x318b4d)]===_0x4befa6[_0x4eb66e(-_0x30c3bc._0xd41a0b,-_0x30c3bc._0x42fd61,-0x143,-_0x30c3bc._0x1a2340)]){const _0x3e3ff5={};return _0x3e3ff5[_0x48646e(_0x30c3bc._0x19fe7b,0x2eb,_0x30c3bc._0x49fc14,_0x30c3bc._0x8e5352)]=![],_0x3e3ff5[_0x4eb66e(-_0x30c3bc._0x287e45,-0x15c,-0x10a,-0x16c)]=_0x48646e(0x30b,_0x30c3bc._0xe43254,0x2ff,0x2f4)+_0x48646e(_0x30c3bc._0x147257,_0x30c3bc._0x13f049,0x274,0x297),_0x32e1c2[_0x4eb66e(-0xf7,-0x146,-0xe7,-_0x30c3bc._0x4cd975)](_0x3e3ff5);}else{if(!_0x4befa6['okZki'](isEmailConfigured)){const _0x318a6f={};return _0x318a6f[_0x48646e(_0x30c3bc._0x523b11,0x2b3,_0x30c3bc._0x528ebc,_0x30c3bc._0x2b74b6)]=_0x4befa6[_0x4eb66e(-_0x30c3bc._0x25832a,-0x17a,-0x1a5,-0x19e)],_0x318a6f[_0x4eb66e(-_0x30c3bc._0x23e867,-0xd2,-0xf4,-_0x30c3bc._0x5e0bdd)]=_0x4befa6['IJvQL'],_0x399b77[_0x4eb66e(-_0x30c3bc._0x1bd921,-0x169,-0x11d,-_0x30c3bc._0x5c3066)](-0x127*0x21+0x4*-0x94f+0x4cd3)[_0x4eb66e(-0xf7,-0x145,-_0x30c3bc._0xcf4e61,-0xbf)](_0x318a6f);}try{const _0x3c4aac=type===_0x4befa6[_0x4eb66e(-0x137,-0x159,-0x110,-_0x30c3bc._0x3d608d)]?_0x48646e(_0x30c3bc._0x18b5c5,0x2af,0x27d,_0x30c3bc._0x3687f2)+_0x4eb66e(-_0x30c3bc._0x1a88ec,-0x167,-_0x30c3bc._0x22351a,-0xe8):_0x48646e(_0x30c3bc._0x154bea,0x28a,0x294,_0x30c3bc._0x5c3edd)+'etup',_0x5a5e3e={};_0x5a5e3e[_0x48646e(_0x30c3bc._0x182436,_0x30c3bc._0x736206,0x2dd,0x287)]=_0x254df5[_0x48646e(_0x30c3bc._0x20f2b2,0x2ba,0x26f,_0x30c3bc._0x1f88ca)],_0x5a5e3e[_0x4eb66e(-0x12a,-0x12c,-_0x30c3bc._0x455c1f,-_0x30c3bc._0x2f408b)]=_0x254df5[_0x48646e(_0x30c3bc._0x5cf468,0x2bb,0x2a8,0x2f6)],_0x5a5e3e['setupUrl']=_0x1d0862,_0x5a5e3e[_0x48646e(_0x30c3bc._0x5cea9e,_0x30c3bc._0x580a89,_0x30c3bc._0x53b104,0x2b8)]=_0x4befa6['vHpLX'],_0x5a5e3e[_0x48646e(_0x30c3bc._0x3bf4d9,0x2d2,_0x30c3bc._0x3c65ae,_0x30c3bc._0x39eaf2)]=type;const _0x487041=_0x5a5e3e,{subject:_0x3fe1b8}=renderTemplate(_0x3c4aac,_0x487041),_0x462e78={};_0x462e78['to']=_0x254df5[_0x4eb66e(-0xcc,-0xf6,-0xad,-_0x30c3bc._0x552c38)],_0x462e78[_0x4eb66e(-0x13c,-0x15c,-_0x30c3bc._0x30684b,-0x175)]=_0x3fe1b8,_0x462e78[_0x48646e(_0x30c3bc._0x459560,_0x30c3bc._0x41bcb3,0x2e5,0x33a)]=_0x3c4aac,_0x462e78[_0x48646e(_0x30c3bc._0x1fa40b,0x260,0x299,0x248)]=_0x487041,await _0x4befa6[_0x4eb66e(-0x10e,-0x159,-0x13e,-_0x30c3bc._0x5bf27a)](sendTemplatedEmail,_0x462e78),_0x275e07[_0x4eb66e(-_0x30c3bc._0x5411b8,-0x95,-_0x30c3bc._0x264ea0,-_0x30c3bc._0x455c1f)]=!![],_0x275e07[_0x4eb66e(-_0x30c3bc._0x23e867,-0x126,-0xb9,-_0x30c3bc._0x3f6a92)]=_0x4eb66e(-0x127,-_0x30c3bc._0x1b2099,-_0x30c3bc._0x53701c,-0xfd)+'oken\x20creat'+_0x4eb66e(-0x13f,-0x17b,-_0x30c3bc._0x135923,-_0x30c3bc._0x52ff0d)+_0x4eb66e(-0x16c,-0x1af,-_0x30c3bc._0x14364c,-_0x30c3bc._0x30684b)+'\x20'+_0x254df5[_0x48646e(0x2cf,0x301,_0x30c3bc._0x14c60c,0x2da)];const _0x54cdbd={};_0x54cdbd['to']=_0x254df5[_0x48646e(_0x30c3bc._0x4f8ec2,_0x30c3bc._0x5e2f96,_0x30c3bc._0xf0c84b,_0x30c3bc._0x37d8c3)],_0x54cdbd[_0x4eb66e(-0x122,-0x15c,-0xea,-_0x30c3bc._0x46a3cf)]=type,_0x54cdbd[_0x48646e(0x261,0x279,0x2a8,_0x30c3bc._0x43766f)]=_0x254df5['username'],logger[_0x48646e(_0x30c3bc._0x3797ae,0x2db,_0x30c3bc._0x50337f,_0x30c3bc._0x501bf6)](_0x48646e(0x2cd,0x284,_0x30c3bc._0x48ce92,_0x30c3bc._0x3322fc)+_0x4eb66e(-_0x30c3bc._0x3902c1,-_0x30c3bc._0x2bf3d1,-0x122,-_0x30c3bc._0x1c5be5)+_0x48646e(0x36b,_0x30c3bc._0x2127a9,_0x30c3bc._0xe80a93,0x333),_0x54cdbd);}catch(_0xe42b0a){logger[_0x4eb66e(-0x151,-0x15c,-_0x30c3bc._0x37c49a,-_0x30c3bc._0x2d3df7)](_0x4befa6['tvWwA'],_0xe42b0a),_0x275e07[_0x48646e(0x2c0,0x2b3,_0x30c3bc._0x23c210,0x273)]=_0x4befa6[_0x4eb66e(-_0x30c3bc._0xb081f4,-_0x30c3bc._0x573c8d,-_0x30c3bc._0x44fa87,-0x15f)];}}}_0x399b77[_0x48646e(_0x30c3bc._0x4cb16e,0x30f,0x2db,0x2be)](_0x275e07);}catch(_0x4e1549){if(_0x4befa6['cahXS']===_0x4befa6[_0x4eb66e(-0x110,-_0x30c3bc._0x49718e,-0x110,-0xe5)]){_0x4a6750[_0x48646e(0x29f,0x257,_0x30c3bc._0x226dde,0x251)](_0x4befa6['wCWFz'],_0x50aa15);const _0x2c210f={};_0x2c210f[_0x4eb66e(-0x151,-_0x30c3bc._0x2b10dc,-_0x30c3bc._0x13758f,-_0x30c3bc._0x2c006b)]=_0x4befa6[_0x48646e(0x288,_0x30c3bc._0x16e34e,_0x30c3bc._0x18abce,_0x30c3bc._0x14089c)],_0xa32f6b[_0x4eb66e(-0x14a,-_0x30c3bc._0x2b1d61,-_0x30c3bc._0x3925b2,-0x11d)](-0xbe0+-0xd3f+-0xef*-0x1d)[_0x48646e(_0x30c3bc._0x501bf6,_0x30c3bc._0x3c0c2b,0x2db,0x2e5)](_0x2c210f);}else{logger['error'](_0x4befa6['wCWFz'],_0x4e1549);const _0x4e8bac={};_0x4e8bac[_0x48646e(_0x30c3bc._0x420937,_0x30c3bc._0x1e8d4e,0x281,_0x30c3bc._0x476cb5)]='Failed\x20to\x20'+'create\x20pas'+'sword\x20toke'+'n',_0x399b77[_0x4eb66e(-_0x30c3bc._0x487821,-_0x30c3bc._0xa558fe,-0x142,-0x18e)](0x167+0xb*-0x85+0x2*0x322)['json'](_0x4e8bac);}}}),router[_0x2ce8db(0x104,0x9b,0x11e,0xd3)](_0x2ce8db(0x17d,0x132,0xf0,0x12b)+_0x2ce8db(0x15c,0x124,0x135,0x161),async(_0x377b7e,_0x5dc40f)=>{const _0x47b769={_0x4c5605:0x192,_0x37bebb:0x17d,_0x16f126:0x18f,_0x91014:0x4,_0x2dc1e7:0x12,_0x439797:0x1f,_0x1649a7:0x8,_0x4c6145:0x16,_0x59e51b:0xc,_0x3ed146:0xe5,_0x2cdfdd:0x134,_0x323755:0x13e,_0x42fa8c:0x61,_0x1f614b:0x2f,_0x74c56a:0x2,_0x49c2db:0x21,_0x423ff1:0x2f,_0x4dad78:0x11f,_0x2afb8a:0x36,_0x384941:0x97,_0x48ae8b:0xbf,_0x3a418d:0xee,_0x3c78a4:0x26,_0x30cf08:0x1b6,_0x2e2535:0x4a,_0x5bb46a:0x68,_0x20e382:0x7,_0x2fbce0:0x69,_0x29fcfe:0x19,_0x491764:0x4a,_0x5ad63d:0x71,_0x478adf:0x5d,_0x12fd55:0xc2,_0x48c417:0x1ba,_0x46083b:0x15b,_0x49dd0f:0x140,_0x3c4434:0x139,_0x564764:0x1a0,_0x52110b:0x135,_0x49fdc2:0x18c,_0x1461d9:0x162,_0x16b7cd:0x123,_0xc7b87e:0x156,_0x5c6968:0x5e,_0x549189:0x8c,_0x2971d3:0xb3,_0x2365a8:0x19,_0x2a884a:0x51,_0x20b556:0xa2,_0x25fbba:0x87,_0x2cea6d:0x8a,_0x6337cf:0xa0,_0x4bc432:0x7e,_0x275e32:0x22,_0x273417:0x49,_0x45b4b3:0x10,_0x520177:0x12a,_0x1e138c:0x155,_0x789b98:0x13a,_0xd4d917:0x13b,_0x11d0ce:0x20,_0x54df99:0x3e,_0x759172:0x34,_0x1170ae:0x65,_0x4c3522:0xd8,_0x4582d8:0x78,_0x3353e8:0xb2,_0x2fdd2e:0x1a,_0x217966:0x2c,_0x3e4676:0x5a,_0x95c9fa:0x67,_0x54f7b7:0x3a,_0x5ee4e3:0xea,_0x3ad98d:0x139,_0x545381:0x167,_0x461874:0x159,_0x2fca1b:0xf8,_0x99c8a4:0x132,_0x509314:0x171,_0x344fea:0xf7,_0x43585e:0x123,_0x2468e4:0x171},_0x219ee4={_0x5a6a84:0xc,_0x4c8038:0xdd},_0xcbc5de={_0x5e4dd7:0x53,_0x9dfc14:0x15d,_0x161993:0x3f};function _0x39bbed(_0x1a3ff8,_0x45c569,_0x2afe87,_0x342283){return _0x2ce8db(_0x1a3ff8-_0xcbc5de._0x5e4dd7,_0x45c569-_0xcbc5de._0x9dfc14,_0x45c569,_0x342283-_0xcbc5de._0x161993);}function _0xf1ddc2(_0x3e0d90,_0x56d823,_0x45432f,_0x603a96){return _0x20f75b(_0x45432f,_0x56d823- -_0x219ee4._0x5a6a84,_0x45432f-0x20,_0x603a96-_0x219ee4._0x4c8038);}const _0x57e6fa={'fiGga':'User\x20ID\x20is'+_0x39bbed(_0x47b769._0x4c5605,0x14d,_0x47b769._0x37bebb,_0x47b769._0x16f126),'YdOql':function(_0x332d85,_0x321009){return _0x332d85!==_0x321009;},'WMxqd':_0xf1ddc2(-_0x47b769._0x91014,-0x3e,-0x46,-_0x47b769._0x2dc1e7),'lfkli':'Token\x20is\x20r'+_0xf1ddc2(-_0x47b769._0x439797,-_0x47b769._0x1649a7,-_0x47b769._0x4c6145,-_0x47b769._0x59e51b),'boCBW':function(_0x51368f,_0x462dda){return _0x51368f(_0x462dda);},'AoEcX':_0x39bbed(_0x47b769._0x3ed146,0x183,_0x47b769._0x2cdfdd,_0x47b769._0x323755)+_0xf1ddc2(-0x5b,-0x1f,-_0x47b769._0x42fa8c,-_0x47b769._0x1f614b)+_0xf1ddc2(-0x48,_0x47b769._0x74c56a,0x55,-0x47),'aaSsO':_0xf1ddc2(_0x47b769._0x49c2db,0x6,_0x47b769._0x423ff1,0x1a)+_0x39bbed(_0x47b769._0x4dad78,0x159,0x117,0x125),'GmSHF':_0xf1ddc2(-_0x47b769._0x2afb8a,-0x7e,-_0x47b769._0x384941,-_0x47b769._0x48ae8b),'mJtQf':'Failed\x20to\x20'+_0x39bbed(_0x47b769._0x3a418d,0x17c,0xe2,0x133)+_0xf1ddc2(-0x4e,_0x47b769._0x74c56a,0x14,-_0x47b769._0x3c78a4)};try{const {token:_0x2edd71}=_0x377b7e[_0x39bbed(0x1d6,0x178,0x1c7,_0x47b769._0x30cf08)];if(!_0x2edd71){if(_0x57e6fa[_0xf1ddc2(-0xd,-0x29,-0x11,-0x29)](_0x57e6fa[_0xf1ddc2(0x7,-_0x47b769._0x2e2535,-_0x47b769._0x5bb46a,-_0x47b769._0x20e382)],_0x57e6fa['WMxqd'])){const _0x5ad694={};return _0x5ad694['error']=_0xf1ddc2(_0x47b769._0x2fbce0,_0x47b769._0x29fcfe,-0x2a,0x34)+'password\x20a'+_0x39bbed(0x188,0x119,0x166,0x165)+'d',_0x308048[_0xf1ddc2(-_0x47b769._0x491764,-_0x47b769._0x5ad63d,-_0x47b769._0x478adf,-_0x47b769._0x12fd55)](0x98*-0x25+0x26b2+0x287*-0x6)[_0x39bbed(0x142,_0x47b769._0x48c417,_0x47b769._0x46083b,0x18c)](_0x5ad694);}else{const _0x146650={};return _0x146650['error']=_0x57e6fa['lfkli'],_0x146650[_0xf1ddc2(-0x73,-0x61,-0x1b,-0x16)]=![],_0x5dc40f[_0x39bbed(0xf0,0x107,_0x47b769._0x49dd0f,_0x47b769._0x3c4434)](-0xe*0x209+-0x1f29+0x3d37)[_0x39bbed(_0x47b769._0x564764,0x1c5,_0x47b769._0x52110b,_0x47b769._0x49fdc2)](_0x146650);}}const _0x475978=await _0x57e6fa[_0x39bbed(_0x47b769._0x1461d9,0x14a,0xbc,0x113)](validateToken,_0x2edd71);if(!_0x475978){const _0x26b118={};return _0x26b118['valid']=![],_0x26b118[_0x39bbed(0xf7,_0x47b769._0x16b7cd,0x161,0x132)]=_0x57e6fa['AoEcX'],_0x5dc40f[_0x39bbed(0x1dd,_0x47b769._0xc7b87e,0x189,0x18c)](_0x26b118);}const _0x10b567=await findUserById(_0x475978['userId']);if(!_0x10b567){const _0x478d26={};return _0x478d26['valid']=![],_0x478d26[_0xf1ddc2(-_0x47b769._0x5c6968,-0x78,-_0x47b769._0x549189,-_0x47b769._0x2971d3)]=_0x57e6fa['aaSsO'],_0x5dc40f['json'](_0x478d26);}const _0x165b7a={};_0x165b7a[_0xf1ddc2(-_0x47b769._0x2365a8,-_0x47b769._0x2a884a,-0x2a,-0x25)]=_0x10b567[_0xf1ddc2(-0x42,-0x51,-_0x47b769._0x20b556,-0x2d)],_0x165b7a['name']=_0x10b567[_0xf1ddc2(-_0x47b769._0x25fbba,-_0x47b769._0x2cea6d,-0x85,-_0x47b769._0x6337cf)];const _0x127cd4={};_0x127cd4['valid']=!![],_0x127cd4[_0xf1ddc2(-0x87,-0x49,-_0x47b769._0x4bc432,-0x8f)]=_0x475978[_0xf1ddc2(-_0x47b769._0x275e32,-_0x47b769._0x273417,_0x47b769._0x45b4b3,0x4)],_0x127cd4[_0x39bbed(_0x47b769._0x520177,_0x47b769._0x1e138c,_0x47b769._0x789b98,_0x47b769._0xd4d917)]=_0x165b7a,_0x5dc40f[_0xf1ddc2(_0x47b769._0x11d0ce,-0x1e,-_0x47b769._0x54df99,-_0x47b769._0x759172)](_0x127cd4);}catch(_0x40e86b){if(_0x57e6fa[_0xf1ddc2(-0x5f,-0x29,-0x6,-_0x47b769._0x1170ae)]('dBmpc',_0x57e6fa[_0xf1ddc2(-0xa2,-0x94,-0xb5,-_0x47b769._0x4c3522)])){logger[_0xf1ddc2(-_0x47b769._0x2fbce0,-0x78,-_0x47b769._0x4582d8,-_0x47b769._0x3353e8)](_0x57e6fa[_0xf1ddc2(-0x46,-_0x47b769._0x2fdd2e,0x3,0xc)],_0x40e86b);const _0x1a8cb8={};_0x1a8cb8['error']=_0x57e6fa[_0xf1ddc2(-_0x47b769._0x217966,-_0x47b769._0x2fdd2e,-_0x47b769._0x3e4676,-_0x47b769._0x95c9fa)],_0x1a8cb8[_0xf1ddc2(-0x92,-0x61,-_0x47b769._0x1649a7,-_0x47b769._0x54f7b7)]=![],_0x5dc40f[_0x39bbed(_0x47b769._0x5ee4e3,0x132,_0x47b769._0x4c5605,_0x47b769._0x3ad98d)](-0x21c9+-0x2*-0x1d3+0x2017)[_0x39bbed(_0x47b769._0x545381,0x19a,_0x47b769._0x461874,0x18c)](_0x1a8cb8);}else{const _0x3186ad={};return _0x3186ad[_0x39bbed(0x126,0x119,_0x47b769._0x2fca1b,_0x47b769._0x99c8a4)]=_0x57e6fa[_0x39bbed(0x158,_0x47b769._0x509314,_0x47b769._0x344fea,_0x47b769._0x43585e)],_0x34edc0[_0x39bbed(0x192,0xe0,_0x47b769._0x2468e4,_0x47b769._0x3ad98d)](-0xa93+-0x965+0x1588)[_0x39bbed(0x143,0x13a,0x157,0x18c)](_0x3186ad);}}}),router['post']('/setup',async(_0x3e283e,_0x30388f)=>{const _0x43239e={_0x37ec7b:0x275,_0x460f8e:0x27d,_0xac9a93:0x3b3,_0x2ddc39:0x443,_0x287a97:0x431,_0x430b92:0x44d,_0x3771e9:0x428,_0x40b598:0x2c6,_0x202730:0x442,_0x359360:0x3c6,_0x530173:0x425,_0x58abc3:0x3ca,_0x59b711:0x389,_0x2ad409:0x3b6,_0x1c708c:0x3c2,_0x324c21:0x294,_0x30f98a:0x287,_0x2bc12d:0x28e,_0x1a4081:0x3f3,_0x1a1a3b:0x3dc,_0x5a969c:0x3e7,_0x1bcaf7:0x2ae,_0x5e2117:0x2b8,_0xf86ecd:0x271,_0xa31cb1:0x29c,_0x5cfc58:0x2da,_0x4955cc:0x2d7,_0x27a6bd:0x243,_0x1d7f50:0x298,_0x3f0ad5:0x2d6,_0x354192:0x431,_0xc0e509:0x3f1,_0x3713bb:0x449,_0x4b34ac:0x448,_0x251724:0x399,_0x1c23e3:0x367,_0x13b6ea:0x3ff,_0x1c3255:0x3a2,_0x5ae804:0x400,_0x2cf3d5:0x3fc,_0x5e2717:0x3b5,_0x107d32:0x304,_0x331ec9:0x2a4,_0x22a1bf:0x27f,_0x35a534:0x2c9,_0x1cb9b2:0x304,_0x52918b:0x2a0,_0x1e63ba:0x325,_0xd4dcde:0x2a6,_0x5857a2:0x2cf,_0x1092c9:0x2bb,_0x5ce2b7:0x276,_0x3565a2:0x27c,_0x93639a:0x278,_0x52df1c:0x278,_0xcaa838:0x2df,_0x5ea266:0x447,_0x193d10:0x40d,_0x25f29c:0x3dd,_0x2c8d90:0x319,_0x356869:0x475,_0x296782:0x481,_0x37e514:0x37a,_0x4f821e:0x37f,_0x3b067a:0x3bf,_0x58110b:0x38a,_0x54c4e5:0x24a,_0x45f4b4:0x406,_0x194a5b:0x421,_0x1fd140:0x3f7,_0x39c71a:0x3ef,_0x4ec1d7:0x3d7,_0x29a72b:0x299,_0x248159:0x2df,_0x1c8355:0x26b,_0x4debac:0x25e,_0x24c9ee:0x28d,_0x55b357:0x2c3,_0x51935a:0x25a,_0x5bb26a:0x3e0,_0xeeab8f:0x313,_0x193b88:0x2cf,_0x1f70e9:0x273,_0x28e87c:0x3b8,_0x4c02c9:0x426,_0xae8333:0x46c,_0x308ca7:0x3df,_0x348fa7:0x3d3,_0x43f6c9:0x386,_0x315eee:0x2e5,_0x619800:0x2c6,_0x3bebe8:0x2a7,_0x1cb04f:0x232,_0x4d6fed:0x283,_0x32847c:0x28b,_0x2e1717:0x2da,_0x244b79:0x3e8,_0x195a1d:0x43a,_0x3e0006:0x267,_0x15b931:0x2b5,_0x48bc87:0x271,_0x400599:0x2af,_0xc3f44c:0x3a6,_0x36ab8d:0x2b0,_0x138b28:0x3f8,_0xecc960:0x3ad,_0x320ae8:0x273,_0x5e181c:0x21e,_0x58c2e1:0x379,_0x1fb3c4:0x35a,_0xe60583:0x3ad,_0x337f9c:0x358,_0x4d720e:0x2ea,_0x28369c:0x2d1,_0x3b288d:0x412,_0xb0fa12:0x2d9,_0x19991b:0x286,_0x1d1be0:0x2aa,_0x343fb2:0x446,_0x546ab8:0x48b,_0xfebebe:0x442,_0x21515c:0x43b,_0x429e78:0x401,_0x2080bf:0x433,_0x35306e:0x3d0,_0x1cf1be:0x2d3,_0x181ca0:0x2b7,_0x5cf5d7:0x316,_0x54cddf:0x296,_0x328dcb:0x370},_0xd9a778={_0x124157:0xf5,_0x21aea9:0x2c5},_0x3cc5a2={_0x24830a:0x14};function _0x51d4b7(_0xaa453f,_0x4bceb3,_0x57cc4e,_0x294b12){return _0x20f75b(_0x4bceb3,_0x294b12- -0x26a,_0x57cc4e-_0x3cc5a2._0x24830a,_0x294b12-0x166);}const _0x59e56c={'mClCM':'Invalid\x20or'+_0x51d4b7(-0x28b,-0x226,-_0x43239e._0x37ec7b,-_0x43239e._0x460f8e)+'oken','iGHmE':_0x5342f6(_0x43239e._0xac9a93,_0x43239e._0x2ddc39,0x403,_0x43239e._0x287a97)+_0x5342f6(0x416,_0x43239e._0x430b92,_0x43239e._0x3771e9,0x3e1),'JfgfO':function(_0x175128,_0x401467){return _0x175128||_0x401467;},'wHlIm':_0x51d4b7(-_0x43239e._0x40b598,-0x2b7,-0x30b,-0x2ce),'gjxih':_0x5342f6(_0x43239e._0x202730,0x44e,0x402,_0x43239e._0x359360),'udctC':'Password\x20m'+_0x5342f6(_0x43239e._0x530173,_0x43239e._0x58abc3,0x3d8,0x38c)+'least\x208\x20ch'+_0x5342f6(_0x43239e._0x59b711,_0x43239e._0x2ad409,_0x43239e._0x1c708c,0x385),'bLmPp':function(_0x320a96,_0x287931){return _0x320a96(_0x287931);},'Bsifl':function(_0x10862f,_0x2e8e49){return _0x10862f(_0x2e8e49);},'msuaK':_0x51d4b7(-_0x43239e._0x324c21,-_0x43239e._0x30f98a,-0x243,-_0x43239e._0x2bc12d),'ljEiB':function(_0x537cc0,_0x1d8bfb,_0x38c866){return _0x537cc0(_0x1d8bfb,_0x38c866);},'UUqTI':function(_0x5596ea,_0x5aa82e){return _0x5596ea===_0x5aa82e;},'YzSLm':_0x5342f6(0x3eb,_0x43239e._0x1a4081,0x3c6,_0x43239e._0x1a1a3b),'ZFpWV':_0x5342f6(0x440,0x426,0x3fd,_0x43239e._0x5a969c),'YdHJP':_0x51d4b7(-0x2b5,-_0x43239e._0x1bcaf7,-_0x43239e._0x5e2117,-_0x43239e._0xf86ecd)+_0x51d4b7(-0x2e1,-_0x43239e._0xa31cb1,-_0x43239e._0x5cfc58,-_0x43239e._0x4955cc)+'rd'};function _0x5342f6(_0x3e9fa1,_0x148965,_0x85a184,_0x4d8244){return _0x2ce8db(_0x3e9fa1-0x70,_0x148965-_0xd9a778._0x124157,_0x4d8244,_0x85a184-_0xd9a778._0x21aea9);}try{const {token:_0x599225,password:_0x47be69}=_0x3e283e[_0x51d4b7(-_0x43239e._0x27a6bd,-0x2d0,-0x2e5,-_0x43239e._0x1d7f50)];if(_0x59e56c['JfgfO'](!_0x599225,!_0x47be69)){const _0x40feed={};return _0x40feed[_0x51d4b7(-0x321,-0x2c5,-0x2ce,-_0x43239e._0x3f0ad5)]=_0x5342f6(_0x43239e._0x354192,_0x43239e._0xc0e509,_0x43239e._0x3713bb,_0x43239e._0x4b34ac)+'password\x20a'+_0x5342f6(0x445,0x43a,0x3eb,0x398)+'d',_0x30388f[_0x5342f6(0x3f0,_0x43239e._0x251724,0x3bf,_0x43239e._0x1c23e3)](-0x1926+0x1*-0x1c21+0x1*0x36d7)[_0x5342f6(_0x43239e._0x13b6ea,0x416,0x412,0x3f2)](_0x40feed);}if(_0x47be69[_0x5342f6(_0x43239e._0x1c3255,_0x43239e._0x5ae804,_0x43239e._0x2cf3d5,_0x43239e._0x5e2717)]<-0x2037+0x1695+0x9aa){if(_0x59e56c[_0x51d4b7(-_0x43239e._0x107d32,-_0x43239e._0x331ec9,-0x2f8,-0x2ee)]!==_0x59e56c[_0x51d4b7(-0x2b9,-_0x43239e._0x22a1bf,-0x290,-_0x43239e._0x35a534)]){const _0x3b226d={};return _0x3b226d[_0x51d4b7(-_0x43239e._0x1cb9b2,-_0x43239e._0x52918b,-_0x43239e._0x1e63ba,-0x2d6)]=_0x59e56c['udctC'],_0x30388f[_0x51d4b7(-0x2d1,-0x296,-_0x43239e._0xd4dcde,-_0x43239e._0x5857a2)](-0x1c5*0x2+0xaa0+0x586*-0x1)[_0x51d4b7(-_0x43239e._0x1092c9,-_0x43239e._0x5ce2b7,-0x235,-_0x43239e._0x3565a2)](_0x3b226d);}else{const _0x552943={};return _0x552943[_0x51d4b7(-0x314,-_0x43239e._0x93639a,-_0x43239e._0x52df1c,-0x2bf)]=![],_0x552943[_0x51d4b7(-_0x43239e._0xcaa838,-0x2f1,-0x2ab,-0x2d6)]=_0x59e56c[_0x5342f6(0x3fc,0x421,_0x43239e._0x5ea266,0x447)],_0x496afc['json'](_0x552943);}}const _0x2b1f39=await _0x59e56c[_0x5342f6(0x3f4,_0x43239e._0x193d10,_0x43239e._0x25f29c,0x404)](validateToken,_0x599225);if(!_0x2b1f39){const _0x25ca4e={};return _0x25ca4e[_0x51d4b7(-0x2f1,-_0x43239e._0x2c8d90,-0x2a7,-0x2d6)]=_0x59e56c[_0x5342f6(_0x43239e._0x356869,0x40d,0x447,_0x43239e._0x296782)],_0x30388f[_0x5342f6(_0x43239e._0x37e514,_0x43239e._0x4f821e,_0x43239e._0x3b067a,_0x43239e._0x58110b)](-0x2149+0x2670+-0x397)[_0x51d4b7(-0x248,-_0x43239e._0x54c4e5,-0x275,-0x27c)](_0x25ca4e);}const _0x118ea9=await _0x59e56c[_0x5342f6(_0x43239e._0x45f4b4,_0x43239e._0x194a5b,_0x43239e._0x1fd140,0x3a5)](findUserById,_0x2b1f39['userId']);if(!_0x118ea9){if(_0x59e56c[_0x5342f6(0x407,0x440,0x40e,0x3fc)]===_0x5342f6(_0x43239e._0x39c71a,0x3d4,_0x43239e._0x4ec1d7,0x3b5)){const _0x2d357f={};return _0x2d357f[_0x51d4b7(-_0x43239e._0x29a72b,-_0x43239e._0x248159,-0x2d5,-0x2d6)]=_0x59e56c[_0x51d4b7(-_0x43239e._0x1c8355,-0x2b6,-0x209,-_0x43239e._0x4debac)],_0x2d357f['valid']=![],_0xdb6ed4[_0x51d4b7(-_0x43239e._0x24c9ee,-0x30c,-0x2d0,-0x2cf)](-0xf59*0x1+-0x18e3+0x29cc)[_0x51d4b7(-0x263,-_0x43239e._0x55b357,-_0x43239e._0x51935a,-_0x43239e._0x3565a2)](_0x2d357f);}else{const _0x57cddd={};return _0x57cddd['error']=_0x5342f6(0x40f,0x438,0x436,_0x43239e._0x5bb26a)+_0x5342f6(0x3d2,0x3bf,0x3ab,0x351),_0x30388f[_0x51d4b7(-0x31f,-0x2b9,-_0x43239e._0xeeab8f,-_0x43239e._0x193b88)](0xb*-0x161+-0xf6a+0x2029*0x1)['json'](_0x57cddd);}}await _0x59e56c['ljEiB'](setUserPassword,_0x2b1f39[_0x51d4b7(-0x258,-_0x43239e._0x3565a2,-0x224,-_0x43239e._0x1f70e9)],_0x47be69),await _0x59e56c[_0x5342f6(0x3f2,0x3d2,_0x43239e._0x25f29c,_0x43239e._0x28e87c)](markTokenAsUsed,_0x599225);const _0x2212cb={};_0x2212cb[_0x5342f6(_0x43239e._0x4c02c9,_0x43239e._0xae8333,0x41b,0x452)]=_0x118ea9['id'],_0x2212cb[_0x5342f6(0x439,0x3e7,_0x43239e._0x308ca7,_0x43239e._0x348fa7)]=_0x118ea9[_0x5342f6(0x404,_0x43239e._0x43f6c9,0x3df,0x386)],_0x2212cb['tokenType']=_0x2b1f39[_0x51d4b7(-_0x43239e._0x315eee,-_0x43239e._0x619800,-0x2d0,-_0x43239e._0x3bebe8)],logger[_0x51d4b7(-0x22b,-_0x43239e._0x1cb04f,-0x263,-_0x43239e._0x4d6fed)](_0x51d4b7(-_0x43239e._0x32847c,-0x304,-_0x43239e._0x2e1717,-0x2c7)+_0x5342f6(0x427,_0x43239e._0x1c708c,_0x43239e._0x244b79,_0x43239e._0x195a1d)+'en',_0x2212cb);const _0x5c2a09={};_0x5c2a09['id']=_0x118ea9['id'],_0x5c2a09['username']=_0x118ea9[_0x51d4b7(-_0x43239e._0x3e0006,-_0x43239e._0x15b931,-_0x43239e._0x48bc87,-_0x43239e._0x400599)],_0x5c2a09['name']=_0x118ea9[_0x5342f6(_0x43239e._0xc3f44c,0x35b,0x3a6,0x3ce)];const _0x1148cd={};_0x1148cd[_0x51d4b7(-0x267,-0x2a7,-_0x43239e._0x36ab8d,-0x265)]=_0x5342f6(0x3fd,_0x43239e._0x138b28,0x3c7,_0x43239e._0xecc960)+_0x51d4b7(-0x29f,-_0x43239e._0x320ae8,-_0x43239e._0x5e181c,-0x263)+_0x5342f6(_0x43239e._0x58c2e1,_0x43239e._0x1fb3c4,_0x43239e._0xe60583,_0x43239e._0x337f9c),_0x1148cd[_0x51d4b7(-_0x43239e._0x4d720e,-_0x43239e._0x28369c,-0x2b8,-0x2cd)]=_0x5c2a09,_0x30388f[_0x5342f6(0x41b,0x462,_0x43239e._0x3b288d,0x417)](_0x1148cd);}catch(_0x3c0bb6){if(_0x59e56c[_0x51d4b7(-_0x43239e._0xb0fa12,-_0x43239e._0x19991b,-0x289,-_0x43239e._0x1d1be0)](_0x59e56c['YzSLm'],_0x59e56c[_0x5342f6(_0x43239e._0x343fb2,_0x43239e._0x546ab8,_0x43239e._0xfebebe,_0x43239e._0x21515c)])){const _0x39a22e={};return _0x39a22e[_0x5342f6(_0x43239e._0x429e78,0x3a6,0x3b8,0x3de)]=_0x59e56c[_0x5342f6(_0x43239e._0x2080bf,0x460,_0x43239e._0x5ea266,0x40c)],_0x246da2[_0x5342f6(0x385,_0x43239e._0x35306e,_0x43239e._0x3b067a,0x3f5)](0x1b91+0xd42+0x17*-0x1b5)[_0x51d4b7(-0x295,-_0x43239e._0x1cf1be,-_0x43239e._0x181ca0,-0x27c)](_0x39a22e);}else{logger[_0x51d4b7(-0x2ec,-0x326,-0x2b6,-0x2d6)]('Failed\x20to\x20'+'set\x20passwo'+'rd',_0x3c0bb6);const _0x5b7d74={};_0x5b7d74['error']=_0x59e56c[_0x51d4b7(-0x282,-_0x43239e._0x5cf5d7,-_0x43239e._0x54cddf,-0x2d1)],_0x30388f[_0x5342f6(0x3d9,0x401,0x3bf,_0x43239e._0x328dcb)](0x1fcf+-0xeb*-0x20+-0x3b*0x101)[_0x5342f6(0x3b9,0x44c,0x412,0x3e3)](_0x5b7d74);}}}),router[_0x2ce8db(0x89,0xb5,0x119,0xd3)](_0x20f75b(-0xe,-0x25,-0x70,-0x2a)+'serId',requireAuth,requireAdmin,async(_0x4cdb9a,_0x5496f8)=>{const _0x2696c2={_0x4db05a:0xe4,_0x5c8c05:0x8f,_0x522e13:0xb6,_0x49dac7:0x8f,_0x240fea:0x41,_0x48c147:0x5,_0x54e2e3:0xbc,_0x1b29b0:0x6b,_0xd40bb3:0x46,_0x2ad0fb:0x39,_0xa65dfb:0x9c,_0x3656cc:0x98,_0x5b9b3f:0xca,_0x3800af:0xaf,_0x2f3f1f:0x2,_0x2917d3:0x1a,_0x162e86:0x2b,_0x424dcf:0x28,_0x57a8cc:0x58,_0x48f055:0xdb,_0xa89ba3:0x5a,_0x33c8bb:0x3e,_0x49155a:0x68,_0x57079e:0x1b,_0x442b69:0x8e,_0x4101c1:0x51,_0x251080:0xda,_0x141746:0x9,_0x41bf2d:0x1c,_0x43cf3a:0xb5,_0xfb594e:0xf5,_0x184c47:0xd5,_0x3eba2d:0x11c,_0x3617a3:0x3b,_0x530cfb:0xa0,_0x4e6942:0x6e,_0xc9fa68:0xf8,_0x499557:0xaa,_0x46b50f:0x8a,_0x24db53:0x8c,_0x2024e6:0x83,_0x4219c5:0x1e,_0x3c83bc:0x1b,_0x55973:0x7,_0x3d0434:0x30},_0x10e1a5={_0x12eeb1:0xbd,_0x3a61cc:0x65,_0x388337:0x69},_0xa79ec6={_0x55bec8:0xd2},_0x1ef7b7={'VKUjM':'EXsHu','LAYQG':_0xb7c0d4(_0x2696c2._0x4db05a,0xbd,0xd8,0xd0),'kmOFu':function(_0x45cc21,_0x4d7ee0){return _0x45cc21(_0x4d7ee0);},'Fyjoj':_0xb7c0d4(0x8b,_0x2696c2._0x5c8c05,_0x2696c2._0x522e13,_0x2696c2._0x49dac7)+_0x53b33d(-_0x2696c2._0x240fea,0x7,0x20,-_0x2696c2._0x48c147)+_0xb7c0d4(0x93,0xd7,_0x2696c2._0x54e2e3,_0x2696c2._0x1b29b0)};function _0x53b33d(_0x5c44f3,_0x5fd95f,_0x205133,_0x54a57c){return _0x2ce8db(_0x5c44f3-0x149,_0x5fd95f-_0xa79ec6._0x55bec8,_0x5c44f3,_0x54a57c- -0x12a);}function _0xb7c0d4(_0x9a6372,_0x1f8761,_0x164c15,_0x51ecaf){return _0x20f75b(_0x51ecaf,_0x164c15-_0x10e1a5._0x12eeb1,_0x164c15-_0x10e1a5._0x3a61cc,_0x51ecaf-_0x10e1a5._0x388337);}try{if(_0x1ef7b7[_0xb7c0d4(0x47,0xa2,0x54,0x59)]===_0x1ef7b7[_0x53b33d(0xf,-0x8f,-_0x2696c2._0xd40bb3,-_0x2696c2._0x2ad0fb)]){const _0x4354eb={};return _0x4354eb[_0xb7c0d4(_0x2696c2._0xa65dfb,0x26,0x51,_0x2696c2._0x3656cc)]=_0xb7c0d4(_0x2696c2._0x5b9b3f,_0x2696c2._0x3800af,0xe1,0xb9)+_0x53b33d(_0x2696c2._0x2f3f1f,0x6e,-_0x2696c2._0x2917d3,_0x2696c2._0x162e86)+_0xb7c0d4(0x10b,0x9f,_0x2696c2._0x5b9b3f,0xa8)+'\x22',_0x2baf2f[_0xb7c0d4(0x8b,_0x2696c2._0x424dcf,_0x2696c2._0x57a8cc,0x76)](0x1b73+0x1934+-0x3317)[_0xb7c0d4(_0x2696c2._0x48f055,_0x2696c2._0xa89ba3,0xab,0x6c)](_0x4354eb);}else{const {userId:_0x2b8de3}=_0x4cdb9a['params'],_0x25a553=await _0x1ef7b7[_0x53b33d(-_0x2696c2._0x33c8bb,-0x4,_0x2696c2._0x49155a,_0x2696c2._0x57079e)](findUserById,_0x2b8de3);if(!_0x25a553){const _0x545436={};return _0x545436[_0xb7c0d4(_0x2696c2._0x442b69,0x2d,_0x2696c2._0x4101c1,0x58)]=_0xb7c0d4(0xae,0x121,0xcf,_0x2696c2._0x251080)+_0x53b33d(-0x97,-_0x2696c2._0x141746,-_0x2696c2._0x41bf2d,-0x44),_0x5496f8['status'](-0x1582+-0x1a42+0x3158)[_0x53b33d(0x52,_0x2696c2._0x240fea,0x33,0x23)](_0x545436);}const _0x135e00=await _0x1ef7b7[_0xb7c0d4(0xf9,0xf0,0xa3,_0x2696c2._0x43cf3a)](getUserTokens,_0x2b8de3),_0x413951={};_0x413951[_0xb7c0d4(_0x2696c2._0xfb594e,_0x2696c2._0x184c47,0xd1,_0x2696c2._0x3eba2d)]=_0x135e00,_0x5496f8['json'](_0x413951);}}catch(_0x3e8481){logger[_0xb7c0d4(0x53,0x50,0x51,_0x2696c2._0x3617a3)](_0x1ef7b7[_0x53b33d(-0x4f,-_0x2696c2._0x530cfb,-_0x2696c2._0x4e6942,-0x48)],_0x3e8481);const _0x2a4ef7={};_0x2a4ef7['error']=_0xb7c0d4(_0x2696c2._0xc9fa68,0x8f,_0x2696c2._0x522e13,_0x2696c2._0x499557)+_0xb7c0d4(_0x2696c2._0x46b50f,_0x2696c2._0x24db53,_0x2696c2._0x2024e6,0x55)+_0xb7c0d4(0x97,0x70,0xbc,0x85),_0x5496f8[_0x53b33d(-_0x2696c2._0x4219c5,_0x2696c2._0x3c83bc,-_0x2696c2._0x55973,-_0x2696c2._0x3d0434)](-0x1f*-0x6b+0x3a0+0x6b*-0x23)['json'](_0x2a4ef7);}}),router['delete'](_0x2ce8db(0x9d,0x115,0x9f,0xe5)+_0x2ce8db(0x96,0x128,0xdc,0xdd),requireAuth,requireAdmin,async(_0x599874,_0x5d0928)=>{const _0x937d6={_0x46aff3:0x1e3,_0x195d53:0x205,_0x55482f:0x1b9,_0x1fc697:0x264,_0x4744f7:0x236,_0x267639:0x28e,_0x1dab3a:0x23f,_0x266826:0x483,_0x32b7ce:0x4ce,_0x2456da:0x469,_0x530995:0x27a,_0x1cd968:0x241,_0x4e2449:0x28b,_0x3cfeff:0x292,_0x166fc3:0x256,_0x30eadf:0x255,_0x454fa6:0x25c,_0x440c77:0x445,_0x3a4b7a:0x44e,_0x37712b:0x4a6,_0xc2839b:0x2a3,_0x225634:0x48a,_0x10cb5c:0x25a,_0x3d4815:0x22f,_0x567b5c:0x203,_0x366ff9:0x2e3,_0x38e13a:0x28c,_0x44b966:0x29d,_0x559d4a:0x23b,_0x42ee71:0x259,_0x16db6d:0x4c6,_0x5d2b79:0x482,_0x4e509e:0x4c8,_0x4091f7:0x4ca,_0x371dbe:0x21e,_0x4f815a:0x239,_0x2fdcd4:0x2bd,_0xd64aa7:0x297,_0x33e632:0x2d3,_0x2f923c:0x2a3,_0x181055:0x1ec,_0x1f1039:0x265,_0x2094eb:0x226,_0x24bc62:0x1e8,_0x4b7b8d:0x4da,_0x2768a2:0x524,_0x467685:0x4d1,_0xd88629:0x1fb,_0x503f3a:0x4da,_0x550d8a:0x502,_0x555b4c:0x490,_0x48877c:0x284,_0x4ffbf7:0x240,_0x22909f:0x27b},_0x5774a0={_0x38bcac:0x4ba,_0x24057f:0x168},_0x3f5a29={_0x440085:0x292,_0x361c5e:0x1dc,_0x5c23e7:0xd3},_0x363bcc={'SGiYp':function(_0x43d614){return _0x43d614();},'hpxsq':function(_0x9fdeac,_0x1905b8){return _0x9fdeac!==_0x1905b8;},'EVkOY':_0x5f9d1b(0x25a,_0x937d6._0x46aff3,_0x937d6._0x195d53,_0x937d6._0x55482f),'iDRud':_0x5f9d1b(0x26b,_0x937d6._0x1fc697,0x25d,0x2ab)+_0x5f9d1b(0x1e4,0x1fd,_0x937d6._0x4744f7,0x211),'ylgNQ':_0x5f9d1b(0x274,_0x937d6._0x267639,_0x937d6._0x1dab3a,0x273)+_0x1fe12c(_0x937d6._0x266826,_0x937d6._0x32b7ce,0x45c,0x44d),'OsEYH':_0x1fe12c(0x467,0x44f,0x4b0,_0x937d6._0x2456da)+'ked\x20succes'+_0x5f9d1b(0x2d7,_0x937d6._0x530995,0x298,0x279),'hFPBs':_0x5f9d1b(0x25b,_0x937d6._0x1cd968,_0x937d6._0x4e2449,_0x937d6._0x3cfeff)+_0x5f9d1b(_0x937d6._0x166fc3,0x221,0x20f,0x1b6)+'en'};function _0x5f9d1b(_0x59dbf2,_0x54ea9d,_0x3f4638,_0x589636){return _0x20f75b(_0x54ea9d,_0x3f4638-_0x3f5a29._0x440085,_0x3f4638-_0x3f5a29._0x361c5e,_0x589636-_0x3f5a29._0x5c23e7);}function _0x1fe12c(_0x45d1f2,_0x481961,_0x5f0105,_0x1e93d4){return _0x20f75b(_0x1e93d4,_0x45d1f2-_0x5774a0._0x38bcac,_0x5f0105-_0x5774a0._0x24057f,_0x1e93d4-0x1ba);}try{const {tokenId:_0x38db4e}=_0x599874['params'],_0x13b3a7=await revokeToken(_0x38db4e);if(!_0x13b3a7){if(_0x363bcc[_0x5f9d1b(0x22a,_0x937d6._0x30eadf,_0x937d6._0x454fa6,0x20f)](_0x363bcc[_0x1fe12c(0x46b,0x434,0x415,_0x937d6._0x440c77)],'AAFpY')){const _0x11c7d8={};return _0x11c7d8[_0x1fe12c(_0x937d6._0x3a4b7a,0x3f4,0x485,0x499)]=_0x363bcc[_0x5f9d1b(0x305,0x27b,0x2af,0x2f2)],_0x5d0928[_0x1fe12c(0x455,0x4a9,0x47e,_0x937d6._0x37712b)](0x11*-0x10f+0x1f1a+-0xb87)[_0x5f9d1b(0x274,0x250,0x280,_0x937d6._0xc2839b)](_0x11c7d8);}else{const _0x3776fd=_0x363bcc['SGiYp'](_0x3622ab);_0x31baa0[_0x1fe12c(0x4a8,_0x937d6._0x225634,0x495,0x47d)](_0x3776fd);}}const _0x1085cc={};_0x1085cc[_0x5f9d1b(_0x937d6._0x10cb5c,0x27d,0x273,0x272)]=_0x599874[_0x5f9d1b(0x258,_0x937d6._0x530995,_0x937d6._0x3d4815,_0x937d6._0x567b5c)]['id'],_0x1085cc[_0x5f9d1b(0x267,0x246,0x28f,_0x937d6._0x366ff9)+_0x5f9d1b(_0x937d6._0x38e13a,0x25c,_0x937d6._0x44b966,0x299)]=_0x599874[_0x5f9d1b(0x1fb,_0x937d6._0x559d4a,0x22f,_0x937d6._0x42ee71)][_0x1fe12c(0x475,0x4b6,_0x937d6._0x16db6d,0x42c)],_0x1085cc[_0x1fe12c(_0x937d6._0x5d2b79,_0x937d6._0x4e509e,0x474,_0x937d6._0x4091f7)]=_0x38db4e,logger['info'](_0x363bcc[_0x5f9d1b(0x1f9,0x1e5,_0x937d6._0x371dbe,_0x937d6._0x4f815a)],_0x1085cc);const _0x5c310b={};_0x5c310b[_0x5f9d1b(0x251,_0x937d6._0x2fdcd4,_0x937d6._0xd64aa7,0x26e)]=_0x363bcc[_0x5f9d1b(_0x937d6._0x33e632,0x291,_0x937d6._0x2f923c,0x2ca)],_0x5d0928['json'](_0x5c310b);}catch(_0x1d7472){logger[_0x5f9d1b(_0x937d6._0x181055,_0x937d6._0x1f1039,_0x937d6._0x2094eb,_0x937d6._0x24bc62)](_0x363bcc[_0x1fe12c(_0x937d6._0x4b7b8d,0x532,_0x937d6._0x2768a2,_0x937d6._0x467685)],_0x1d7472);const _0x59d5a9={};_0x59d5a9[_0x5f9d1b(_0x937d6._0xd88629,0x228,_0x937d6._0x2094eb,0x21f)]=_0x363bcc[_0x1fe12c(_0x937d6._0x503f3a,_0x937d6._0x550d8a,_0x937d6._0x555b4c,0x515)],_0x5d0928[_0x5f9d1b(_0x937d6._0x48877c,_0x937d6._0x4ffbf7,0x22d,_0x937d6._0x22909f)](-0xcc5+0x1605+0x4*-0x1d3)['json'](_0x59d5a9);}});export default router;
1
+ (function(_0x44ec5a,_0x4be0b1){const _0x218d4d={_0x45ff0c:0x355,_0x1d5fd5:0x2ed,_0x11e7e1:0x9a,_0x459d83:0xd5,_0x3630c7:0x110,_0x13d283:0xfb,_0x1a2cc4:0x368,_0x426961:0x15f,_0x23a135:0x11f,_0x418060:0x15c,_0xd494f2:0x140,_0x4eaaff:0x111,_0x1e9dcc:0xe2,_0x4c17ae:0xe0,_0x32161d:0x50,_0x2bf184:0x8f,_0x19d0ac:0x105,_0x4aa756:0x101,_0x497df6:0x109,_0xa0866b:0x102,_0x45cbf1:0x321,_0x4ddb95:0x2f6,_0x549f0f:0x10e,_0x13e445:0x10d},_0x1b8272={_0x9738bb:0x15e},_0x559b45={_0x29f9ff:0x2b4};function _0x24fbfe(_0x59998a,_0x4fbf62,_0x4ea535,_0x367625){return _0x208b(_0x4fbf62- -_0x559b45._0x29f9ff,_0x367625);}const _0x396181=_0x44ec5a();function _0x2c0559(_0x39566e,_0x33d816,_0x2c3dfc,_0x27f0a7){return _0x208b(_0x27f0a7-_0x1b8272._0x9738bb,_0x33d816);}while(!![]){try{const _0x41c316=parseInt(_0x2c0559(_0x218d4d._0x45ff0c,0x311,_0x218d4d._0x1d5fd5,0x315))/(-0x17b*0xa+-0x47d+0x17c*0xd)+-parseInt(_0x24fbfe(-_0x218d4d._0x11e7e1,-_0x218d4d._0x459d83,-_0x218d4d._0x3630c7,-_0x218d4d._0x13d283))/(0x1a45+0x1079*0x1+0x2*-0x155e)+-parseInt(_0x2c0559(0x343,_0x218d4d._0x1a2cc4,0x365,0x356))/(-0x1*0xc77+0x17*-0x45+0x12ad)+parseInt(_0x24fbfe(-_0x218d4d._0x426961,-_0x218d4d._0x23a135,-_0x218d4d._0x418060,-_0x218d4d._0xd494f2))/(-0x257c+-0xb10+-0x378*-0xe)*(-parseInt(_0x24fbfe(-0xd1,-_0x218d4d._0x4eaaff,-_0x218d4d._0x1e9dcc,-_0x218d4d._0x4c17ae))/(-0x1*0x201d+0x526*0x7+-0x3e8))+-parseInt(_0x24fbfe(-_0x218d4d._0x32161d,-_0x218d4d._0x2bf184,-0x74,-0x3a))/(-0x35*-0x49+0xafb+0x1*-0x1a12)+parseInt(_0x24fbfe(-_0x218d4d._0x19d0ac,-0xfb,-0xab,-_0x218d4d._0x4aa756))/(-0x1fb1+0x25e1*0x1+-0x53*0x13)*(parseInt(_0x24fbfe(-_0x218d4d._0x497df6,-0xf5,-0xa2,-_0x218d4d._0xa0866b))/(-0x69a+-0x35b*-0x8+-0x1436))+-parseInt(_0x2c0559(_0x218d4d._0x45cbf1,0x2d3,_0x218d4d._0x4ddb95,0x2fe))/(-0x6c*0x42+0x1*0x167f+0x35*0x1a)*(-parseInt(_0x24fbfe(-_0x218d4d._0x549f0f,-_0x218d4d._0x13e445,-0xc6,-0x127))/(-0xe*0x15b+0x4*0x919+-0x8b0*0x2));if(_0x41c316===_0x4be0b1)break;else _0x396181['push'](_0x396181['shift']());}catch(_0xfc08ae){_0x396181['push'](_0x396181['shift']());}}}(_0x1749,-0x9*0x1cf5d+-0xf43dc+0x1*0x2bb72f));import _0x2b9143 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';function _0x208b(_0x568128,_0x34fe1c){_0x568128=_0x568128-(0xfda+-0x1836+-0x27*-0x41);const _0x204abf=_0x1749();let _0x10b65b=_0x204abf[_0x568128];if(_0x208b['rjXIAG']===undefined){var _0x4e1250=function(_0x140106){const _0x2c1fbb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10d1d1='',_0x2afeae='';for(let _0x4a8f93=-0x1*-0x24a6+0xb14*0x2+-0x1a*0x243,_0x20ca80,_0x36539b,_0x4ba2b3=0x4*-0x28d+-0x2*0xd01+0xce*0x2d;_0x36539b=_0x140106['charAt'](_0x4ba2b3++);~_0x36539b&&(_0x20ca80=_0x4a8f93%(-0x92*-0x3f+-0x1*0x28f+-0x1*0x215b)?_0x20ca80*(-0xb9c+0x1*-0xd7+0xcb3)+_0x36539b:_0x36539b,_0x4a8f93++%(0x6*-0x323+-0xc*0x19c+0x26*0x101))?_0x10d1d1+=String['fromCharCode'](0x2e8*0x1+0x6a*-0x1+0x17f*-0x1&_0x20ca80>>(-(-0x1*0x717+-0x1869+0xfc1*0x2)*_0x4a8f93&0x1ad6*0x1+0x1*0x8f3+-0x23c3)):0x66b+-0x87*-0x4+-0x887){_0x36539b=_0x2c1fbb['indexOf'](_0x36539b);}for(let _0x19d02f=0xb6f*-0x3+0x2a*-0x71+0x34d7,_0x1edc86=_0x10d1d1['length'];_0x19d02f<_0x1edc86;_0x19d02f++){_0x2afeae+='%'+('00'+_0x10d1d1['charCodeAt'](_0x19d02f)['toString'](-0x12d3*0x1+-0x1b10+0x2df3))['slice'](-(0x985*-0x1+0x1*-0x97+0xa1e));}return decodeURIComponent(_0x2afeae);};_0x208b['SkBydr']=_0x4e1250,_0x208b['BZvooU']={},_0x208b['rjXIAG']=!![];}const _0x20cbe3=_0x204abf[-0xc5d*-0x1+0x11d*-0x13+-0xf*-0x96],_0x1614d4=_0x568128+_0x20cbe3,_0x436ec6=_0x208b['BZvooU'][_0x1614d4];return!_0x436ec6?(_0x10b65b=_0x208b['SkBydr'](_0x10b65b),_0x208b['BZvooU'][_0x1614d4]=_0x10b65b):_0x10b65b=_0x436ec6,_0x10b65b;}function _0x1749(){const _0x4f3e23=['wu14r0u','Aw9Uihn0yxr1CW','ugfZC3DVCMqGDa','zwqGC3vJy2vZCW','B3vUza','nJy3odeYnKziuLL6uq','A3LQEe8','DMfIzxi','DxnLCM5HBwu','rLjQDhC','uM91DgvY','DxnLCKLK','CgfZC3DVCMqGyq','tu5otfm','DgfYz2v0vxnLCG','CxrhC1e','B2TLBKLK','DcbJB25MAwD1CG','y29UzMLNDxjLza','CMvZzxq','BMSGBwfUDwfSBa','ywrTAw5vC2vYBG','rMHeD2q','yxjHy3rLCNm','yM9KEq','uwL4DgK','lIbqBgvHC2uGyW','C2vUzcbWyxnZDW','yvbHAMq','Aw5MBW','zePyt24','p3rVA2vUpq','uwLLCeq','mtCYmdK0mgfQuevizG','ig9YicjYzxnLDa','yuvIDwK','zxr1Ca','C2z1BgX5','t2fOyxi','DKDvD20','B3jKigvTywLS','rerZsKy','u2jWwum','zvvsquO','mJD3sgruDwS','BMfTzq','zxnLDa','mtvpCMruqNO','CxvLCNK','zxqGC3vJy2vZCW','z2v0igvTywLSia','otq2mJaYmgvIuxfSzG','vfaGzw52AxjVBG','ANnVBG','vxHgvg4','zxPgzfi','s2nLC0q','ALfYBuS','C3DVCMqUAhrTBa','ywrTAw5jza','zKftyKm','DhLWzq','CgfZC3DVCMqTCW','y29UzMLNihn0yq','zg5wqvi','AMfZvhe','nYbKyxLZ','mtm0nJu0nuDPru56Ea','vxnLCIbUB3qGzG','nZm1yu1SBg9z','ihjLCxvPCMvK','A2vU','EeToC2W','zgvSzxrL','EvPJyKK','mta1otjPvwvAu24','z2v0ihvZzxiGDa','ugfZC3DVCMqGCW','y3zVvum','l3zHBgLKyxrLlq','z2v0','l3rVA2vUCY86Dq','ChrOv1y','BwvZC2fNzq','Dg9Rzw5Z','ENzAyui','DhvZ','z1rYsM8','zxHWAxjLC0LU','Dg9Rzw4','Cg9ZDa','u01uucbPCYbUBW','B2XOz2G','zw1HAwXfCNjVCG','DMfSAwq','rw1HAwWGBM90ia','EuPND1y','AKDyrfe','zxHWAxjLC19HDa','rgvJEe8','l2vTywLSlwnVBG','CgfYyw1Z','yMXLCYb0BYbZzq','C2v0DxbvCMW','DMfSAwrHDguGDa','D1POt08','u1Lgq08','nJG4otyWB0DszLfX','zgHgsuu','vgL0AKK','Cxb1AvK','C2vUzcbLBwfPBa','u3Dbt2m','B3b5ihrOzsbSAq','C2v0Dxa','t2DNEfC','B2TLBG','vg9Rzw4GCMv2BW','we91wLy','AuHqDxm','C2v0ihbHC3n3BW','tMzgwgO','l3rVA2vUCY86Da','B2TLBNm','DxnLCG','ugfZC3DVCMqGBq','re1nv00','C2vUzevTywLS','yw1L','BLHMy0e','Aw5JBhvKzxm','vxnLCIbjrcbPCW','mJmZnZa2ouT5AMrpqW','CMv2B2TLihrVAW','q2vKz1i','zxr1CcbLBwfPBa','u2jlv08','zxqGDMLHihrVAW','zMLN','CMuGCMvXDwLYzq','qxLXs2O','zwqUifbSzwfZzq','zNvSBhK','vKLwB0K','C3rHDhvZ','DLj6zg0','DgvTCgXHDgu','y29UzMLNDxjHDa','BwvUDcb2yxjPyq','AersquK','C3vIAMvJDa','Dg9Rzw5jza','zw1HAwW','B2TLBIbJCMvHDa','Dg9Rzw5uExbL','rwnizve','zgTKrfi','AwLlqui','CgfZC3DVCMqTCG','vg9Rzw4Gyw5Kia','C2vYswq','y3jLyxrLihbHCW','twHUte0','zxjYB3i','uwTOvum','AwWGC2vUDcb0BW','rMfPBgvKihrVia','zuvjEvK','DuXvCLe','qKXIBw8','BgvUz3rO','zw1HAwXtzw50'];_0x1749=function(){return _0x4f3e23;};return _0x1749();}function _0x28a1ec(_0x420042,_0x5d3676,_0x569408,_0x3b41a1){return _0x208b(_0x420042- -0x17b,_0x569408);}import{renderTemplate}from'../lib/emailTemplates.js';const router=_0x2b9143[_0x2d037f(0x5c2,0x5a2,0x60e,0x60d)]();router['get'](_0x28a1ec(0x5d,0x79,0x80,0x5d)+_0x28a1ec(0x83,0x46,0x62,0x97),requireAuth,requireAdmin,async(_0x2b27f9,_0x1f5d39)=>{const _0x539402={_0x21f4b9:0x571,_0x30ee3c:0x567,_0x53320c:0x261,_0xf0d6f7:0x246,_0x5ddce1:0x297,_0x2e36c4:0x296,_0x34bc24:0x26c,_0x4ef6f9:0x5c1,_0x86b7e:0x310,_0x560a32:0x2cd,_0x69d030:0x2df,_0x5835c7:0x5a8,_0x494542:0x5c7,_0xece564:0x574,_0x14b26b:0x525,_0x514de0:0x543,_0x645aad:0x57c,_0x2c4607:0x57d,_0x1743ed:0x550,_0x536f52:0x271,_0x34a44b:0x22b,_0x4f3eb2:0x25a,_0xeba333:0x27c,_0x2d886e:0x560,_0x2e108d:0x591,_0x33dd7b:0x588,_0x2de48d:0x2ce,_0x15a94e:0x2a7,_0x399bd2:0x2fc,_0x1ca557:0x301,_0x594195:0x2be,_0xd3bab7:0x285,_0x5507cc:0x272,_0x566a70:0x2da,_0x464313:0x2f7,_0x1f69e1:0x25f,_0x1902d8:0x250,_0x396935:0x28e,_0x5c4ef8:0x22c,_0x462a8f:0x576,_0x223765:0x5b3,_0x5bbff1:0x584,_0x52d310:0x546,_0x2fdac4:0x56b,_0x559b3a:0x22d,_0x20b08c:0x252,_0x2d5522:0x211,_0x46ed39:0x228,_0x1227a2:0x25f,_0x361f79:0x285,_0x48a198:0x284,_0x105f8b:0x545,_0x4fc70a:0x2c8,_0x5e7c7e:0x279,_0x8ef8aa:0x598,_0x51cff6:0x5b4,_0x468f67:0x5e5,_0x1f1552:0x217,_0x3a3765:0x517,_0x40b5d7:0x556,_0x50b51b:0x286,_0x327d3f:0x284,_0x535230:0x26c,_0x33ae00:0x29e,_0x307fa7:0x5e2,_0x3d5761:0x5a4,_0x23ba83:0x5d0,_0x5b7405:0x5e6,_0x3a48c7:0x5a1,_0x35fe41:0x590,_0x3a9161:0x4f7,_0x520b68:0x546},_0x165340={_0xc13399:0x5,_0x230c52:0x75,_0x12cabb:0x57},_0x4c7f31={_0x4accc:0x2f1,_0xe79ec0:0xf7,_0x3fe297:0x19e};function _0x23c3a(_0x39fb3e,_0x2ffeba,_0x3fe80b,_0x422bbc){return _0x2d037f(_0x2ffeba- -_0x4c7f31._0x4accc,_0x2ffeba-_0x4c7f31._0xe79ec0,_0x3fe80b-_0x4c7f31._0x3fe297,_0x3fe80b);}function _0x25d6c7(_0x328348,_0x25cbd2,_0x2a28b3,_0xf37a56){return _0x2d037f(_0x2a28b3-_0x165340._0xc13399,_0x25cbd2-_0x165340._0x230c52,_0x2a28b3-_0x165340._0x12cabb,_0xf37a56);}const _0x2c265f={'AyqKj':_0x25d6c7(0x59b,_0x539402._0x21f4b9,0x5b7,_0x539402._0x30ee3c)+_0x23c3a(0x23d,0x267,_0x539402._0x53320c,_0x539402._0xf0d6f7)+_0x23c3a(_0x539402._0x5ddce1,_0x539402._0x2e36c4,0x24e,_0x539402._0x34bc24),'DDsJF':'User\x20not\x20f'+_0x25d6c7(0x5c0,0x56c,0x5c1,_0x539402._0x4ef6f9),'iHPus':_0x23c3a(_0x539402._0x86b7e,_0x539402._0x560a32,_0x539402._0x86b7e,_0x539402._0x69d030),'BLbmo':function(_0x1ebca5){return _0x1ebca5();},'ezFdR':function(_0x40b08c,_0x331a38){return _0x40b08c===_0x331a38;},'SYFCO':'qCaHQ','yZcbI':'PaSOT','wZhOO':_0x25d6c7(_0x539402._0x5835c7,_0x539402._0x494542,0x5b7,_0x539402._0xece564)+_0x25d6c7(_0x539402._0x14b26b,0x592,_0x539402._0x514de0,0x550)+_0x25d6c7(_0x539402._0x645aad,_0x539402._0x2c4607,_0x539402._0x1743ed,0x584)+_0x23c3a(0x2a3,_0x539402._0x536f52,_0x539402._0x34a44b,0x274)};try{if(_0x23c3a(_0x539402._0x4f3eb2,0x254,0x240,_0x539402._0xeba333)===_0x2c265f[_0x25d6c7(_0x539402._0x2d886e,_0x539402._0x2e108d,_0x539402._0x33dd7b,0x588)]){_0x4a5d5b['error'](_0x2c265f[_0x23c3a(_0x539402._0x2de48d,_0x539402._0x15a94e,_0x539402._0x399bd2,0x275)],_0x314b41);const _0x41ccd7={};_0x41ccd7[_0x23c3a(_0x539402._0x1ca557,_0x539402._0x594195,_0x539402._0xd3bab7,_0x539402._0x5507cc)]=_0x2c265f[_0x23c3a(_0x539402._0x566a70,_0x539402._0x15a94e,0x2ca,0x280)],_0x37ec49[_0x23c3a(0x264,0x2ab,_0x539402._0x464313,_0x539402._0x1f69e1)](-0xf5b+0x3*-0x338+0x1af7)[_0x23c3a(0x25f,_0x539402._0x1902d8,_0x539402._0x396935,_0x539402._0x5c4ef8)](_0x41ccd7);}else{const _0x59b10f=_0x2c265f[_0x25d6c7(0x593,_0x539402._0x462a8f,0x5ba,_0x539402._0x223765)](getEmailConfigStatus);_0x1f5d39[_0x25d6c7(0x4f7,_0x539402._0x5bbff1,_0x539402._0x52d310,_0x539402._0x2fdac4)](_0x59b10f);}}catch(_0x3d40d8){if(_0x2c265f[_0x23c3a(_0x539402._0x559b3a,_0x539402._0x20b08c,_0x539402._0x2d5522,_0x539402._0x46ed39)](_0x2c265f[_0x23c3a(_0x539402._0x1227a2,_0x539402._0x361f79,_0x539402._0x48a198,0x23f)],_0x2c265f[_0x25d6c7(0x585,_0x539402._0x105f8b,0x55b,0x59f)])){const _0x3ab422={};return _0x3ab422[_0x23c3a(_0x539402._0x4fc70a,_0x539402._0x5e7c7e,0x27a,0x293)]=![],_0x3ab422[_0x25d6c7(_0x539402._0x8ef8aa,0x574,_0x539402._0x51cff6,_0x539402._0x468f67)]=_0x2c265f[_0x23c3a(0x22b,0x244,0x276,_0x539402._0x1f1552)],_0x5e89cc[_0x25d6c7(0x55a,_0x539402._0x3a3765,_0x539402._0x52d310,_0x539402._0x40b5d7)](_0x3ab422);}else{logger['error'](_0x2c265f[_0x23c3a(_0x539402._0x50b51b,_0x539402._0x327d3f,0x264,0x23e)],_0x3d40d8);const _0x3499f8={};_0x3499f8['error']=_0x23c3a(_0x539402._0x535230,0x2c1,0x2bb,_0x539402._0x33ae00)+'get\x20email\x20'+_0x25d6c7(0x5d8,_0x539402._0x307fa7,_0x539402._0x3d5761,0x5aa)+'ion\x20status',_0x1f5d39[_0x25d6c7(_0x539402._0x23ba83,_0x539402._0x5b7405,_0x539402._0x3a48c7,0x562)](0xbb0+0x68f*-0x3+-0x1fd*-0x5)[_0x25d6c7(_0x539402._0x35fe41,_0x539402._0x3a9161,_0x539402._0x520b68,0x51e)](_0x3499f8);}}});function _0x2d037f(_0xd8b782,_0x420fd5,_0x4d5d97,_0x97e263){return _0x208b(_0xd8b782-0x398,_0x97e263);}router[_0x28a1ec(0x53,0x79,0x6b,0x42)]('/create-to'+_0x2d037f(0x553,0x57c,0x4fe,0x526),requireAuth,requireAdmin,async(_0x14d249,_0xb03100)=>{const _0x5926e3={_0x153164:0x1af,_0xaddf81:0x202,_0x1cc83c:0x1ca,_0x1970c6:0x1f8,_0x31d18a:0x30,_0x5aeecb:0x73,_0x18426e:0x21,_0x3fae40:0x28a,_0x4d16ce:0x1b9,_0x564c92:0x1d4,_0x253892:0x72,_0x31d729:0x6f,_0x1004a7:0xd2,_0x122cd6:0x98,_0x18e651:0x71,_0x439c6a:0x1ee,_0x24eae5:0x49,_0x17998f:0x288,_0x53e13b:0x28b,_0x1f9efb:0x88,_0x28f293:0x3b,_0x41b30a:0x9f,_0x3759b0:0x22,_0x29cf08:0xf,_0x5a07b2:0x1d0,_0x56def1:0x18a,_0x139d47:0x1b4,_0x172c8a:0x200,_0x1faeda:0x82,_0xf68eeb:0x2,_0x273d36:0x25,_0x2b8495:0x234,_0x838173:0x1c6,_0x4a560d:0x217,_0x5a32e6:0x1f9,_0x4d9348:0xd1,_0x533de9:0x1ba,_0x1e52f0:0x1d1,_0xbd1c84:0x21b,_0x32ef05:0x236,_0x1c004d:0x205,_0x1468e6:0x59,_0x4c1aea:0x5b,_0x5e950b:0x29,_0x24b66b:0x92,_0x5891e6:0x297,_0x58c5ab:0x8b,_0x4b458b:0x1ba,_0x2f0e89:0x1ae,_0x4a25f8:0x1ac,_0x237adf:0x184,_0x2f399b:0x1cd,_0x7c56b9:0x17c,_0x3bb290:0x1f7,_0x3d1d76:0xca,_0xd2f76c:0x46,_0x5868f1:0x1f4,_0x7a827a:0x7a,_0x6b07f7:0xa4,_0x432ce2:0x9e,_0x3b1caa:0x1f,_0x23543c:0x26,_0x513e19:0xc,_0x597e82:0x1a,_0x1f1843:0x55,_0x49055a:0x28,_0x116786:0x7a,_0x5c3175:0x17,_0x39a75f:0x75,_0xd001a3:0x1cb,_0x7b8e07:0x213,_0x4463f2:0x1b3,_0x2e77e4:0x1f6,_0x234f1f:0x1be,_0x59aea1:0x2f,_0x4bb22b:0x1c9,_0x251e0c:0x1fb,_0x3336b1:0x8,_0x4b3567:0x3f,_0xf2dd30:0x223,_0x1826f2:0x5c,_0x53f3b1:0x7a,_0x5a2b66:0xc1,_0x15dee5:0x8a,_0x4917ef:0x55,_0x32e084:0x1bb,_0x1d95a9:0x18a,_0x299e24:0x237,_0x58b3bd:0x221,_0x6c9bc9:0x20c,_0x4f9c43:0x29f,_0x2dd49e:0x22f,_0x573cc0:0x20a,_0x53992a:0x37,_0x163f32:0x1c2,_0x479731:0xf0,_0x3c2669:0xbe,_0x2c583f:0x215,_0x3b5ea7:0x261,_0x53a648:0x293,_0x287142:0x1d4,_0xc11f59:0xb3,_0x148e19:0xb8,_0x92185c:0xa1,_0x147076:0x46,_0x3d3ac4:0x1b,_0x4030d5:0x24,_0x39b0f9:0x1,_0x4ac1ae:0x198,_0xaf180e:0x159,_0x541c4a:0x184,_0x5a1dea:0x7e,_0x2f2f39:0x1c,_0x3447e8:0x238,_0x34e980:0x224,_0x3bf596:0x1ce,_0x55935d:0x43,_0x466f92:0x32,_0x3ef3e1:0x10,_0x263234:0x6d,_0x1427d7:0x219,_0x10bdeb:0x64,_0x4be8c6:0x55,_0x417640:0x6d,_0x465e0c:0x1b2,_0x55edb5:0x51,_0x7628b:0x35,_0x27a26:0x61,_0x25c4a1:0x69,_0x5b95db:0x1e,_0x239037:0x2,_0x3e1e51:0x1b7,_0x12ed79:0x278,_0x261d7b:0x228,_0xe57dc7:0xcb,_0x14f32b:0x83,_0x3184b2:0x273,_0x42fe3d:0x23e,_0x12ab68:0x23f,_0x3a48ec:0x4d,_0x3bcbc9:0x66,_0xec3b42:0x88,_0x56b1a2:0x22d,_0x4e269f:0x23b,_0x44ae82:0x21c,_0x336ba2:0x259,_0x1b7206:0x205,_0x2fa875:0x172,_0xe3daa4:0x1cc,_0x1fe034:0x1e3,_0x15b847:0x20e,_0x253d3e:0x203,_0x287a07:0x78,_0x2814ab:0x56,_0x3f6e9d:0x1f7,_0x50735c:0x19a,_0x5f5c27:0x1c4,_0x1594c7:0x50,_0x5492b0:0x79,_0x37b92e:0x7a,_0x4bfea7:0x27,_0x147a53:0x192,_0x28108d:0x1c5,_0x21b48d:0x1e3,_0x516d52:0x1db,_0x46601c:0x17,_0x23d13b:0x53,_0x15a550:0x19,_0x420978:0x6b,_0x7b6dc4:0x9e,_0x47ce12:0xcc,_0x5143f4:0xc3,_0x3cd36b:0xa8,_0x20d919:0x7d,_0x463f30:0x27,_0x346d06:0x21c,_0x493d4e:0x211,_0x457741:0x206,_0x29bf5e:0x21f,_0x21bfda:0x228,_0x3af9c1:0x21d,_0x1c9a65:0x1d9,_0x356e93:0x20f,_0x1b246e:0x222,_0x5ac078:0x16b,_0x83c500:0x54,_0x36e8bd:0x24c,_0x28dcc0:0x23f,_0x54e25b:0x290,_0x472a68:0x57,_0x4b360e:0xcd,_0x4dc8d7:0xe4,_0x1de7ea:0x298,_0x174028:0x256,_0x25b2de:0x244,_0x276d48:0x181,_0x583752:0x19b,_0x353932:0x1a2,_0x200b5b:0x86,_0x15b4d9:0x52,_0x17ebb6:0xdc,_0x10caff:0xa2,_0x34f641:0x3,_0x5977c4:0x63,_0x2bb60a:0x10,_0x55755e:0x43,_0x5a2fb3:0x8d,_0x1dd483:0x6d,_0x2c1d86:0x1f0,_0x7be31:0x1b6,_0x27d8e9:0x1c7,_0x1802b4:0x7a,_0x223452:0x6a,_0x44d98d:0x5e},_0x2860da={_0x255f47:0x197},_0x5e65d6={_0x1aecf1:0x522,_0x1045fa:0x17b,_0x13cfad:0x1bc},_0x382811={'OggxW':function(_0x37f0b1,_0x4fad11){return _0x37f0b1!==_0x4fad11;},'UxFTn':_0x367ecd(_0x5926e3._0x153164,0x1b8,_0x5926e3._0xaddf81,_0x5926e3._0x1cc83c),'SbpYC':_0x367ecd(0x22f,0x234,0x213,_0x5926e3._0x1970c6)+_0x595673(_0x5926e3._0x31d18a,_0x5926e3._0x5aeecb,0x12,-_0x5926e3._0x18426e),'dhFIE':_0x367ecd(_0x5926e3._0x3fae40,0x242,0x24f,0x284),'dJXOn':function(_0x47edda,_0x377902){return _0x47edda(_0x377902);},'QiepD':_0x367ecd(_0x5926e3._0x4d16ce,0x197,_0x5926e3._0x564c92,0x1d6)+_0x595673(0x9a,_0x5926e3._0x253892,_0x5926e3._0x31d729,_0x5926e3._0x1004a7),'rmexZ':function(_0x30b42f,_0x39d099,_0x189f33){return _0x30b42f(_0x39d099,_0x189f33);},'kzLmr':_0x595673(_0x5926e3._0x122cd6,_0x5926e3._0x18e651,0xc4,0x80)+_0x367ecd(0x255,0x24f,0x229,_0x5926e3._0x439c6a)+'ed','TitjI':function(_0x558114){return _0x558114();},'eURAJ':_0x595673(_0x5926e3._0x24eae5,0x91,0x93,0x6b)+_0x367ecd(_0x5926e3._0x17998f,_0x5926e3._0x53e13b,0x24e,0x230),'vGUwm':_0x595673(_0x5926e3._0x1f9efb,_0x5926e3._0x28f293,0x56,_0x5926e3._0x41b30a)+_0x595673(0x18,_0x5926e3._0x3759b0,-_0x5926e3._0x29cf08,0xe),'olhgh':_0x595673(0x28,0x61,-0x9,0x55)+_0x367ecd(_0x5926e3._0x5a07b2,_0x5926e3._0x56def1,_0x5926e3._0x139d47,_0x5926e3._0x172c8a),'XOuZV':function(_0x288c37,_0x26158a,_0x592f41){return _0x288c37(_0x26158a,_0x592f41);},'dkdDR':_0x595673(0x37,_0x5926e3._0x1faeda,-_0x5926e3._0xf68eeb,_0x5926e3._0x273d36)+_0x367ecd(_0x5926e3._0x2b8495,_0x5926e3._0x838173,_0x5926e3._0x4a560d,_0x5926e3._0x5a32e6)+'\x20sent','DecxO':_0x595673(0x90,0x76,_0x5926e3._0x4d9348,0x3f)+_0x367ecd(_0x5926e3._0x533de9,_0x5926e3._0x1e52f0,0x1ab,0x190)+'ord\x20email','xafpG':_0x367ecd(0x288,_0x5926e3._0xbd1c84,_0x5926e3._0x32ef05,_0x5926e3._0x1c004d)+_0x595673(_0x5926e3._0x1468e6,0x3,0x9b,0xc)+'.\x20Please\x20c'+_0x595673(_0x5926e3._0x4c1aea,_0x5926e3._0x5e950b,_0x5926e3._0x24b66b,0x40)+_0x367ecd(0x277,0x27a,0x250,_0x5926e3._0x5891e6)+'y.','Oahar':'Failed\x20to\x20'+_0x595673(_0x5926e3._0x58c5ab,0x5e,0xae,0xbf)+'sword\x20toke'+'n'};function _0x595673(_0x4b1699,_0xab15ff,_0x537367,_0x3d1c9d){return _0x2d037f(_0x4b1699- -_0x5e65d6._0x1aecf1,_0xab15ff-_0x5e65d6._0x1045fa,_0x537367-_0x5e65d6._0x13cfad,_0xab15ff);}function _0x367ecd(_0x348007,_0x18783,_0x57a920,_0x46ff65){return _0x28a1ec(_0x57a920-_0x2860da._0x255f47,_0x18783-0x47,_0x348007,_0x46ff65-0xd8);}try{if(_0x382811[_0x367ecd(0x1c8,_0x5926e3._0x4b458b,0x203,_0x5926e3._0x2f0e89)](_0x367ecd(0x1cc,0x202,_0x5926e3._0x4a25f8,_0x5926e3._0x237adf),_0x367ecd(_0x5926e3._0x2f399b,_0x5926e3._0x7c56b9,0x1ac,_0x5926e3._0x3bb290))){const _0x4477fe={};return _0x4477fe[_0x595673(0x8d,_0x5926e3._0x3d1d76,_0x5926e3._0xd2f76c,0x43)]=_0x367ecd(_0x5926e3._0x5868f1,0x1e0,0x213,0x1df)+'\x20required',_0x323fa4[_0x595673(_0x5926e3._0x7a827a,_0x5926e3._0x6b07f7,_0x5926e3._0x432ce2,0x30)](0x252c*-0x1+0x168f+0x102d*0x1)[_0x595673(_0x5926e3._0x3b1caa,-_0x5926e3._0x23543c,-0x2d,0x4d)](_0x4477fe);}else{const {userId:_0x325e47,type:type=_0x382811['UxFTn'],sendEmail:sendEmail=![]}=_0x14d249[_0x595673(_0x5926e3._0xf68eeb,-_0x5926e3._0x513e19,-0x2,_0x5926e3._0x597e82)];if(!_0x325e47){const _0x2f2c48={};return _0x2f2c48['error']=_0x382811[_0x595673(0x14,_0x5926e3._0x1f1843,_0x5926e3._0x49055a,-0xb)],_0xb03100[_0x595673(_0x5926e3._0x116786,0xba,0xca,0x40)](0x2304+-0x5e0*0x6+0x73*0x4)[_0x595673(_0x5926e3._0x3b1caa,-_0x5926e3._0x5c3175,_0x5926e3._0x39a75f,0x2)](_0x2f2c48);}if(![_0x382811[_0x367ecd(_0x5926e3._0xd001a3,_0x5926e3._0x7b8e07,0x1c6,_0x5926e3._0x4463f2)],_0x382811[_0x367ecd(0x223,_0x5926e3._0x2e77e4,0x1fc,_0x5926e3._0x234f1f)]][_0x595673(0x6c,_0x5926e3._0x59aea1,0x1c,0x83)](type)){const _0x61afc3={};return _0x61afc3['error']='Type\x20must\x20'+'be\x20\x22setup\x22'+_0x367ecd(_0x5926e3._0x4bb22b,_0x5926e3._0x251e0c,0x1b2,0x1ae)+'\x22',_0xb03100['status'](-0x7*0x107+0x1*-0x2105+0x29c6)['json'](_0x61afc3);}const _0x33ff8a=await _0x382811[_0x595673(_0x5926e3._0x3336b1,-0x3c,-_0x5926e3._0x4b3567,0x54)](findUserById,_0x325e47);if(!_0x33ff8a){const _0x1d3773={};return _0x1d3773[_0x367ecd(0x20a,_0x5926e3._0xf2dd30,0x233,0x217)]=_0x382811[_0x595673(0xa,_0x5926e3._0x1826f2,_0x5926e3._0x49055a,0x25)],_0xb03100[_0x595673(_0x5926e3._0x53f3b1,_0x5926e3._0x5a2b66,_0x5926e3._0x15dee5,_0x5926e3._0x4917ef)](0x1*0x1f73+-0x1c6f+-0x170*0x1)['json'](_0x1d3773);}const _0x371245=await _0x382811['rmexZ'](createPasswordToken,_0x325e47,type),_0x101eb4={};_0x101eb4[_0x367ecd(_0x5926e3._0x2f0e89,_0x5926e3._0x32e084,_0x5926e3._0xd001a3,_0x5926e3._0x1d95a9)]=_0x14d249[_0x367ecd(_0x5926e3._0x299e24,_0x5926e3._0x58b3bd,_0x5926e3._0x6c9bc9,0x1d1)]['id'],_0x101eb4[_0x367ecd(_0x5926e3._0x4f9c43,_0x5926e3._0x2dd49e,0x251,_0x5926e3._0x573cc0)+_0x595673(0x6a,0xc0,_0x5926e3._0x53992a,0xba)]=_0x14d249[_0x367ecd(0x22e,_0x5926e3._0x163f32,_0x5926e3._0x6c9bc9,0x1f3)][_0x595673(0x9e,_0x5926e3._0x479731,_0x5926e3._0x3c2669,0xac)],_0x101eb4[_0x367ecd(0x224,0x22a,0x24a,0x287)+'Id']=_0x325e47,_0x101eb4[_0x367ecd(_0x5926e3._0x2c583f,_0x5926e3._0x3b5ea7,0x24a,_0x5926e3._0x53a648)+_0x367ecd(0x1c6,0x203,0x1bd,_0x5926e3._0x287142)]=_0x33ff8a['username'],_0x101eb4[_0x595673(0x84,_0x5926e3._0xc11f59,_0x5926e3._0x148e19,_0x5926e3._0x92185c)]=type,_0x101eb4[_0x367ecd(0x23e,0x1ef,0x20f,0x1ba)]=sendEmail,logger[_0x595673(0x7,_0x5926e3._0x147076,_0x5926e3._0x3d3ac4,0x56)](_0x382811['kzLmr'],_0x101eb4);const _0x4125d6=getRequestBaseUrl(_0x14d249),_0x37636a=_0x4125d6+('/setup-pas'+_0x595673(_0x5926e3._0x4030d5,0x7,_0x5926e3._0x39b0f9,0x5c)+_0x367ecd(_0x5926e3._0x4ac1ae,_0x5926e3._0xaf180e,_0x5926e3._0x153164,_0x5926e3._0x541c4a))+_0x371245[_0x595673(0x43,_0x5926e3._0x5a1dea,_0x5926e3._0x18e651,_0x5926e3._0x2f2f39)],_0x1699d4={};_0x1699d4['id']=_0x371245['id'],_0x1699d4[_0x367ecd(_0x5926e3._0x3447e8,_0x5926e3._0x34e980,0x1e9,_0x5926e3._0x3bf596)]=_0x371245[_0x595673(_0x5926e3._0x55935d,_0x5926e3._0x466f92,0x1d,-0x12)],_0x1699d4[_0x595673(0x27,0x33,-_0x5926e3._0x3ef3e1,_0x5926e3._0x263234)]=_0x371245[_0x367ecd(0x1f6,_0x5926e3._0x1427d7,0x1cd,0x17b)],_0x1699d4[_0x595673(0x4c,_0x5926e3._0x10bdeb,_0x5926e3._0x4be8c6,_0x5926e3._0x417640)]=_0x371245[_0x367ecd(0x232,0x1e6,0x1f2,_0x5926e3._0x465e0c)],_0x1699d4[_0x595673(_0x5926e3._0x55edb5,_0x5926e3._0x7628b,_0x5926e3._0x24b66b,0x4e)]=_0x37636a;const _0xc06d2c={};_0xc06d2c['id']=_0x33ff8a['id'],_0xc06d2c['username']=_0x33ff8a[_0x595673(_0x5926e3._0x432ce2,_0x5926e3._0x27a26,0xdc,_0x5926e3._0x25c4a1)],_0xc06d2c[_0x595673(_0x5926e3._0x5c3175,-_0x5926e3._0x5b95db,-_0x5926e3._0x239037,0x57)]=_0x33ff8a[_0x367ecd(_0x5926e3._0x3e1e51,0x1ff,0x1bd,0x1ca)],_0xc06d2c[_0x367ecd(_0x5926e3._0x12ed79,0x270,_0x5926e3._0x261d7b,0x276)]=_0x33ff8a[_0x367ecd(0x23a,0x25f,0x228,0x1e8)];const _0x4833f6={};_0x4833f6['message']=_0x595673(0x98,_0x5926e3._0x58c5ab,0xd9,_0x5926e3._0xe57dc7)+_0x595673(_0x5926e3._0x14f32b,0x93,0x8a,0x4b)+_0x367ecd(_0x5926e3._0x3184b2,_0x5926e3._0x42fe3d,_0x5926e3._0x12ab68,0x28d)+'fully',_0x4833f6[_0x595673(0x43,_0x5926e3._0x53992a,-0xf,_0x5926e3._0x3a48ec)]=_0x1699d4,_0x4833f6[_0x595673(_0x5926e3._0x3bcbc9,_0x5926e3._0xec3b42,0x2f,0x76)]=_0xc06d2c,_0x4833f6[_0x367ecd(_0x5926e3._0x56b1a2,0x1fb,_0x5926e3._0x4e269f,0x24d)]=![];const _0x3924b2=_0x4833f6;if(sendEmail){if(!_0x382811[_0x367ecd(0x1fa,_0x5926e3._0x44ae82,0x1fd,0x237)](isEmailConfigured)){const _0x4460fe={};return _0x4460fe[_0x367ecd(0x1e5,_0x5926e3._0x336ba2,0x233,_0x5926e3._0x1b7206)]=_0x382811[_0x367ecd(0x1fc,_0x5926e3._0x2fa875,_0x5926e3._0x32e084,_0x5926e3._0x541c4a)],_0x4460fe[_0x367ecd(0x1e0,_0x5926e3._0xe3daa4,_0x5926e3._0x1fe034,0x1c5)]=_0x367ecd(0x1eb,_0x5926e3._0x15b847,0x1eb,_0x5926e3._0x253d3e)+_0x595673(0xa7,0xf5,_0x5926e3._0x287a07,_0x5926e3._0x2814ab)+_0x367ecd(0x1e7,_0x5926e3._0x3f6e9d,0x21d,0x1f8)+'\x20set\x20up\x20SM'+_0x367ecd(0x1fb,_0x5926e3._0x50735c,_0x5926e3._0x5f5c27,0x1a3)+_0x367ecd(0x1e5,0x24b,0x224,_0x5926e3._0x573cc0)+_0x595673(_0x5926e3._0x1594c7,0x12,_0x5926e3._0x5492b0,0x49)+'nd\x20emails.',_0xb03100[_0x595673(_0x5926e3._0x37b92e,0x83,_0x5926e3._0x1468e6,_0x5926e3._0x4bfea7)](-0xcf0+-0x3*-0x973+0x5*-0x2c5)[_0x367ecd(_0x5926e3._0x147a53,0x172,_0x5926e3._0x28108d,0x18c)](_0x4460fe);}try{const _0x2e31a3=type===_0x382811['dhFIE']?_0x382811[_0x367ecd(0x20a,_0x5926e3._0x21b48d,0x1b7,_0x5926e3._0x251e0c)]:_0x382811[_0x367ecd(0x196,_0x5926e3._0x516d52,0x1ec,0x1a2)],_0x5b7110={};_0x5b7110['userName']=_0x33ff8a[_0x595673(_0x5926e3._0x46601c,_0x5926e3._0x23d13b,-_0x5926e3._0x15a550,_0x5926e3._0x420978)],_0x5b7110[_0x595673(_0x5926e3._0x7b6dc4,_0x5926e3._0x47ce12,0x81,_0x5926e3._0x5143f4)]=_0x33ff8a[_0x595673(0x9e,_0x5926e3._0x3cd36b,0xea,0xd7)],_0x5b7110[_0x367ecd(0x214,_0x5926e3._0x299e24,0x1f7,0x20c)]=_0x37636a,_0x5b7110[_0x595673(0x42,_0x5926e3._0x58c5ab,0x55,_0x5926e3._0x20d919)]=_0x367ecd(0x195,0x1b1,0x1d2,0x1ce),_0x5b7110[_0x595673(_0x5926e3._0x463f30,0x67,0xb,_0x5926e3._0x287a07)]=type;const _0x4eb0f5=_0x5b7110,{subject:_0x571252}=_0x382811[_0x367ecd(_0x5926e3._0x346d06,_0x5926e3._0x493d4e,_0x5926e3._0x457741,_0x5926e3._0x29bf5e)](renderTemplate,_0x2e31a3,_0x4eb0f5),_0x224da3={};_0x224da3['to']=_0x33ff8a[_0x367ecd(0x25f,0x275,_0x5926e3._0x21bfda,_0x5926e3._0x3af9c1)],_0x224da3[_0x367ecd(0x1fe,_0x5926e3._0x1c9a65,0x226,_0x5926e3._0x356e93)]=_0x571252,_0x224da3[_0x367ecd(0x21c,0x204,_0x5926e3._0x1b246e,_0x5926e3._0x2dd49e)]=_0x2e31a3,_0x224da3['data']=_0x4eb0f5,await _0x382811[_0x367ecd(0x1be,0x1f7,0x1ae,_0x5926e3._0x5ac078)](sendTemplatedEmail,_0x224da3),_0x3924b2['emailSent']=!![],_0x3924b2[_0x595673(0x3d,_0x5926e3._0x83c500,0x91,-0xf)]=_0x367ecd(_0x5926e3._0x36e8bd,_0x5926e3._0x28dcc0,_0x5926e3._0x42fe3d,_0x5926e3._0x54e25b)+'oken\x20creat'+'ed\x20and\x20ema'+_0x595673(0x8f,0xac,_0x5926e3._0x472a68,_0x5926e3._0x4b360e)+'\x20'+_0x33ff8a['email'];const _0x5d607b={};_0x5d607b['to']=_0x33ff8a['email'],_0x5d607b['type']=type,_0x5d607b[_0x595673(_0x5926e3._0x7b6dc4,0xaf,_0x5926e3._0x4dc8d7,0xa2)]=_0x33ff8a[_0x367ecd(_0x5926e3._0x1de7ea,_0x5926e3._0x174028,_0x5926e3._0x25b2de,_0x5926e3._0x28dcc0)],logger[_0x367ecd(_0x5926e3._0x276d48,_0x5926e3._0x583752,0x1ad,_0x5926e3._0x353932)](_0x382811[_0x595673(_0x5926e3._0x200b5b,0x93,0x8e,_0x5926e3._0x15b4d9)],_0x5d607b);}catch(_0x22e7e2){logger[_0x595673(0x8d,_0x5926e3._0x17ebb6,0x88,0x8d)](_0x382811[_0x595673(_0x5926e3._0x3a48ec,_0x5926e3._0x10caff,_0x5926e3._0x20d919,0x8d)],_0x22e7e2),_0x3924b2[_0x595673(0x47,-_0x5926e3._0x34f641,_0x5926e3._0x5977c4,_0x5926e3._0x5977c4)]=_0x382811['xafpG'];}}_0xb03100['json'](_0x3924b2);}}catch(_0x339cc5){logger['error'](_0x382811[_0x595673(_0x5926e3._0x2bb60a,_0x5926e3._0x55755e,0x24,-0xb)],_0x339cc5);const _0x5e1364={};_0x5e1364[_0x595673(_0x5926e3._0x5a2fb3,_0x5926e3._0x1dd483,0x5b,0xbb)]=_0x382811[_0x367ecd(_0x5926e3._0x2c1d86,0x1f9,_0x5926e3._0x7be31,_0x5926e3._0x27d8e9)],_0xb03100[_0x595673(_0x5926e3._0x1802b4,_0x5926e3._0x223452,0x4d,_0x5926e3._0x44d98d)](0x5*-0x64f+0x9dc+0x17a3)['json'](_0x5e1364);}}),router[_0x2d037f(0x55c,0x5b2,0x58e,0x517)](_0x28a1ec(0x48,-0x2,-0x1,0x61)+_0x2d037f(0x565,0x50f,0x545,0x5b1),async(_0x31228f,_0x3b88e4)=>{const _0x381d26={_0x195eba:0x309,_0x1c1d76:0x2e5,_0x392d99:0x310,_0x4db96a:0x36f,_0x11f50c:0x352,_0x910445:0x2c3,_0xfd34c2:0x2ec,_0x399c46:0x27b,_0x3442ef:0x333,_0x3d6b1c:0x337,_0x40264b:0x2f0,_0x50793a:0x2db,_0x4307b8:0x2f9,_0x512a3a:0x309,_0x37b0f0:0x30d,_0xa1d2b6:0xba,_0x209e1a:0xa1,_0x43a7d9:0x8c,_0x4af168:0x2d9,_0x257790:0x31a,_0xd88713:0x326,_0xaa3f30:0x35f,_0x1545df:0x380,_0x24f5ef:0x8e,_0x16565c:0x78,_0xda0b03:0x358,_0x1b9697:0x366,_0x19e297:0x38c,_0x2c8fc2:0x357,_0x2fb46c:0x2bd,_0x28590e:0x119,_0x4466b6:0xc0,_0x2ea575:0x74,_0x5945ae:0x4c,_0xa8e2f7:0x5d,_0x2b727c:0xa1,_0x28c0f0:0xc8,_0x4358e6:0xf0,_0xbaa153:0x371,_0x4eecd2:0x353,_0x567613:0x32d,_0x595abf:0x54,_0x1f2479:0xad,_0x3ce90b:0x334,_0x128bf6:0x31b,_0x1d25e2:0xbc,_0x59c0a3:0x29d,_0x37e0ee:0x334,_0x2cd4b7:0x31a,_0xd7ff93:0x34d,_0x4bff21:0x18,_0x347516:0x98,_0x2535c:0xb9,_0x1f6c6a:0x6a,_0x32328b:0x71,_0x22ba9c:0x30e,_0x612a94:0x30b,_0x29e7d1:0x2c6,_0x35cddd:0x306,_0x2462f1:0x94,_0x36b832:0xd5,_0x10564c:0x107,_0x18bd2a:0x8f,_0x48e8ad:0x8b,_0x3b153f:0xb3,_0x2dc81c:0x305,_0x300ed1:0x315,_0x8e892f:0x32b,_0x28b40f:0x62,_0x277718:0x7c,_0x2d9370:0x81,_0x5592ea:0x10f,_0x2c6542:0xb6,_0x1924f8:0x2a0,_0x4e2390:0x2ef,_0x973ab9:0x2ba,_0xcad739:0x31c,_0x598d7b:0x392,_0x3c4cc0:0x62,_0x448d64:0x37,_0x4f4ab7:0x336,_0xa532f2:0x345,_0x5f0e61:0x39a,_0x2b2533:0x126,_0x970469:0xe2,_0x508d7b:0x4e,_0xe083be:0xd,_0x3c3ea3:0x5a,_0x1c578d:0x87,_0x3b67cf:0x311,_0x29feaf:0x2ef,_0x16ab09:0x2c5,_0x54a744:0x2a3,_0x5ac05e:0xa9,_0x187275:0xa3,_0x452cdb:0x5d,_0x4ec65e:0x62,_0x29d8f8:0xe,_0x335f26:0x41,_0x4c89ce:0x35a,_0x3135e6:0x2f1,_0x259f45:0xc2,_0x5f19a7:0x6f,_0x236cf9:0x2e6,_0x1fd7d8:0xe8,_0x2d02dc:0x387,_0xa24d9f:0x334,_0x2ee798:0x307,_0x546cce:0x359,_0x56c4:0xb5,_0x52c0bb:0xa3,_0x2cf8b8:0xda,_0x262638:0xd8,_0x451340:0x276,_0x1d6cde:0x2d2,_0x256059:0x2e7,_0x26c678:0x33d,_0x3cd482:0xa7,_0x243130:0x75,_0x1120b1:0xd7,_0x8a9a65:0x360,_0x51965d:0x2f8,_0x4ff2a4:0x7b},_0xc79b4f={_0x1ec8e1:0x47},_0x4e9501={_0x4a6f60:0x27b,_0x367053:0xef};function _0x4b9f8b(_0x122708,_0xf8b5a5,_0x38b8f7,_0x535ae1){return _0x2d037f(_0xf8b5a5- -_0x4e9501._0x4a6f60,_0xf8b5a5-0x15e,_0x38b8f7-_0x4e9501._0x367053,_0x38b8f7);}function _0x7b288b(_0x1c964f,_0x4b928d,_0x5b96cb,_0x5c6658){return _0x28a1ec(_0x4b928d-0x34,_0x4b928d-0x44,_0x5c6658,_0x5c6658-_0xc79b4f._0x1ec8e1);}const _0x23ec8a={'vRzdm':'Failed\x20to\x20'+_0x4b9f8b(0x2ec,_0x381d26._0x195eba,0x316,_0x381d26._0x1c1d76)+'rd','FhDwd':function(_0x52046e){return _0x52046e();},'QZBIc':_0x4b9f8b(_0x381d26._0x392d99,0x337,_0x381d26._0x4db96a,_0x381d26._0x11f50c)+_0x4b9f8b(0x2d5,_0x381d26._0x910445,_0x381d26._0xfd34c2,_0x381d26._0x399c46)+'configurat'+'ion\x20status','SbKWO':_0x4b9f8b(_0x381d26._0x3442ef,_0x381d26._0x3d6b1c,_0x381d26._0x40264b,0x33d)+_0x4b9f8b(_0x381d26._0x50793a,_0x381d26._0x4307b8,_0x381d26._0x512a3a,_0x381d26._0x37b0f0)+_0x7b288b(_0x381d26._0xa1d2b6,_0x381d26._0x209e1a,_0x381d26._0x43a7d9,0xbc),'jGXDQ':function(_0x217a5e,_0x232662){return _0x217a5e===_0x232662;},'gTrJo':'owtfn','vaber':_0x4b9f8b(0x300,_0x381d26._0x4af168,_0x381d26._0x257790,_0x381d26._0xd88713),'CyHUn':_0x4b9f8b(0x35a,_0x381d26._0x3442ef,_0x381d26._0xaa3f30,_0x381d26._0x1545df),'EcHeQ':'VCXRW','uLUrQ':function(_0x4f67bf,_0x233b0a){return _0x4f67bf(_0x233b0a);},'cUaXZ':function(_0x26572d,_0x4f7e70){return _0x26572d!==_0x4f7e70;},'hDRAI':'XTWHQ'};try{if(_0x23ec8a[_0x7b288b(0x8b,_0x381d26._0x24f5ef,_0x381d26._0x16565c,0x88)](_0x23ec8a[_0x7b288b(0xa3,0x84,0x62,0x86)],_0x23ec8a[_0x7b288b(0x130,0xe0,0xe7,0x8e)])){_0xea7e8d[_0x4b9f8b(_0x381d26._0xda0b03,0x334,_0x381d26._0x1b9697,0x310)](_0x4b9f8b(_0x381d26._0x19e297,0x337,_0x381d26._0x1545df,_0x381d26._0x2c8fc2)+_0x4b9f8b(_0x381d26._0x2fb46c,0x309,0x305,0x2fe)+'rd',_0x30f64a);const _0x424689={};_0x424689[_0x7b288b(0xab,0xd0,0x8a,_0x381d26._0x28590e)]=_0x23ec8a[_0x7b288b(0x7f,0xbe,0xf5,_0x381d26._0x4466b6)],_0x68b123['status'](-0x23ae+-0x1*-0x12eb+-0x1*-0x12b7)[_0x7b288b(0x65,0x62,0x7f,_0x381d26._0x2ea575)](_0x424689);}else{const {token:_0x544a13}=_0x31228f[_0x7b288b(_0x381d26._0x5945ae,_0x381d26._0xa8e2f7,0x39,0x30)];if(!_0x544a13){if(_0x23ec8a[_0x7b288b(0x4d,0x8e,0x4c,_0x381d26._0x2b727c)](_0x23ec8a['CyHUn'],_0x23ec8a[_0x7b288b(0xc4,_0x381d26._0x28c0f0,0x75,_0x381d26._0x4358e6)]))try{const _0x3ad6d6=_0x23ec8a[_0x4b9f8b(_0x381d26._0xbaa153,_0x381d26._0x4eecd2,0x36d,_0x381d26._0x567613)](_0x52a95a);_0x19895a[_0x7b288b(_0x381d26._0x595abf,0x62,0x4d,_0x381d26._0x1f2479)](_0x3ad6d6);}catch(_0xd1e510){_0x5b8aa9[_0x4b9f8b(0x36b,_0x381d26._0x3ce90b,_0x381d26._0x128bf6,0x352)](_0x7b288b(0xfe,0xd3,0xcd,_0x381d26._0x1d25e2)+_0x7b288b(0x5e,0x5f,0x28,0x91)+_0x4b9f8b(0x2c7,0x2d0,_0x381d26._0x59c0a3,0x2fa)+'tus',_0xd1e510);const _0x2345dd={};_0x2345dd[_0x4b9f8b(0x378,_0x381d26._0x37e0ee,_0x381d26._0x2cd4b7,_0x381d26._0xd7ff93)]=_0x23ec8a['QZBIc'],_0x2c914a[_0x4b9f8b(0x35d,0x321,0x367,0x31f)](-0x1*-0x260f+0x632*-0x5+0xd*-0x65)[_0x7b288b(_0x381d26._0x4bff21,0x62,0xe,_0x381d26._0x347516)](_0x2345dd);}else{const _0x155837={};return _0x155837[_0x7b288b(0xe3,0xd0,0xf7,_0x381d26._0x2535c)]='Token\x20is\x20r'+'equired',_0x155837[_0x7b288b(_0x381d26._0x1f6c6a,0x8b,_0x381d26._0x32328b,0x5f)]=![],_0x3b88e4[_0x4b9f8b(0x304,0x321,_0x381d26._0x22ba9c,_0x381d26._0x612a94)](0x1*0x51b+-0x116a+0x43*0x35)[_0x4b9f8b(0x2bc,_0x381d26._0x29e7d1,_0x381d26._0x35cddd,0x2bd)](_0x155837);}}const _0x3b43b1=await _0x23ec8a[_0x7b288b(_0x381d26._0x2462f1,_0x381d26._0x36b832,_0x381d26._0x10564c,_0x381d26._0x18bd2a)](validateToken,_0x544a13);if(!_0x3b43b1){const _0xc448cf={};return _0xc448cf[_0x7b288b(0x80,_0x381d26._0x48e8ad,_0x381d26._0x3b153f,0x7c)]=![],_0xc448cf['error']='Invalid\x20or'+'\x20expired\x20t'+_0x4b9f8b(0x342,_0x381d26._0x2dc81c,_0x381d26._0x300ed1,_0x381d26._0x8e892f),_0x3b88e4[_0x7b288b(0x80,_0x381d26._0x28b40f,_0x381d26._0x277718,_0x381d26._0x2d9370)](_0xc448cf);}const _0x40659f=await _0x23ec8a['uLUrQ'](findUserById,_0x3b43b1[_0x7b288b(0x134,0xe4,_0x381d26._0x5592ea,_0x381d26._0x2c6542)]);if(!_0x40659f){const _0x176bef={};return _0x176bef[_0x4b9f8b(_0x381d26._0x1924f8,_0x381d26._0x4e2390,0x2a5,_0x381d26._0x973ab9)]=![],_0x176bef[_0x7b288b(0xfa,0xd0,0x96,0x103)]='User\x20not\x20f'+_0x4b9f8b(_0x381d26._0xcad739,0x341,_0x381d26._0x598d7b,0x37d),_0x3b88e4[_0x7b288b(0x83,_0x381d26._0x3c4cc0,0x17,_0x381d26._0x448d64)](_0x176bef);}const _0x4ca3b8={};_0x4ca3b8[_0x4b9f8b(_0x381d26._0x4f4ab7,_0x381d26._0xa532f2,_0x381d26._0x5f0e61,0x375)]=_0x40659f[_0x7b288b(0xa1,0xe1,_0x381d26._0x2b2533,_0x381d26._0x970469)],_0x4ca3b8[_0x7b288b(0x27,0x5a,_0x381d26._0x508d7b,_0x381d26._0xe083be)]=_0x40659f[_0x7b288b(0x1f,_0x381d26._0x3c3ea3,0x5f,_0x381d26._0x1c578d)];const _0x5d0ec3={};_0x5d0ec3[_0x4b9f8b(_0x381d26._0x3b67cf,_0x381d26._0x29feaf,_0x381d26._0x16ab09,0x336)]=!![],_0x5d0ec3['type']=_0x3b43b1[_0x4b9f8b(0x2c4,0x2ce,0x322,_0x381d26._0x54a744)],_0x5d0ec3[_0x7b288b(_0x381d26._0x1f6c6a,_0x381d26._0x5ac05e,_0x381d26._0x187275,_0x381d26._0x452cdb)]=_0x4ca3b8,_0x3b88e4[_0x7b288b(0x26,_0x381d26._0x4ec65e,_0x381d26._0x29d8f8,_0x381d26._0x335f26)](_0x5d0ec3);}}catch(_0x5c9e52){if(_0x23ec8a['cUaXZ'](_0x23ec8a[_0x4b9f8b(0x363,0x326,_0x381d26._0x4c89ce,_0x381d26._0x3135e6)],_0x23ec8a[_0x7b288b(0x80,_0x381d26._0x259f45,0xb6,_0x381d26._0x5f19a7)])){_0x3785cc[_0x4b9f8b(_0x381d26._0x236cf9,_0x381d26._0x37e0ee,0x352,0x389)](_0x23ec8a[_0x7b288b(0xfc,0xb5,0xf0,_0x381d26._0x1fd7d8)],_0x324322);const _0xb6f197={};_0xb6f197[_0x4b9f8b(_0x381d26._0x2d02dc,_0x381d26._0xa24d9f,_0x381d26._0x2ee798,_0x381d26._0x546cce)]=_0x23ec8a[_0x7b288b(0xcb,_0x381d26._0x56c4,0x101,0xf2)],_0xb6f197[_0x7b288b(_0x381d26._0x52c0bb,0x8b,_0x381d26._0x2cf8b8,_0x381d26._0x262638)]=![],_0x2523e3['status'](0x2605*0x1+0x59*-0x2f+-0x13ba)[_0x4b9f8b(_0x381d26._0x451340,_0x381d26._0x29e7d1,0x2e2,_0x381d26._0x1d6cde)](_0xb6f197);}else{logger[_0x4b9f8b(_0x381d26._0x256059,_0x381d26._0x3ce90b,_0x381d26._0x26c678,0x335)](_0x23ec8a[_0x7b288b(_0x381d26._0x3cd482,0xb5,_0x381d26._0x243130,_0x381d26._0x1120b1)],_0x5c9e52);const _0x4d5cfa={};_0x4d5cfa[_0x4b9f8b(_0x381d26._0x8a9a65,0x334,_0x381d26._0x51965d,0x32b)]=_0x23ec8a[_0x7b288b(0x77,0xb5,0xf3,_0x381d26._0x5ac05e)],_0x4d5cfa[_0x7b288b(0x66,0x8b,_0x381d26._0x4ff2a4,0x3e)]=![],_0x3b88e4['status'](-0x1e4*0x1+0x10*0x1d2+-0x2*0xca4)[_0x7b288b(0x7c,0x62,0x99,0x13)](_0x4d5cfa);}}}),router[_0x2d037f(0x566,0x537,0x597,0x536)]('/setup',async(_0xdb49e2,_0x2aefd1)=>{const _0x55c57f={_0x5e68ea:0x104,_0x875a0b:0x157,_0x27feb1:0x159,_0x13b053:0x3af,_0x551281:0x30d,_0x52ad35:0x35e,_0x37fe5f:0x382,_0x3ca9fc:0x376,_0x12cb84:0x3b5,_0x4c84db:0x428,_0x4d5e83:0x171,_0x440037:0x190,_0x196a61:0x1bf,_0x5e22b8:0x3b8,_0x37ec95:0x38a,_0x11a486:0x376,_0xd7ee45:0x327,_0x4bfac5:0x197,_0x2c9d49:0x1ce,_0x1da7b4:0x30c,_0x3a64c0:0x35d,_0x40fa97:0x37e,_0x33273a:0x3e3,_0x113f67:0x1a2,_0x11a4ba:0x1d6,_0x4af987:0x125,_0x15919f:0x121,_0x5bac58:0x101,_0x2d2eb4:0x15e,_0x4cf342:0x126,_0x5022b4:0x3e7,_0x1c02a5:0x3fb,_0x51cdd9:0x3c2,_0x15bc37:0x402,_0x1441c9:0x12e,_0x5907d3:0x10b,_0x182824:0x3e9,_0x37a35d:0x3bf,_0x293d0e:0x3ce,_0x516388:0x3e2,_0x18a477:0x3e2,_0x425166:0x3f0,_0x42c997:0xc7,_0x2b3426:0x135,_0x5c0a15:0x420,_0xeefe5:0x425,_0x12e67d:0x18b,_0x42c67b:0x1a1,_0x3b7242:0x17a,_0x2cb322:0x15b,_0xf8a99c:0x11f,_0x47659a:0xcf,_0x58432d:0xd2,_0x508a7e:0x143,_0x22774b:0x34a,_0x64c9ff:0x3bc,_0xc186a0:0x183,_0x20f257:0x147,_0x59ac93:0x161,_0x13ed62:0x423,_0x12275b:0x3ed,_0x45022b:0x1b6,_0x48e72e:0x16b,_0x3fd662:0x13d,_0x45bd28:0x1a4,_0x578470:0x181,_0x1078ed:0x41f,_0x13fd50:0x10f,_0x12a18a:0x158,_0x16b78b:0x133,_0x2da0b4:0x165,_0x5bf3b8:0x3d7,_0x19c1bd:0x3fb,_0x1cbdc:0x333,_0x142ca8:0xf6,_0x324530:0x109,_0x5b13ba:0xce,_0x403ce1:0x167,_0x5ee2c9:0x149,_0x5d50e6:0x3b0,_0x40d439:0x1c8,_0x5d6067:0x14d,_0x418ae5:0xee,_0x32c8d7:0xd9,_0x15f662:0x123,_0x4a4393:0x3ed,_0x5a6cde:0x1ab,_0x203bfc:0x17a,_0xdbfce:0x1c9,_0x109a60:0x192,_0x4c6783:0x36f,_0x1a77a7:0x379,_0x53102:0x3c8,_0x3dc37f:0x397,_0x3d2e5e:0x398,_0x521df1:0x36b,_0x4e70d0:0x18a,_0x27af5e:0x1af,_0x4d60af:0x114,_0x56f351:0x187,_0x471719:0x42e,_0x4c8c22:0x1d3,_0x4abef5:0x19e,_0x148a39:0x13d,_0x54c014:0x14a,_0x4dc96f:0x37c,_0x544e67:0x3f2,_0xe73c92:0x3cd,_0x3e46ac:0x43b,_0x58a48b:0x3fb,_0x4f99a1:0x3f8,_0x41a6d0:0x339,_0x35a68e:0x364,_0x4dfea0:0x10a,_0x17fb53:0x155,_0x34d1dd:0x3d5,_0x2e7338:0x3c3,_0x51d2dc:0x391,_0x8c6d7c:0x38d,_0x57597f:0x371,_0x1f8c07:0x158,_0x1c0956:0x1ca,_0x1e9250:0x3f9,_0x673712:0xea,_0x41e823:0x137,_0x37c764:0x392,_0x444db6:0x3d4,_0x316644:0x3e5},_0x4fca95={_0x29371d:0x1c8,_0x1f3692:0x190},_0x11a599={_0x4c71a5:0xf1,_0x30c3bd:0x53,_0xf02b24:0x146},_0x52a9fc={'pthWV':'Failed\x20to\x20'+'send\x20passw'+_0x45ea6c(_0x55c57f._0x5e68ea,0x112,0xde,_0x55c57f._0x875a0b),'FwZiT':'Failed\x20to\x20'+_0x45ea6c(0x152,_0x55c57f._0x27feb1,0x161,0x16e)+_0x42139a(_0x55c57f._0x13b053,_0x55c57f._0x551281,_0x55c57f._0x52ad35,_0x55c57f._0x37fe5f)+_0x42139a(_0x55c57f._0x3ca9fc,0x3e0,_0x55c57f._0x12cb84,0x3ef)+_0x42139a(0x3f3,_0x55c57f._0x4c84db,0x404,0x42f)+'y.','QkhUC':_0x45ea6c(_0x55c57f._0x4d5e83,_0x55c57f._0x440037,_0x55c57f._0x196a61,0x1b9)+_0x42139a(_0x55c57f._0x5e22b8,_0x55c57f._0x37ec95,_0x55c57f._0x11a486,_0x55c57f._0xd7ee45)+_0x45ea6c(0x157,0x17d,0x191,0x1ca)+_0x45ea6c(0x1ca,_0x55c57f._0x4bfac5,_0x55c57f._0x2c9d49,0x142),'YMxGE':function(_0x53189c,_0xc78aeb){return _0x53189c||_0xc78aeb;},'MNNLS':_0x42139a(0x38e,_0x55c57f._0x1da7b4,_0x55c57f._0x3a64c0,_0x55c57f._0x40fa97),'seIff':_0x42139a(0x3ad,0x3ed,_0x55c57f._0x33273a,0x3fd)+_0x45ea6c(0x193,_0x55c57f._0x113f67,0x19f,_0x55c57f._0x11a4ba)+_0x42139a(0x390,0x389,0x3cf,0x3a1)+'d','nXfcA':_0x45ea6c(_0x55c57f._0x4af987,0x167,_0x55c57f._0x15919f,0x14f)+'ust\x20be\x20at\x20'+'least\x208\x20ch'+_0x45ea6c(0xb5,_0x55c57f._0x5bac58,0xd9,0xeb),'qpuiY':'Invalid\x20or'+'\x20expired\x20t'+_0x45ea6c(0x14a,_0x55c57f._0x2d2eb4,_0x55c57f._0x4cf342,0x110),'VIVoI':function(_0x2f065b,_0x1586f3){return _0x2f065b(_0x1586f3);},'aEbui':function(_0x455d80,_0x1e8b06){return _0x455d80!==_0x1e8b06;},'KcesD':_0x42139a(_0x55c57f._0x5022b4,_0x55c57f._0x1c02a5,_0x55c57f._0x51cdd9,_0x55c57f._0x15bc37),'tLEFb':_0x45ea6c(0x14c,_0x55c57f._0x1441c9,0x123,_0x55c57f._0x5907d3)+_0x42139a(_0x55c57f._0x182824,0x39f,0x3f4,_0x55c57f._0x37a35d),'PBtoz':function(_0x248583,_0x237384,_0xfa0967){return _0x248583(_0x237384,_0xfa0967);},'zvZaB':function(_0x2394e3,_0x219aa0){return _0x2394e3(_0x219aa0);},'cvoUC':_0x42139a(_0x55c57f._0x293d0e,0x3e2,0x3ea,_0x55c57f._0x516388)+_0x42139a(_0x55c57f._0x18a477,0x36d,0x3bc,_0x55c57f._0x425166)+'rd'};function _0x45ea6c(_0xea3c89,_0x54b6d5,_0x17e4e4,_0x563c36){return _0x28a1ec(_0x54b6d5-_0x11a599._0x4c71a5,_0x54b6d5-_0x11a599._0x30c3bd,_0xea3c89,_0x563c36-_0x11a599._0xf02b24);}function _0x42139a(_0x1b112b,_0x491780,_0x313732,_0x41dab3){return _0x2d037f(_0x313732- -_0x4fca95._0x29371d,_0x491780-_0x4fca95._0x1f3692,_0x313732-0x180,_0x491780);}try{const {token:_0x3d1893,password:_0x202550}=_0xdb49e2[_0x45ea6c(_0x55c57f._0x42c997,0x102,_0x55c57f._0x2b3426,0x11a)];if(_0x52a9fc[_0x42139a(_0x55c57f._0x5c0a15,0x3a6,0x3f0,_0x55c57f._0xeefe5)](!_0x3d1893,!_0x202550)){if('ILeUN'!==_0x52a9fc[_0x45ea6c(_0x55c57f._0x12e67d,0x1a3,0x187,0x1ae)]){const _0x243e8d={};return _0x243e8d[_0x42139a(0x3e8,_0x55c57f._0x12cb84,0x3e7,0x3a3)]=_0x52a9fc['seIff'],_0x2aefd1[_0x45ea6c(_0x55c57f._0x42c67b,_0x55c57f._0x3b7242,0x145,_0x55c57f._0x2cb322)](0x1ad9+0x2411*-0x1+0x78*0x17)[_0x45ea6c(0xc9,_0x55c57f._0xf8a99c,_0x55c57f._0x47659a,_0x55c57f._0x58432d)](_0x243e8d);}else _0x3e8f52[_0x45ea6c(0x1ce,0x18d,_0x55c57f._0x4bfac5,_0x55c57f._0x508a7e)](_0x52a9fc[_0x42139a(_0x55c57f._0x22774b,_0x55c57f._0x64c9ff,0x396,0x37d)],_0x571e40),_0x3b2d0c[_0x45ea6c(_0x55c57f._0xc186a0,_0x55c57f._0x20f257,0x127,_0x55c57f._0x59ac93)]=_0x52a9fc['FwZiT'];}if(_0x202550[_0x42139a(0x3d6,_0x55c57f._0x13ed62,0x3ee,_0x55c57f._0x12275b)]<-0x1*-0x8d5+0x19*0x130+-0x267d){const _0x19c0c6={};return _0x19c0c6['error']=_0x52a9fc[_0x45ea6c(_0x55c57f._0x45022b,_0x55c57f._0x48e72e,_0x55c57f._0x3fd662,0x170)],_0x2aefd1[_0x45ea6c(_0x55c57f._0x12e67d,0x17a,_0x55c57f._0x45bd28,_0x55c57f._0x578470)](0x6*-0x50b+0x1*-0x13f9+0x33cb)['json'](_0x19c0c6);}const _0x152c3e=await validateToken(_0x3d1893);if(!_0x152c3e){const _0x668a3b={};return _0x668a3b[_0x42139a(0x3bb,_0x55c57f._0x1078ed,0x3e7,0x3e4)]=_0x52a9fc[_0x45ea6c(_0x55c57f._0x13fd50,_0x55c57f._0x12a18a,_0x55c57f._0x16b78b,_0x55c57f._0x2da0b4)],_0x2aefd1['status'](0x1611*-0x1+-0x4*-0x3d4+0x851)['json'](_0x668a3b);}const _0x41d0a4=await _0x52a9fc[_0x42139a(0x3f1,0x3bd,0x3d3,_0x55c57f._0x5bf3b8)](findUserById,_0x152c3e[_0x42139a(0x441,0x3f6,_0x55c57f._0x19c1bd,0x3bf)]);if(!_0x41d0a4){if(_0x52a9fc[_0x42139a(0x316,0x3a2,0x367,_0x55c57f._0x1cbdc)](_0x52a9fc[_0x45ea6c(0x10a,0x122,_0x55c57f._0x142ca8,_0x55c57f._0x324530)],_0x52a9fc[_0x45ea6c(_0x55c57f._0x5b13ba,0x122,_0x55c57f._0x403ce1,_0x55c57f._0x5ee2c9)])){_0x31f179[_0x42139a(0x3c7,0x3c2,0x3e7,_0x55c57f._0x5d50e6)](_0x45ea6c(_0x55c57f._0x40d439,0x190,_0x55c57f._0x5d6067,0x154)+_0x45ea6c(0x13a,0x11c,_0x55c57f._0x418ae5,_0x55c57f._0x32c8d7)+_0x45ea6c(0x15b,0x129,0xd8,_0x55c57f._0x15f662)+'tus',_0x17b84a);const _0x2a029d={};_0x2a029d['error']=_0x52a9fc[_0x42139a(0x3c4,0x424,0x3e8,_0x55c57f._0x4a4393)],_0x18b7c7[_0x45ea6c(_0x55c57f._0x5a6cde,_0x55c57f._0x203bfc,_0x55c57f._0xdbfce,_0x55c57f._0x109a60)](-0xc45+0x10dc+-0x2a3)[_0x42139a(0x33b,_0x55c57f._0x4c6783,_0x55c57f._0x1a77a7,0x3c2)](_0x2a029d);}else{const _0x306124={};return _0x306124[_0x42139a(_0x55c57f._0x53102,0x42b,0x3e7,0x3ee)]=_0x52a9fc['tLEFb'],_0x2aefd1[_0x45ea6c(0x14f,0x17a,0x159,0x1b0)](0x64b+-0x40f*0x7+-0x9*-0x2a2)[_0x42139a(_0x55c57f._0x3dc37f,_0x55c57f._0x3d2e5e,0x379,_0x55c57f._0x521df1)](_0x306124);}}await _0x52a9fc['PBtoz'](setUserPassword,_0x152c3e[_0x45ea6c(_0x55c57f._0x4e70d0,0x1a1,0x18b,_0x55c57f._0x27af5e)],_0x202550),await _0x52a9fc[_0x45ea6c(_0x55c57f._0x4d60af,0x13f,_0x55c57f._0x56f351,0xf9)](markTokenAsUsed,_0x3d1893);const _0x2d82a2={};_0x2d82a2[_0x45ea6c(0x1e2,_0x55c57f._0x42c67b,0x162,0x1ab)]=_0x41d0a4['id'],_0x2d82a2[_0x42139a(0x3a8,0x41e,0x3f8,_0x55c57f._0x471719)]=_0x41d0a4[_0x45ea6c(_0x55c57f._0x4c8c22,_0x55c57f._0x4abef5,0x190,0x1cf)],_0x2d82a2['tokenType']=_0x152c3e['type'],logger[_0x45ea6c(_0x55c57f._0x148a39,0x107,0xfa,_0x55c57f._0x54c014)]('Password\x20s'+_0x42139a(_0x55c57f._0x4dc96f,_0x55c57f._0x544e67,_0x55c57f._0xe73c92,0x3db)+'en',_0x2d82a2);const _0x2c1d85={};_0x2c1d85['id']=_0x41d0a4['id'],_0x2c1d85[_0x45ea6c(0x194,0x19e,0x171,0x1e6)]=_0x41d0a4[_0x42139a(_0x55c57f._0x3e46ac,_0x55c57f._0x58a48b,_0x55c57f._0x4f99a1,0x3db)],_0x2c1d85[_0x42139a(0x341,_0x55c57f._0x41a6d0,0x371,_0x55c57f._0x35a68e)]=_0x41d0a4[_0x45ea6c(_0x55c57f._0x4dfea0,0x117,_0x55c57f._0x2cb322,_0x55c57f._0x17fb53)];const _0x118d4e={};_0x118d4e['message']=_0x42139a(_0x55c57f._0x34d1dd,_0x55c57f._0x2e7338,_0x55c57f._0x51d2dc,0x34b)+_0x42139a(0x39e,_0x55c57f._0x8c6d7c,0x375,_0x55c57f._0x57597f)+_0x45ea6c(0x14f,0x178,_0x55c57f._0x1f8c07,_0x55c57f._0x1c0956),_0x118d4e[_0x42139a(0x394,_0x55c57f._0x1e9250,0x3c0,0x36b)]=_0x2c1d85,_0x2aefd1[_0x45ea6c(0x152,_0x55c57f._0xf8a99c,_0x55c57f._0x15f662,_0x55c57f._0x673712)](_0x118d4e);}catch(_0x280373){logger['error'](_0x52a9fc[_0x45ea6c(_0x55c57f._0x41e823,0x138,0x18e,0x164)],_0x280373);const _0x1d1c86={};_0x1d1c86[_0x42139a(0x3c2,0x405,_0x55c57f._0x5022b4,0x3ef)]=_0x52a9fc[_0x42139a(0x37f,0x375,_0x55c57f._0x37c764,0x39f)],_0x2aefd1[_0x42139a(0x3ca,0x3d5,_0x55c57f._0x444db6,_0x55c57f._0x316644)](0x1da2+0x47*0x3f+-0x2d27)[_0x45ea6c(0xf1,_0x55c57f._0xf8a99c,0xc9,0x14c)](_0x1d1c86);}}),router[_0x2d037f(0x55c,0x515,0x5b2,0x552)](_0x2d037f(0x55d,0x586,0x577,0x51e)+_0x2d037f(0x5ac,0x5cd,0x5de,0x5ea),requireAuth,requireAdmin,async(_0x312177,_0x3ad900)=>{const _0x1e4777={_0x5c81d3:0xb,_0x25bb95:0xd,_0x459bb5:0x24,_0x1c158d:0x5f,_0x1d1d08:0xb8,_0xaf88b5:0xf9,_0x4dac8b:0xc6,_0x548ce3:0xd7,_0x493451:0x29,_0x5561f0:0x1b,_0x591977:0x54,_0x57c8fd:0x6b,_0x515e74:0x31,_0x15be00:0x4c,_0x445b24:0x43,_0x3323b0:0x13,_0x46d089:0x21,_0x5db422:0xf2,_0x282027:0xb1,_0x50de3e:0xa7,_0x36e57e:0xba,_0x30f9aa:0x113,_0x232bd2:0x71},_0x9840db={_0x5bf488:0x49a,_0x39ef03:0xa4,_0x324205:0x14c};function _0x366ba0(_0x1150e1,_0x2d567c,_0x1fa43f,_0x4da247){return _0x2d037f(_0x2d567c- -0x563,_0x2d567c-0x81,_0x1fa43f-0x198,_0x1150e1);}const _0x129fda={'fASbC':function(_0x4c0742,_0x5b09a4){return _0x4c0742(_0x5b09a4);},'jasTq':'Failed\x20to\x20'+_0x366ba0(-0x1a,-_0x1e4777._0x5c81d3,0x5,-0x49)+_0x366ba0(_0x1e4777._0x25bb95,_0x1e4777._0x459bb5,_0x1e4777._0x1c158d,0x3a)};function _0x4f8f12(_0x1f46db,_0xbe4cfe,_0x21517c,_0x3c155a){return _0x2d037f(_0x3c155a- -_0x9840db._0x5bf488,_0xbe4cfe-_0x9840db._0x39ef03,_0x21517c-_0x9840db._0x324205,_0xbe4cfe);}try{const {userId:_0x207c63}=_0x312177[_0x4f8f12(_0x1e4777._0x1d1d08,_0x1e4777._0xaf88b5,_0x1e4777._0x4dac8b,_0x1e4777._0x548ce3)],_0xc7c1e2=await _0x129fda[_0x366ba0(-_0x1e4777._0x493451,-_0x1e4777._0x5561f0,-_0x1e4777._0x591977,-_0x1e4777._0x57c8fd)](findUserById,_0x207c63);if(!_0xc7c1e2){const _0x1905d7={};return _0x1905d7[_0x366ba0(_0x1e4777._0x515e74,_0x1e4777._0x15be00,0x5,0x80)]=_0x366ba0(_0x1e4777._0x445b24,-_0x1e4777._0x3323b0,-0x3,_0x1e4777._0x46d089)+'ound',_0x3ad900[_0x4f8f12(0x12e,_0x1e4777._0x5db422,0x11f,0x102)](0x7a3*0x3+0xf6e*-0x2+0x987)[_0x4f8f12(0x87,_0x1e4777._0x282027,0xaa,_0x1e4777._0x50de3e)](_0x1905d7);}const _0x36cd4b=await getUserTokens(_0x207c63),_0x4ba8d0={};_0x4ba8d0[_0x4f8f12(_0x1e4777._0x36e57e,0xf2,_0x1e4777._0x30f9aa,_0x1e4777._0x4dac8b)]=_0x36cd4b,_0x3ad900['json'](_0x4ba8d0);}catch(_0x300b66){logger[_0x4f8f12(0x161,0xd8,_0x1e4777._0x30f9aa,0x115)](_0x129fda[_0x4f8f12(_0x1e4777._0x232bd2,0x5f,0xec,0xb3)],_0x300b66);const _0x43cd2f={};_0x43cd2f['error']=_0x129fda[_0x4f8f12(0x88,0xc3,0xce,0xb3)],_0x3ad900['status'](-0x1*-0x197+0xd*0x6b+-0x512)['json'](_0x43cd2f);}}),router[_0x2d037f(0x555,0x517,0x53f,0x58d)](_0x28a1ec(0x73,0xa0,0xa4,0x5e)+_0x2d037f(0x5c8,0x61d,0x57e,0x61b),requireAuth,requireAdmin,async(_0x37ffe1,_0x4869dc)=>{const _0x16e251={_0x18491b:0x56f,_0x2a048f:0x59e,_0x303542:0xfa,_0x52aef5:0x83,_0x910578:0x549,_0xb29e20:0x4e6,_0x21b6be:0xef,_0x165dec:0x9c,_0x7ba515:0xf2,_0x3ef350:0x560,_0x20c8a0:0x568,_0x4dbff0:0x569,_0x2dea9b:0x541,_0x55adf4:0x563,_0x29140f:0x584,_0x1eda88:0xd7,_0x4f2928:0x12f,_0x16bc00:0x155,_0x3bd563:0xd7,_0x5194c3:0x58,_0x5a167e:0x76,_0x2dfe52:0xc6,_0x222afe:0xf9,_0x1fc6c9:0xec,_0x32ee67:0x10c,_0x4e372e:0xe9,_0x5943f1:0x57d,_0x26392d:0x590,_0x53c602:0x51e,_0x182117:0x515,_0x53f017:0x4c4,_0x20e12e:0xa0,_0x3d241b:0xfb,_0x590e3f:0x87,_0x3538ee:0x8b,_0x4beb1e:0xd5,_0x934387:0x107,_0x2601f6:0x116,_0x2f6422:0x556,_0x1ecaa1:0x543,_0x339011:0x530,_0x425832:0x58e,_0x3901f2:0x5c9,_0x167ec8:0x5ce,_0xd72d14:0x108,_0x4a564e:0xb5,_0x54aec6:0xb1,_0x562b36:0x4c9,_0x1ec751:0x4b5,_0x39c316:0xdc,_0x267ce9:0xb4,_0x50eb07:0x577,_0x52bfda:0x5bf,_0x2c692e:0x5b5,_0x5a1dc8:0xe0,_0x322d61:0xfd,_0x3488cb:0x147,_0x3c6d26:0x56b,_0x41f98a:0xeb,_0x438e54:0xfc,_0x3a2858:0xca,_0x4cb7ab:0xa9,_0x41a3fa:0x553,_0x5e7466:0x58b,_0x3d883e:0x591,_0x3f5650:0x546,_0x398e75:0x511,_0x4595c4:0x4fc,_0x4202ea:0x53b,_0x2c5708:0x122,_0x53b2c4:0x64,_0x452ad7:0xa5,_0x4de778:0x573,_0x5b7b3a:0x5c,_0x1a88c7:0x6c,_0x1174ec:0xbc,_0x4ec6bf:0x7a,_0x129b39:0xdf,_0x205420:0xa4,_0x9fb520:0x88,_0x25a86c:0xab,_0x5c1136:0xc9,_0x46d711:0x573,_0x597f69:0x533,_0x1b93d5:0x510,_0x20b786:0x52b},_0x30e245={_0xbe3fdd:0x16,_0x204336:0x1a5},_0x178a37={_0x2ce5f3:0x135,_0xd24ffb:0xe1};function _0x8c7661(_0xfea230,_0x60b88b,_0xc4c090,_0x30f5e8){return _0x28a1ec(_0xc4c090- -0x145,_0x60b88b-_0x178a37._0x2ce5f3,_0xfea230,_0x30f5e8-_0x178a37._0xd24ffb);}const _0x2f5486={'NfFXj':_0x423bab(0x580,_0x16e251._0x18491b,_0x16e251._0x2a048f,0x58b)+_0x8c7661(-0xa1,-_0x16e251._0x303542,-0xc7,-_0x16e251._0x52aef5)+'en','FRjtw':_0x423bab(0x51e,_0x16e251._0x910578,0x4d4,_0x16e251._0xb29e20)+_0x8c7661(-_0x16e251._0x21b6be,-0x8f,-_0x16e251._0x165dec,-_0x16e251._0x7ba515),'FNOtV':function(_0x5cb6e5,_0x1130af){return _0x5cb6e5===_0x1130af;},'dnVAR':_0x423bab(_0x16e251._0x3ef350,_0x16e251._0x20c8a0,_0x16e251._0x4dbff0,_0x16e251._0x2dea9b),'eTlXD':function(_0x162ba4,_0x3fff11){return _0x162ba4(_0x3fff11);},'iQLnM':'Token\x20not\x20'+'found','SwAOc':_0x423bab(0x54f,_0x16e251._0x55adf4,0x511,_0x16e251._0x29140f)+'ked','iiKAB':_0x8c7661(-0xeb,-0xd5,-_0x16e251._0x1eda88,-0xfb)+'ked\x20succes'+_0x8c7661(-_0x16e251._0x4f2928,-0x138,-0x127,-_0x16e251._0x16bc00),'yJgwV':function(_0x336047,_0x5c7bd){return _0x336047!==_0x5c7bd;},'qtGsQ':_0x8c7661(-_0x16e251._0x3bd563,-0x67,-0xa5,-_0x16e251._0x5194c3)};function _0x423bab(_0x488216,_0x3ca25a,_0x4a812d,_0xe528da){return _0x2d037f(_0x488216- -0x32,_0x3ca25a-_0x30e245._0xbe3fdd,_0x4a812d-_0x30e245._0x204336,_0xe528da);}try{if(_0x2f5486['FNOtV'](_0x8c7661(-_0x16e251._0x5a167e,-0xb1,-_0x16e251._0x2dfe52,-_0x16e251._0x222afe),_0x2f5486[_0x8c7661(-0x14c,-_0x16e251._0x1fc6c9,-_0x16e251._0x32ee67,-_0x16e251._0x4e372e)])){const {tokenId:_0x583107}=_0x37ffe1['params'],_0x256ac5=await _0x2f5486['eTlXD'](revokeToken,_0x583107);if(!_0x256ac5){const _0x527404={};return _0x527404[_0x423bab(_0x16e251._0x5943f1,_0x16e251._0x55adf4,_0x16e251._0x26392d,0x57f)]=_0x2f5486['iQLnM'],_0x4869dc[_0x8c7661(-0xe3,-0xbc,-0xbc,-0xc5)](0x16e7+0x1*0x1a7+-0x16fa)[_0x423bab(0x50f,_0x16e251._0x53c602,_0x16e251._0x53c602,0x560)](_0x527404);}const _0x1b1841={};_0x1b1841[_0x423bab(_0x16e251._0x182117,_0x16e251._0x53f017,0x564,0x52c)]=_0x37ffe1[_0x8c7661(-_0x16e251._0x20e12e,-_0x16e251._0x3d241b,-0xd0,-_0x16e251._0x590e3f)]['id'],_0x1b1841[_0x8c7661(-0x96,-0x71,-_0x16e251._0x3538ee,-_0x16e251._0x4beb1e)+_0x8c7661(-_0x16e251._0x934387,-_0x16e251._0x2601f6,-0xcc,-0x94)]=_0x37ffe1[_0x423bab(_0x16e251._0x2f6422,_0x16e251._0x1ecaa1,_0x16e251._0x339011,0x50d)][_0x423bab(_0x16e251._0x425832,_0x16e251._0x3901f2,_0x16e251._0x167ec8,0x556)],_0x1b1841[_0x8c7661(-_0x16e251._0xd72d14,-0x66,-_0x16e251._0x4a564e,-_0x16e251._0x54aec6)]=_0x583107,logger[_0x423bab(0x4f7,_0x16e251._0x562b36,0x4ff,_0x16e251._0x1ec751)](_0x2f5486[_0x8c7661(-0x102,-0xd5,-_0x16e251._0x39c316,-_0x16e251._0x267ce9)],_0x1b1841);const _0x33f26c={};_0x33f26c['message']=_0x2f5486[_0x423bab(_0x16e251._0x50eb07,_0x16e251._0x52bfda,0x5c5,_0x16e251._0x2c692e)],_0x4869dc[_0x8c7661(-_0x16e251._0x5a1dc8,-_0x16e251._0x322d61,-0x117,-_0x16e251._0x3488cb)](_0x33f26c);}else{_0x41cd14[_0x423bab(0x57d,0x530,_0x16e251._0x3c6d26,0x5a6)](_0x2f5486[_0x8c7661(-_0x16e251._0x41f98a,-0xe0,-0xd3,-_0x16e251._0x438e54)],_0x4e0bf6);const _0xb688f8={};_0xb688f8[_0x8c7661(-_0x16e251._0x5a1dc8,-_0x16e251._0x3a2858,-_0x16e251._0x4cb7ab,-0xf6)]=_0x2f5486[_0x423bab(_0x16e251._0x41a3fa,_0x16e251._0x5e7466,0x5a4,_0x16e251._0x3d883e)],_0x509930[_0x423bab(0x56a,_0x16e251._0x18491b,0x51b,_0x16e251._0x3f5650)](0x101*0x1d+0x224c+-0x3d75)[_0x423bab(0x50f,_0x16e251._0x398e75,_0x16e251._0x4595c4,_0x16e251._0x4202ea)](_0xb688f8);}}catch(_0x2f3f3b){if(_0x2f5486[_0x8c7661(-0xa5,-0xe3,-_0x16e251._0x1fc6c9,-_0x16e251._0x2c5708)](_0x8c7661(-0xa7,-_0x16e251._0x53b2c4,-_0x16e251._0x452ad7,-0x75),_0x2f5486[_0x423bab(0x595,0x5cf,_0x16e251._0x4de778,0x5ca)])){const _0x3a8e7c={};return _0x3a8e7c['error']=_0x2f5486[_0x8c7661(-0xaa,-_0x16e251._0x5b7b3a,-0x97,-0xba)],_0x3ec13d[_0x8c7661(-_0x16e251._0x1a88c7,-0x101,-_0x16e251._0x1174ec,-_0x16e251._0x4ec6bf)](0x1e2a+-0x64*-0x5+-0x1e8a)['json'](_0x3a8e7c);}else{logger[_0x8c7661(-_0x16e251._0x41f98a,-0x86,-_0x16e251._0x4cb7ab,-0x83)](_0x2f5486[_0x8c7661(-_0x16e251._0x129b39,-_0x16e251._0x205420,-0xd3,-0x83)],_0x2f3f3b);const _0x1c9376={};_0x1c9376[_0x8c7661(-_0x16e251._0x3d241b,-0x77,-0xa9,-_0x16e251._0x9fb520)]=_0x8c7661(-_0x16e251._0x25a86c,-0x62,-0xa6,-_0x16e251._0x5c1136)+'revoke\x20tok'+'en',_0x4869dc[_0x423bab(0x56a,_0x16e251._0x46d711,_0x16e251._0x597f69,0x519)](0x2504+0x47*0x30+-0x3060)[_0x423bab(0x50f,0x4d8,_0x16e251._0x1b93d5,_0x16e251._0x20b786)](_0x1c9376);}}});export default router;