UNPKG

scheunemann-interfaces

Version:
34 lines (33 loc) 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EvolutionWebhookEntity = void 0; var enums_1 = require("../enums"); var EvolutionWebhookEntity = /** @class */ (function () { // #endregion Properties (5) // #region Constructors (1) function EvolutionWebhookEntity(data) { // #region Properties (5) this.enabled = true; this.events = [ enums_1.EEvolutionEvent.QRCODE_UPDATED, enums_1.EEvolutionEvent.MESSAGES_UPSERT, enums_1.EEvolutionEvent.MESSAGES_UPDATE, enums_1.EEvolutionEvent.MESSAGES_DELETE, enums_1.EEvolutionEvent.SEND_MESSAGE, enums_1.EEvolutionEvent.CONNECTION_UPDATE, enums_1.EEvolutionEvent.CALL, ]; this.url = ''; this.webhookBase64 = false; this.webhookByEvents = false; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return EvolutionWebhookEntity; }()); exports.EvolutionWebhookEntity = EvolutionWebhookEntity;