'use strict';
import { createBaseResourceProperties } from '../../utils/base-resource-properties.js';
import { createTicket } from './ticket-db.js';
import { workspaceConstants } from '../../../../fd-toolbox/server/constants/workspace-constants.js';
import { ticketStatuses, ticketPriorities } from '../../../common/demo/demo-resources-enums.js';
import { companyIds } from '../companies/company-master-data.js';
import { contactIds } from '../contacts/contact-master-data.js';

var __defProp=Object['defineProperty'],__name=(_0x5a1dc5,_0x426cbf)=>__defProp(_0x5a1dc5,'name',{'value':_0x426cbf,'configurable':!![]});const ticketIds={'productIssueId':'63014b40-4ac5-4776-8aa5-994ba2d22230','billingProblemId':'71540a94-c338-4ad0-8333-c58df03f9c8c','feedbackOnServiceId':'73bc6e7e-df78-4bd9-ba55-e9c106530893','feedbackOnId':'b955fc61-227b-425f-9437-d557a49d636d','feedbackId':'b6e887db-c862-4c4f-8e4d-ff8214f32ecb','shippingDelayId':'f0418d5c-14e4-4a4a-8ae2-f09f5c80dc7b','inquiryAboutServicesId':'b59325cd-7fa7-4518-81cc-d1e58b4b3cc9','warrantyClaimId':'4ae1cb39-d275-49f7-96f0-d24abf60eb93','refundRequestId':'02e4d7d3-1f8c-4cd4-b42e-e69e2d24c9e8','featureRequestId':'e28e27d3-3f89-49a1-a7cd-35c4af9035f1','brownColorschemeId':'008fd1d7-b352-4eab-9dfe-dc0ad9686e44'};async function seedTickets(){await seedTicketIssueWithProduct(),await seedTicketBillingProblem(),await seedTicketFeedbackOnService(),await seedTicketFeedbackOn(),await seedTicketFeedback(),await seedTicketShippingDelay(),await seedTicketInquiryAboutServices(),await seedTicketWarrantyClaim(),await seedTicketRefundRequest(),await seedTicketfeatureRequest(),await seedTicketBrownColorScheme();}__name(seedTickets,'seedTickets');async function seedTicket(_0x579783,_0x5e480d,_0x5bfb0b,_0x424e1f,_0x4dae42,_0x36ff40){const _0x5a8d76={...createBaseResourceProperties(_0x579783),'subject':_0x5e480d,'status':_0x5bfb0b,'priority':_0x424e1f,'companyId':_0x4dae42,'contactId':_0x36ff40,'workspaceId':workspaceConstants['defaultWorkspaceId']};await createTicket(_0x5a8d76);}__name(seedTicket,'seedTicket');async function seedTicketIssueWithProduct(){await seedTicket(ticketIds['productIssueId'],'Issue\x20with\x20product',ticketStatuses['new'],ticketPriorities['high'],companyIds['artisanId'],contactIds['alexJohnsonId']);}__name(seedTicketIssueWithProduct,'seedTicketIssueWithProduct');async function seedTicketBillingProblem(){await seedTicket(ticketIds['billingProblemId'],'Billing\x20problem',ticketStatuses['waitingOnContact'],ticketPriorities['medium'],companyIds['catalystId'],contactIds['alexJohnsonId']);}__name(seedTicketBillingProblem,'seedTicketBillingProblem');async function seedTicketFeedbackOnService(){await seedTicket(ticketIds['feedbackOnServiceId'],'Feedback\x20on\x20service',ticketStatuses['new'],ticketPriorities['low'],companyIds['quantumId'],contactIds['alexJohnsonId']);}__name(seedTicketFeedbackOnService,'seedTicketFeedbackOnService');async function seedTicketFeedbackOn(){await seedTicket(ticketIds['feedbackOnId'],'Feedback\x20on',ticketStatuses['waitingOnUs'],ticketPriorities['low'],companyIds['precisionId'],contactIds['lauraJonesId']);}__name(seedTicketFeedbackOn,'seedTicketFeedbackOn');async function seedTicketFeedback(){await seedTicket(ticketIds['feedbackId'],'Feedback',ticketStatuses['closed'],ticketPriorities['medium'],companyIds['nexusTechId'],contactIds['lauraJonesId']);}__name(seedTicketFeedback,'seedTicketFeedback');async function seedTicketShippingDelay(){await seedTicket(ticketIds['shippingDelayId'],'Shipping\x20delay',ticketStatuses['closed'],ticketPriorities['high'],companyIds['coreBuildId'],contactIds['lauraJonesId']);}__name(seedTicketShippingDelay,'seedTicketShippingDelay');async function seedTicketInquiryAboutServices(){await seedTicket(ticketIds['inquiryAboutServicesId'],'Inquiry\x20about\x20services',ticketStatuses['new'],ticketPriorities['medium'],companyIds['innovateLabId'],contactIds['mikeJonesId']);}__name(seedTicketInquiryAboutServices,'seedTicketInquiryAboutServices');async function seedTicketWarrantyClaim(){await seedTicket(ticketIds['warrantyClaimId'],'Warranty\x20claim',ticketStatuses['new'],ticketPriorities['low'],companyIds['coreBuildId'],contactIds['bobKellerId']);}__name(seedTicketWarrantyClaim,'seedTicketWarrantyClaim');async function seedTicketRefundRequest(){await seedTicket(ticketIds['refundRequestId'],'Refund\x20request',ticketStatuses['waitingOnUs'],ticketPriorities['low'],companyIds['artisanId'],contactIds['susanAdamsonId']);}__name(seedTicketRefundRequest,'seedTicketRefundRequest');async function seedTicketfeatureRequest(){await seedTicket(ticketIds['featureRequestId'],'Feature\x20request',ticketStatuses['waitingOnContact'],ticketPriorities['medium'],companyIds['nexusTechId'],contactIds['jamesMoriartyId']);}__name(seedTicketfeatureRequest,'seedTicketfeatureRequest');async function seedTicketBrownColorScheme(){await seedTicket(ticketIds['brownColorschemeId'],'Add\x20brown\x20colorscheme\x20to\x20the\x20page',ticketStatuses['new'],ticketPriorities['low'],companyIds['brownieCorp'],contactIds['bobWilliamsId']);}__name(seedTicketBrownColorScheme,'seedTicketBrownColorScheme');

export { seedTickets, ticketIds };
