UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

25 lines 789 B
import { __awaiter } from "tslib"; /* Custom modules */ import { createNodeDescriptor } from "../../createNodeDescriptor"; /** * Node name: 'deleteProfile' * * Purpose: * Deletes contact profile information and all their conversations */ export const DELETE_PROFILE = createNodeDescriptor({ type: "deleteProfile", defaultLabel: "Delete Profile", summary: "UI__NODE_EDITOR__DELETE_PROFILE__SUMMARY", appearance: { showIcon: false }, fields: [], tags: ["analytics", "profile"], function: ({ cognigy }) => __awaiter(void 0, void 0, void 0, function* () { const { api } = cognigy; yield api.deleteProfile(); api.logDebugMessage(`UI__DEBUG_MODE__DELETE_PROFILE__MESSAGE`); }) }); //# sourceMappingURL=deleteProfile.js.map