'use strict';
import { createBaseResourceProperties } from '../../utils/base-resource-properties.js';
import { createDeal } from './deal-db.js';
import { dealStages } from '../../../common/demo/demo-resources-enums.js';
import { workspaceConstants } from '../../../../fd-toolbox/server/constants/workspace-constants.js';
import { companyIds } from '../companies/company-master-data.js';
import { contactIds } from '../contacts/contact-master-data.js';
import { getNow } from '../../../../fd-toolbox/time/date-time.js';

var __defProp=Object['defineProperty'],__name=(_0x4fa4fc,_0x323cbe)=>__defProp(_0x4fa4fc,'name',{'value':_0x323cbe,'configurable':!![]});const dealIds={'nexusTechBrownId':'494304d0-4311-4e4f-b844-e9e3e665ca82','fastTrackJohnsonId':'26e60ef0-b7a8-46c7-9be7-78eb464669fd','quantumWilliamsId':'41f3a2a7-156c-469a-a6ce-4ffe19c2a442','coreBuildTaylorId':'2e8b0e1a-1a6c-4f78-8775-8b2c7d631f72','precisionJonesId':'b8314e1e-b45c-4704-91f2-5d5294914d4e','brandSparkWhiteId':'fa353c4a-d46b-4826-a45f-919a40c6dba4','catalystKellerId':'2c7fcce6-b49d-4a56-b872-95f7878162f7','artisanAdamsonId':'5095eab3-b5b3-478f-9b79-f243bcdafed0','solarFlowMoriartyId':'03cc3a11-f2d7-4d4f-9088-63c12f8f2ed9','innovateLabJonesId':'7e4cda9d-0fd0-4f99-a44e-e65c11ebd88d'};async function seedDeals(){for(const _0x3ac075 of dealsToSeed){await seedDeal(_0x3ac075['id'],_0x3ac075['name'],_0x3ac075['amount'],_0x3ac075['stage'],_0x3ac075['companyId'],_0x3ac075['contactId'],_0x3ac075['closeDate']);}}__name(seedDeals,'seedDeals');async function seedDeal(_0x3a8b52,_0x58da89,_0x5a38ed,_0x408455,_0x1ba969,_0x5602a4,_0x65f0af){const _0x2440f0={...createBaseResourceProperties(_0x3a8b52),'name':_0x58da89,'amount':_0x5a38ed,'stage':_0x408455,'companyId':_0x1ba969,'contactId':_0x5602a4,'workspaceId':workspaceConstants['defaultWorkspaceId'],'closeDate':_0x65f0af};await createDeal(_0x2440f0);}__name(seedDeal,'seedDeal');const dealsToSeed=[{'id':dealIds['nexusTechBrownId'],'name':'Nexus\x20Tech\x20Brown','amount':0x186a0,'stage':dealStages['closed'],'companyId':companyIds['nexusTechId'],'contactId':contactIds['emilyBrownId'],'closeDate':getNow()},{'id':dealIds['fastTrackJohnsonId'],'name':'FastTrack\x20Johnson','amount':0x1388,'stage':dealStages['contractSent'],'companyId':companyIds['fastTrackId'],'contactId':contactIds['alexJohnsonId'],'closeDate':getNow()},{'id':dealIds['quantumWilliamsId'],'name':'Quantum\x20Williams','amount':0x1b58,'stage':dealStages['appointmentScheduled'],'companyId':companyIds['quantumId'],'contactId':contactIds['bobWilliamsId']},{'id':dealIds['coreBuildTaylorId'],'name':'CoreBuild\x20Taylor','amount':0x2710,'stage':dealStages['appointmentScheduled'],'companyId':companyIds['coreBuildId'],'contactId':contactIds['carolTaylorId']},{'id':dealIds['precisionJonesId'],'name':'Precision\x20Jones','amount':0x9c4,'stage':dealStages['closed'],'companyId':companyIds['precisionId'],'contactId':contactIds['lauraJonesId'],'closeDate':getNow()},{'id':dealIds['brandSparkWhiteId'],'name':'BrandSpark\x20White','amount':0x3a98,'stage':dealStages['appointmentScheduled'],'companyId':companyIds['brandSparkId'],'contactId':contactIds['dianeWhiteId']},{'id':dealIds['catalystKellerId'],'name':'Catalyst\x20Keller','amount':0x2710,'stage':dealStages['negotiation'],'companyId':companyIds['catalystId'],'contactId':contactIds['bobKellerId'],'closeDate':getNow()},{'id':dealIds['artisanAdamsonId'],'name':'Artisan\x20Adamson','amount':0x4b0,'stage':dealStages['negotiation'],'companyId':companyIds['artisanId'],'contactId':contactIds['susanAdamsonId'],'closeDate':getNow()},{'id':dealIds['solarFlowMoriartyId'],'name':'SolarFlow\x20Moriarty','amount':0xbb8,'stage':dealStages['closed'],'companyId':companyIds['solarFlowId'],'contactId':contactIds['jamesMoriartyId'],'closeDate':getNow()},{'id':dealIds['innovateLabJonesId'],'name':'InnovateLab\x20Jones','amount':0x1f40,'stage':dealStages['appointmentScheduled'],'companyId':companyIds['innovateLabId'],'contactId':contactIds['mikeJonesId']}];

export { dealIds, seedDeals };
