UNPKG

n8n-nodes-efibank

Version:

Nó personalizado para integração com as APIs Cobranças e Pix do Efibank, permitindo operações de pagamentos, recebimentos e gerenciamento de transações financeiras.

33 lines 1.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.webhooksService = void 0; const pixConfigWebhook_1 = require("../endpoints/webhooks/pixConfigWebhook"); const pixDeleteWebhook_1 = require("../endpoints/webhooks/pixDeleteWebhook"); const pixDetailWebhook_1 = require("../endpoints/webhooks/pixDetailWebhook"); const pixListWebhook_1 = require("../endpoints/webhooks/pixListWebhook"); const pixResendWebhook_1 = require("../endpoints/webhooks/pixResendWebhook"); async function webhooksService(endpoint, i) { let requestOptions; switch (endpoint) { case 'pixConfigWebhook': requestOptions = await (0, pixConfigWebhook_1.pixConfigWebhook)(this, i); break; case 'pixDeleteWebhook': requestOptions = await (0, pixDeleteWebhook_1.pixDeleteWebhook)(this, i); break; case 'pixDetailWebhook': requestOptions = await (0, pixDetailWebhook_1.pixDetailWebhook)(this, i); break; case 'pixListWebhook': requestOptions = await (0, pixListWebhook_1.pixListWebhook)(this, i); break; case 'pixResendWebhook': requestOptions = await (0, pixResendWebhook_1.pixResendWebhook)(this, i); break; default: throw new Error(`Endpoint de webhook não implementado`); } return requestOptions; } exports.webhooksService = webhooksService; //# sourceMappingURL=webhooksService.js.map