@cognigy/rest-api-client
Version:
Cognigy REST-Client
27 lines • 849 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ACTIVATE_PROFILE = void 0;
/* Custom modules */
const createNodeDescriptor_1 = require("../../createNodeDescriptor");
/**
* Node name: 'activateProfile'
*
* Purpose:
* Activates contact profile for collection again
*/
exports.ACTIVATE_PROFILE = (0, createNodeDescriptor_1.createNodeDescriptor)({
type: "activateProfile",
defaultLabel: "Activate Profile",
summary: "UI__NODE_EDITOR__ACTIVATE_PROFILE__SUMMARY",
appearance: {
showIcon: false
},
fields: [],
tags: ["analytics", "profile"],
function: async ({ cognigy }) => {
const { api } = cognigy;
await api.activateProfile();
api.logDebugMessage(`UI__DEBUG_MODE__ACTIVATE_PROFILE__MESSAGE`);
}
});
//# sourceMappingURL=activateProfile.js.map