"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Bulk deletes Investment durations by IDs",operationId:"bulkDeleteInvestmentDurations",tags:["Admin","Investment","Durations"],parameters:(0,query_1.commonBulkDeleteParams)("Investment Durations"),requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Array of Investment duration IDs to delete"}},required:["ids"]}}}},responses:(0,query_1.commonBulkDeleteResponses)("Investment Durations"),requiresAuth:!0,permission:"delete.investment.duration",logModule:"ADMIN_FIN",logTitle:"Bulk Delete Investment Durations"};exports.default=async e=>{const{body:t,query:s,ctx:n}=e,{ids:r}=t;null==n||n.step("Validating investment duration IDs");null==n||n.step("Deleting investment duration records");const o=await(0,query_1.handleBulkDelete)({model:"investmentDuration",ids:r,query:s});null==n||n.success("Investment durations deleted successfully");return o};