"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Bulk deletes support tickets by IDs",operationId:"bulkDeleteSupportTickets",tags:["Admin","CRM","Support Ticket"],parameters:(0,query_1.commonBulkDeleteParams)("Support Tickets"),requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Array of support ticket IDs to delete"}},required:["ids"]}}}},responses:(0,query_1.commonBulkDeleteResponses)("Support Tickets"),requiresAuth:!0,permission:"delete.support.ticket",logModule:"ADMIN_SUP",logTitle:"Bulk delete tickets"};exports.default=async e=>{const{body:t,query:s,ctx:r}=e,{ids:u}=t.ids;null==r||r.step("Deleting tickets");await(0,query_1.handleBulkDelete)({model:"supportTicket",ids:u,query:s});null==r||r.success("Tickets deleted successfully");return{message:"Tickets deleted successfully"}};