RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/livechat/server/api/lib/businessHours.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { ILivechatBusinessHour } from '@rocket.chat/core-typings';

import { businessHourManager } from '../../business-hour';

export async function findLivechatBusinessHour(id?: string, type?: string): Promise<Record<string, ILivechatBusinessHour>> {
    return {
        businessHour: (await businessHourManager.getBusinessHour(id, type)) as ILivechatBusinessHour,
    };
}