"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 UUIDs",operationId:"bulkDeleteWallets",tags:["Admin","Wallets"],parameters:(0,query_1.commonBulkDeleteParams)("wallet"),requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Array of wallet UUIDs to delete"}},required:["ids"]}}}},responses:(0,query_1.commonBulkDeleteResponses)("wallet"),requiresAuth:!0,permission:"delete.withdraw.method",logModule:"ADMIN_FIN",logTitle:"Bulk Delete Withdraw Methods"};exports.default=async e=>{const{body:t,query:s,ctx:l}=e,{ids:r}=t;null==l||l.step("Bulk deleting withdraw methods");const o=await(0,query_1.handleBulkDelete)({model:"withdrawMethod",ids:r,query:s});null==l||l.success("Withdraw methods deleted successfully");return o};