getting a workspace tree using angular.treeview