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();
        }
예제 #2
0
 public CrmRepository()
 {
     _service       = CrmServiceFactory.GetOrganization();
     _freshdeskRepo = new FreshdeskRepository();
     _contactMapper = new ContactMapper();
 }