UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

32 lines 1.04 kB
import { __awaiter } from "tslib"; /* Custom modules */ import { createNodeDescriptor } from "../../createNodeDescriptor"; /** * Node name: 'deactivateProfile' * * Purpose: * Deletes contact profile information and all their conversations */ export const DEACTIVATE_PROFILE = createNodeDescriptor({ type: "deactivateProfile", defaultLabel: "Deactivate Profile", summary: "UI__NODE_EDITOR__DEACTIVATE_PROFILE__SUMMARY", appearance: { showIcon: false }, fields: [ { key: "deleteData", type: "checkbox", label: "UI__NODE_EDITOR__DEACTIVATE_PROFILE__DELETE_DATA__LABEL", } ], tags: ["analytics", "profile"], function: ({ cognigy, config }) => __awaiter(void 0, void 0, void 0, function* () { const { api } = cognigy; const { deleteData } = config; yield api.deactivateProfile(deleteData); api.logDebugMessage(`UI__DEBUG_MODE__DEACTIVATE_PROFILE__MESSAGE`); }) }); //# sourceMappingURL=deactivateProfile.js.map