UNPKG

cecon-interfaces

Version:
44 lines (43 loc) 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.N8nChatTriggerEntity = void 0; var N8nChatTriggerEntity = /** @class */ (function () { // #endregion Properties (15) // #region Constructors (1) function N8nChatTriggerEntity(data) { // #region Properties (15) this.messageId = ''; this.sessionId = ''; this.userId = ''; this.message = ''; this.messageType = 'text'; this.timestamp = new Date(); this.platform = ''; this.user = { id: '', name: '', }; this.conversation = { id: '', isGroup: false, }; this.metadata = {}; this.webhook = { id: '', url: '', }; this.rawData = null; this.tags = []; this.customData = {}; this.status = 'pending'; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return N8nChatTriggerEntity; }()); exports.N8nChatTriggerEntity = N8nChatTriggerEntity;