package ami

// Agents lists agents and their status.
func Agents(client Client, actionID string) ([]Response, error) {
	return requestList(client, "Agents", actionID, "AgentsEntry", "AgentsComplete")
}

// AgentLogoff sets an agent as no longer logged in.
func AgentLogoff(client Client, actionID, agent string, soft bool) (Response, error) {
	return send(client, "AgentLogoff", actionID, map[string]interface{}{
		"Agent": agent,
		"Soft":  soft,
	})
}

package ami

// Agents lists agents and their status.
func Agents(client Client, actionID string) ([]Response, error) {
	return requestList(client, "Agents", actionID, "Agents", "AgentsComplete")
}

// AgentLogoff sets an agent as no longer logged in.
func AgentLogoff(client Client, actionID, agent string, soft bool) (Response, error) {
	return send(client, "AgentLogoff", actionID, map[string]interface{}{
		"Agent": agent,
		"Soft":  soft,
	})
}

Change event type name for Agents
Change event type name for Agents

Signed-off-by: Jefferson Silva <15c75df8c3b4799f2b1f746f01a0718fb2f0c042@assertivasolucoes.com.br>
