UNPKG

n8n

Version:

n8n Workflow Automation Tool

27 lines 1.6 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.OrchestrationWebhookService = void 0; const typedi_1 = require("typedi"); const orchestration_service_1 = require("../../orchestration.service"); const config_1 = __importDefault(require("../../../config")); let OrchestrationWebhookService = class OrchestrationWebhookService extends orchestration_service_1.OrchestrationService { sanityCheck() { return (this.isInitialized && config_1.default.get('executions.mode') === 'queue' && config_1.default.get('generic.instanceType') === 'webhook'); } }; exports.OrchestrationWebhookService = OrchestrationWebhookService; exports.OrchestrationWebhookService = OrchestrationWebhookService = __decorate([ (0, typedi_1.Service)() ], OrchestrationWebhookService); //# sourceMappingURL=orchestration.webhook.service.js.map