getResourceDepartments()

The ZohoSalesIQ.KnowledgeBase.getResourceDepartments API allows fetching the list of resource departments associated with the brand. Upon execution, the array of `ResourceDepartment` objects will include the resource departments under the brand settings (Settings > Brand > Select your brand > Flow Controls > Department responsible for chats/Use the resource of associated department). 

Parameters

  • resourceDepartments : A closure that receives an array of `ResourceDepartment` as its parameter, when the operation is completed.  
  • error - The callback function to get the error.

Example

CopiedZohoSalesIQ.KnowledgeBase.getResourceDepartments(function(resourceDepartments) {
            
}, function(error) {
            
});