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/definition/ILivechatTrigger.ts

30 lines
668 B

import { IRocketChatRecord } from './IRocketChatRecord';
export enum ILivechatTriggerType {
TIME_ON_SITE = 'time-on-site',
PAGE_URL = 'page-url',
CHAT_OPENED_BY_VISITOR = 'chat-opened-by-visitor'
}
export interface ILivechatTriggerCondition {
name: ILivechatTriggerType;
value?: string | number;
}
export interface ILivechatTriggerAction {
name: 'send-message';
params?: {
sender: 'queue' | 'custom';
msg: string;
name: string;
};
}
export interface ILivechatTrigger extends IRocketChatRecord {
name: string;
description: string;
enabled: boolean;
runOnce: boolean;
conditions: ILivechatTriggerCondition[];
actions: ILivechatTriggerAction[];
}