Fixed the ajax to get agents filtered by group. Ticket #1461