Esempio n. 1
0
        public Agent(string userName, string password, IUiState uiState)
        {
            UiState  = uiState;
            UserName = userName;
            Password = password;
            var settingObject = System.Configuration.ConfigurationSettings.AppSettings;

            Company           = int.Parse(settingObject["Company"]);
            ShowCallAlert     = settingObject["ShowCallAlert"].Equals("1");
            AgentCurrentState = new AgentInitiate();
            IP = GetLocalIpAddress();
        }
Esempio n. 2
0
 public Agent(string sessionId, IUiState uiState)
 {
     try
     {
         AgentLoginSessionId = sessionId;
         UiState             = uiState;
         AgentCurrentState   = new AgentInitiate();
         InitializeArdsEvent();
         LastActivity = DateTime.Now;
         Profile      = AgentProfile.Instance;
     }
     catch (Exception exception)
     {
         Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger2, "Agent", exception, Logger.LogLevel.Error);
     }
 }
Esempio n. 3
0
 public Agent(UserAuth auth, Dictionary <string, object> sipSetting, string ip, string sessionId, IUiState uiState)
 {
     try
     {
         Auth                = auth;
         SipSetting          = sipSetting;
         IP                  = ip;
         AgentLoginSessionId = sessionId;
         UiState             = uiState;
         AgentCurrentState   = new AgentInitiate();
         ardsHandler         = new ResourceHandler(auth.SecurityToken, auth.TenantID, auth.CompanyID);
         InitializeArdsEvent();
         CallHandler  = new CallHandler(auth.SecurityToken, auth.TenantID, auth.CompanyID);
         LastActivity = DateTime.Now;
     }
     catch (Exception exception)
     {
         Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger2, "Agent", exception, Logger.LogLevel.Error);
     }
 }