UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

57 lines 1.86 kB
import { __awaiter } from "tslib"; /* Custom modules */ import { createNodeDescriptor } from "../../createNodeDescriptor"; import { logFullConfigToDebugMode } from "../../../helper/logFullConfigToDebugMode"; /** * Node name: 'blindMode' * * Purpose: * Disables or enables logging and analytics */ export const BLIND_MODE = createNodeDescriptor({ type: "blindMode", defaultLabel: "Blind Mode", summary: "UI__NODE_EDITOR__BLIND_MODE__SUMMARY", appearance: { showIcon: false }, fields: [ { key: "maskLogging", type: "toggle", label: "UI__NODE_EDITOR__BLIND_MODE__MASK_LOGGING__LABEL", defaultValue: false, }, { key: "maskAnalytics", type: "toggle", label: "UI__NODE_EDITOR__BLIND_MODE__MASK_ANALYTICS__LABEL", defaultValue: false, }, { key: "disableIntentTrainer", type: "toggle", label: "UI__NODE_EDITOR__BLIND_MODE__DISABLE_INTENT_TRAINER__LABEL", defaultValue: false, }, { key: "disableConversations", type: "toggle", label: "UI__NODE_EDITOR__BLIND_MODE__DISABLE_CONVERSATIONS__LABEL", defaultValue: false, } ], tags: ["analytics", "profile"], function: ({ cognigy, config }) => __awaiter(void 0, void 0, void 0, function* () { const { maskAnalytics, maskLogging, disableConversations, disableIntentTrainer, } = config; const { input, api } = cognigy; api.setSensitiveLoggingSettings({ maskLogging, maskAnalytics, disableConversations, disableIntentTrainer, }, input.traceId); logFullConfigToDebugMode(cognigy, config); }) }); //# sourceMappingURL=blindMode.js.map