static SDKPerson()
 {
     //Call center
     //SoftCollection
     //Telemarketing
     //Verification
     teleoptiServiceApplication = new ServiceApplication("Yuri", "123456", "Verification1");
 }
 public ScheduleLoader(ServiceApplication service, IList<Agent> agentsToLoad, 
     DateTime dateFrom, DateTime dateTo, TimeZoneInfo timeZoneInfo)
 {
     _service = service;
     _agentsToLoad = agentsToLoad;
     _dateFrom = dateFrom;
     _dateTo = dateTo;
     _timeZoneInfo = timeZoneInfo;
 }
 public WFMHelper(string user, string password, string businessUnitId, TREntities _entitiesModel)
 {
     entitiesModel = _entitiesModel;
     _businessUnitID = businessUnitId;
     try
     {
         wfmServiceApplication = new ServiceApplication(user, password, _businessUnitID);
         SetBusinessUnit(_businessUnitID);
         authenticationResultSuccessful = wfmServiceApplication.AuthenticationSuccessful;
         authenticationResultMessage = @"Authorized: OK;";
     }
     catch (Exception ex)
     {
         authenticationResultSuccessful = false;
         authenticationResultMessage = ex.Message;
     }
 }
 public void Load(ServiceApplication sdkService, ApplicationFunctionDto applicationFunctionDto, DateTime date)
 {
     IList<SiteDto> sites = new List<SiteDto>(sdkService.OrganizationService.GetSites(applicationFunctionDto, date, true));
     foreach (SiteDto siteDto in sites)
     {
         Site site = new Site(siteDto);
         _siteColl.Add(site);
         IList<TeamDto> teams = new List<TeamDto>(sdkService.OrganizationService.GetTeams(siteDto, applicationFunctionDto, date, true));
         foreach (TeamDto teamDto in teams)
         {
             Team team = site.CreateAndAddTeam(teamDto);
             IList<PersonDto> agents = new List<PersonDto>(sdkService.OrganizationService.GetPersonsByTeam(teamDto, applicationFunctionDto, date, true));
             foreach (PersonDto personDto in agents)
             {
                 Agent agent = team.CreateAndAddAgent(personDto);
                 _agentColl.Add(agent);
             }
         }
     }
 }
 public SkillDataLoader(DateTime dateOnly, TimeZoneInfo timeZoneInfo, ServiceApplication service)
 {
     _dateOnly = dateOnly;
     _timeZoneInfo = timeZoneInfo;
     _service = service;
 }