public void Agent(int index)
        {
            string agent = Part(index++);

            OAIAgentModel model = GetAgent(agent);

            if (null == model)
            {
                model = new OAIAgentModel();
                model.Agent = agent;
            }

            int mask = EntityFieldMask();

            if (OAIQueryListExtended.MASK_ACD_AGENT_DESC ==
                (OAIQueryListExtended.MASK_ACD_AGENT_DESC & mask))
            {
                model.Description = Part(index++);
            }

            OAIAgentsController
                .Relay()
                .Push(agent, model);
        }
        protected void SetAgent(string agent, string device, int available)
        {
            OAIAgentModel model = GetAgent(agent);

            if (null == model)
            {
                model = new OAIAgentModel();
                model.Agent = agent;
            }

            model.Extension = device;
            model.Available = available;

            OAIAgentsController
                .Relay()
                .Push(agent, model);
        }