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