fetch Agent Groups in GAD during transfer

Hi ,

We are customizing the GAD. During transfer, the list of available agent groups

must be displayed on click of customized transfer button.

The Current GAD list all the agents,Route Points & Queues.

Please suggest how to fetch the agent groups.

Thanks in advance