Manas,
I think there are quite a few threads in the Forum, on this subject. Here's one we prepared earlier (!);
http://www.sggu.com/smf/index.php/topic,2052.0.html
To answer your questions directly; no, there is no overview Schema for the cfg database within itself. Each Application comes pre-configured to reference individual cfg tables it requires to run and joins them on an ad-hoc basis, so there is (apparently) no need to do this at db level. (Not even TOAD is able to determine the co-relations between the cfg tables (I've tried...))
I think you are just trying to get information out of the Object Table? Perhaps you could use a standard processing approach of accessing the cfg_object Table (using a recognized connection approach (not direct ODBC!)) and extrapolate the Folder items, using the key below;
ObjectType/ObjectTypeID
Agent = 0
Group of Agents = 2
Route Point = 4
Queue/Virtual Queue = 5
Group of Queues/DN Group = 6
For example;
Where you want to identify a series of Agents who belong to a particular Agent Group, use the [color=blue]cfg_agent_group [/color] Table to determine the DBID for your AG, then use the DBID result as a look-up in the [color=blue]cfg_object [/color] Table, then use the DBID results and query the [color=blue]cfg_persons [/color] Table. In that way, you should be able to identify the Agent Group DBID and then extract all of the Agent's who belong to that group and display the details you require (Name, AgentID, etc.)
It's a way of emulating what CME might do, but on a very basic level.
[color=red]***DO NOT ATTEMPT TO UPDATE ANY ITEMS USING THE METHODS DESCRIBED ABOVE - "READ ONLY"!!!***[/color]
- Does this help, at all...?
Tony