OpenACD/OpenACD — pull request #61 by jvliwanag (2012-02-14 08:55:09+00:00)
Title: Add get agents by profile id

I'm planning to store the tuple {id, IdOfProfile} in the profile field of the agent to take advantage of this.

Hm, not exactly complete however. agent_auth:get_profile has ties to destroy_profile which uses get_agents(Profile).

I realized though, things might get messy if we can support both the id and the names of the profiles. I was wondering if we could solely use the 'id' as the key for the mnesia table, and refer to the profiles from the agent_auth records as such.