@cognigy/rest-api-client
Version:
Cognigy REST-Client
25 lines • 788 B
JavaScript
import { __awaiter } from "tslib";
/* Custom modules */
import { createNodeDescriptor } from "../../createNodeDescriptor";
/**
* Node name: 'activateProfile'
*
* Purpose:
* Activates contact profile for collection again
*/
export const ACTIVATE_PROFILE = createNodeDescriptor({
type: "activateProfile",
defaultLabel: "Activate Profile",
summary: "UI__NODE_EDITOR__ACTIVATE_PROFILE__SUMMARY",
appearance: {
showIcon: false
},
fields: [],
tags: ["analytics", "profile"],
function: ({ cognigy }) => __awaiter(void 0, void 0, void 0, function* () {
const { api } = cognigy;
yield api.activateProfile();
api.logDebugMessage(`UI__DEBUG_MODE__ACTIVATE_PROFILE__MESSAGE`);
})
});
//# sourceMappingURL=activateProfile.js.map