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/api/lib/integrations.ts

20 lines
642 B

import type { ISetting } from '@rocket.chat/core-typings';
import { Settings } from '@rocket.chat/models';
export async function findIntegrationSettings(): Promise<{ settings: ISetting[] }> {
const settings = await Settings.findByIds([
'Livechat_webhookUrl',
'Livechat_secret_token',
'Livechat_http_timeout',
'Livechat_webhook_on_start',
'Livechat_webhook_on_close',
'Livechat_webhook_on_chat_taken',
'Livechat_webhook_on_chat_queued',
'Livechat_webhook_on_forward',
'Livechat_webhook_on_offline_msg',
'Livechat_webhook_on_visitor_message',
'Livechat_webhook_on_agent_message',
]).toArray();
return { settings };
}