function buildCrudEvents(entity) {
  return {
    module: "resources",
    entity,
    persistent: true,
    buildPayload: (ctx) => ({
      id: ctx.identifiers.id,
      organizationId: ctx.identifiers.organizationId,
      tenantId: ctx.identifiers.tenantId
    })
  };
}
const resourcesResourceCrudEvents = buildCrudEvents("resource");
const resourcesResourceTypeCrudEvents = buildCrudEvents("resource_type");
const resourcesResourceCommentCrudEvents = buildCrudEvents("comment");
const resourcesResourceActivityCrudEvents = buildCrudEvents("activity");
const resourcesResourceTagAssignmentCrudEvents = buildCrudEvents("resource_tag_assignment");
export {
  resourcesResourceActivityCrudEvents,
  resourcesResourceCommentCrudEvents,
  resourcesResourceCrudEvents,
  resourcesResourceTagAssignmentCrudEvents,
  resourcesResourceTypeCrudEvents
};
//# sourceMappingURL=crud.js.map
