n8n-nodes-imap-ai
Version:
Simplified IMAP node for n8n with AI-agent support. Clean and modular email and mailbox management for automation workflows.
20 lines • 772 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getResourceOperationDef = getResourceOperationDef;
const ResourcesList_1 = require("../operations/ResourcesList");
function getResourceOperationDef(resource, operation) {
let foundOperationDef = null;
for (const resourceDef of ResourcesList_1.allResourceDefinitions) {
if (resourceDef.resource.value === resource) {
for (const operationDef of resourceDef.operationDefs) {
if (operationDef.operation.value === operation) {
foundOperationDef = operationDef;
break;
}
}
break;
}
}
return foundOperationDef;
}
//# sourceMappingURL=FindOperation.js.map