pub mod agent;
pub mod agent_schedule;
pub mod agent_skill;
pub mod agent_skill_rule;
pub mod category;
pub mod event;
pub mod faq;
pub mod notification;
pub mod ticket;
pub mod ticket_customized_field;
pub mod ticket_message;
use crate::core::config::Config;
pub struct V1 {
pub agent: agent::AgentService,
pub agent_schedule: agent_schedule::AgentScheduleService,
pub agent_skill: agent_skill::AgentSkillService,
pub agent_skill_rule: agent_skill_rule::AgentSkillRuleService,
pub category: category::CategoryService,
pub event: event::EventService,
pub faq: faq::FaqService,
pub notification: notification::NotificationService,
pub ticket: ticket::TicketService,
pub ticket_customized_field: ticket_customized_field::TicketCustomizedFieldService,
pub ticket_message: ticket_message::TicketMessageService,
}
impl V1 {
pub fn new(config: Config) -> Self {
Self {
agent: agent::AgentService::new(config.clone()),
agent_schedule: agent_schedule::AgentScheduleService::new(config.clone()),
agent_skill: agent_skill::AgentSkillService::new(config.clone()),
agent_skill_rule: agent_skill_rule::AgentSkillRuleService::new(config.clone()),
category: category::CategoryService::new(config.clone()),
event: event::EventService::new(config.clone()),
faq: faq::FaqService::new(config.clone()),
notification: notification::NotificationService::new(config.clone()),
ticket: ticket::TicketService::new(config.clone()),
ticket_customized_field: ticket_customized_field::TicketCustomizedFieldService::new(
config.clone(),
),
ticket_message: ticket_message::TicketMessageService::new(config),
}
}
}