apps/meteor/ee/server/models/raw/Users.ts
Function getUnavailableAgents
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getUnavailableAgents(departmentId: string, customFilter: { [k: string]: any }[]): Promise<AgentMetadata[]> {
// if department is provided, remove the agents that are not from the selected department
const departmentFilter = departmentId
? [
{