UNPKG

cecon-interfaces

Version:
41 lines (40 loc) 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.N8nChatContextEntity = void 0; var N8nChatContextEntity = /** @class */ (function () { // #endregion Properties (10) // #region Constructors (1) function N8nChatContextEntity(data) { // #region Properties (10) this.contextId = ''; this.sessionId = ''; this.userId = ''; this.platform = ''; this.messageHistory = []; this.conversationState = { isActive: false, lastActivity: new Date(), }; this.userData = {}; this.sessionConfig = { timeout: 30, maxMessages: 100, language: 'pt-BR', timezone: 'America/Sao_Paulo', }; this.metrics = undefined; this.timestamps = { createdAt: new Date(), updatedAt: new Date(), }; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return N8nChatContextEntity; }()); exports.N8nChatContextEntity = N8nChatContextEntity;