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/ee/app/livechat-enterprise/server/hooks/afterOnHoldChatResumed.ts

12 lines
455 B

import { callbacks } from '../../../../../app/callbacks/server';
import { LivechatEnterprise } from '../lib/LivechatEnterprise';
const handleAfterOnHoldChatResumed = async (room: any): Promise<void> => {
if (!room || !room._id || !room.onHold) {
return;
}
LivechatEnterprise.releaseOnHoldChat(room);
};
callbacks.add('livechat:afterOnHoldChatResumed', handleAfterOnHoldChatResumed, callbacks.priority.HIGH, 'livechat-after-on-hold-chat-resumed');