n8n-nodes-efibank
Version:
Nó personalizado para integração com as APIs Cobranças e Pix do Efi Bank, permitindo operações de pagamentos, recebimentos e gerenciamento de transações financeiras.
57 lines • 3.39 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.webhooksService = void 0;
const pixConfigWebhook_1 = require("../endpoints/webhooks/cob-cobv/pixConfigWebhook");
const pixDeleteWebhook_1 = require("../endpoints/webhooks/cob-cobv/pixDeleteWebhook");
const pixDetailWebhook_1 = require("../endpoints/webhooks/cob-cobv/pixDetailWebhook");
const pixListWebhook_1 = require("../endpoints/webhooks/cob-cobv/pixListWebhook");
const pixConfigWebhookRecurrenceAutomatic_1 = require("../endpoints/webhooks/automatic/pixConfigWebhookRecurrenceAutomatic");
const pixListWebhookRecurrenceAutomatic_1 = require("../endpoints/webhooks/automatic/pixListWebhookRecurrenceAutomatic");
const pixDeleteWebhookRecurrenceAutomatic_1 = require("../endpoints/webhooks/automatic/pixDeleteWebhookRecurrenceAutomatic");
const pixConfigWebhookAutomaticCharge_1 = require("../endpoints/webhooks/automatic/pixConfigWebhookAutomaticCharge");
const pixListWebhookAutomaticCharge_1 = require("../endpoints/webhooks/automatic/pixListWebhookAutomaticCharge");
const pixDeleteWebhookAutomaticCharge_1 = require("../endpoints/webhooks/automatic/pixDeleteWebhookAutomaticCharge");
const pixResendWebhook_1 = require("../endpoints/webhooks/cob-cobv/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;
case 'pixConfigWebhookRecurrenceAutomatic':
requestOptions = await (0, pixConfigWebhookRecurrenceAutomatic_1.pixConfigWebhookRecurrenceAutomatic)(this, i);
break;
case 'pixListWebhookRecurrenceAutomatic':
requestOptions = await (0, pixListWebhookRecurrenceAutomatic_1.pixListWebhookRecurrenceAutomatic)(this, i);
break;
case 'pixDeleteWebhookRecurrenceAutomatic':
requestOptions = await (0, pixDeleteWebhookRecurrenceAutomatic_1.pixDeleteWebhookRecurrenceAutomatic)(this, i);
break;
case 'pixConfigWebhookAutomaticCharge':
requestOptions = await (0, pixConfigWebhookAutomaticCharge_1.pixConfigWebhookAutomaticCharge)(this, i);
break;
case 'pixListWebhookAutomaticCharge':
requestOptions = await (0, pixListWebhookAutomaticCharge_1.pixListWebhookAutomaticCharge)(this, i);
break;
case 'pixDeleteWebhookAutomaticCharge':
requestOptions = await (0, pixDeleteWebhookAutomaticCharge_1.pixDeleteWebhookAutomaticCharge)(this, i);
break;
default:
throw new Error(`Endpoint de webhook não implementado: ${endpoint}`);
}
return requestOptions;
}
exports.webhooksService = webhooksService;
//# sourceMappingURL=webhooksService.js.map