converting channel, applications, domains and configurations into a heirarchy