@lovrabet/rabetbase-cli 2.5.1-beta.3 → 2.5.1-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +0 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.d.ts +2 -0
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.d.ts +3 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +1 -0
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.d.ts +2 -0
- package/lib/commands/project/domain-routing-sync.js +1 -0
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.d.ts +2 -0
- package/lib/commands/rule/get.js +1 -0
- package/lib/commands/rule/index.d.ts +2 -0
- package/lib/commands/rule/index.js +1 -0
- package/lib/commands/rule/list.d.ts +2 -0
- package/lib/commands/rule/list.js +1 -0
- package/lib/commands/rule/set.d.ts +2 -0
- package/lib/commands/rule/set.js +1 -0
- package/lib/commands/rule/shared.d.ts +43 -0
- package/lib/commands/rule/shared.js +1 -0
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/deployment-sync.js +1 -1
- package/lib/config/domain-config.d.ts +38 -2
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.d.ts +27 -0
- package/lib/config/project-domain-routing.js +1 -0
- package/lib/config/schema.d.ts +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +10 -6
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.d.ts +4 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +43 -49
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +2 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +37 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.d.ts +0 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.d.ts +83 -0
- package/lib/generated/official-routing.js +1 -0
- package/lib/generated/routing-contract.d.ts +9 -0
- package/lib/generated/routing-contract.js +1 -0
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
- package/skills/rabetbase/SKILL.md +16 -13
- package/skills/rabetbase/guides/sdk-client-generation.md +10 -8
- package/skills/rabetbase/references/rabetbase-api-pull.md +16 -11
- package/skills/rabetbase/references/rabetbase-config.md +3 -6
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -1
- package/skills/rabetbase/references/rabetbase-init.md +32 -10
- package/skills/rabetbase/references/rabetbase-kb.md +7 -7
- package/skills/rabetbase/references/rabetbase-project-create.md +33 -8
- package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +28 -0
- package/skills/rabetbase/references/rabetbase-rule.md +49 -0
- package/skills/rabetbase.manifest.json +5 -3
- package/lib/config/project-routing.d.ts +0 -30
- package/lib/config/project-routing.js +0 -1
- package/lib/core/kb-search-client.d.ts +0 -30
- package/lib/core/kb-search-client.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140_0x4ea6f3=a140_0x1897;(function(_0x76bb04,_0x6023de){const _0x6bb434=a140_0x1897,_0x51779d=_0x76bb04();while(!![]){try{const _0x23dc23=parseInt(_0x6bb434(0x200))/0x1+-parseInt(_0x6bb434(0x22a))/0x2*(-parseInt(_0x6bb434(0x1da))/0x3)+-parseInt(_0x6bb434(0x24a))/0x4*(-parseInt(_0x6bb434(0x209))/0x5)+-parseInt(_0x6bb434(0x217))/0x6+-parseInt(_0x6bb434(0x1e2))/0x7*(parseInt(_0x6bb434(0x227))/0x8)+-parseInt(_0x6bb434(0x1f3))/0x9*(-parseInt(_0x6bb434(0x24b))/0xa)+-parseInt(_0x6bb434(0x239))/0xb*(-parseInt(_0x6bb434(0x230))/0xc);if(_0x23dc23===_0x6023de)break;else _0x51779d['push'](_0x51779d['shift']());}catch(_0x18155d){_0x51779d['push'](_0x51779d['shift']());}}}(a140_0x27f6,0xccb60));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a140_0x4ea6f3(0x246),'path':'/smartapi/menu/update'}];function a140_0x1897(_0x1050c2,_0x514379){_0x1050c2=_0x1050c2-0x1cf;const _0x27f675=a140_0x27f6();let _0x18973b=_0x27f675[_0x1050c2];return _0x18973b;}export const menuVisibilityUpdate={'service':a140_0x4ea6f3(0x242),'command':a140_0x4ea6f3(0x237),'description':a140_0x4ea6f3(0x244),'risk':a140_0x4ea6f3(0x21b),'structuredErrors':!![],'flags':[{'name':a140_0x4ea6f3(0x1ee),'type':a140_0x4ea6f3(0x1d6),'description':a140_0x4ea6f3(0x214)},{'name':a140_0x4ea6f3(0x20c),'type':a140_0x4ea6f3(0x1d6),'description':a140_0x4ea6f3(0x1f8)},{'name':'visible','type':a140_0x4ea6f3(0x221),'required':!![],'description':a140_0x4ea6f3(0x241)},{'name':a140_0x4ea6f3(0x1fe),'type':a140_0x4ea6f3(0x221),'description':a140_0x4ea6f3(0x1de)},{'name':a140_0x4ea6f3(0x1cf),'type':a140_0x4ea6f3(0x1fc),'description':a140_0x4ea6f3(0x1d4)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x325398){parseInput(_0x325398),requireExplicitYes(_0x325398);},async 'dryRun'(_0x58ced6){const _0x48bfd6=a140_0x4ea6f3,_0x5ecf1f=await buildPlan(_0x58ced6,!![]),_0x4e3f6e=_0x5ecf1f[_0x48bfd6(0x208)][_0x48bfd6(0x216)]?.['length']??0x0,_0x9932c0=_0x5ecf1f[_0x48bfd6(0x208)][_0x48bfd6(0x22e)][_0x48bfd6(0x22c)]-_0x4e3f6e;return menuDryRunResult(_0x5ecf1f[_0x48bfd6(0x208)],{'method':'POST','url':_0x48bfd6(0x21a),'body':{'updates':_0x5ecf1f[_0x48bfd6(0x208)][_0x48bfd6(0x216)]?.[_0x48bfd6(0x213)](_0x43e5d8=>_0x43e5d8['body'])??[]},'description':'Would\x20update\x20visibility\x20for\x20'+_0x4e3f6e+_0x48bfd6(0x21f)+_0x9932c0+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x56f625){const _0x645abf=a140_0x4ea6f3;requireExplicitYes(_0x56f625);const _0x598ba2=await buildPlan(_0x56f625,![]);await recheckMutationSnapshot(_0x56f625,_0x598ba2['plan'],_0x645abf(0x240));const _0x2d3e20=[],_0x313148=[],_0x44ca77=[];for(const _0x4c63c9 of _0x598ba2[_0x645abf(0x208)][_0x645abf(0x22e)]){if(_0x4c63c9['before'][_0x645abf(0x235)]===_0x598ba2[_0x645abf(0x208)]['requestedVisible']){_0x2d3e20['push']({'id':_0x4c63c9['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x56f625[_0x645abf(0x1ec)],_0x56f625['cookie'],{'id':_0x4c63c9['id'],'visible':_0x598ba2['plan'][_0x645abf(0x248)]}),_0x2d3e20[_0x645abf(0x1f7)]({'id':_0x4c63c9['id'],'updated':!![],'skipped':![]});}catch(_0x4d4f10){const _0x3f258d=mapMenuApiError(_0x4d4f10,_0x645abf(0x206),_0x4c63c9['id']);if(isMenuResponseLoss(_0x4d4f10)&&_0x3f258d[_0x645abf(0x23d)]!==_0x645abf(0x1d7)){_0x44ca77[_0x645abf(0x1f7)](_0x4c63c9['id']);continue;}_0x313148['push']({'id':_0x4c63c9['id'],'stage':_0x645abf(0x218),'code':_0x3f258d[_0x645abf(0x23d)],'message':_0x3f258d['message']});}}let _0x40ca56;try{_0x40ca56=await fetchMenuSnapshot(_0x56f625[_0x645abf(0x1ec)],_0x56f625[_0x645abf(0x1d0)]);}catch(_0xf749de){const _0x556db2=describeMenuErrorCause(_0xf749de,_0x645abf(0x1eb)),_0x205b14=_0x44ca77[_0x645abf(0x213)](_0x4b30d=>({'id':_0x4b30d,'stage':'update-recovery','code':_0x645abf(0x20b),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x4b30d+_0x645abf(0x205),'requestedStateConfirmed':![],'recovered':![]})),_0x13a9d4={'stage':'verification','code':_0x645abf(0x20b),'message':'Final\x20menu\x20visibility\x20readback\x20failed.','targetIds':_0x598ba2[_0x645abf(0x208)][_0x645abf(0x22e)][_0x645abf(0x213)](_0x14b747=>_0x14b747['id']),'requestedStateConfirmed':![],..._0x556db2};throw menuFailure(asVerificationError(_0xf749de,_0x645abf(0x1e4)),_0x598ba2[_0x645abf(0x208)],{'stage':_0x645abf(0x23e),'succeeded':_0x2d3e20,'failedRecords':[..._0x313148,..._0x205b14,_0x13a9d4],'warnings':[_0x645abf(0x222)],'verification':{'status':_0x645abf(0x249),'recoveredCount':0x0,'lookupCommand':_0x645abf(0x231)}});}const _0x2bffcd=[];for(const _0x12c743 of _0x2d3e20){const _0x1a915a=Number(_0x12c743['id']),_0x460a37=_0x598ba2['beforeById'][_0x645abf(0x1f2)](_0x1a915a),_0x73f94a=_0x40ca56[_0x645abf(0x233)][_0x645abf(0x1f2)](_0x1a915a);try{verifyVisibilityUpdate(_0x460a37,_0x73f94a,_0x598ba2[_0x645abf(0x208)][_0x645abf(0x248)]);}catch(_0x188a0f){const _0xbab4cc=asVerificationError(_0x188a0f,'Menu\x20'+_0x1a915a+_0x645abf(0x1e7));_0x2bffcd['push']({'id':_0x1a915a,'stage':_0x645abf(0x23e),'code':_0xbab4cc[_0x645abf(0x23d)],'message':_0xbab4cc[_0x645abf(0x21c)],'requestedStateConfirmed':![]});}}for(const _0x48af07 of _0x44ca77){const _0x2b5668=_0x598ba2[_0x645abf(0x1db)][_0x645abf(0x1f2)](_0x48af07),_0x30aa67=_0x40ca56[_0x645abf(0x233)]['get'](_0x48af07);try{verifyVisibilityUpdate(_0x2b5668,_0x30aa67,_0x598ba2[_0x645abf(0x208)][_0x645abf(0x248)]),_0x2d3e20[_0x645abf(0x1f7)]({'id':_0x48af07,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x5a0622){const _0x2e8ee1=asVerificationError(_0x5a0622,_0x645abf(0x23b)+_0x48af07+'\x20visibility\x20could\x20not\x20be\x20verified\x20safely');_0x2bffcd[_0x645abf(0x1f7)]({'id':_0x48af07,'stage':'update-recovery','code':_0x2e8ee1[_0x645abf(0x23d)],'message':_0x2e8ee1[_0x645abf(0x21c)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x2bffcd['length']>0x0){const _0x25e182=_0x2bffcd[_0x645abf(0x213)](_0x63f648=>Number(_0x63f648['id'])),_0x4bdba9=_0x2d3e20[_0x645abf(0x1d1)](_0x469bbc=>_0x469bbc['recovered']===!![])[_0x645abf(0x22c)],_0x358e96=menuError(_0x645abf(0x20b),_0x645abf(0x215)+_0x25e182[_0x645abf(0x1d2)](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x358e96,_0x598ba2[_0x645abf(0x208)],{'stage':_0x645abf(0x23e),'succeeded':_0x2d3e20,'failedRecords':[..._0x313148,..._0x2bffcd],'warnings':[_0x645abf(0x234)],'verification':{'status':_0x645abf(0x249),..._0x25e182['length']===0x1?{'targetId':_0x25e182[0x0]}:{'targetIds':_0x25e182},'recoveredCount':_0x4bdba9,'lookupCommand':_0x645abf(0x231)}});}const _0x2adf0e=_0x2d3e20['filter'](_0xfbebac=>_0xfbebac[_0x645abf(0x20e)]===!![])['length'],_0x1a25fb=_0x2d3e20[_0x645abf(0x22c)]-_0x2adf0e,_0x5d206b={..._0x598ba2[_0x645abf(0x208)],'succeeded':_0x2d3e20,'failed':_0x313148,'warnings':_0x313148[_0x645abf(0x22c)]>0x0?[..._0x598ba2[_0x645abf(0x208)][_0x645abf(0x23c)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x598ba2[_0x645abf(0x208)][_0x645abf(0x23c)],'verification':{'checkedBy':_0x645abf(0x24e),'snapshotHash':_0x40ca56[_0x645abf(0x232)],'matchesRequestedState':_0x313148[_0x645abf(0x22c)]===0x0,'recoveredCount':_0x44ca77[_0x645abf(0x22c)]}};return{'ok':_0x313148[_0x645abf(0x22c)]===0x0,'data':_0x5d206b,'message':_0x313148[_0x645abf(0x22c)]===0x0?_0x645abf(0x1d5)+_0x2adf0e+_0x645abf(0x1ea)+_0x1a25fb+_0x645abf(0x247):_0x645abf(0x212)+_0x2adf0e+_0x645abf(0x22f)+_0x1a25fb+_0x645abf(0x229)+_0x313148[_0x645abf(0x22c)]+_0x645abf(0x1e3)};}};function a140_0x27f6(){const _0x52fe5a=['\x20was\x20not\x20found\x20during\x20visibility\x20verification.','\x20menu(s);\x20skip\x20','modelType','boolean','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','depth','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','expectVisible','2828464TrlxTF','expectedCount','\x20skipped,\x20','65542gYLFMQ','has','length','update-menu-visibility','targets','\x20updated,\x20','187548hxHkFe','rabetbase\x20menu\x20list\x20--format\x20compress','hash','byId','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','visible','rawFlags','visibility-update','resources','572dTGaXI','stringify','Response\x20was\x20lost\x20and\x20menu\x20','warnings','code','verification','childrenIds','update\x20menu\x20visibility','Requested\x20menu\x20visibility','menu','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','isArray','POST','\x20unchanged\x20menu(s).','requestedVisible','failed','45524YpcGeO','206210caoLpX','menu_selector_not_found','\x20must\x20be\x20true\x20or\x20false.','menu\x20list','childrenCount','expected-count','cookie','filter','join','path','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','Updated\x20visibility\x20for\x20','string','menu_permission_denied','datasetId','Selected\x20','135VoGtYt','beforeById','sort','\x20menu(s),\x20expected\x20','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','some','resourcesValid','pageId','28mqyLYr','\x20failed.','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','menuIds','trim','\x20visibility\x20update\x20could\x20not\x20be\x20verified','before','flagMissing','\x20menu(s);\x20skipped\x20','verify\x20menu\x20visibility\x20update','appCode','isSafeInteger','menu-ids','parentId','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','\x20changed\x20unexpectedly.','get','144tvWqhn','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','Menu\x20path\x20selector\x20not\x20found:\x20','values','push','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','str','validation','Menu\x20id\x20selector(s)\x20not\x20found:\x20','number','label','expect-visible','url','13903wzHKTW','menu_state_drift','menus','Menu\x20','set','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','update\x20visibility\x20for','pageType','plan','180kmHfgN','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','menu_verification_failed','paths','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','updated','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','type','Menu\x20visibility\x20update\x20completed:\x20','map','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','plannedActions','4729380EVhYha','update','split','/smartapi/menu/update','high-risk-write','message','datasetCode'];a140_0x27f6=function(){return _0x52fe5a;};return a140_0x27f6();}function parseInput(_0x4dca91){const _0x33fd3a=a140_0x4ea6f3,_0x33f584=parseMenuIds(_0x4dca91[_0x33fd3a(0x1f9)]('menu-ids')),_0x3d89c2=parseCsv(_0x4dca91[_0x33fd3a(0x1f9)](_0x33fd3a(0x20c)));if(_0x33f584[_0x33fd3a(0x22c)]===0x0&&_0x3d89c2['length']===0x0)throw CliErrors[_0x33fd3a(0x1fa)]('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x2c2d39=parseBooleanFlag(_0x4dca91,_0x33fd3a(0x235),!![]),_0x17790b=parseBooleanFlag(_0x4dca91,_0x33fd3a(0x1fe),![]);let _0x9210f3;if(hasFlag(_0x4dca91,_0x33fd3a(0x1cf))){_0x9210f3=_0x4dca91['num'](_0x33fd3a(0x1cf));if(!Number[_0x33fd3a(0x1ed)](_0x9210f3)||_0x9210f3<0x0)throw CliErrors[_0x33fd3a(0x1fa)](_0x33fd3a(0x210));}return{'menuIds':_0x33f584,'paths':_0x3d89c2,'visible':_0x2c2d39,'expectVisible':_0x17790b,'expectedCount':_0x9210f3};}async function buildPlan(_0x39b95f,_0x124037){const _0xb3058c=a140_0x4ea6f3,_0x439bcc=parseInput(_0x39b95f),_0x43906c=await fetchMutationSnapshot(_0x39b95f,_0xb3058c(0x240)),_0x2befc9=selectTargets(_0x43906c[_0xb3058c(0x202)],_0x439bcc[_0xb3058c(0x1e5)],_0x439bcc['paths']);if(_0x439bcc[_0xb3058c(0x228)]!==undefined&&_0x2befc9['length']!==_0x439bcc['expectedCount'])throw menuError('menu_expected_count_mismatch',_0xb3058c(0x1d9)+_0x2befc9['length']+_0xb3058c(0x1dd)+_0x439bcc['expectedCount']+'.',_0xb3058c(0x20a));if(_0x439bcc[_0xb3058c(0x226)]!==undefined){const _0x58b8a0=_0x2befc9[_0xb3058c(0x1d1)](_0x42cccc=>_0x42cccc[_0xb3058c(0x235)]!==_0x439bcc[_0xb3058c(0x226)]);if(_0x58b8a0[_0xb3058c(0x22c)]>0x0)throw menuError(_0xb3058c(0x201),_0xb3058c(0x223)+_0x58b8a0[_0xb3058c(0x213)](_0x3348d6=>_0x3348d6['id'])[_0xb3058c(0x1d2)](',\x20')+'.',_0xb3058c(0x1f4));}const _0x46e5e0=_0x2befc9[_0xb3058c(0x213)](_0x2afa86=>({'id':_0x2afa86['id'],'label':_0x2afa86[_0xb3058c(0x1fd)],'path':_0x2afa86['path'],'before':{'visible':_0x2afa86[_0xb3058c(0x235)]},'after':{'visible':_0x439bcc['visible']}})),_0x50704a=_0x46e5e0['filter'](_0x1bc92b=>_0x1bc92b[_0xb3058c(0x1e8)]['visible']!==_0x439bcc[_0xb3058c(0x235)])[_0xb3058c(0x213)](_0x206d3c=>({'stage':_0xb3058c(0x22d),'method':_0xb3058c(0x246),'path':_0xb3058c(0x21a),'body':{'appCode':_0x39b95f[_0xb3058c(0x1ec)],'id':_0x206d3c['id'],'visible':_0x439bcc[_0xb3058c(0x235)]}})),_0x201a4a=mutationResult({'operation':_0xb3058c(0x237),'selector':{'menuIds':_0x439bcc['menuIds'],'paths':_0x439bcc[_0xb3058c(0x20c)]},'before':{'menus':_0x2befc9[_0xb3058c(0x213)](_0x5c9049=>({'id':_0x5c9049['id'],'path':_0x5c9049[_0xb3058c(0x1d3)],'visible':_0x5c9049['visible']}))},'after':{'menus':_0x2befc9[_0xb3058c(0x213)](_0x3bfce5=>({'id':_0x3bfce5['id'],'path':_0x3bfce5[_0xb3058c(0x1d3)],'visible':_0x439bcc['visible']}))},'dryRun':_0x124037,'backend':[...BACKEND],'plannedActions':_0x50704a,'snapshotHash':_0x43906c['hash'],'warnings':_0x50704a[_0xb3058c(0x22c)]===0x0?[_0xb3058c(0x20d)]:[]});return{'plan':{..._0x201a4a,'requestedVisible':_0x439bcc[_0xb3058c(0x235)],'targets':_0x46e5e0},'beforeById':new Map(_0x2befc9[_0xb3058c(0x213)](_0x2a0470=>[_0x2a0470['id'],_0x2a0470]))};}function selectTargets(_0x53a402,_0x1d522e,_0x450396){const _0x5b78e8=a140_0x4ea6f3,_0x2ca6c5=new Map(_0x53a402['map'](_0x14c66c=>[_0x14c66c['id'],_0x14c66c])),_0x1ad90c=new Map(),_0x43c040=_0x1d522e[_0x5b78e8(0x1d1)](_0x3f3fb1=>!_0x2ca6c5[_0x5b78e8(0x22b)](_0x3f3fb1));if(_0x43c040[_0x5b78e8(0x22c)]>0x0)throw menuError(_0x5b78e8(0x24c),_0x5b78e8(0x1fb)+_0x43c040['join'](',\x20')+'.',_0x5b78e8(0x20f));for(const _0x53ee04 of _0x1d522e){_0x1ad90c['set'](_0x53ee04,_0x2ca6c5['get'](_0x53ee04));}for(const _0x3dee99 of _0x450396){const _0x435109=_0x53a402[_0x5b78e8(0x1d1)](_0x40d946=>_0x40d946[_0x5b78e8(0x1d3)]===_0x3dee99);if(_0x435109[_0x5b78e8(0x22c)]===0x0)throw menuError(_0x5b78e8(0x24c),_0x5b78e8(0x1f5)+JSON[_0x5b78e8(0x23a)](_0x3dee99)+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.');if(_0x435109[_0x5b78e8(0x22c)]>0x1)throw menuError('menu_selector_ambiguous',_0x5b78e8(0x243)+JSON[_0x5b78e8(0x23a)](_0x3dee99)+'.',_0x5b78e8(0x225)+_0x435109[_0x5b78e8(0x213)](_0x3c39a0=>_0x3c39a0['id'])[_0x5b78e8(0x1d2)](',\x20')+'.');const _0x5e5820=_0x435109[0x0];_0x1ad90c[_0x5b78e8(0x204)](_0x5e5820['id'],_0x5e5820);}return[..._0x1ad90c[_0x5b78e8(0x1f6)]()];}function parseMenuIds(_0x2d718a){const _0x60efa8=a140_0x4ea6f3,_0x5a8457=parseCsv(_0x2d718a),_0x27aedc=_0x5a8457[_0x60efa8(0x213)](Number);if(_0x27aedc[_0x60efa8(0x1df)](_0x2ba0bd=>!Number[_0x60efa8(0x1ed)](_0x2ba0bd)||_0x2ba0bd<=0x0))throw CliErrors['validation'](_0x60efa8(0x1f0));return[...new Set(_0x27aedc)];}function parseCsv(_0x3d307e){const _0x1c908d=a140_0x4ea6f3;return[...new Set(_0x3d307e[_0x1c908d(0x219)](',')[_0x1c908d(0x213)](_0x50ce19=>_0x50ce19[_0x1c908d(0x1e6)]())[_0x1c908d(0x1d1)](Boolean))];}function parseBooleanFlag(_0x4806a0,_0x46888e,_0x5ead84){const _0x156fab=a140_0x4ea6f3;if(!hasFlag(_0x4806a0,_0x46888e)){if(_0x5ead84)throw CliErrors[_0x156fab(0x1e9)](_0x46888e);return undefined;}const _0x3c9942=_0x4806a0[_0x156fab(0x236)][_0x46888e];if(_0x3c9942===!![]||_0x3c9942===![])return _0x3c9942;if(_0x3c9942==='true')return!![];if(_0x3c9942==='false')return![];throw CliErrors[_0x156fab(0x1fa)]('--'+_0x46888e+_0x156fab(0x24d));}function verifyVisibilityUpdate(_0xc377b6,_0x29d03e,_0x48f35d){const _0x38a1b8=a140_0x4ea6f3;assertVerified(!!_0x29d03e,_0x38a1b8(0x203)+_0xc377b6['id']+_0x38a1b8(0x21e)),assertVerified(_0x29d03e[_0x38a1b8(0x235)]===_0x48f35d,_0x38a1b8(0x203)+_0xc377b6['id']+'\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.');const _0x2c5785=[['id',_0x29d03e['id'],_0xc377b6['id']],[_0x38a1b8(0x1ef),_0x29d03e[_0x38a1b8(0x1ef)],_0xc377b6[_0x38a1b8(0x1ef)]],[_0x38a1b8(0x224),_0x29d03e[_0x38a1b8(0x224)],_0xc377b6[_0x38a1b8(0x224)]],[_0x38a1b8(0x1fd),_0x29d03e['label'],_0xc377b6['label']],[_0x38a1b8(0x1d3),_0x29d03e['path'],_0xc377b6[_0x38a1b8(0x1d3)]],['url',_0x29d03e[_0x38a1b8(0x1ff)],_0xc377b6[_0x38a1b8(0x1ff)]],[_0x38a1b8(0x211),_0x29d03e[_0x38a1b8(0x211)],_0xc377b6[_0x38a1b8(0x211)]],[_0x38a1b8(0x1dc),_0x29d03e[_0x38a1b8(0x1dc)],_0xc377b6[_0x38a1b8(0x1dc)]],['resources',_0x29d03e['resources'],_0xc377b6[_0x38a1b8(0x238)]],['resourcesValid',_0x29d03e[_0x38a1b8(0x1e0)],_0xc377b6[_0x38a1b8(0x1e0)]],[_0x38a1b8(0x23f),_0x29d03e['childrenIds'],_0xc377b6[_0x38a1b8(0x23f)]],[_0x38a1b8(0x24f),_0x29d03e['childrenCount'],_0xc377b6['childrenCount']],['pageId',_0x29d03e['pageId'],_0xc377b6[_0x38a1b8(0x1e1)]],[_0x38a1b8(0x207),_0x29d03e[_0x38a1b8(0x207)],_0xc377b6[_0x38a1b8(0x207)]],[_0x38a1b8(0x220),_0x29d03e[_0x38a1b8(0x220)],_0xc377b6[_0x38a1b8(0x220)]],[_0x38a1b8(0x1d8),_0x29d03e[_0x38a1b8(0x1d8)],_0xc377b6[_0x38a1b8(0x1d8)]],[_0x38a1b8(0x21d),_0x29d03e[_0x38a1b8(0x21d)],_0xc377b6[_0x38a1b8(0x21d)]]];for(const [_0x1d0377,_0x1a7d74,_0x49cfff]of _0x2c5785){assertVerified(sameValue(_0x1a7d74,_0x49cfff),_0x38a1b8(0x203)+_0xc377b6['id']+'\x20'+_0x1d0377+_0x38a1b8(0x1f1));}}function sameValue(_0x4f0bc2,_0xe5ab28){const _0x5c8d86=a140_0x4ea6f3;if(Array[_0x5c8d86(0x245)](_0x4f0bc2)||Array[_0x5c8d86(0x245)](_0xe5ab28))return JSON[_0x5c8d86(0x23a)](_0x4f0bc2)===JSON['stringify'](_0xe5ab28);return _0x4f0bc2===_0xe5ab28;}
|
|
1
|
+
const a140_0x18e524=a140_0x191d;(function(_0x23658a,_0x1654ba){const _0x21d31d=a140_0x191d,_0x643572=_0x23658a();while(!![]){try{const _0x2d1264=-parseInt(_0x21d31d(0x16e))/0x1+-parseInt(_0x21d31d(0x156))/0x2+parseInt(_0x21d31d(0x11c))/0x3*(-parseInt(_0x21d31d(0x124))/0x4)+-parseInt(_0x21d31d(0x11a))/0x5*(parseInt(_0x21d31d(0x133))/0x6)+-parseInt(_0x21d31d(0x158))/0x7+parseInt(_0x21d31d(0x14c))/0x8+-parseInt(_0x21d31d(0x159))/0x9*(-parseInt(_0x21d31d(0x148))/0xa);if(_0x2d1264===_0x1654ba)break;else _0x643572['push'](_0x643572['shift']());}catch(_0x355017){_0x643572['push'](_0x643572['shift']());}}}(a140_0x504d,0xcb6b8));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a140_0x18e524(0x135),'path':a140_0x18e524(0x180)}];export const menuVisibilityUpdate={'service':a140_0x18e524(0x186),'command':a140_0x18e524(0x174),'description':a140_0x18e524(0x185),'risk':a140_0x18e524(0x194),'structuredErrors':!![],'flags':[{'name':a140_0x18e524(0x18d),'type':a140_0x18e524(0x160),'description':a140_0x18e524(0x17f)},{'name':'paths','type':a140_0x18e524(0x160),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':'visible','type':a140_0x18e524(0x18e),'required':!![],'description':'Requested\x20menu\x20visibility'},{'name':'expect-visible','type':a140_0x18e524(0x18e),'description':'Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility'},{'name':a140_0x18e524(0x13a),'type':a140_0x18e524(0x119),'description':a140_0x18e524(0x170)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3cbd90){parseInput(_0x3cbd90),requireExplicitYes(_0x3cbd90);},async 'dryRun'(_0x570118){const _0x2fce3f=a140_0x18e524,_0x149cbf=await buildPlan(_0x570118,!![]),_0x1b7b24=_0x149cbf['plan'][_0x2fce3f(0x144)]?.[_0x2fce3f(0x125)]??0x0,_0x3f3e20=_0x149cbf[_0x2fce3f(0x183)][_0x2fce3f(0x175)][_0x2fce3f(0x125)]-_0x1b7b24;return menuDryRunResult(_0x149cbf[_0x2fce3f(0x183)],{'method':'POST','url':'/smartapi/menu/update','body':{'updates':_0x149cbf[_0x2fce3f(0x183)][_0x2fce3f(0x144)]?.[_0x2fce3f(0x153)](_0x147dcf=>_0x147dcf[_0x2fce3f(0x138)])??[]},'description':_0x2fce3f(0x146)+_0x1b7b24+_0x2fce3f(0x171)+_0x3f3e20+_0x2fce3f(0x172)});},async 'execute'(_0x5aa78c){const _0x2957d8=a140_0x18e524;requireExplicitYes(_0x5aa78c);const _0x3abd8a=await buildPlan(_0x5aa78c,![]);await recheckMutationSnapshot(_0x5aa78c,_0x3abd8a[_0x2957d8(0x183)],_0x2957d8(0x134));const _0x3b238d=[],_0xd127a5=[],_0x58defb=[];for(const _0x5e912d of _0x3abd8a['plan'][_0x2957d8(0x175)]){if(_0x5e912d['before'][_0x2957d8(0x13b)]===_0x3abd8a[_0x2957d8(0x183)][_0x2957d8(0x15f)]){_0x3b238d[_0x2957d8(0x162)]({'id':_0x5e912d['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5aa78c[_0x2957d8(0x150)],_0x5aa78c[_0x2957d8(0x141)],{'id':_0x5e912d['id'],'visible':_0x3abd8a[_0x2957d8(0x183)][_0x2957d8(0x15f)]}),_0x3b238d[_0x2957d8(0x162)]({'id':_0x5e912d['id'],'updated':!![],'skipped':![]});}catch(_0x4113fa){const _0x1efcf9=mapMenuApiError(_0x4113fa,_0x2957d8(0x178),_0x5e912d['id']);if(isMenuResponseLoss(_0x4113fa)&&_0x1efcf9[_0x2957d8(0x127)]!=='menu_permission_denied'){_0x58defb[_0x2957d8(0x162)](_0x5e912d['id']);continue;}_0xd127a5[_0x2957d8(0x162)]({'id':_0x5e912d['id'],'stage':'update','code':_0x1efcf9[_0x2957d8(0x127)],'message':_0x1efcf9[_0x2957d8(0x161)]});}}let _0x10d906;try{_0x10d906=await fetchMenuSnapshot(_0x5aa78c[_0x2957d8(0x150)],_0x5aa78c[_0x2957d8(0x141)]);}catch(_0x2b9fd0){const _0x3dbed3=describeMenuErrorCause(_0x2b9fd0,'verify\x20menu\x20visibility\x20update'),_0x359837=_0x58defb[_0x2957d8(0x153)](_0x465280=>({'id':_0x465280,'stage':_0x2957d8(0x152),'code':_0x2957d8(0x16b),'message':_0x2957d8(0x16c)+_0x465280+_0x2957d8(0x197),'requestedStateConfirmed':![],'recovered':![]})),_0x466be7={'stage':_0x2957d8(0x190),'code':_0x2957d8(0x16b),'message':'Final\x20menu\x20visibility\x20readback\x20failed.','targetIds':_0x3abd8a[_0x2957d8(0x183)]['targets']['map'](_0x550af1=>_0x550af1['id']),'requestedStateConfirmed':![],..._0x3dbed3};throw menuFailure(asVerificationError(_0x2b9fd0,_0x2957d8(0x166)),_0x3abd8a[_0x2957d8(0x183)],{'stage':'verification','succeeded':_0x3b238d,'failedRecords':[..._0xd127a5,..._0x359837,_0x466be7],'warnings':[_0x2957d8(0x147)],'verification':{'status':_0x2957d8(0x129),'recoveredCount':0x0,'lookupCommand':_0x2957d8(0x16a)}});}const _0x53440e=[];for(const _0x5d1c9e of _0x3b238d){const _0x2be493=Number(_0x5d1c9e['id']),_0x143431=_0x3abd8a[_0x2957d8(0x123)][_0x2957d8(0x182)](_0x2be493),_0xc3f57d=_0x10d906[_0x2957d8(0x15c)]['get'](_0x2be493);try{verifyVisibilityUpdate(_0x143431,_0xc3f57d,_0x3abd8a[_0x2957d8(0x183)][_0x2957d8(0x15f)]);}catch(_0x2c2a25){const _0x521043=asVerificationError(_0x2c2a25,_0x2957d8(0x126)+_0x2be493+_0x2957d8(0x189));_0x53440e['push']({'id':_0x2be493,'stage':_0x2957d8(0x190),'code':_0x521043['code'],'message':_0x521043[_0x2957d8(0x161)],'requestedStateConfirmed':![]});}}for(const _0x32607b of _0x58defb){const _0x121863=_0x3abd8a['beforeById'][_0x2957d8(0x182)](_0x32607b),_0x222f4d=_0x10d906[_0x2957d8(0x15c)][_0x2957d8(0x182)](_0x32607b);try{verifyVisibilityUpdate(_0x121863,_0x222f4d,_0x3abd8a[_0x2957d8(0x183)][_0x2957d8(0x15f)]),_0x3b238d[_0x2957d8(0x162)]({'id':_0x32607b,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x2de5b9){const _0x4262f1=asVerificationError(_0x2de5b9,_0x2957d8(0x14e)+_0x32607b+_0x2957d8(0x13e));_0x53440e[_0x2957d8(0x162)]({'id':_0x32607b,'stage':_0x2957d8(0x152),'code':_0x4262f1[_0x2957d8(0x127)],'message':_0x4262f1[_0x2957d8(0x161)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x53440e[_0x2957d8(0x125)]>0x0){const _0x403de8=_0x53440e['map'](_0x34957c=>Number(_0x34957c['id'])),_0x4c6be6=_0x3b238d[_0x2957d8(0x193)](_0x225f60=>_0x225f60['recovered']===!![])[_0x2957d8(0x125)],_0x124170=menuError(_0x2957d8(0x16b),_0x2957d8(0x122)+_0x403de8[_0x2957d8(0x151)](',\x20')+'.',_0x2957d8(0x154));throw menuFailure(_0x124170,_0x3abd8a[_0x2957d8(0x183)],{'stage':_0x2957d8(0x190),'succeeded':_0x3b238d,'failedRecords':[..._0xd127a5,..._0x53440e],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x2957d8(0x129),..._0x403de8['length']===0x1?{'targetId':_0x403de8[0x0]}:{'targetIds':_0x403de8},'recoveredCount':_0x4c6be6,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x4693e3=_0x3b238d[_0x2957d8(0x193)](_0x2abca6=>_0x2abca6[_0x2957d8(0x12e)]===!![])[_0x2957d8(0x125)],_0x4ee24f=_0x3b238d[_0x2957d8(0x125)]-_0x4693e3,_0x2daf50={..._0x3abd8a[_0x2957d8(0x183)],'succeeded':_0x3b238d,'failed':_0xd127a5,'warnings':_0xd127a5[_0x2957d8(0x125)]>0x0?[..._0x3abd8a[_0x2957d8(0x183)]['warnings'],_0x2957d8(0x184)]:_0x3abd8a[_0x2957d8(0x183)][_0x2957d8(0x13d)],'verification':{'checkedBy':_0x2957d8(0x12c),'snapshotHash':_0x10d906[_0x2957d8(0x15a)],'matchesRequestedState':_0xd127a5[_0x2957d8(0x125)]===0x0,'recoveredCount':_0x58defb[_0x2957d8(0x125)]}};return{'ok':_0xd127a5['length']===0x0,'data':_0x2daf50,'message':_0xd127a5[_0x2957d8(0x125)]===0x0?_0x2957d8(0x15d)+_0x4693e3+_0x2957d8(0x149)+_0x4ee24f+_0x2957d8(0x172):_0x2957d8(0x16d)+_0x4693e3+_0x2957d8(0x173)+_0x4ee24f+_0x2957d8(0x176)+_0xd127a5[_0x2957d8(0x125)]+_0x2957d8(0x198)};}};function parseInput(_0x561a45){const _0x2f529f=a140_0x18e524,_0x1364f8=parseMenuIds(_0x561a45[_0x2f529f(0x179)](_0x2f529f(0x18d))),_0x14a804=parseCsv(_0x561a45[_0x2f529f(0x179)](_0x2f529f(0x130)));if(_0x1364f8['length']===0x0&&_0x14a804[_0x2f529f(0x125)]===0x0)throw CliErrors[_0x2f529f(0x14f)](_0x2f529f(0x13c));const _0x145652=parseBooleanFlag(_0x561a45,'visible',!![]),_0x5ad24e=parseBooleanFlag(_0x561a45,_0x2f529f(0x12a),![]);let _0xbf7a8d;if(hasFlag(_0x561a45,_0x2f529f(0x13a))){_0xbf7a8d=_0x561a45[_0x2f529f(0x137)](_0x2f529f(0x13a));if(!Number[_0x2f529f(0x17e)](_0xbf7a8d)||_0xbf7a8d<0x0)throw CliErrors[_0x2f529f(0x14f)](_0x2f529f(0x18a));}return{'menuIds':_0x1364f8,'paths':_0x14a804,'visible':_0x145652,'expectVisible':_0x5ad24e,'expectedCount':_0xbf7a8d};}function a140_0x191d(_0x6b694f,_0x3cf1ea){_0x6b694f=_0x6b694f-0x118;const _0x504d7a=a140_0x504d();let _0x191d70=_0x504d7a[_0x6b694f];return _0x191d70;}async function buildPlan(_0x501d94,_0x2f9e1c){const _0x47e29d=a140_0x18e524,_0x1c1fe9=parseInput(_0x501d94),_0x1e0bcc=await fetchMutationSnapshot(_0x501d94,'update\x20menu\x20visibility'),_0x4367fd=selectTargets(_0x1e0bcc[_0x47e29d(0x195)],_0x1c1fe9[_0x47e29d(0x167)],_0x1c1fe9['paths']);if(_0x1c1fe9[_0x47e29d(0x136)]!==undefined&&_0x4367fd[_0x47e29d(0x125)]!==_0x1c1fe9[_0x47e29d(0x136)])throw menuError(_0x47e29d(0x132),_0x47e29d(0x17c)+_0x4367fd[_0x47e29d(0x125)]+_0x47e29d(0x120)+_0x1c1fe9[_0x47e29d(0x136)]+'.',_0x47e29d(0x16f));if(_0x1c1fe9[_0x47e29d(0x165)]!==undefined){const _0x132bf0=_0x4367fd[_0x47e29d(0x193)](_0x23f20d=>_0x23f20d[_0x47e29d(0x13b)]!==_0x1c1fe9['expectVisible']);if(_0x132bf0[_0x47e29d(0x125)]>0x0)throw menuError('menu_state_drift','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x132bf0[_0x47e29d(0x153)](_0x418b65=>_0x418b65['id'])[_0x47e29d(0x151)](',\x20')+'.',_0x47e29d(0x13f));}const _0x5ee510=_0x4367fd[_0x47e29d(0x153)](_0x57bf36=>({'id':_0x57bf36['id'],'label':_0x57bf36['label'],'path':_0x57bf36[_0x47e29d(0x14a)],'before':{'visible':_0x57bf36['visible']},'after':{'visible':_0x1c1fe9[_0x47e29d(0x13b)]}})),_0x2288ac=_0x5ee510[_0x47e29d(0x193)](_0x38ef55=>_0x38ef55[_0x47e29d(0x187)]['visible']!==_0x1c1fe9[_0x47e29d(0x13b)])[_0x47e29d(0x153)](_0x4acc90=>({'stage':_0x47e29d(0x17d),'method':_0x47e29d(0x135),'path':_0x47e29d(0x180),'body':{'appCode':_0x501d94['appCode'],'id':_0x4acc90['id'],'visible':_0x1c1fe9['visible']}})),_0x207ef7=mutationResult({'operation':_0x47e29d(0x174),'selector':{'menuIds':_0x1c1fe9[_0x47e29d(0x167)],'paths':_0x1c1fe9[_0x47e29d(0x130)]},'before':{'menus':_0x4367fd[_0x47e29d(0x153)](_0x291dfb=>({'id':_0x291dfb['id'],'path':_0x291dfb[_0x47e29d(0x14a)],'visible':_0x291dfb['visible']}))},'after':{'menus':_0x4367fd[_0x47e29d(0x153)](_0xaeb2c7=>({'id':_0xaeb2c7['id'],'path':_0xaeb2c7['path'],'visible':_0x1c1fe9[_0x47e29d(0x13b)]}))},'dryRun':_0x2f9e1c,'backend':[...BACKEND],'plannedActions':_0x2288ac,'snapshotHash':_0x1e0bcc[_0x47e29d(0x15a)],'warnings':_0x2288ac['length']===0x0?[_0x47e29d(0x157)]:[]});return{'plan':{..._0x207ef7,'requestedVisible':_0x1c1fe9[_0x47e29d(0x13b)],'targets':_0x5ee510},'beforeById':new Map(_0x4367fd[_0x47e29d(0x153)](_0x4f7bff=>[_0x4f7bff['id'],_0x4f7bff]))};}function a140_0x504d(){const _0x9a655d=['plan','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','menu','before','\x20must\x20be\x20true\x20or\x20false.','\x20visibility\x20update\x20could\x20not\x20be\x20verified','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','pageType','menu-ids','boolean','false','verification','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','flagMissing','filter','high-risk-write','menus','parentId','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','\x20failed.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','number','3877350HcLjPo','rawFlags','76947fyQouM','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','resources','modelType','\x20menu(s),\x20expected\x20','trim','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','beforeById','156NoAjAr','length','Menu\x20','code','childrenCount','failed','expect-visible','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','menu\x20list','resourcesValid','updated','Menu\x20id\x20selector(s)\x20not\x20found:\x20','paths','sort','menu_expected_count_mismatch','6dFKzkp','update\x20menu\x20visibility','POST','expectedCount','num','body','childrenIds','expected-count','visible','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','warnings','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','Menu\x20path\x20selector\x20not\x20found:\x20','cookie','split','set','plannedActions','url','Would\x20update\x20visibility\x20for\x20','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','37683450KDagAY','\x20menu(s);\x20skipped\x20','path','isArray','9371736GllSxB','menu_selector_not_found','Response\x20was\x20lost\x20and\x20menu\x20','validation','appCode','join','update-recovery','map','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','pageId','2244436CLDMJX','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','2978990TZdwcz','9nCpSsl','hash','datasetCode','byId','Updated\x20visibility\x20for\x20','stringify','requestedVisible','string','message','push','values','datasetId','expectVisible','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','menuIds','depth','some','rabetbase\x20menu\x20list\x20--format\x20compress','menu_verification_failed','Response\x20was\x20lost\x20for\x20menu\x20','Menu\x20visibility\x20update\x20completed:\x20','783035pAlrjE','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','\x20menu(s);\x20skip\x20','\x20unchanged\x20menu(s).','\x20updated,\x20','visibility-update','targets','\x20skipped,\x20','type','update\x20visibility\x20for','str','\x20changed\x20unexpectedly.','label','Selected\x20','update-menu-visibility','isSafeInteger','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','/smartapi/menu/update','true','get'];a140_0x504d=function(){return _0x9a655d;};return a140_0x504d();}function selectTargets(_0x3970c9,_0x70554d,_0x2fe9d5){const _0x4d35d3=a140_0x18e524,_0x4628f9=new Map(_0x3970c9['map'](_0x3743cb=>[_0x3743cb['id'],_0x3743cb])),_0x4d8787=new Map(),_0x3c72d1=_0x70554d[_0x4d35d3(0x193)](_0x291908=>!_0x4628f9['has'](_0x291908));if(_0x3c72d1['length']>0x0)throw menuError(_0x4d35d3(0x14d),_0x4d35d3(0x12f)+_0x3c72d1['join'](',\x20')+'.',_0x4d35d3(0x118));for(const _0x11da09 of _0x70554d){_0x4d8787[_0x4d35d3(0x143)](_0x11da09,_0x4628f9[_0x4d35d3(0x182)](_0x11da09));}for(const _0x46d9ce of _0x2fe9d5){const _0x3ebf20=_0x3970c9[_0x4d35d3(0x193)](_0x21af23=>_0x21af23[_0x4d35d3(0x14a)]===_0x46d9ce);if(_0x3ebf20[_0x4d35d3(0x125)]===0x0)throw menuError('menu_selector_not_found',_0x4d35d3(0x140)+JSON[_0x4d35d3(0x15e)](_0x46d9ce)+'.',_0x4d35d3(0x191));if(_0x3ebf20[_0x4d35d3(0x125)]>0x1)throw menuError('menu_selector_ambiguous',_0x4d35d3(0x18b)+JSON[_0x4d35d3(0x15e)](_0x46d9ce)+'.','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20'+_0x3ebf20['map'](_0x7b16ea=>_0x7b16ea['id'])['join'](',\x20')+'.');const _0x404360=_0x3ebf20[0x0];_0x4d8787[_0x4d35d3(0x143)](_0x404360['id'],_0x404360);}return[..._0x4d8787[_0x4d35d3(0x163)]()];}function parseMenuIds(_0x398d58){const _0x5b99fc=a140_0x18e524,_0xead788=parseCsv(_0x398d58),_0x1ee222=_0xead788[_0x5b99fc(0x153)](Number);if(_0x1ee222[_0x5b99fc(0x169)](_0x6b09a3=>!Number['isSafeInteger'](_0x6b09a3)||_0x6b09a3<=0x0))throw CliErrors[_0x5b99fc(0x14f)](_0x5b99fc(0x12b));return[...new Set(_0x1ee222)];}function parseCsv(_0x5450fb){const _0x38cb57=a140_0x18e524;return[...new Set(_0x5450fb[_0x38cb57(0x142)](',')['map'](_0x36ae74=>_0x36ae74[_0x38cb57(0x121)]())[_0x38cb57(0x193)](Boolean))];}function parseBooleanFlag(_0x423507,_0x3a4028,_0x1110d8){const _0x2857b5=a140_0x18e524;if(!hasFlag(_0x423507,_0x3a4028)){if(_0x1110d8)throw CliErrors[_0x2857b5(0x192)](_0x3a4028);return undefined;}const _0x8e77dd=_0x423507[_0x2857b5(0x11b)][_0x3a4028];if(_0x8e77dd===!![]||_0x8e77dd===![])return _0x8e77dd;if(_0x8e77dd===_0x2857b5(0x181))return!![];if(_0x8e77dd===_0x2857b5(0x18f))return![];throw CliErrors[_0x2857b5(0x14f)]('--'+_0x3a4028+_0x2857b5(0x188));}function verifyVisibilityUpdate(_0x418c08,_0x29273b,_0x319791){const _0x43bc92=a140_0x18e524;assertVerified(!!_0x29273b,'Menu\x20'+_0x418c08['id']+_0x43bc92(0x11d)),assertVerified(_0x29273b[_0x43bc92(0x13b)]===_0x319791,_0x43bc92(0x126)+_0x418c08['id']+'\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.');const _0x4064d9=[['id',_0x29273b['id'],_0x418c08['id']],[_0x43bc92(0x196),_0x29273b[_0x43bc92(0x196)],_0x418c08[_0x43bc92(0x196)]],[_0x43bc92(0x168),_0x29273b[_0x43bc92(0x168)],_0x418c08[_0x43bc92(0x168)]],[_0x43bc92(0x17b),_0x29273b[_0x43bc92(0x17b)],_0x418c08[_0x43bc92(0x17b)]],[_0x43bc92(0x14a),_0x29273b[_0x43bc92(0x14a)],_0x418c08[_0x43bc92(0x14a)]],[_0x43bc92(0x145),_0x29273b['url'],_0x418c08['url']],['type',_0x29273b['type'],_0x418c08[_0x43bc92(0x177)]],[_0x43bc92(0x131),_0x29273b[_0x43bc92(0x131)],_0x418c08[_0x43bc92(0x131)]],[_0x43bc92(0x11e),_0x29273b[_0x43bc92(0x11e)],_0x418c08[_0x43bc92(0x11e)]],[_0x43bc92(0x12d),_0x29273b['resourcesValid'],_0x418c08[_0x43bc92(0x12d)]],[_0x43bc92(0x139),_0x29273b[_0x43bc92(0x139)],_0x418c08[_0x43bc92(0x139)]],[_0x43bc92(0x128),_0x29273b['childrenCount'],_0x418c08[_0x43bc92(0x128)]],[_0x43bc92(0x155),_0x29273b[_0x43bc92(0x155)],_0x418c08[_0x43bc92(0x155)]],['pageType',_0x29273b[_0x43bc92(0x18c)],_0x418c08[_0x43bc92(0x18c)]],[_0x43bc92(0x11f),_0x29273b[_0x43bc92(0x11f)],_0x418c08[_0x43bc92(0x11f)]],['datasetId',_0x29273b[_0x43bc92(0x164)],_0x418c08['datasetId']],[_0x43bc92(0x15b),_0x29273b[_0x43bc92(0x15b)],_0x418c08[_0x43bc92(0x15b)]]];for(const [_0x2afa6b,_0xc64759,_0x1d0f6e]of _0x4064d9){assertVerified(sameValue(_0xc64759,_0x1d0f6e),_0x43bc92(0x126)+_0x418c08['id']+'\x20'+_0x2afa6b+_0x43bc92(0x17a));}}function sameValue(_0x1dacbe,_0x3bfcba){const _0x134d5f=a140_0x18e524;if(Array[_0x134d5f(0x14b)](_0x1dacbe)||Array['isArray'](_0x3bfcba))return JSON['stringify'](_0x1dacbe)===JSON['stringify'](_0x3bfcba);return _0x1dacbe===_0x3bfcba;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a141_0x474645=a141_0x5ef2;(function(_0x2d4aff,_0x1459d4){const _0x33271d=a141_0x5ef2,_0x4e5e0d=_0x2d4aff();while(!![]){try{const _0x16c701=-parseInt(_0x33271d(0xf0))/0x1*(-parseInt(_0x33271d(0xf7))/0x2)+-parseInt(_0x33271d(0xfb))/0x3+parseInt(_0x33271d(0xe1))/0x4+parseInt(_0x33271d(0x103))/0x5+-parseInt(_0x33271d(0xeb))/0x6*(-parseInt(_0x33271d(0x102))/0x7)+-parseInt(_0x33271d(0xe6))/0x8+-parseInt(_0x33271d(0xe7))/0x9;if(_0x16c701===_0x1459d4)break;else _0x4e5e0d['push'](_0x4e5e0d['shift']());}catch(_0x4ab5a9){_0x4e5e0d['push'](_0x4e5e0d['shift']());}}}(a141_0x2167,0x9972d));import{asDryRunResult}from'../../commands/common/dry-run.js';function a141_0x2167(){const _0x36d016=['3964168xfVpsm','3464514dRbxOE','mutation','notification_config_create_outcome_unknown','planned','433122vdBLWQ','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','channelType','appCode',';\x20do\x20not\x20resubmit\x20automatically.','79RMsZJu','configCode','verification','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','description','Inspect\x20with\x20','2078bQDmDt','isSafeInteger','POST','verified','346425CyADDK',';\x20do\x20not\x20resubmit.','configName','write','create','channelConfig','Created\x20notification\x20config\x20','7QlOwJa','5373250gtyIxw','config-create','1582196hvJrTA','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','readTimeout','notification','document'];a141_0x2167=function(){return _0x36d016;};return a141_0x2167();}import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH='/notification/channel-config/create';async function prepareCreate(_0x4a4ba8){const _0x302de4=a141_0x5ef2,_0xb343fa=await readNotificationDocument(_0x4a4ba8,_0x302de4(0xff)),_0x2ce0a2=createMutationInput(_0x4a4ba8['appCode'],_0xb343fa);return{'document':_0xb343fa,'input':_0x2ce0a2,'planned':projectNotificationConfig({'appCode':_0x4a4ba8[_0x302de4(0xee)],'configName':_0xb343fa[_0x302de4(0xfd)],'channelType':_0xb343fa[_0x302de4(0xed)],'endpointUrl':_0xb343fa['endpointUrl'],'channelConfig':_0xb343fa[_0x302de4(0x100)],'description':_0xb343fa[_0x302de4(0xf5)],'connectTimeout':_0xb343fa['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0xb343fa[_0x302de4(0xe3)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}function a141_0x5ef2(_0x3e01ce,_0x34a6d5){_0x3e01ce=_0x3e01ce-0xe1;const _0x2167e2=a141_0x2167();let _0x5ef2c7=_0x2167e2[_0x3e01ce];return _0x5ef2c7;}export const notificationConfigCreate={'service':a141_0x474645(0xe4),'command':a141_0x474645(0x104),'description':a141_0x474645(0xe2),'risk':a141_0x474645(0xfe),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x4e0466){assertSingleNotificationSource(_0x4e0466);},async 'dryRun'(_0x323778){const _0x120ede=a141_0x474645,_0x57483b=await prepareCreate(_0x323778),_0x2f22c4=notificationLookupCommand(_0x323778[_0x120ede(0xee)],_0x57483b[_0x120ede(0xe5)][_0x120ede(0xed)]);return asDryRunResult({'operation':_0x120ede(0xff),'selector':{'appCode':_0x323778[_0x120ede(0xee)],'configName':_0x57483b[_0x120ede(0xe5)][_0x120ede(0xfd)],'channelType':_0x57483b['document']['channelType']},'before':null,'after':_0x57483b[_0x120ede(0xea)],'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x120ede(0xea),'lookupCommand':_0x2f22c4}},{'method':_0x120ede(0xf9),'url':CREATE_PATH});},async 'execute'(_0x3b6214){const _0x2fe039=a141_0x474645,_0x258c00=await prepareCreate(_0x3b6214),_0x2f8dfe=notificationLookupCommand(_0x3b6214[_0x2fe039(0xee)],_0x258c00[_0x2fe039(0xe5)][_0x2fe039(0xed)]);let _0x289762;try{_0x289762=await createNotificationChannelConfig(_0x258c00['input']);}catch(_0x2a7efd){if(isPlatformTransportFailure(_0x2a7efd))throw notificationError(_0x2fe039(0xe9),_0x2fe039(0xf3),'Inspect\x20with\x20'+_0x2f8dfe+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x2fe039(0xff),_0x2fe039(0xe8),_0x2fe039(0xf6)+_0x2f8dfe+_0x2fe039(0xf4));}if(!Number[_0x2fe039(0xf8)](_0x289762)||_0x289762<=0x0)throw notificationError(_0x2fe039(0xe9),_0x2fe039(0xec),_0x2fe039(0xf6)+_0x2f8dfe+_0x2fe039(0xfc));let _0x43a634;try{const _0x2579af=await getNotificationChannelConfig(_0x289762,_0x3b6214[_0x2fe039(0xee)]);_0x43a634=normalizeExactNotificationConfig(_0x2579af,_0x289762,_0x3b6214[_0x2fe039(0xee)]);}catch{throw safeApiFailure(_0x2fe039(0xff),_0x2fe039(0xf2),_0x2fe039(0xf6)+_0x2f8dfe+_0x2fe039(0xef));}return{'ok':!![],'data':{'operation':_0x2fe039(0xff),'selector':{'appCode':_0x43a634[_0x2fe039(0xee)],'id':_0x43a634['id'],'configCode':_0x43a634[_0x2fe039(0xf1)],'configName':_0x43a634[_0x2fe039(0xfd)],'channelType':_0x43a634[_0x2fe039(0xed)]},'before':null,'after':projectNotificationConfig(_0x43a634),'dryRun':![],'backend':{'method':_0x2fe039(0xf9),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2fe039(0xfa),'lookupCommand':_0x2f8dfe}},'message':_0x2fe039(0x101)+_0x43a634['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a142_0x2e79e2=a142_0x2b18;(function(_0x5b3b06,_0x3f6a82){const _0xebce21=a142_0x2b18,_0x3dd675=_0x5b3b06();while(!![]){try{const _0xb8fc27=-parseInt(_0xebce21(0xe4))/0x1+parseInt(_0xebce21(0xd2))/0x2+-parseInt(_0xebce21(0xdd))/0x3*(parseInt(_0xebce21(0xd1))/0x4)+-parseInt(_0xebce21(0xca))/0x5*(parseInt(_0xebce21(0xe7))/0x6)+-parseInt(_0xebce21(0xd0))/0x7*(parseInt(_0xebce21(0xda))/0x8)+-parseInt(_0xebce21(0xe8))/0x9*(-parseInt(_0xebce21(0xce))/0xa)+parseInt(_0xebce21(0xd9))/0xb*(parseInt(_0xebce21(0xdc))/0xc);if(_0xb8fc27===_0x3f6a82)break;else _0x3dd675['push'](_0x3dd675['shift']());}catch(_0x498ccd){_0x3dd675['push'](_0x3dd675['shift']());}}}(a142_0x4b70,0xbb27e));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';function a142_0x2b18(_0x3d8dbb,_0x266f9a){_0x3d8dbb=_0x3d8dbb-0xc8;const _0x4b7079=a142_0x4b70();let _0x2b1891=_0x4b7079[_0x3d8dbb];return _0x2b1891;}const DELETE_PATH='/notification/channel-config/delete',REFERENCE_WARNING=a142_0x2e79e2(0xcd);function a142_0x4b70(){const _0x1606a6=['verified','Deleted\x20notification\x20config\x20','Notification\x20config\x20','notification','notification_config_delete_verification_unavailable','931945oOygBt',';\x20no\x20automatic\x20retry\x20was\x20attempted.','\x20remains\x20present\x20after\x20delete.','144774qVeLWj','16659IrIEif','appCode','notification_config_delete_outcome_unknown','10cSBmyd','Inspect\x20with\x20',';\x20do\x20not\x20resubmit\x20automatically.','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','3790EIsFAx','config-delete','14nivuxY','2349524sMUeFs','1961972waqSyq','high-risk-write','channelType','delete','POST','unshift','before','9013147tutMQa','670872uOLhbL','some','12CzQAQx','3WrUcMn','planned'];a142_0x4b70=function(){return _0x1606a6;};return a142_0x4b70();}async function prepareDelete(_0x2324d4){const _0x4e54fe=readNotificationId(_0x2324d4),_0x1a5a49=await requireExactNotificationConfig(_0x2324d4['appCode'],_0x4e54fe,'delete');return{'id':_0x4e54fe,'before':_0x1a5a49};}export const notificationConfigDelete={'service':a142_0x2e79e2(0xe2),'command':a142_0x2e79e2(0xcf),'description':'Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','risk':a142_0x2e79e2(0xd3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x4d0aa0){readNotificationId(_0x4d0aa0),requireNotificationExplicitYes(_0x4d0aa0);},async 'dryRun'(_0x5129a1){const _0x29cd0d=a142_0x2e79e2,_0x3c5233=await prepareDelete(_0x5129a1),_0x4aa023=notificationLookupCommand(_0x5129a1['appCode'],_0x3c5233[_0x29cd0d(0xd8)][_0x29cd0d(0xd4)]);return asDryRunResult({'operation':_0x29cd0d(0xd5),'selector':notificationSelector(_0x3c5233[_0x29cd0d(0xd8)]),'before':projectNotificationConfig(_0x3c5233[_0x29cd0d(0xd8)]),'after':null,'dryRun':!![],'backend':{'method':_0x29cd0d(0xd6),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x29cd0d(0xde),'lookupCommand':_0x4aa023}},{'method':_0x29cd0d(0xd6),'url':DELETE_PATH});},async 'execute'(_0x108c68){const _0x502fea=a142_0x2e79e2;requireNotificationExplicitYes(_0x108c68);const _0x4476f2=await prepareDelete(_0x108c68),_0x4040db=notificationLookupCommand(_0x108c68[_0x502fea(0xc8)],_0x4476f2['before'][_0x502fea(0xd4)]);let _0x49f66b=![];try{await deleteNotificationChannelConfig(_0x4476f2['id'],_0x108c68[_0x502fea(0xc8)]);}catch(_0x3866ac){if(!isPlatformTransportFailure(_0x3866ac))throw safeApiFailure('delete','mutation',_0x502fea(0xcb)+_0x4040db+_0x502fea(0xe5));_0x49f66b=!![];}let _0x324759;try{_0x324759=await listNotificationChannelConfigs(_0x108c68['appCode'],_0x4476f2[_0x502fea(0xd8)][_0x502fea(0xd4)]),validateNotificationDeleteReadback(_0x324759,_0x108c68[_0x502fea(0xc8)],_0x4476f2['before'][_0x502fea(0xd4)]);}catch{throw notificationError(_0x49f66b?_0x502fea(0xc9):_0x502fea(0xe3),_0x502fea(0xe1)+_0x4476f2['id']+'\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20'+_0x4040db+_0x502fea(0xcc));}if(_0x324759[_0x502fea(0xdb)](_0x577dec=>_0x577dec['id']===_0x4476f2['id']))throw notificationError(_0x49f66b?_0x502fea(0xc9):'notification_config_delete_verification_failed',_0x502fea(0xe1)+_0x4476f2['id']+_0x502fea(0xe6),'Inspect\x20with\x20'+_0x4040db+_0x502fea(0xcc));const _0x10622f=[REFERENCE_WARNING];return _0x49f66b&&_0x10622f[_0x502fea(0xd7)]('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x502fea(0xd5),'selector':notificationSelector(_0x4476f2[_0x502fea(0xd8)]),'before':projectNotificationConfig(_0x4476f2[_0x502fea(0xd8)]),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x10622f,'verification':{'status':_0x502fea(0xdf),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x49f66b,'lookupCommand':_0x4040db}},'message':_0x502fea(0xe0)+_0x4476f2['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a143_0x1ceb69=a143_0x5e21;(function(_0x26a376,_0x3703a){const _0x4c3a37=a143_0x5e21,_0x2a4eb6=_0x26a376();while(!![]){try{const _0x242387=parseInt(_0x4c3a37(0x1f0))/0x1+parseInt(_0x4c3a37(0x1e8))/0x2*(-parseInt(_0x4c3a37(0x1eb))/0x3)+-parseInt(_0x4c3a37(0x1f2))/0x4+-parseInt(_0x4c3a37(0x1e1))/0x5*(parseInt(_0x4c3a37(0x1ed))/0x6)+parseInt(_0x4c3a37(0x1ef))/0x7*(parseInt(_0x4c3a37(0x1e0))/0x8)+parseInt(_0x4c3a37(0x1ea))/0x9*(parseInt(_0x4c3a37(0x1e3))/0xa)+-parseInt(_0x4c3a37(0x1ec))/0xb*(-parseInt(_0x4c3a37(0x1de))/0xc);if(_0x242387===_0x3703a)break;else _0x2a4eb6['push'](_0x2a4eb6['shift']());}catch(_0x8a632a){_0x2a4eb6['push'](_0x2a4eb6['shift']());}}}(a143_0x5d55,0x20b88));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a143_0x5d55(){const _0x46036f=['EMAIL','\x20notification\x20config(s)','map','51830EWAjYa','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','910053gJKMtI','27qBAusK','22uBQwPi','18biXNXA','read','574EdoXhE','171484DoLeaI','appCode','890976oqttyN','1270992kDnfgT','Found\x20','3344vtNwyR','49705EQWpPj','Notification\x20channel\x20type','20NbVcDx','config-list'];a143_0x5d55=function(){return _0x46036f;};return a143_0x5d55();}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a143_0x5e21(_0x2f9116,_0x56dd32){_0x2f9116=_0x2f9116-0x1de;const _0x5d5535=a143_0x5d55();let _0x5e212d=_0x5d5535[_0x2f9116];return _0x5e212d;}export const notificationConfigList={'service':'notification','command':a143_0x1ceb69(0x1e4),'description':a143_0x1ceb69(0x1e9),'risk':a143_0x1ceb69(0x1ee),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':'string','description':a143_0x1ceb69(0x1e2),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a143_0x1ceb69(0x1e5)}],async 'validate'(_0x21aad8){readNotificationChannelType(_0x21aad8);},async 'execute'(_0x4a6e7f){const _0x16215d=a143_0x1ceb69,_0x289d2c=readNotificationChannelType(_0x4a6e7f),_0xad38b=await listNotificationChannelConfigs(_0x4a6e7f[_0x16215d(0x1f1)],_0x289d2c),_0x589f2b=_0xad38b[_0x16215d(0x1e7)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x4a6e7f[_0x16215d(0x1f1)],'channelType':_0x289d2c,'count':_0x589f2b['length'],'configs':_0x589f2b},'message':_0x16215d(0x1df)+_0x589f2b['length']+'\x20'+_0x289d2c+_0x16215d(0x1e6)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a144_0x3565(){const _0x521695=['Inspect\x20ID\x20',';\x20do\x20not\x20resubmit\x20automatically.','\x20via\x20','update','2311434yFOUtB','appCode','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','2281670ZfhsQO','mutation','Inspect\x20with\x20--id\x20','POST','notification','44DHfqDZ','planned','config-update','payload','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','notification_config_update_verification_unavailable','allMatch','\x20with\x20','verifiedFields','provesChange','verified','notification_config_update_verification_failed','Updated\x20notification\x20config\x20','patch','1451764VgtEBi','Notification\x20config\x20','211656QeoMUU','before','7860640lNtqGo','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch',';\x20no\x20automatic\x20retry\x20was\x20attempted.','1316932WDhQAm','102072TGBXhm','140Erngyc','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','8aZSMsl','high-risk-write','/notification/channel-config/update','channelType'];a144_0x3565=function(){return _0x521695;};return a144_0x3565();}const a144_0x46142a=a144_0x178d;(function(_0x47e949,_0x4c08f8){const _0x410f84=a144_0x178d,_0x541cf4=_0x47e949();while(!![]){try{const _0x2cf710=parseInt(_0x410f84(0x11f))/0x1+-parseInt(_0x410f84(0x118))/0x2+parseInt(_0x410f84(0x11a))/0x3*(parseInt(_0x410f84(0x10a))/0x4)+-parseInt(_0x410f84(0x105))/0x5+-parseInt(_0x410f84(0x120))/0x6*(-parseInt(_0x410f84(0x121))/0x7)+parseInt(_0x410f84(0x123))/0x8*(parseInt(_0x410f84(0x102))/0x9)+-parseInt(_0x410f84(0x11c))/0xa;if(_0x2cf710===_0x4c08f8)break;else _0x541cf4['push'](_0x541cf4['shift']());}catch(_0x125bca){_0x541cf4['push'](_0x541cf4['shift']());}}}(a144_0x3565,0xb037e));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';function a144_0x178d(_0x4132c0,_0x12f91f){_0x4132c0=_0x4132c0-0xfc;const _0x356564=a144_0x3565();let _0x178d2f=_0x356564[_0x4132c0];return _0x178d2f;}const UPDATE_PATH=a144_0x46142a(0xfc);async function prepareUpdate(_0x216881){const _0x2d1b95=a144_0x46142a,_0x482094=readNotificationId(_0x216881),_0x53a66e=await readNotificationDocument(_0x216881,_0x2d1b95(0x101)),_0x367e21=await requireExactNotificationConfig(_0x216881[_0x2d1b95(0x103)],_0x482094,_0x2d1b95(0x101));return{'id':_0x482094,'patch':_0x53a66e,'before':_0x367e21,'payload':mergeUpdateInput(_0x367e21,_0x53a66e),'planned':plannedUpdateProjection(_0x367e21,_0x53a66e)};}export const notificationConfigUpdate={'service':a144_0x46142a(0x109),'command':a144_0x46142a(0x10c),'description':a144_0x46142a(0x11d),'risk':a144_0x46142a(0x124),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3f3a45){readNotificationId(_0x3f3a45),assertSingleNotificationSource(_0x3f3a45),requireNotificationExplicitYes(_0x3f3a45);},async 'dryRun'(_0x375efb){const _0x52a1cc=a144_0x46142a,_0x2d50e6=await prepareUpdate(_0x375efb),_0xe60139=notificationLookupCommand(_0x375efb[_0x52a1cc(0x103)],_0x2d50e6['before']['channelType']);return asDryRunResult({'operation':_0x52a1cc(0x101),'selector':notificationSelector(_0x2d50e6[_0x52a1cc(0x11b)]),'before':projectNotificationConfig(_0x2d50e6[_0x52a1cc(0x11b)]),'after':_0x2d50e6[_0x52a1cc(0x10b)],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x52a1cc(0x10b),'lookupCommand':_0xe60139}},{'method':_0x52a1cc(0x108),'url':UPDATE_PATH});},async 'execute'(_0x40ee81){const _0x454f30=a144_0x46142a;requireNotificationExplicitYes(_0x40ee81);const _0x4e7499=await prepareUpdate(_0x40ee81),_0x410366=notificationLookupCommand(_0x40ee81['appCode'],_0x4e7499[_0x454f30(0x11b)][_0x454f30(0xfd)]);let _0x1b7b18=![];try{await updateNotificationChannelConfig(_0x4e7499[_0x454f30(0x10d)]);}catch(_0x1d58c6){if(!isPlatformTransportFailure(_0x1d58c6))throw safeApiFailure(_0x454f30(0x101),_0x454f30(0x106),_0x454f30(0xfe)+_0x4e7499['id']+_0x454f30(0x111)+_0x410366+_0x454f30(0x11e));_0x1b7b18=!![];}let _0x1d1eb1;try{const _0x5c18fc=await getNotificationChannelConfig(_0x4e7499['id'],_0x40ee81[_0x454f30(0x103)]);_0x1d1eb1=normalizeExactNotificationConfig(_0x5c18fc,_0x4e7499['id'],_0x40ee81[_0x454f30(0x103)]);}catch{throw notificationError(_0x1b7b18?'notification_config_update_outcome_unknown':_0x454f30(0x10f),_0x454f30(0x119)+_0x4e7499['id']+_0x454f30(0x104),_0x454f30(0x107)+_0x4e7499['id']+_0x454f30(0x100)+_0x410366+_0x454f30(0xff));}const _0x3ad681=requestedSafeFieldsMatch(_0x4e7499['before'],_0x1d1eb1,_0x4e7499[_0x454f30(0x117)]);if(!_0x3ad681[_0x454f30(0x110)]||_0x1b7b18&&!_0x3ad681[_0x454f30(0x113)])throw notificationError(_0x1b7b18?'notification_config_update_outcome_unknown':_0x454f30(0x115),_0x454f30(0x119)+_0x4e7499['id']+_0x454f30(0x10e),_0x454f30(0x107)+_0x4e7499['id']+_0x454f30(0x100)+_0x410366+';\x20do\x20not\x20resubmit\x20automatically.');const _0x322066=_0x1b7b18?[_0x454f30(0x122)]:[];return{'ok':!![],'data':{'operation':'update','selector':notificationSelector(_0x1d1eb1),'before':projectNotificationConfig(_0x4e7499[_0x454f30(0x11b)]),'after':projectNotificationConfig(_0x1d1eb1),'dryRun':![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':_0x322066,'verification':{'status':_0x454f30(0x114),'recoveredAfterUnknownResponse':_0x1b7b18,'verifiedFields':_0x3ad681[_0x454f30(0x112)],'lookupCommand':_0x410366}},'message':_0x454f30(0x116)+_0x1d1eb1['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x364643,_0x239801){const _0x49d987=a145_0x4a84,_0x259dff=_0x364643();while(!![]){try{const _0x445fe1=-parseInt(_0x49d987(0x129))/0x1+-parseInt(_0x49d987(0x126))/0x2*(-parseInt(_0x49d987(0x12a))/0x3)+parseInt(_0x49d987(0x12d))/0x4+-parseInt(_0x49d987(0x12e))/0x5*(-parseInt(_0x49d987(0x128))/0x6)+parseInt(_0x49d987(0x127))/0x7+-parseInt(_0x49d987(0x12b))/0x8+parseInt(_0x49d987(0x12c))/0x9;if(_0x445fe1===_0x239801)break;else _0x259dff['push'](_0x259dff['shift']());}catch(_0x22fe2e){_0x259dff['push'](_0x259dff['shift']());}}}(a145_0x5a82,0x85458));import{notificationConfigList}from'../../commands/notification/config-list.js';function a145_0x4a84(_0x27bac4,_0x12ba1c){_0x27bac4=_0x27bac4-0x126;const _0x5a82c4=a145_0x5a82();let _0x4a8494=_0x5a82c4[_0x27bac4];return _0x4a8494;}function a145_0x5a82(){const _0x13a9f2=['4196952qxlQzL','855008fpeupw','485uOZRcq','2QxKhLJ','2434831KIdXOy','22710klXiKd','532333FxVnQU','2030319FcSYiT','7948944uwNWCg'];a145_0x5a82=function(){return _0x13a9f2;};return a145_0x5a82();}import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a146_0x5eb608=a146_0x37c8;(function(_0x5c20ac,_0x5461a7){const _0x1d1368=a146_0x37c8,_0x34896c=_0x5c20ac();while(!![]){try{const _0xcdd189=-parseInt(_0x1d1368(0x15b))/0x1+-parseInt(_0x1d1368(0x16a))/0x2+parseInt(_0x1d1368(0x143))/0x3+parseInt(_0x1d1368(0x16d))/0x4+parseInt(_0x1d1368(0x18b))/0x5+-parseInt(_0x1d1368(0x145))/0x6*(-parseInt(_0x1d1368(0x11d))/0x7)+parseInt(_0x1d1368(0x168))/0x8*(-parseInt(_0x1d1368(0x156))/0x9);if(_0xcdd189===_0x5461a7)break;else _0x34896c['push'](_0x34896c['shift']());}catch(_0x427995){_0x34896c['push'](_0x34896c['shift']());}}}(a146_0x4bb2,0xb0706));function a146_0x4bb2(){const _0x4b86f5=['environment\x20variable\x20','appCode','Allowed\x20values:\x20','includes','notification_config_','bool','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','call','a\x20non-empty\x20string','3760812kNLTXD','\x20characters.','stdin','notification_config_source_unavailable','recipients','947601VHapje','\x20has\x20an\x20invalid\x20appCode.','update','path','\x20has\x20an\x20unsupported\x20channelType.','notification_config_field_required','Notification\x20config\x20list\x20item\x20','Missing\x20notification\x20JSON\x20source.','EMAIL','messageTemplate','has','object','a\x20string\x20or\x20null','8owxMcH','emailTargets','1432770vrvPuE','mutation','replyTo','4786252rnRJbj','isArray','join','\x20--type\x20','Notification\x20JSON\x20source\x20is\x20ambiguous.','\x22\x20must\x20be\x20a\x20non-empty\x20string.','Notification\x20JSON\x20field\x20\x22','endpointUrl','WEBHOOK','isSafeInteger','notification_config_channel_field_forbidden','number','str','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','apiError','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','configName','some','channelConfigRaw','\x22\x20cannot\x20exceed\x20','notification_config_confirmation_required','Create\x20JSON\x20requires\x20field\x20','push','Notification\x20JSON\x20from\x20','length','yes','Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20','\x22configName\x22.','_unavailable','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','687555RUlGxT','\x20is\x20invalid.','notification_config_json_invalid','endpointUrl:null','connectTimeout','a\x20JSON\x20object','\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.','name','create','a\x20JSON\x20object\x20or\x20null','\x22\x20must\x20be\x20','ccList','configCode','string','failed','validation','preflight','notification_config_field_invalid','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','channelType','fromName','\x20must\x20be\x20an\x20object.','notification_config_id_invalid','Notification\x20JSON\x20channelConfig\x20field\x20\x22','5644807PcBOhF','\x20has\x20an\x20invalid\x20id.','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','kind','from-env','env','\x20has\x20invalid\x20field\x20\x22','notification_config_response_invalid','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','DINGTALK','num','notification_config_field_unknown','hasOwnProperty','utf8','\x20has\x20an\x20invalid\x20channelType.','readTimeout','notification_config_update_empty','channelConfig','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','subjectPrefix','bccList','\x20is\x20missing\x20required\x20field\x20\x22','FEISHU','setEncoding','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20','endpointUrlRaw','keys','Unknown\x20notification\x20JSON\x20field\x20\x22','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','file\x20','trim','WECOM','Invalid\x20--','entries','description','Notification\x20config\x20','dry-run','1992219hdpXbH','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','6WaOtpQ','rabetbase\x20notification\x20config-list\x20--appcode\x20','updateTime','file','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','Application-level\x20notification\x20config\x20ID','Item\x20'];a146_0x4bb2=function(){return _0x4b86f5;};return a146_0x4bb2();}import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a146_0x5eb608(0x163),a146_0x5eb608(0x134),a146_0x5eb608(0x127),a146_0x5eb608(0x13d),a146_0x5eb608(0x175)];function a146_0x37c8(_0x40e7ec,_0x57f5d0){_0x40e7ec=_0x40e7ec-0x115;const _0x4bb21e=a146_0x4bb2();let _0x37c81d=_0x4bb21e[_0x40e7ec];return _0x37c81d;}export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x5eb608(0x17d),'channelType','endpointUrl','channelConfig',a146_0x5eb608(0x140),'connectTimeout',a146_0x5eb608(0x12d)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id','appCode',a146_0x5eb608(0x197),'channelCode']),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x5eb608(0x169),a146_0x5eb608(0x15a),a146_0x5eb608(0x196),a146_0x5eb608(0x132),a146_0x5eb608(0x16c),a146_0x5eb608(0x131),a146_0x5eb608(0x119),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0x5eb608(0x148),'type':'string','required':![],'description':a146_0x5eb608(0x152)},{'name':a146_0x5eb608(0x158),'type':'boolean','required':![],'default':![],'description':a146_0x5eb608(0x120)},{'name':a146_0x5eb608(0x122),'type':a146_0x5eb608(0x198),'required':![],'description':a146_0x5eb608(0x153)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x5eb608(0x178),'required':!![],'description':a146_0x5eb608(0x14a)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x5904ef,_0x491fb4,_0x2cf014){return new CliError(_0x5904ef,0x1,_0x491fb4,_0x2cf014);}export function readNotificationId(_0x2abada){const _0xbf9070=a146_0x5eb608,_0x37236a=_0x2abada[_0xbf9070(0x128)]('id');if(!Number[_0xbf9070(0x176)](_0x37236a)||_0x37236a<=0x0)throw notificationError(_0xbf9070(0x11b),_0xbf9070(0x144));return _0x37236a;}export function requireNotificationExplicitYes(_0x53b08){const _0x1865aa=a146_0x5eb608;if(_0x53b08[_0x1865aa(0x151)](_0x1865aa(0x142))||_0x53b08['bool'](_0x1865aa(0x186)))return;throw notificationError(_0x1865aa(0x181),_0x1865aa(0x17c),_0x1865aa(0x17a));}export function readNotificationChannelType(_0x2696f5,_0x36432c='type',_0x494aab=a146_0x5eb608(0x163)){const _0x42766f=a146_0x5eb608,_0x55e400=_0x2696f5[_0x42766f(0x179)](_0x36432c)[_0x42766f(0x13c)]()||_0x494aab;if(!NOTIFICATION_CHANNEL_TYPES[_0x42766f(0x14f)](_0x55e400))throw CliErrors[_0x42766f(0x19a)](_0x42766f(0x13e)+_0x36432c+':\x20'+_0x55e400,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x42766f(0x16f)](',\x20')+'.');return _0x55e400;}export function assertSingleNotificationSource(_0x2aaef1){const _0x40fd66=a146_0x5eb608,_0xb0d1e9=[],_0x36f4d2=_0x2aaef1['str'](_0x40fd66(0x148))[_0x40fd66(0x13c)]();if(_0x36f4d2)_0xb0d1e9[_0x40fd66(0x183)]({'kind':'file','path':_0x36f4d2});if(_0x2aaef1['bool'](_0x40fd66(0x158)))_0xb0d1e9[_0x40fd66(0x183)]({'kind':'stdin'});const _0x3dc5e9=_0x2aaef1[_0x40fd66(0x179)](_0x40fd66(0x122))[_0x40fd66(0x13c)]();if(_0x3dc5e9)_0xb0d1e9[_0x40fd66(0x183)]({'kind':_0x40fd66(0x123),'name':_0x3dc5e9});if(_0xb0d1e9['length']===0x0)throw CliErrors[_0x40fd66(0x19a)](_0x40fd66(0x162),_0x40fd66(0x149));if(_0xb0d1e9['length']>0x1)throw CliErrors[_0x40fd66(0x19a)](_0x40fd66(0x171),_0x40fd66(0x149));return _0xb0d1e9[0x0];}export async function readNotificationDocument(_0x5c115a,_0x2d0643){const _0x3ded30=a146_0x5eb608,_0x1ec958=assertSingleNotificationSource(_0x5c115a),_0x1dcae5=_0x1ec958[_0x3ded30(0x121)]===_0x3ded30(0x148)?_0x3ded30(0x13b)+_0x1ec958[_0x3ded30(0x15e)]:_0x1ec958[_0x3ded30(0x121)]===_0x3ded30(0x123)?_0x3ded30(0x14c)+_0x1ec958[_0x3ded30(0x192)]:_0x3ded30(0x158);let _0x445638;try{if(_0x1ec958[_0x3ded30(0x121)]===_0x3ded30(0x148))_0x445638=await readFile(_0x1ec958['path'],_0x3ded30(0x12b));else{if(_0x1ec958[_0x3ded30(0x121)]===_0x3ded30(0x123)){if(!(_0x1ec958[_0x3ded30(0x192)]in process.env))throw notificationError('notification_config_source_unavailable',_0x3ded30(0x136)+_0x1ec958[_0x3ded30(0x192)]);_0x445638=process.env[_0x1ec958.name]??'';}else _0x445638=await readStdin();}}catch(_0x4c6447){if(_0x4c6447 instanceof CliError)throw _0x4c6447;throw notificationError(_0x3ded30(0x159),_0x3ded30(0x117)+_0x1dcae5+'.');}let _0x754811;try{_0x754811=JSON['parse'](_0x445638);}catch{throw notificationError(_0x3ded30(0x18d),_0x3ded30(0x184)+_0x1dcae5+_0x3ded30(0x18c),_0x3ded30(0x13a));}if(!isJsonObject(_0x754811))throw notificationError(_0x3ded30(0x18d),_0x3ded30(0x184)+_0x1dcae5+_0x3ded30(0x11a));return validateNotificationDocument(_0x754811,_0x2d0643);}export function projectNotificationListConfig(_0x24e361,_0x1f3b3a){const _0xd26937=a146_0x5eb608;return{'id':typeof _0x24e361['id']==='number'?_0x24e361['id']:null,'configCode':requireResponseString(_0x24e361[_0xd26937(0x197)],_0xd26937(0x197),_0x1f3b3a),'configName':requireResponseString(_0x24e361[_0xd26937(0x17d)],_0xd26937(0x17d),_0x1f3b3a),'channelType':requireResponseString(_0x24e361[_0xd26937(0x118)],_0xd26937(0x118),_0x1f3b3a),'description':normalizeNullableString(_0x24e361[_0xd26937(0x140)]),'createTime':normalizeNullableString(_0x24e361['createTime']),'updateTime':normalizeNullableString(_0x24e361[_0xd26937(0x147)])};}export function normalizeExactNotificationConfig(_0x28575e,_0x5430dc,_0x13f3d2){const _0x40498a=a146_0x5eb608;if(!Number[_0x40498a(0x176)](_0x28575e['id'])||_0x28575e['id']!==_0x5430dc)throw notificationError(_0x40498a(0x125),_0x40498a(0x187)+_0x5430dc+'.');if(_0x28575e[_0x40498a(0x14d)]!==_0x13f3d2)throw notificationError(_0x40498a(0x125),_0x40498a(0x141)+_0x5430dc+'\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.');const _0x16d626=requireExactString(_0x28575e[_0x40498a(0x17d)],'configName',_0x5430dc),_0x3d6e32=requireExactString(_0x28575e[_0x40498a(0x197)],_0x40498a(0x197),_0x5430dc),_0x757bb0=requireExactString(_0x28575e[_0x40498a(0x118)],_0x40498a(0x118),_0x5430dc);if(!NOTIFICATION_CHANNEL_TYPES[_0x40498a(0x14f)](_0x757bb0))throw notificationError(_0x40498a(0x125),_0x40498a(0x141)+_0x5430dc+_0x40498a(0x15f));const _0x11301f=responseNullableString(_0x28575e[_0x40498a(0x174)],'endpointUrl',_0x5430dc),_0x44d608=responseNullableString(_0x28575e['channelConfig'],_0x40498a(0x12f),_0x5430dc),_0x1067a7=responseNullableString(_0x28575e[_0x40498a(0x140)],'description',_0x5430dc),_0x4d6e24=responseNullableTimeout(_0x28575e[_0x40498a(0x18f)],_0x40498a(0x18f),_0x5430dc),_0x2cc943=responseNullableTimeout(_0x28575e[_0x40498a(0x12d)],'readTimeout',_0x5430dc);return{'id':_0x5430dc,'appCode':_0x13f3d2,'configCode':_0x3d6e32,'configName':_0x16d626,'channelType':_0x757bb0,'endpointUrl':redactSensitive(_0x11301f),'channelConfig':redactSensitive(_0x44d608),'description':_0x1067a7,'connectTimeout':_0x4d6e24,'readTimeout':_0x2cc943,'endpointUrlRaw':_0x11301f,'channelConfigRaw':_0x44d608};}export async function requireExactNotificationConfig(_0x59721f,_0x1acd29,_0x549742){const _0x167e98=a146_0x5eb608;let _0x39d7d6;try{_0x39d7d6=await getNotificationChannelConfig(_0x1acd29,_0x59721f);}catch{throw safeApiFailure(_0x549742,_0x167e98(0x115),_0x167e98(0x126)+_0x59721f+_0x167e98(0x130));}return normalizeExactNotificationConfig(_0x39d7d6,_0x1acd29,_0x59721f);}export function projectNotificationConfig(_0x22274f){const _0x3a82f8=a146_0x5eb608;return{'id':_0x22274f['id']??null,'appCode':_0x22274f[_0x3a82f8(0x14d)],'configCode':_0x22274f[_0x3a82f8(0x197)]??null,'configName':_0x22274f['configName'],'channelType':_0x22274f[_0x3a82f8(0x118)],'endpointUrl':redactSensitive(_0x22274f[_0x3a82f8(0x174)]),'channelConfig':redactSensitive(_0x22274f[_0x3a82f8(0x12f)]),'description':_0x22274f[_0x3a82f8(0x140)]??null,'connectTimeout':_0x22274f[_0x3a82f8(0x18f)]??null,'readTimeout':_0x22274f[_0x3a82f8(0x12d)]??null};}export function notificationSelector(_0x3c2b30){const _0x1993cf=a146_0x5eb608;return{'appCode':_0x3c2b30[_0x1993cf(0x14d)],'id':_0x3c2b30['id'],'configCode':_0x3c2b30[_0x1993cf(0x197)],'configName':_0x3c2b30[_0x1993cf(0x17d)],'channelType':_0x3c2b30[_0x1993cf(0x118)]};}export function createMutationInput(_0x2a581c,_0x3355c9){const _0x42b2ef=a146_0x5eb608;return{'appCode':_0x2a581c,'configName':_0x3355c9['configName'],'channelType':_0x3355c9[_0x42b2ef(0x118)],...hasOwn(_0x3355c9,_0x42b2ef(0x174))?{'endpointUrl':_0x3355c9['endpointUrl']}:{},...hasOwn(_0x3355c9,_0x42b2ef(0x12f))?{'channelConfig':serializeChannelConfig(_0x3355c9[_0x42b2ef(0x12f)])}:{},...hasOwn(_0x3355c9,_0x42b2ef(0x140))?{'description':_0x3355c9[_0x42b2ef(0x140)]}:{},...hasOwn(_0x3355c9,_0x42b2ef(0x18f))?{'connectTimeout':_0x3355c9[_0x42b2ef(0x18f)]}:{},...hasOwn(_0x3355c9,_0x42b2ef(0x12d))?{'readTimeout':_0x3355c9[_0x42b2ef(0x12d)]}:{}};}export function mergeUpdateInput(_0x1fcca9,_0x220a8f){const _0x42b461=a146_0x5eb608;return{'id':_0x1fcca9['id'],'appCode':_0x1fcca9[_0x42b461(0x14d)],'configName':_0x220a8f[_0x42b461(0x17d)]??_0x1fcca9[_0x42b461(0x17d)],'channelType':_0x220a8f[_0x42b461(0x118)]??_0x1fcca9[_0x42b461(0x118)],'endpointUrl':hasOwn(_0x220a8f,'endpointUrl')?_0x220a8f[_0x42b461(0x174)]:_0x1fcca9['endpointUrlRaw'],'channelConfig':hasOwn(_0x220a8f,_0x42b461(0x12f))?serializeChannelConfig(_0x220a8f[_0x42b461(0x12f)]):_0x1fcca9[_0x42b461(0x17f)],'description':hasOwn(_0x220a8f,'description')?_0x220a8f[_0x42b461(0x140)]:_0x1fcca9[_0x42b461(0x140)],'connectTimeout':hasOwn(_0x220a8f,_0x42b461(0x18f))?_0x220a8f[_0x42b461(0x18f)]:_0x1fcca9['connectTimeout'],'readTimeout':hasOwn(_0x220a8f,'readTimeout')?_0x220a8f[_0x42b461(0x12d)]:_0x1fcca9[_0x42b461(0x12d)]};}export function plannedUpdateProjection(_0x3d03b9,_0x5647ef){const _0x5f3096=a146_0x5eb608;return projectNotificationConfig({'id':_0x3d03b9['id'],'appCode':_0x3d03b9[_0x5f3096(0x14d)],'configCode':_0x3d03b9[_0x5f3096(0x197)],'configName':_0x5647ef[_0x5f3096(0x17d)]??_0x3d03b9[_0x5f3096(0x17d)],'channelType':_0x5647ef[_0x5f3096(0x118)]??_0x3d03b9[_0x5f3096(0x118)],'endpointUrl':hasOwn(_0x5647ef,_0x5f3096(0x174))?_0x5647ef[_0x5f3096(0x174)]:_0x3d03b9[_0x5f3096(0x137)],'channelConfig':hasOwn(_0x5647ef,'channelConfig')?_0x5647ef['channelConfig']:_0x3d03b9[_0x5f3096(0x17f)],'description':hasOwn(_0x5647ef,'description')?_0x5647ef[_0x5f3096(0x140)]:_0x3d03b9[_0x5f3096(0x140)],'connectTimeout':hasOwn(_0x5647ef,_0x5f3096(0x18f))?_0x5647ef[_0x5f3096(0x18f)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x3d03b9[_0x5f3096(0x18f)],'readTimeout':hasOwn(_0x5647ef,'readTimeout')?_0x5647ef['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x3d03b9[_0x5f3096(0x12d)]});}export function requestedSafeFieldsMatch(_0x347a88,_0x3e97a5,_0x40f0c6){const _0xd363c7=a146_0x5eb608,_0x781b0b=[],_0x13e7b5=[],_0x3dddd4=[];for(const _0x473c10 of[_0xd363c7(0x17d),'channelType',_0xd363c7(0x140)]){if(!hasOwn(_0x40f0c6,_0x473c10))continue;_0x3dddd4[_0xd363c7(0x183)](_0x473c10),_0x781b0b['push'](_0x3e97a5[_0x473c10]===_0x40f0c6[_0x473c10]),_0x13e7b5[_0xd363c7(0x183)](_0x347a88[_0x473c10]!==_0x40f0c6[_0x473c10]&&_0x3e97a5[_0x473c10]===_0x40f0c6[_0x473c10]);}for(const _0x22b72e of[_0xd363c7(0x18f),_0xd363c7(0x12d)]){if(!hasOwn(_0x40f0c6,_0x22b72e))continue;const _0x20f3b1=_0x40f0c6[_0x22b72e]??(_0x22b72e===_0xd363c7(0x18f)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x3dddd4[_0xd363c7(0x183)](_0x22b72e),_0x781b0b[_0xd363c7(0x183)](_0x3e97a5[_0x22b72e]===_0x20f3b1),_0x13e7b5[_0xd363c7(0x183)](_0x347a88[_0x22b72e]!==_0x20f3b1&&_0x3e97a5[_0x22b72e]===_0x20f3b1);}return hasOwn(_0x40f0c6,_0xd363c7(0x174))&&_0x40f0c6[_0xd363c7(0x174)]===null&&(_0x3dddd4['push'](_0xd363c7(0x18e)),_0x781b0b[_0xd363c7(0x183)](_0x3e97a5[_0xd363c7(0x137)]===null||_0x3e97a5['endpointUrlRaw']===''),_0x13e7b5[_0xd363c7(0x183)](_0x347a88['endpointUrlRaw']!==null&&_0x347a88[_0xd363c7(0x137)]!==''&&(_0x3e97a5['endpointUrlRaw']===null||_0x3e97a5[_0xd363c7(0x137)]===''))),{'allMatch':_0x781b0b['every'](Boolean),'provesChange':_0x13e7b5[_0xd363c7(0x17e)](Boolean),'verifiedFields':_0x3dddd4};}export function validateNotificationDeleteReadback(_0x33a52c,_0x2465fc,_0x25631f){const _0x275423=a146_0x5eb608;for(const [_0x5c0e34,_0x5ecc7c]of _0x33a52c[_0x275423(0x13f)]()){if(!Number[_0x275423(0x176)](_0x5ecc7c['id'])||_0x5ecc7c['id']<=0x0)throw notificationError(_0x275423(0x125),'Notification\x20config\x20list\x20item\x20'+(_0x5c0e34+0x1)+_0x275423(0x11e));if(_0x5ecc7c['appCode']!==_0x2465fc)throw notificationError(_0x275423(0x125),_0x275423(0x161)+(_0x5c0e34+0x1)+_0x275423(0x15c));if(_0x5ecc7c[_0x275423(0x118)]!==_0x25631f)throw notificationError('notification_config_response_invalid',_0x275423(0x161)+(_0x5c0e34+0x1)+_0x275423(0x12c));}}export function safeApiFailure(_0x4a506a,_0x317524,_0x3891a7){const _0x2d20b0=a146_0x5eb608;return notificationError(_0x2d20b0(0x150)+_0x4a506a+'_'+(_0x317524===_0x2d20b0(0x16b)?_0x2d20b0(0x199):_0x317524+_0x2d20b0(0x189)),_0x2d20b0(0x141)+_0x4a506a+'\x20'+_0x317524+'\x20failed.',_0x3891a7);}export function notificationLookupCommand(_0xea0d3,_0xea83b3){const _0x31230c=a146_0x5eb608;return _0x31230c(0x146)+_0xea0d3+_0x31230c(0x170)+_0xea83b3+'\x20--format\x20compress';}function validateNotificationDocument(_0x454a5d,_0x136c87){const _0x5d9f25=a146_0x5eb608;for(const _0x211854 of Object[_0x5d9f25(0x138)](_0x454a5d)){if(FORBIDDEN_IDENTITY_FIELDS[_0x5d9f25(0x165)](_0x211854))throw notificationError('notification_config_field_forbidden',_0x5d9f25(0x173)+_0x211854+_0x5d9f25(0x191));if(!ALLOWED_INPUT_FIELDS[_0x5d9f25(0x165)](_0x211854))throw notificationError(_0x5d9f25(0x129),_0x5d9f25(0x139)+_0x211854+'\x22.');}if(_0x136c87===_0x5d9f25(0x15d)&&Object[_0x5d9f25(0x138)](_0x454a5d)[_0x5d9f25(0x185)]===0x0)throw notificationError(_0x5d9f25(0x12e),_0x5d9f25(0x18a));const _0x36c6f1={};if(hasOwn(_0x454a5d,_0x5d9f25(0x17d)))_0x36c6f1[_0x5d9f25(0x17d)]=validateRequiredString(_0x454a5d['configName'],_0x5d9f25(0x17d),0x80);else{if(_0x136c87==='create')throw notificationError('notification_config_field_required','Create\x20JSON\x20requires\x20field\x20'+_0x5d9f25(0x188));}if(hasOwn(_0x454a5d,_0x5d9f25(0x118))){if(typeof _0x454a5d['channelType']!==_0x5d9f25(0x198))throw invalidFieldType(_0x5d9f25(0x118),'a\x20supported\x20string');const _0x3f4792=_0x454a5d[_0x5d9f25(0x118)][_0x5d9f25(0x13c)]();if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x3f4792))throw notificationError(_0x5d9f25(0x116),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.',_0x5d9f25(0x14e)+NOTIFICATION_CHANNEL_TYPES[_0x5d9f25(0x16f)](',\x20')+'.');_0x36c6f1['channelType']=_0x3f4792;}else{if(_0x136c87===_0x5d9f25(0x193))throw notificationError(_0x5d9f25(0x160),_0x5d9f25(0x182)+'\x22channelType\x22.');}for(const [_0x448653,_0x4a9ebf]of[[_0x5d9f25(0x174),0x200],[_0x5d9f25(0x140),0x100]]){if(!hasOwn(_0x454a5d,_0x448653))continue;const _0x403ee9=_0x454a5d[_0x448653];if(_0x403ee9!==null&&typeof _0x403ee9!==_0x5d9f25(0x198))throw invalidFieldType(_0x448653,_0x5d9f25(0x167));if(typeof _0x403ee9===_0x5d9f25(0x198)&&_0x403ee9[_0x5d9f25(0x185)]>_0x4a9ebf)throw notificationError(_0x5d9f25(0x116),_0x5d9f25(0x173)+_0x448653+_0x5d9f25(0x180)+_0x4a9ebf+_0x5d9f25(0x157));_0x36c6f1[_0x448653]=_0x403ee9;}if(hasOwn(_0x454a5d,_0x5d9f25(0x12f))){const _0x48afc9=_0x454a5d[_0x5d9f25(0x12f)];if(_0x48afc9===null&&_0x136c87===_0x5d9f25(0x193))throw invalidFieldType(_0x5d9f25(0x12f),_0x5d9f25(0x190));if(_0x48afc9!==null&&!isJsonObject(_0x48afc9))throw invalidFieldType('channelConfig',_0x136c87===_0x5d9f25(0x15d)?_0x5d9f25(0x194):_0x5d9f25(0x190));_0x48afc9!==null&&validateChannelConfigFields(_0x36c6f1[_0x5d9f25(0x118)],_0x48afc9),_0x36c6f1[_0x5d9f25(0x12f)]=_0x48afc9;}for(const _0xb005ea of['connectTimeout','readTimeout']){if(!hasOwn(_0x454a5d,_0xb005ea))continue;const _0x27be70=_0x454a5d[_0xb005ea];if(_0x27be70!==null&&(!Number[_0x5d9f25(0x176)](_0x27be70)||_0x27be70<0x0))throw notificationError(_0x5d9f25(0x116),_0x5d9f25(0x173)+_0xb005ea+_0x5d9f25(0x11f));_0x36c6f1[_0xb005ea]=_0x27be70;}return _0x36c6f1;}function validateRequiredString(_0x17c7f5,_0x401976,_0x529af3){const _0x266c7d=a146_0x5eb608;if(typeof _0x17c7f5!==_0x266c7d(0x198))throw invalidFieldType(_0x401976,_0x266c7d(0x155));const _0x407f82=_0x17c7f5[_0x266c7d(0x13c)]();if(!_0x407f82)throw notificationError(_0x266c7d(0x116),_0x266c7d(0x173)+_0x401976+_0x266c7d(0x172));if(_0x407f82['length']>_0x529af3)throw notificationError(_0x266c7d(0x116),_0x266c7d(0x173)+_0x401976+_0x266c7d(0x180)+_0x529af3+_0x266c7d(0x157));return _0x407f82;}function validateChannelConfigFields(_0x3a6f77,_0x2160f8){const _0x47eafb=a146_0x5eb608;if(hasOwn(_0x2160f8,_0x47eafb(0x164)))throw forbiddenChannelConfigField(_0x47eafb(0x164));if(_0x3a6f77===_0x47eafb(0x163))for(const _0x191177 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x2160f8,_0x191177))throw forbiddenChannelConfigField(_0x191177);}}function forbiddenChannelConfigField(_0x2772f2){const _0x5c3a81=a146_0x5eb608;return notificationError(_0x5c3a81(0x177),_0x5c3a81(0x11c)+_0x2772f2+'\x22\x20is\x20forbidden.');}function invalidFieldType(_0x15c582,_0x4a2103){const _0x44e3fc=a146_0x5eb608;return notificationError('notification_config_field_invalid',_0x44e3fc(0x173)+_0x15c582+_0x44e3fc(0x195)+_0x4a2103+'.');}function serializeChannelConfig(_0x3e9c09){return _0x3e9c09===null||_0x3e9c09===undefined?null:JSON['stringify'](_0x3e9c09);}function redactSensitive(_0x39af80){return _0x39af80===null||_0x39af80===undefined||_0x39af80===''?null:'<redacted>';}function requireResponseString(_0x3cdf08,_0x3e3f55,_0x56ed06){const _0x1bbf6f=a146_0x5eb608;if(typeof _0x3cdf08!==_0x1bbf6f(0x198)||_0x3cdf08[_0x1bbf6f(0x13c)]()==='')throw CliErrors[_0x1bbf6f(0x17b)]('Invalid\x20notification\x20config\x20response.',_0x1bbf6f(0x14b)+(_0x56ed06+0x1)+_0x1bbf6f(0x133)+_0x3e3f55+'\x22.');return _0x3cdf08[_0x1bbf6f(0x13c)]();}function requireExactString(_0x3af499,_0x58b82e,_0xae0ef4){const _0x315a99=a146_0x5eb608;if(typeof _0x3af499!=='string'||_0x3af499[_0x315a99(0x13c)]()==='')throw notificationError(_0x315a99(0x125),_0x315a99(0x141)+_0xae0ef4+_0x315a99(0x133)+_0x58b82e+'\x22.');return _0x3af499[_0x315a99(0x13c)]();}function responseNullableString(_0x444a8a,_0x5af848,_0x24e09a){const _0x44b93a=a146_0x5eb608;if(_0x444a8a===undefined||_0x444a8a===null)return null;if(typeof _0x444a8a!==_0x44b93a(0x198))throw notificationError(_0x44b93a(0x125),_0x44b93a(0x141)+_0x24e09a+_0x44b93a(0x124)+_0x5af848+'\x22.');return _0x444a8a;}function responseNullableTimeout(_0x5642b6,_0x3a5ae8,_0x470fbe){const _0x540a90=a146_0x5eb608;if(_0x5642b6===undefined||_0x5642b6===null)return null;if(!Number[_0x540a90(0x176)](_0x5642b6)||_0x5642b6<0x0)throw notificationError(_0x540a90(0x125),_0x540a90(0x141)+_0x470fbe+_0x540a90(0x124)+_0x3a5ae8+'\x22.');return _0x5642b6;}function normalizeNullableString(_0x4b8166){const _0x93a67b=a146_0x5eb608;return typeof _0x4b8166===_0x93a67b(0x198)?_0x4b8166:null;}function isJsonObject(_0xed2418){const _0x312ceb=a146_0x5eb608;return _0xed2418!==null&&typeof _0xed2418===_0x312ceb(0x166)&&!Array[_0x312ceb(0x16e)](_0xed2418);}function hasOwn(_0x4521b8,_0x3bd80e){const _0x1f1a94=a146_0x5eb608;return Object['prototype'][_0x1f1a94(0x12a)][_0x1f1a94(0x154)](_0x4521b8,_0x3bd80e);}async function readStdin(){const _0x3395b4=a146_0x5eb608;let _0xc5a6d7='';process[_0x3395b4(0x158)][_0x3395b4(0x135)](_0x3395b4(0x12b));for await(const _0x4a5533 of process[_0x3395b4(0x158)])_0xc5a6d7+=_0x4a5533;return _0xc5a6d7;}
|
|
1
|
+
const a146_0x3411df=a146_0xcd73;(function(_0xaeb282,_0x457676){const _0x37d3ab=a146_0xcd73,_0x3759e5=_0xaeb282();while(!![]){try{const _0x2e1c9c=parseInt(_0x37d3ab(0xb1))/0x1*(parseInt(_0x37d3ab(0xae))/0x2)+-parseInt(_0x37d3ab(0x89))/0x3+-parseInt(_0x37d3ab(0xb7))/0x4*(parseInt(_0x37d3ab(0x8d))/0x5)+-parseInt(_0x37d3ab(0x98))/0x6*(parseInt(_0x37d3ab(0xaa))/0x7)+parseInt(_0x37d3ab(0x101))/0x8*(-parseInt(_0x37d3ab(0xde))/0x9)+-parseInt(_0x37d3ab(0xbe))/0xa+parseInt(_0x37d3ab(0xc1))/0xb*(parseInt(_0x37d3ab(0xa9))/0xc);if(_0x2e1c9c===_0x457676)break;else _0x3759e5['push'](_0x3759e5['shift']());}catch(_0x4a9dcc){_0x3759e5['push'](_0x3759e5['shift']());}}}(a146_0x40d5,0x8e567));import{readFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getNotificationChannelConfig}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a146_0x3411df(0xfe),a146_0x3411df(0xdd),a146_0x3411df(0x95),'WECOM','WEBHOOK'];export const DEFAULT_NOTIFICATION_CONNECT_TIMEOUT=0x1388;export const DEFAULT_NOTIFICATION_READ_TIMEOUT=0x2710;const ALLOWED_INPUT_FIELDS=new Set([a146_0x3411df(0xc8),a146_0x3411df(0xfc),a146_0x3411df(0x9e),a146_0x3411df(0xab),a146_0x3411df(0xf5),a146_0x3411df(0x94),a146_0x3411df(0xe1)]),FORBIDDEN_IDENTITY_FIELDS=new Set(['id',a146_0x3411df(0x93),a146_0x3411df(0x90),'channelCode']),EMAIL_RECIPIENT_FIELDS=new Set([a146_0x3411df(0xb6),'recipients',a146_0x3411df(0xac),a146_0x3411df(0xda),a146_0x3411df(0xc3),a146_0x3411df(0xbc),a146_0x3411df(0xa6),'to','cc']);export const NOTIFICATION_INPUT_FLAGS=[{'name':a146_0x3411df(0xbb),'type':a146_0x3411df(0x9b),'required':![],'description':'Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20UTF-8\x20file'},{'name':a146_0x3411df(0xcf),'type':a146_0x3411df(0xe0),'required':![],'default':![],'description':a146_0x3411df(0xd0)},{'name':a146_0x3411df(0x86),'type':a146_0x3411df(0x9b),'required':![],'description':a146_0x3411df(0x9a)}];export const NOTIFICATION_ID_FLAG={'name':'id','type':a146_0x3411df(0xb4),'required':!![],'description':a146_0x3411df(0xff)};export const NOTIFICATION_APP_FLAG=APPCODE_FLAG_OPTIONAL;export function notificationError(_0x2d6d08,_0x2c3e68,_0x1b3ccd){return new CliError(_0x2d6d08,0x1,_0x2c3e68,_0x1b3ccd);}function a146_0xcd73(_0x1b8fc7,_0x429239){_0x1b8fc7=_0x1b8fc7-0x84;const _0x40d517=a146_0x40d5();let _0xcd73ad=_0x40d517[_0x1b8fc7];return _0xcd73ad;}export function readNotificationId(_0xe827d4){const _0x4bda1c=a146_0x3411df,_0x2117b9=_0xe827d4['num']('id');if(!Number['isSafeInteger'](_0x2117b9)||_0x2117b9<=0x0)throw notificationError(_0x4bda1c(0xcd),_0x4bda1c(0xa5));return _0x2117b9;}function a146_0x40d5(){const _0x594291=['env','stdin','Read\x20the\x20notification\x20JSON\x20document\x20from\x20stdin','\x22\x20must\x20be\x20a\x20non-negative\x20safe\x20integer\x20or\x20null.','Update\x20JSON\x20must\x20contain\x20at\x20least\x20one\x20allowed\x20field.','path','\x20has\x20an\x20invalid\x20channelType.','has','Provide\x20one\x20valid\x20JSON\x20object;\x20source\x20contents\x20are\x20not\x20included\x20in\x20errors.','updateTime','call','Item\x20','bccList','notification_config_channel_field_forbidden','a\x20supported\x20string','FEISHU','180WxIHGx','yes','boolean','readTimeout','length','notification_config_field_invalid','Run\x20the\x20command\x20with\x20--dry-run\x20first,\x20then\x20add\x20--yes\x20after\x20reviewing\x20the\x20plan.','\x22\x20must\x20be\x20a\x20non-empty\x20string.','entries','\x20failed.','update','\x20does\x20not\x20belong\x20to\x20the\x20resolved\x20app.','Notification\x20config\x20list\x20item\x20','\x20characters.','prototype','preflight','parse','Missing\x20notification\x20JSON\x20source.','\x20has\x20invalid\x20field\x20\x22','hasOwnProperty','\x22channelType\x22.','includes','Notification\x20JSON\x20from\x20','description','file\x20','Notification\x20JSON\x20channelConfig\x20field\x20\x22','object','endpointUrl:null','dry-run','environment\x20variable\x20','channelType','some','EMAIL','Application-level\x20notification\x20config\x20ID','This\x20notification\x20config\x20mutation\x20requires\x20explicit\x20--yes.','211424kjfzrz','notification_config_json_invalid','notification_config_field_required','Use\x20exactly\x20one\x20of\x20--file\x20<path>,\x20--stdin,\x20or\x20--from-env\x20<NAME>.','utf8','Unknown\x20notification\x20JSON\x20field\x20\x22','from-env','endpointUrlRaw','name','333720JxxnqE','Allowed\x20values:\x20','kind','str','25BAWEgw','createTime','rabetbase\x20notification\x20config-list\x20--appcode\x20','configCode','notification_config_source_unavailable','Notification\x20config\x20','appCode','connectTimeout','DINGTALK','_unavailable','a\x20JSON\x20object\x20or\x20null','466986TPVBMO','push','Read\x20the\x20notification\x20JSON\x20document\x20from\x20a\x20named\x20environment\x20variable','string','bool','failed','endpointUrl','Invalid\x20notification\x20config\x20response.','isArray','\x22\x20is\x20forbidden.','Create\x20JSON\x20requires\x20field\x20','validation','\x20must\x20be\x20an\x20object.','--id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','fromName','notification_config_','a\x20JSON\x20object','10525404jOlOYi','49ZVMqLZ','channelConfig','ccList','every','46JxkVEb','a\x20non-empty\x20string','isSafeInteger','6866hFiEHF','Invalid\x20--','trim','number','\x22\x20cannot\x20exceed\x20','emailTargets','715188FGsrDw','messageTemplate','\x20has\x20an\x20invalid\x20id.','notification_config_update_empty','file','subjectPrefix','Unable\x20to\x20read\x20notification\x20JSON\x20from\x20','10047690JEqhjk','\x20is\x20invalid.','create','44PXtKsa','\x20is\x20missing\x20required\x20field\x20\x22','replyTo','\x20--format\x20compress','Inspect\x20with\x20rabetbase\x20notification\x20config-list\x20--appcode\x20','\x20--type\x20<CHANNEL_TYPE>\x20--format\x20compress;\x20no\x20mutation\x20was\x20submitted.','Notification\x20JSON\x20field\x20\x22','configName','notification_config_response_invalid','mutation','channelConfigRaw','join','notification_config_id_invalid'];a146_0x40d5=function(){return _0x594291;};return a146_0x40d5();}export function requireNotificationExplicitYes(_0x40f6f4){const _0x12db96=a146_0x3411df;if(_0x40f6f4[_0x12db96(0x9c)](_0x12db96(0xfa))||_0x40f6f4[_0x12db96(0x9c)](_0x12db96(0xdf)))return;throw notificationError('notification_config_confirmation_required',_0x12db96(0x100),_0x12db96(0xe4));}export function readNotificationChannelType(_0x576731,_0x235449='type',_0x4454b3='EMAIL'){const _0x53d684=a146_0x3411df,_0x3a6233=_0x576731['str'](_0x235449)[_0x53d684(0xb3)]()||_0x4454b3;if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x3a6233))throw CliErrors[_0x53d684(0xa3)](_0x53d684(0xb2)+_0x235449+':\x20'+_0x3a6233,_0x53d684(0x8a)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x3a6233;}export function assertSingleNotificationSource(_0xfd3f81){const _0x1ae8e2=a146_0x3411df,_0x1a6ee1=[],_0x281a6b=_0xfd3f81[_0x1ae8e2(0x8c)](_0x1ae8e2(0xbb))[_0x1ae8e2(0xb3)]();if(_0x281a6b)_0x1a6ee1[_0x1ae8e2(0x99)]({'kind':_0x1ae8e2(0xbb),'path':_0x281a6b});if(_0xfd3f81[_0x1ae8e2(0x9c)](_0x1ae8e2(0xcf)))_0x1a6ee1[_0x1ae8e2(0x99)]({'kind':_0x1ae8e2(0xcf)});const _0x2ab54b=_0xfd3f81[_0x1ae8e2(0x8c)](_0x1ae8e2(0x86))['trim']();if(_0x2ab54b)_0x1a6ee1['push']({'kind':_0x1ae8e2(0xce),'name':_0x2ab54b});if(_0x1a6ee1[_0x1ae8e2(0xe2)]===0x0)throw CliErrors['validation'](_0x1ae8e2(0xef),_0x1ae8e2(0x104));if(_0x1a6ee1[_0x1ae8e2(0xe2)]>0x1)throw CliErrors[_0x1ae8e2(0xa3)]('Notification\x20JSON\x20source\x20is\x20ambiguous.',_0x1ae8e2(0x104));return _0x1a6ee1[0x0];}export async function readNotificationDocument(_0x340ade,_0x323b61){const _0x52d424=a146_0x3411df,_0x4fbaca=assertSingleNotificationSource(_0x340ade),_0x409bef=_0x4fbaca[_0x52d424(0x8b)]==='file'?_0x52d424(0xf6)+_0x4fbaca[_0x52d424(0xd3)]:_0x4fbaca[_0x52d424(0x8b)]===_0x52d424(0xce)?_0x52d424(0xfb)+_0x4fbaca[_0x52d424(0x88)]:_0x52d424(0xcf);let _0x3c8d3d;try{if(_0x4fbaca[_0x52d424(0x8b)]==='file')_0x3c8d3d=await readFile(_0x4fbaca[_0x52d424(0xd3)],_0x52d424(0x84));else{if(_0x4fbaca[_0x52d424(0x8b)]===_0x52d424(0xce)){if(!(_0x4fbaca[_0x52d424(0x88)]in process.env))throw notificationError('notification_config_source_unavailable','Notification\x20JSON\x20environment\x20variable\x20is\x20not\x20set:\x20'+_0x4fbaca['name']);_0x3c8d3d=process.env[_0x4fbaca.name]??'';}else _0x3c8d3d=await readStdin();}}catch(_0x42e3c9){if(_0x42e3c9 instanceof CliError)throw _0x42e3c9;throw notificationError(_0x52d424(0x91),_0x52d424(0xbd)+_0x409bef+'.');}let _0x3b727a;try{_0x3b727a=JSON[_0x52d424(0xee)](_0x3c8d3d);}catch{throw notificationError(_0x52d424(0x102),_0x52d424(0xf4)+_0x409bef+_0x52d424(0xbf),_0x52d424(0xd6));}if(!isJsonObject(_0x3b727a))throw notificationError(_0x52d424(0x102),_0x52d424(0xf4)+_0x409bef+_0x52d424(0xa4));return validateNotificationDocument(_0x3b727a,_0x323b61);}export function projectNotificationListConfig(_0x47416d,_0xb09b72){const _0x133e95=a146_0x3411df;return{'id':typeof _0x47416d['id']===_0x133e95(0xb4)?_0x47416d['id']:null,'configCode':requireResponseString(_0x47416d[_0x133e95(0x90)],'configCode',_0xb09b72),'configName':requireResponseString(_0x47416d[_0x133e95(0xc8)],_0x133e95(0xc8),_0xb09b72),'channelType':requireResponseString(_0x47416d[_0x133e95(0xfc)],_0x133e95(0xfc),_0xb09b72),'description':normalizeNullableString(_0x47416d[_0x133e95(0xf5)]),'createTime':normalizeNullableString(_0x47416d[_0x133e95(0x8e)]),'updateTime':normalizeNullableString(_0x47416d[_0x133e95(0xd7)])};}export function normalizeExactNotificationConfig(_0x11ce29,_0x2ccf32,_0x20af5b){const _0x4de714=a146_0x3411df;if(!Number[_0x4de714(0xb0)](_0x11ce29['id'])||_0x11ce29['id']!==_0x2ccf32)throw notificationError(_0x4de714(0xc9),'Notification\x20config\x20detail\x20did\x20not\x20contain\x20the\x20requested\x20ID\x20'+_0x2ccf32+'.');if(_0x11ce29[_0x4de714(0x93)]!==_0x20af5b)throw notificationError(_0x4de714(0xc9),_0x4de714(0x92)+_0x2ccf32+_0x4de714(0xe9));const _0x580f97=requireExactString(_0x11ce29[_0x4de714(0xc8)],_0x4de714(0xc8),_0x2ccf32),_0x50528c=requireExactString(_0x11ce29[_0x4de714(0x90)],'configCode',_0x2ccf32),_0x388407=requireExactString(_0x11ce29['channelType'],_0x4de714(0xfc),_0x2ccf32);if(!NOTIFICATION_CHANNEL_TYPES[_0x4de714(0xf3)](_0x388407))throw notificationError('notification_config_response_invalid','Notification\x20config\x20'+_0x2ccf32+'\x20has\x20an\x20unsupported\x20channelType.');const _0x36a633=responseNullableString(_0x11ce29[_0x4de714(0x9e)],'endpointUrl',_0x2ccf32),_0x23c7fd=responseNullableString(_0x11ce29['channelConfig'],'channelConfig',_0x2ccf32),_0x1b21b7=responseNullableString(_0x11ce29['description'],_0x4de714(0xf5),_0x2ccf32),_0x58ecf1=responseNullableTimeout(_0x11ce29[_0x4de714(0x94)],_0x4de714(0x94),_0x2ccf32),_0x515343=responseNullableTimeout(_0x11ce29[_0x4de714(0xe1)],_0x4de714(0xe1),_0x2ccf32);return{'id':_0x2ccf32,'appCode':_0x20af5b,'configCode':_0x50528c,'configName':_0x580f97,'channelType':_0x388407,'endpointUrl':redactSensitive(_0x36a633),'channelConfig':redactSensitive(_0x23c7fd),'description':_0x1b21b7,'connectTimeout':_0x58ecf1,'readTimeout':_0x515343,'endpointUrlRaw':_0x36a633,'channelConfigRaw':_0x23c7fd};}export async function requireExactNotificationConfig(_0x3cfb3c,_0x279a7f,_0x44d7fc){const _0xad323a=a146_0x3411df;let _0x4caf41;try{_0x4caf41=await getNotificationChannelConfig(_0x279a7f,_0x3cfb3c);}catch{throw safeApiFailure(_0x44d7fc,_0xad323a(0xed),_0xad323a(0xc5)+_0x3cfb3c+_0xad323a(0xc6));}return normalizeExactNotificationConfig(_0x4caf41,_0x279a7f,_0x3cfb3c);}export function projectNotificationConfig(_0x5f231b){const _0x48a6b2=a146_0x3411df;return{'id':_0x5f231b['id']??null,'appCode':_0x5f231b[_0x48a6b2(0x93)],'configCode':_0x5f231b[_0x48a6b2(0x90)]??null,'configName':_0x5f231b['configName'],'channelType':_0x5f231b[_0x48a6b2(0xfc)],'endpointUrl':redactSensitive(_0x5f231b['endpointUrl']),'channelConfig':redactSensitive(_0x5f231b[_0x48a6b2(0xab)]),'description':_0x5f231b[_0x48a6b2(0xf5)]??null,'connectTimeout':_0x5f231b['connectTimeout']??null,'readTimeout':_0x5f231b['readTimeout']??null};}export function notificationSelector(_0x15ca51){const _0x370f31=a146_0x3411df;return{'appCode':_0x15ca51[_0x370f31(0x93)],'id':_0x15ca51['id'],'configCode':_0x15ca51[_0x370f31(0x90)],'configName':_0x15ca51[_0x370f31(0xc8)],'channelType':_0x15ca51[_0x370f31(0xfc)]};}export function createMutationInput(_0x2b8aa7,_0x551bed){const _0x5a982c=a146_0x3411df;return{'appCode':_0x2b8aa7,'configName':_0x551bed[_0x5a982c(0xc8)],'channelType':_0x551bed[_0x5a982c(0xfc)],...hasOwn(_0x551bed,_0x5a982c(0x9e))?{'endpointUrl':_0x551bed[_0x5a982c(0x9e)]}:{},...hasOwn(_0x551bed,_0x5a982c(0xab))?{'channelConfig':serializeChannelConfig(_0x551bed[_0x5a982c(0xab)])}:{},...hasOwn(_0x551bed,_0x5a982c(0xf5))?{'description':_0x551bed[_0x5a982c(0xf5)]}:{},...hasOwn(_0x551bed,_0x5a982c(0x94))?{'connectTimeout':_0x551bed[_0x5a982c(0x94)]}:{},...hasOwn(_0x551bed,_0x5a982c(0xe1))?{'readTimeout':_0x551bed['readTimeout']}:{}};}export function mergeUpdateInput(_0xcd9625,_0x101559){const _0x52d7ce=a146_0x3411df;return{'id':_0xcd9625['id'],'appCode':_0xcd9625[_0x52d7ce(0x93)],'configName':_0x101559[_0x52d7ce(0xc8)]??_0xcd9625['configName'],'channelType':_0x101559[_0x52d7ce(0xfc)]??_0xcd9625[_0x52d7ce(0xfc)],'endpointUrl':hasOwn(_0x101559,_0x52d7ce(0x9e))?_0x101559[_0x52d7ce(0x9e)]:_0xcd9625[_0x52d7ce(0x87)],'channelConfig':hasOwn(_0x101559,'channelConfig')?serializeChannelConfig(_0x101559[_0x52d7ce(0xab)]):_0xcd9625[_0x52d7ce(0xcb)],'description':hasOwn(_0x101559,'description')?_0x101559[_0x52d7ce(0xf5)]:_0xcd9625[_0x52d7ce(0xf5)],'connectTimeout':hasOwn(_0x101559,'connectTimeout')?_0x101559[_0x52d7ce(0x94)]:_0xcd9625[_0x52d7ce(0x94)],'readTimeout':hasOwn(_0x101559,_0x52d7ce(0xe1))?_0x101559[_0x52d7ce(0xe1)]:_0xcd9625[_0x52d7ce(0xe1)]};}export function plannedUpdateProjection(_0x9348f4,_0x2003ff){const _0xa611c8=a146_0x3411df;return projectNotificationConfig({'id':_0x9348f4['id'],'appCode':_0x9348f4[_0xa611c8(0x93)],'configCode':_0x9348f4[_0xa611c8(0x90)],'configName':_0x2003ff[_0xa611c8(0xc8)]??_0x9348f4[_0xa611c8(0xc8)],'channelType':_0x2003ff[_0xa611c8(0xfc)]??_0x9348f4['channelType'],'endpointUrl':hasOwn(_0x2003ff,_0xa611c8(0x9e))?_0x2003ff[_0xa611c8(0x9e)]:_0x9348f4[_0xa611c8(0x87)],'channelConfig':hasOwn(_0x2003ff,_0xa611c8(0xab))?_0x2003ff[_0xa611c8(0xab)]:_0x9348f4['channelConfigRaw'],'description':hasOwn(_0x2003ff,'description')?_0x2003ff[_0xa611c8(0xf5)]:_0x9348f4[_0xa611c8(0xf5)],'connectTimeout':hasOwn(_0x2003ff,_0xa611c8(0x94))?_0x2003ff['connectTimeout']??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:_0x9348f4[_0xa611c8(0x94)],'readTimeout':hasOwn(_0x2003ff,_0xa611c8(0xe1))?_0x2003ff['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT:_0x9348f4[_0xa611c8(0xe1)]});}export function requestedSafeFieldsMatch(_0x26b2be,_0x17b660,_0x219bac){const _0x2e8945=a146_0x3411df,_0x43b86d=[],_0x4fbc71=[],_0x4f102c=[];for(const _0x12d767 of['configName',_0x2e8945(0xfc),_0x2e8945(0xf5)]){if(!hasOwn(_0x219bac,_0x12d767))continue;_0x4f102c[_0x2e8945(0x99)](_0x12d767),_0x43b86d['push'](_0x17b660[_0x12d767]===_0x219bac[_0x12d767]),_0x4fbc71['push'](_0x26b2be[_0x12d767]!==_0x219bac[_0x12d767]&&_0x17b660[_0x12d767]===_0x219bac[_0x12d767]);}for(const _0x4f31cc of[_0x2e8945(0x94),_0x2e8945(0xe1)]){if(!hasOwn(_0x219bac,_0x4f31cc))continue;const _0x9665ae=_0x219bac[_0x4f31cc]??(_0x4f31cc===_0x2e8945(0x94)?DEFAULT_NOTIFICATION_CONNECT_TIMEOUT:DEFAULT_NOTIFICATION_READ_TIMEOUT);_0x4f102c[_0x2e8945(0x99)](_0x4f31cc),_0x43b86d[_0x2e8945(0x99)](_0x17b660[_0x4f31cc]===_0x9665ae),_0x4fbc71[_0x2e8945(0x99)](_0x26b2be[_0x4f31cc]!==_0x9665ae&&_0x17b660[_0x4f31cc]===_0x9665ae);}return hasOwn(_0x219bac,_0x2e8945(0x9e))&&_0x219bac['endpointUrl']===null&&(_0x4f102c[_0x2e8945(0x99)](_0x2e8945(0xf9)),_0x43b86d['push'](_0x17b660[_0x2e8945(0x87)]===null||_0x17b660['endpointUrlRaw']===''),_0x4fbc71[_0x2e8945(0x99)](_0x26b2be['endpointUrlRaw']!==null&&_0x26b2be[_0x2e8945(0x87)]!==''&&(_0x17b660['endpointUrlRaw']===null||_0x17b660['endpointUrlRaw']===''))),{'allMatch':_0x43b86d[_0x2e8945(0xad)](Boolean),'provesChange':_0x4fbc71[_0x2e8945(0xfd)](Boolean),'verifiedFields':_0x4f102c};}export function validateNotificationDeleteReadback(_0x56a93f,_0xe226db,_0x1f1c63){const _0x72d80=a146_0x3411df;for(const [_0x3355c2,_0x103765]of _0x56a93f[_0x72d80(0xe6)]()){if(!Number[_0x72d80(0xb0)](_0x103765['id'])||_0x103765['id']<=0x0)throw notificationError('notification_config_response_invalid','Notification\x20config\x20list\x20item\x20'+(_0x3355c2+0x1)+_0x72d80(0xb9));if(_0x103765[_0x72d80(0x93)]!==_0xe226db)throw notificationError(_0x72d80(0xc9),_0x72d80(0xea)+(_0x3355c2+0x1)+'\x20has\x20an\x20invalid\x20appCode.');if(_0x103765[_0x72d80(0xfc)]!==_0x1f1c63)throw notificationError(_0x72d80(0xc9),'Notification\x20config\x20list\x20item\x20'+(_0x3355c2+0x1)+_0x72d80(0xd4));}}export function safeApiFailure(_0x47dc8a,_0xe96e2c,_0x1760bd){const _0xfee014=a146_0x3411df;return notificationError(_0xfee014(0xa7)+_0x47dc8a+'_'+(_0xe96e2c===_0xfee014(0xca)?_0xfee014(0x9d):_0xe96e2c+_0xfee014(0x96)),'Notification\x20config\x20'+_0x47dc8a+'\x20'+_0xe96e2c+_0xfee014(0xe7),_0x1760bd);}export function notificationLookupCommand(_0x289cc8,_0x55666d){const _0x5cf74a=a146_0x3411df;return _0x5cf74a(0x8f)+_0x289cc8+'\x20--type\x20'+_0x55666d+_0x5cf74a(0xc4);}function validateNotificationDocument(_0x5c7d61,_0x21afa5){const _0x121e37=a146_0x3411df;for(const _0x5d3200 of Object['keys'](_0x5c7d61)){if(FORBIDDEN_IDENTITY_FIELDS['has'](_0x5d3200))throw notificationError('notification_config_field_forbidden',_0x121e37(0xc7)+_0x5d3200+'\x22\x20is\x20controlled\x20by\x20the\x20CLI\x20or\x20server\x20and\x20is\x20forbidden.');if(!ALLOWED_INPUT_FIELDS[_0x121e37(0xd5)](_0x5d3200))throw notificationError('notification_config_field_unknown',_0x121e37(0x85)+_0x5d3200+'\x22.');}if(_0x21afa5==='update'&&Object['keys'](_0x5c7d61)['length']===0x0)throw notificationError(_0x121e37(0xba),_0x121e37(0xd2));const _0x4ae00e={};if(hasOwn(_0x5c7d61,_0x121e37(0xc8)))_0x4ae00e[_0x121e37(0xc8)]=validateRequiredString(_0x5c7d61[_0x121e37(0xc8)],_0x121e37(0xc8),0x80);else{if(_0x21afa5===_0x121e37(0xc0))throw notificationError(_0x121e37(0x103),_0x121e37(0xa2)+'\x22configName\x22.');}if(hasOwn(_0x5c7d61,'channelType')){if(typeof _0x5c7d61['channelType']!==_0x121e37(0x9b))throw invalidFieldType(_0x121e37(0xfc),_0x121e37(0xdc));const _0x2b32e7=_0x5c7d61[_0x121e37(0xfc)]['trim']();if(!NOTIFICATION_CHANNEL_TYPES[_0x121e37(0xf3)](_0x2b32e7))throw notificationError(_0x121e37(0xe3),'Notification\x20JSON\x20field\x20\x22channelType\x22\x20is\x20unsupported.','Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x121e37(0xcc)](',\x20')+'.');_0x4ae00e[_0x121e37(0xfc)]=_0x2b32e7;}else{if(_0x21afa5===_0x121e37(0xc0))throw notificationError(_0x121e37(0x103),'Create\x20JSON\x20requires\x20field\x20'+_0x121e37(0xf2));}for(const [_0xb6b8ed,_0x575888]of[[_0x121e37(0x9e),0x200],[_0x121e37(0xf5),0x100]]){if(!hasOwn(_0x5c7d61,_0xb6b8ed))continue;const _0x572504=_0x5c7d61[_0xb6b8ed];if(_0x572504!==null&&typeof _0x572504!=='string')throw invalidFieldType(_0xb6b8ed,'a\x20string\x20or\x20null');if(typeof _0x572504==='string'&&_0x572504[_0x121e37(0xe2)]>_0x575888)throw notificationError(_0x121e37(0xe3),'Notification\x20JSON\x20field\x20\x22'+_0xb6b8ed+_0x121e37(0xb5)+_0x575888+_0x121e37(0xeb));_0x4ae00e[_0xb6b8ed]=_0x572504;}if(hasOwn(_0x5c7d61,'channelConfig')){const _0x4f86a9=_0x5c7d61[_0x121e37(0xab)];if(_0x4f86a9===null&&_0x21afa5===_0x121e37(0xc0))throw invalidFieldType(_0x121e37(0xab),_0x121e37(0xa8));if(_0x4f86a9!==null&&!isJsonObject(_0x4f86a9))throw invalidFieldType('channelConfig',_0x21afa5===_0x121e37(0xe8)?_0x121e37(0x97):'a\x20JSON\x20object');_0x4f86a9!==null&&validateChannelConfigFields(_0x4ae00e['channelType'],_0x4f86a9),_0x4ae00e[_0x121e37(0xab)]=_0x4f86a9;}for(const _0x55a2a0 of['connectTimeout',_0x121e37(0xe1)]){if(!hasOwn(_0x5c7d61,_0x55a2a0))continue;const _0x582962=_0x5c7d61[_0x55a2a0];if(_0x582962!==null&&(!Number['isSafeInteger'](_0x582962)||_0x582962<0x0))throw notificationError(_0x121e37(0xe3),_0x121e37(0xc7)+_0x55a2a0+_0x121e37(0xd1));_0x4ae00e[_0x55a2a0]=_0x582962;}return _0x4ae00e;}function validateRequiredString(_0x78600d,_0x3630ce,_0x2f3396){const _0x5b5c3d=a146_0x3411df;if(typeof _0x78600d!==_0x5b5c3d(0x9b))throw invalidFieldType(_0x3630ce,_0x5b5c3d(0xaf));const _0x404bf7=_0x78600d[_0x5b5c3d(0xb3)]();if(!_0x404bf7)throw notificationError(_0x5b5c3d(0xe3),'Notification\x20JSON\x20field\x20\x22'+_0x3630ce+_0x5b5c3d(0xe5));if(_0x404bf7[_0x5b5c3d(0xe2)]>_0x2f3396)throw notificationError(_0x5b5c3d(0xe3),_0x5b5c3d(0xc7)+_0x3630ce+'\x22\x20cannot\x20exceed\x20'+_0x2f3396+_0x5b5c3d(0xeb));return _0x404bf7;}function validateChannelConfigFields(_0x541629,_0x3fae89){const _0x50824d=a146_0x3411df;if(hasOwn(_0x3fae89,_0x50824d(0xb8)))throw forbiddenChannelConfigField(_0x50824d(0xb8));if(_0x541629===_0x50824d(0xfe))for(const _0x26a431 of EMAIL_RECIPIENT_FIELDS){if(hasOwn(_0x3fae89,_0x26a431))throw forbiddenChannelConfigField(_0x26a431);}}function forbiddenChannelConfigField(_0x466b41){const _0x45577a=a146_0x3411df;return notificationError(_0x45577a(0xdb),_0x45577a(0xf7)+_0x466b41+_0x45577a(0xa1));}function invalidFieldType(_0x161ab2,_0x5ec421){const _0x79c649=a146_0x3411df;return notificationError(_0x79c649(0xe3),'Notification\x20JSON\x20field\x20\x22'+_0x161ab2+'\x22\x20must\x20be\x20'+_0x5ec421+'.');}function serializeChannelConfig(_0x4cef22){return _0x4cef22===null||_0x4cef22===undefined?null:JSON['stringify'](_0x4cef22);}function redactSensitive(_0x585bbc){return _0x585bbc===null||_0x585bbc===undefined||_0x585bbc===''?null:'<redacted>';}function requireResponseString(_0x18ae41,_0x11d298,_0x59256c){const _0x44ee72=a146_0x3411df;if(typeof _0x18ae41!==_0x44ee72(0x9b)||_0x18ae41['trim']()==='')throw CliErrors['apiError'](_0x44ee72(0x9f),_0x44ee72(0xd9)+(_0x59256c+0x1)+_0x44ee72(0xc2)+_0x11d298+'\x22.');return _0x18ae41['trim']();}function requireExactString(_0x2c0d85,_0x10dfd9,_0x108578){const _0x3dba12=a146_0x3411df;if(typeof _0x2c0d85!==_0x3dba12(0x9b)||_0x2c0d85[_0x3dba12(0xb3)]()==='')throw notificationError(_0x3dba12(0xc9),'Notification\x20config\x20'+_0x108578+_0x3dba12(0xc2)+_0x10dfd9+'\x22.');return _0x2c0d85[_0x3dba12(0xb3)]();}function responseNullableString(_0x5958c6,_0x614e26,_0x1c0d32){const _0x2cf3f5=a146_0x3411df;if(_0x5958c6===undefined||_0x5958c6===null)return null;if(typeof _0x5958c6!==_0x2cf3f5(0x9b))throw notificationError(_0x2cf3f5(0xc9),_0x2cf3f5(0x92)+_0x1c0d32+_0x2cf3f5(0xf0)+_0x614e26+'\x22.');return _0x5958c6;}function responseNullableTimeout(_0xb517b7,_0x5a97cc,_0x4c4d7a){const _0x163cad=a146_0x3411df;if(_0xb517b7===undefined||_0xb517b7===null)return null;if(!Number['isSafeInteger'](_0xb517b7)||_0xb517b7<0x0)throw notificationError('notification_config_response_invalid',_0x163cad(0x92)+_0x4c4d7a+_0x163cad(0xf0)+_0x5a97cc+'\x22.');return _0xb517b7;}function normalizeNullableString(_0x57649d){const _0x4a89be=a146_0x3411df;return typeof _0x57649d===_0x4a89be(0x9b)?_0x57649d:null;}function isJsonObject(_0x194cca){const _0xd4f321=a146_0x3411df;return _0x194cca!==null&&typeof _0x194cca===_0xd4f321(0xf8)&&!Array[_0xd4f321(0xa0)](_0x194cca);}function hasOwn(_0x11e422,_0x3fa34b){const _0x1468ba=a146_0x3411df;return Object[_0x1468ba(0xec)][_0x1468ba(0xf1)][_0x1468ba(0xd8)](_0x11e422,_0x3fa34b);}async function readStdin(){const _0x3b02a7=a146_0x3411df;let _0x35e498='';process['stdin']['setEncoding'](_0x3b02a7(0x84));for await(const _0x6c6843 of process[_0x3b02a7(0xcf)])_0x35e498+=_0x6c6843;return _0x35e498;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a147_0x5b76(){const _0x51521e=['1784115fwIQba','invoice','IdCard','.\x20Supported\x20scenes:\x20','5tbkvVd','/smartapi/ocr/recognize-text','457825AtosCz','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','join','6438103Buwnrm','recognize','1230280SgJJQW','/smartapi/common/uploadFile','length','count','image-url','apiError','Unsupported\x20OCR\x20scene:\x20','942724WoJnVP','General','8uHtGRT','3172257Jkhpdb','filePath','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','/smartapi/ocr/recognize-text?','read','scene','toLowerCase','Preview:\x20recognize\x20','appCode','fileUrl','\x20OCR','File\x20upload\x20response\x20missing\x20filePath.','Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','toString','GET','imageUrl','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Invoice','general','POST','str','validation','image-file','fileName','idCard','6770646ObUZBE','imageFile','string','Publicly\x20accessible\x20image\x20or\x20file\x20URL','form','\x20OCR\x20from\x20URL'];a147_0x5b76=function(){return _0x51521e;};return a147_0x5b76();}const a147_0x5ad1b9=a147_0x1d53;(function(_0x1e3f32,_0x154242){const _0x193a65=a147_0x1d53,_0x44801c=_0x1e3f32();while(!![]){try{const _0x21a8d8=parseInt(_0x193a65(0x185))/0x1+-parseInt(_0x193a65(0x192))/0x2+-parseInt(_0x193a65(0x195))/0x3+-parseInt(_0x193a65(0x18b))/0x4+-parseInt(_0x193a65(0x183))/0x5*(-parseInt(_0x193a65(0x179))/0x6)+parseInt(_0x193a65(0x189))/0x7+-parseInt(_0x193a65(0x194))/0x8*(-parseInt(_0x193a65(0x17f))/0x9);if(_0x21a8d8===_0x154242)break;else _0x44801c['push'](_0x44801c['shift']());}catch(_0x47f1a6){_0x44801c['push'](_0x44801c['shift']());}}}(a147_0x5b76,0xd3e27));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=['invoice',a147_0x5ad1b9(0x172),'form',a147_0x5ad1b9(0x178)],SCENE_TO_LEGACY_TYPE={'invoice':a147_0x5ad1b9(0x171),'general':a147_0x5ad1b9(0x193),'form':'Table','idCard':a147_0x5ad1b9(0x181)},SCENE_FLAG={'name':a147_0x5ad1b9(0x165),'type':a147_0x5ad1b9(0x17b),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a147_0x5ad1b9(0x197)},IMAGE_FILE_FLAG={'name':a147_0x5ad1b9(0x176),'type':a147_0x5ad1b9(0x17b),'description':a147_0x5ad1b9(0x16c)},IMAGE_URL_FLAG={'name':a147_0x5ad1b9(0x18f),'type':a147_0x5ad1b9(0x17b),'description':a147_0x5ad1b9(0x17c)};function normalizeScene(_0x38a2c6){const _0x4226b5=a147_0x5ad1b9,_0x545599=_0x38a2c6['trim']()[_0x4226b5(0x166)]();if(_0x545599==='idcard')return _0x4226b5(0x178);if(_0x545599===_0x4226b5(0x180)||_0x545599==='general'||_0x545599===_0x4226b5(0x17d))return _0x545599;throw CliErrors[_0x4226b5(0x175)](_0x4226b5(0x191)+_0x38a2c6+_0x4226b5(0x182)+SUPPORTED_SCENES[_0x4226b5(0x188)](',\x20'));}function a147_0x1d53(_0x444f8e,_0x1126ad){_0x444f8e=_0x444f8e-0x165;const _0x5b76cc=a147_0x5b76();let _0x1d537a=_0x5b76cc[_0x444f8e];return _0x1d537a;}function selectedInputs(_0x40d0d8){const _0x3a6b93=a147_0x5ad1b9,_0x5e3ec6=_0x40d0d8[_0x3a6b93(0x174)](_0x3a6b93(0x176))['trim'](),_0x15dddf=_0x40d0d8['str'](_0x3a6b93(0x18f))['trim']();return{'imageFile':_0x5e3ec6,'imageUrl':_0x15dddf,'count':[_0x5e3ec6,_0x15dddf]['filter'](Boolean)[_0x3a6b93(0x18d)]};}function validateInputSelection(_0x19d3b4){const _0x307cf9=a147_0x5ad1b9,_0x3b174e=selectedInputs(_0x19d3b4);if(_0x3b174e[_0x307cf9(0x18e)]!==0x1)throw CliErrors[_0x307cf9(0x175)](_0x307cf9(0x170));return _0x3b174e;}function withScene(_0x5f672b,_0x5cf946,_0x54f299){const _0x990522=a147_0x5ad1b9;return{..._0x5f672b,'scene':_0x5cf946,..._0x54f299?{'sourceFile':{'fileName':_0x54f299[_0x990522(0x177)],'filePath':_0x54f299['filePath']}}:{}};}const ocrRecognize={'service':'ocr','command':a147_0x5ad1b9(0x18a),'description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a147_0x5ad1b9(0x199),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x1d85e4){const _0xd22359=a147_0x5ad1b9,_0x5b2cf0=normalizeScene(_0x1d85e4[_0xd22359(0x174)](_0xd22359(0x165))),_0x5db44a=SCENE_TO_LEGACY_TYPE[_0x5b2cf0],_0xe14d22=validateInputSelection(_0x1d85e4);if(_0xe14d22['imageUrl']){const _0x386e1d=new URLSearchParams({'url':_0xe14d22[_0xd22359(0x16f)],'type':_0x5db44a,'appCode':_0x1d85e4[_0xd22359(0x168)]});return{'method':_0xd22359(0x16e),'url':_0xd22359(0x198)+_0x386e1d[_0xd22359(0x16d)](),'description':_0xd22359(0x167)+_0x5b2cf0+_0xd22359(0x17e)};}const _0x4cd27d=requireDevelopmentUploadFile(_0xe14d22[_0xd22359(0x17a)],_0xd22359(0x176));return{'method':_0xd22359(0x173),'url':'/smartapi/common/uploadFile','body':{'steps':[{'method':_0xd22359(0x173),'url':_0xd22359(0x18c),'body':{'appCode':_0x1d85e4['appCode'],'multipart':{'file':_0x4cd27d}}},{'method':_0xd22359(0x173),'url':'/smartapi/common/queryFileUrl','body':{'filePath':_0xd22359(0x186),'downloadFlag':![]}},{'method':'GET','url':_0xd22359(0x184),'query':{'appCode':_0x1d85e4[_0xd22359(0x168)],'url':'<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','type':_0x5db44a}}]},'description':_0xd22359(0x187)+_0x5b2cf0+_0xd22359(0x16a)};},async 'execute'(_0x23e469){const _0x2d09ae=a147_0x5ad1b9,_0x22486f=normalizeScene(_0x23e469[_0x2d09ae(0x174)](_0x2d09ae(0x165))),_0x1160e9=SCENE_TO_LEGACY_TYPE[_0x22486f],_0x158b8e=validateInputSelection(_0x23e469);if(_0x158b8e[_0x2d09ae(0x16f)]){const _0x4c3102=await recognizeDevelopmentOcr(_0x23e469[_0x2d09ae(0x168)],{'url':_0x158b8e[_0x2d09ae(0x16f)],'type':_0x1160e9});return{'ok':!![],'data':withScene(_0x4c3102,_0x22486f)};}const _0x55de89=requireDevelopmentUploadFile(_0x158b8e[_0x2d09ae(0x17a)],_0x2d09ae(0x176)),_0x32f670=await uploadDevelopmentFile(_0x23e469[_0x2d09ae(0x168)],_0x55de89['path']);if(!_0x32f670['filePath'])throw CliErrors[_0x2d09ae(0x190)](_0x2d09ae(0x16b));const _0x55a943=await queryDevelopmentFileUrl(_0x32f670[_0x2d09ae(0x196)],{'download':![]});if(!_0x55a943[_0x2d09ae(0x169)])throw CliErrors[_0x2d09ae(0x190)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x774635=await recognizeDevelopmentOcr(_0x23e469[_0x2d09ae(0x168)],{'url':_0x55a943[_0x2d09ae(0x169)],'type':_0x1160e9});return{'ok':!![],'data':withScene(_0x774635,_0x22486f,_0x32f670)};}};export const ocrDefinitions=[ocrRecognize];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a148_0x4c8c7e=a148_0x4d45;(function(_0x48c26b,_0x23abcb){const _0x15341b=a148_0x4d45,_0x12be26=_0x48c26b();while(!![]){try{const _0x29e2f5=-parseInt(_0x15341b(0x116))/0x1*(parseInt(_0x15341b(0x13c))/0x2)+parseInt(_0x15341b(0x124))/0x3*(parseInt(_0x15341b(0x13f))/0x4)+-parseInt(_0x15341b(0x13b))/0x5*(parseInt(_0x15341b(0x147))/0x6)+parseInt(_0x15341b(0x121))/0x7+-parseInt(_0x15341b(0x111))/0x8*(parseInt(_0x15341b(0x110))/0x9)+parseInt(_0x15341b(0x113))/0xa+parseInt(_0x15341b(0x11a))/0xb;if(_0x29e2f5===_0x23abcb)break;else _0x12be26['push'](_0x12be26['shift']());}catch(_0x21450b){_0x12be26['push'](_0x12be26['shift']());}}}(a148_0x279a,0xa7216));import{APPCODE_FLAG}from'../../commands/common/flags.js';function a148_0x279a(){const _0x671c4b=['string','validation','length','716170wvXual','276754JODepg','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','--page-pattern\x20currently\x20supports\x20only\x20BLANK.','3557516bsbpoY','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','page','parent-menu-id','create','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','\x20and\x20its\x20menu\x20entry.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','48QbqduV','Custom_page_','menuId','appCode','10269fRrQtN','544aoqTCZ','isNaN','2134760gskMOi','now','str','8GCCzCs','pageName','name','Would\x20create\x20Custom\x20Page\x20','17856861QjZStG','num','warnings','createMenu','en-US','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','trim','2021852BfMYRJ','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','page-type','3LiSmcB','apiError','parentMenuId','pageId','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page-pattern','page-content','POST','page\x20create\x20does\x20not\x20accept\x20--page-type.','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','pageName\x20cannot\x20exceed\x20100\x20characters.','/smartapi/webcode/page/create','zh-CN','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','files','menuPath','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','langs','isInteger','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.'];a148_0x279a=function(){return _0x671c4b;};return a148_0x279a();}import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a148_0x4d45(_0x5879e8,_0x54e43c){_0x5879e8=_0x5879e8-0x10e;const _0x279a5e=a148_0x279a();let _0x4d4508=_0x279a5e[_0x5879e8];return _0x4d4508;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=[a148_0x4c8c7e(0x130),a148_0x4c8c7e(0x11e)];export const pageCreate={'service':a148_0x4c8c7e(0x141),'command':a148_0x4c8c7e(0x143),'description':a148_0x4c8c7e(0x12d),'risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'rejectedFlags':[{'name':a148_0x4c8c7e(0x123),'message':a148_0x4c8c7e(0x12c),'hint':a148_0x4c8c7e(0x140)}],'flags':[{'name':'name','type':a148_0x4c8c7e(0x138),'description':a148_0x4c8c7e(0x146)},{'name':a148_0x4c8c7e(0x142),'type':'number','description':a148_0x4c8c7e(0x131)},{'name':'page-pattern','type':a148_0x4c8c7e(0x138),'description':a148_0x4c8c7e(0x134),'enum':['BLANK']},{'name':a148_0x4c8c7e(0x12a),'type':'string','description':a148_0x4c8c7e(0x13d)},APPCODE_FLAG],async 'validate'(_0x16f21b){const _0x46eb6d=a148_0x4c8c7e,_0x49f83b=readPagePattern(_0x16f21b);await validateCustomPageContent(readInput(_0x16f21b,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x49f83b)[_0x46eb6d(0x132)]);},async 'dryRun'(_0x488d19){const _0xec5a5=a148_0x4c8c7e,{input:_0x5c35ab}=await prepare(_0x488d19);return{'method':_0xec5a5(0x12b),'url':_0xec5a5(0x12f),'body':{'appCode':_0x5c35ab[_0xec5a5(0x10f)],'pageName':_0x5c35ab['pageName'],..._0x5c35ab[_0xec5a5(0x126)]!=null?{'parentMenuId':_0x5c35ab['parentMenuId']}:{},'createMenu':_0x5c35ab[_0xec5a5(0x11d)],'codeContent':_0x5c35ab[_0xec5a5(0x132)]},'description':_0xec5a5(0x119)+JSON['stringify'](_0x5c35ab[_0xec5a5(0x117)])+_0xec5a5(0x145)};},async 'execute'(_0x5d13ad){const _0x53b43a=a148_0x4c8c7e,_0x5bb20a=await prepare(_0x5d13ad),_0x5d2614=await createCustomPage(_0x5bb20a['input']);if(!Number[_0x53b43a(0x136)](_0x5d2614[_0x53b43a(0x127)])||_0x5d2614[_0x53b43a(0x127)]<=0x0)throw CliErrors[_0x53b43a(0x125)](_0x53b43a(0x122));return{'ok':!![],'data':buildMutationData(_0x5bb20a,_0x5d2614),'message':'Created\x20Custom\x20Page\x20'+_0x5d2614['pageId']+'.'};}};async function prepare(_0x4ecd56){const _0x1fe34d=a148_0x4c8c7e,_0x46fa1e=readPagePattern(_0x4ecd56);if(_0x46fa1e===null)return{'input':readInput(_0x4ecd56,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x46fa1e),'warnings':[],'pagePattern':_0x46fa1e};let _0x263ceb=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x4fe086=[];try{const _0x4a2b30=await getI18nInfo(_0x4ecd56['appCode']);_0x4a2b30['enableI18n']&&_0x4a2b30[_0x1fe34d(0x135)]?.[_0x1fe34d(0x13a)]&&(_0x263ceb=_0x4a2b30[_0x1fe34d(0x135)]);}catch{_0x4fe086=['Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.'];}return{'input':readInput(_0x4ecd56,_0x263ceb,_0x46fa1e),'warnings':_0x4fe086,'pagePattern':_0x46fa1e};}function readPagePattern(_0x128648){const _0x4a400d=a148_0x4c8c7e,_0x22be00=_0x128648['str'](_0x4a400d(0x129))['trim'](),_0x101a85=_0x128648[_0x4a400d(0x115)](_0x4a400d(0x12a))[_0x4a400d(0x120)]()[_0x4a400d(0x13a)]>0x0;if(_0x22be00&&_0x101a85)throw CliErrors[_0x4a400d(0x139)](_0x4a400d(0x137));if(_0x101a85)return null;if(!_0x22be00)throw CliErrors[_0x4a400d(0x139)](_0x4a400d(0x11f));if(_0x22be00!=='BLANK')throw CliErrors[_0x4a400d(0x139)](_0x4a400d(0x13e));return _0x22be00;}function readInput(_0x5aff40,_0x20d640=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x36e15e=readPagePattern(_0x5aff40)){const _0x1d7a72=a148_0x4c8c7e,_0x51fea7=_0x5aff40[_0x1d7a72(0x115)](_0x1d7a72(0x118))['trim']()||_0x1d7a72(0x148)+Date[_0x1d7a72(0x114)]();if(_0x51fea7['length']>0x64)throw CliErrors['validation'](_0x1d7a72(0x12e));const _0x194298=_0x5aff40[_0x1d7a72(0x11b)](_0x1d7a72(0x142),NaN),_0x1e98b6=!Number[_0x1d7a72(0x112)](_0x194298);if(_0x1e98b6&&(!Number['isInteger'](_0x194298)||_0x194298<=0x0))throw CliErrors[_0x1d7a72(0x139)](_0x1d7a72(0x144));return{'appCode':_0x5aff40[_0x1d7a72(0x10f)],'pageName':_0x51fea7,..._0x1e98b6?{'parentMenuId':_0x194298}:{},'createMenu':!![],'files':_0x36e15e===null?parseCustomPageContent(_0x5aff40[_0x1d7a72(0x115)](_0x1d7a72(0x12a))):buildInitialFiles(_0x51fea7,_0x20d640)};}function buildMutationData(_0x6f4b5c,_0x1988d2){const _0x2d2871=a148_0x4c8c7e,{input:_0x595f96}=_0x6f4b5c,_0x22a58e=_0x1988d2&&buildCustomPageDevelopmentUrl(_0x595f96[_0x2d2871(0x10f)],_0x1988d2[_0x2d2871(0x133)]),_0x28598a=_0x1988d2&&buildCustomPageEditUrl(_0x595f96['appCode'],_0x1988d2['pageId']);return{'operation':'page.create','pageType':'CUSTOM','pagePattern':_0x6f4b5c['pagePattern'],'selector':{'appCode':_0x595f96['appCode'],'pageName':_0x595f96[_0x2d2871(0x117)]},'before':null,'after':{'pageId':_0x1988d2?.[_0x2d2871(0x127)]??null,'pageName':_0x1988d2?.[_0x2d2871(0x117)]??_0x595f96[_0x2d2871(0x117)],'appCode':_0x1988d2?.['appCode']??_0x595f96[_0x2d2871(0x10f)],'version':_0x1988d2?.['version']??null,'menuId':_0x1988d2?.[_0x2d2871(0x10e)]??null,'menuPath':_0x1988d2?.['menuPath']??null,'files':_0x1988d2?.['files']??Object['keys'](_0x595f96[_0x2d2871(0x132)])},'dryRun':_0x1988d2===undefined,'request':_0x595f96,..._0x22a58e?{'pageUrl':_0x22a58e}:{},..._0x28598a?{'editPageUrl':_0x28598a}:{},'warnings':[..._0x6f4b5c[_0x2d2871(0x11c)],..._0x1988d2&&!_0x22a58e?[_0x2d2871(0x128)]:[]]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a149_0x13506d=a149_0x25db;(function(_0x1bed8a,_0x35caa6){const _0xc48afd=a149_0x25db,_0x40c983=_0x1bed8a();while(!![]){try{const _0x1c2528=parseInt(_0xc48afd(0x1e2))/0x1+parseInt(_0xc48afd(0x1c7))/0x2*(parseInt(_0xc48afd(0x1d0))/0x3)+parseInt(_0xc48afd(0x1ce))/0x4*(-parseInt(_0xc48afd(0x1d1))/0x5)+-parseInt(_0xc48afd(0x1d8))/0x6*(-parseInt(_0xc48afd(0x1c8))/0x7)+parseInt(_0xc48afd(0x1df))/0x8+-parseInt(_0xc48afd(0x1de))/0x9+-parseInt(_0xc48afd(0x1ca))/0xa*(-parseInt(_0xc48afd(0x1cd))/0xb);if(_0x1c2528===_0x35caa6)break;else _0x40c983['push'](_0x40c983['shift']());}catch(_0x3263b1){_0x40c983['push'](_0x40c983['shift']());}}}(a149_0x1096,0xd1a3f));import{getCustomPageSource}from'../../../core/api-client.js';function a149_0x25db(_0x4f8b9c,_0x86390){_0x4f8b9c=_0x4f8b9c-0x1c7;const _0x1096d8=a149_0x1096();let _0x25dbbf=_0x1096d8[_0x4f8b9c];return _0x25dbbf;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a149_0x13506d(0x1d7),'command':a149_0x13506d(0x1cc),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a149_0x13506d(0x1d3),'required':!![],'description':a149_0x13506d(0x1d9)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x550209){readCustomPageId(_0x550209);},async 'execute'(_0x351efd){const _0x573c7e=a149_0x13506d,_0x1746f9=readCustomPageId(_0x351efd),_0x43d836=await getCustomPageSource(_0x1746f9),{bundle:_0x3943d6,createTime:_0xb11a51,updateTime:_0x881f68,..._0x4e1e3f}=_0x43d836,_0x2b2d65=_0x43d836['id']??_0x1746f9,_0x39dbae=_0x43d836[_0x573c7e(0x1dc)]?.[_0x573c7e(0x1cb)]()||_0x351efd[_0x573c7e(0x1d4)](_0x573c7e(0x1db))[_0x573c7e(0x1cb)](),_0x45a305=buildCustomPageRuntimeUrl(_0x39dbae,_0x43d836[_0x573c7e(0x1e1)]),_0x14d3f7=buildCustomPageEditUrl(_0x39dbae,_0x2b2d65),_0x16cd23=await resolveCustomPageDevelopmentUrl(_0x39dbae,_0x2b2d65,_0x351efd[_0x573c7e(0x1da)]);return{'ok':!![],'data':{..._0x4e1e3f,..._0x45a305?{'runtimePageUrl':_0x45a305}:{},..._0x16cd23?{'pageUrl':_0x16cd23}:{},..._0x14d3f7?{'editPageUrl':_0x14d3f7}:{},..._0xb11a51==null?{}:{'createTime':formatTime(_0xb11a51)},..._0x881f68==null?{}:{'updateTime':formatTime(_0x881f68)}},'message':'Retrieved\x20Custom\x20Page\x20'+_0x1746f9+'.'};}};function formatTime(_0x3ce1f9){const _0x2c8e65=a149_0x13506d,_0x548cc3=new Date(_0x3ce1f9);if(Number[_0x2c8e65(0x1c9)](_0x548cc3[_0x2c8e65(0x1d6)]()))return String(_0x3ce1f9);const _0x3bc25e=[_0x548cc3[_0x2c8e65(0x1d5)](),String(_0x548cc3[_0x2c8e65(0x1d2)]()+0x1)[_0x2c8e65(0x1e0)](0x2,'0'),String(_0x548cc3['getDate']())[_0x2c8e65(0x1e0)](0x2,'0')]['join']('-'),_0x533170=[String(_0x548cc3[_0x2c8e65(0x1dd)]())[_0x2c8e65(0x1e0)](0x2,'0'),String(_0x548cc3['getMinutes']())[_0x2c8e65(0x1e0)](0x2,'0'),String(_0x548cc3[_0x2c8e65(0x1cf)]())['padStart'](0x2,'0')]['join'](':');return _0x3bc25e+'\x20'+_0x533170;}function a149_0x1096(){const _0x235fb1=['appCode','getHours','5172678OcTZgo','2846096ztrNmv','padStart','pageCode','186134pbuBca','56AFHSkS','28kuYpho','isNaN','1530XscJYR','trim','custom-detail','36069Vwartl','4lhLLpf','getSeconds','63405CiQxPz','2525330UBRNuj','getMonth','number','str','getFullYear','getTime','page','454698lknLgb','Custom\x20Page\x20ID','cookie','appcode'];a149_0x1096=function(){return _0x235fb1;};return a149_0x1096();}
|