"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Deletes a KYC application",operationId:"deleteKycApplication",tags:["Admin","CRM","KYC"],parameters:(0,query_1.deleteRecordParams)("KYC application"),responses:(0,query_1.deleteRecordResponses)("KYC application"),permission:"delete.kyc.application",requiresAuth:!0,logModule:"ADMIN_CRM",logTitle:"Delete KYC application"};exports.default=async e=>{const{params:t,query:a,ctx:i}=e;null==i||i.step(`Deleting KYC application ${t.id}`);const l=await(0,query_1.handleSingleDelete)({model:"kycApplication",id:t.id,query:a});null==i||i.success("KYC application deleted successfully");return l};