"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query"),utils_1=require("./utils");exports.metadata={summary:"Stores a new Admin Profit",operationId:"storeAdminProfit",tags:["Admin","Finance","Profits"],requestBody:{required:!0,content:{"application/json":{schema:utils_1.adminProfitStoreSchema}}},responses:{200:{description:"Admin Profit created successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"}}}}}}},requiresAuth:!0,permission:"create.admin.profit",logModule:"ADMIN_FIN",logTitle:"Create Admin Profit"};exports.default=async e=>{const{body:t,ctx:r}=e;return await(0,query_1.storeRecord)({model:"adminProfit",data:t})};