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/ILivechatBusinessHour.ts

41 lines
839 B

import { ILivechatDepartment } from './ILivechatDepartment';
export enum LivechatBusinessHourTypes {
DEFAULT = 'default',
CUSTOM = 'custom',
}
export enum LivechatBusinessHourBehaviors {
SINGLE = 'Single',
MULTIPLE = 'Multiple',
}
interface IBusinessHourTime {
time: string;
utc: { dayOfWeek: string; time: string };
cron: { dayOfWeek: string; time: string };
}
export interface IBusinessHourWorkHour {
day: string;
start: IBusinessHourTime;
finish: IBusinessHourTime;
open: boolean;
}
export interface IBusinessHourTimezone {
name: string;
utc: string;
}
export interface ILivechatBusinessHour {
_id: string;
name: string;
active: boolean;
type: LivechatBusinessHourTypes;
timezone: IBusinessHourTimezone;
ts: Date;
workHours: IBusinessHourWorkHour[];
_updatedAt?: Date;
departments?: ILivechatDepartment[];
}