static void Main(string[] args) { freshdesk = new FreshdeskRepository(); accountMapper = new AccountMapper(); contactMapper = new ContactMapper(); ticketMapper = new TicketMapper(); crm = new CrmRepository(); string dayOfWeek = DateTime.Now.DayOfWeek.ToString(); if (dayOfWeek == "Saturday") { AgentSync(); } AccountSync(); ContactSync(); TicketSync(); }
public CrmRepository() { _service = CrmServiceFactory.GetOrganization(); _freshdeskRepo = new FreshdeskRepository(); _contactMapper = new ContactMapper(); }