The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/app/livechat/server/lib/routing/ManualSelection.ts

34 lines
960 B

import type { IRoutingMethod, RoutingMethodConfig, SelectedAgent } from '@rocket.chat/core-typings';
import { RoutingManager } from '../RoutingManager';
/* Manual Selection Queuing Method:
*
* An incoming livechat is created as an Inquiry
* which is picked up from an agent.
* An Inquiry is visible to all agents
*
* A room is still created with the initial message, but it is occupied by
* only the client until paired with an agent
*/
class ManualSelection implements IRoutingMethod {
config: RoutingMethodConfig;
constructor() {
this.config = {
previewRoom: true,
showConnecting: true,
showQueue: true,
showQueueLink: false,
returnQueue: true,
enableTriggerAction: false,
autoAssignAgent: false,
};
}
getNextAgent(_department?: string, _excludeAgent?: string): Promise<SelectedAgent | null | undefined> {
return Promise.resolve(undefined);
}
}
RoutingManager.registerMethod('Manual_Selection', ManualSelection);