chatwoot/app/javascript/dashboard/api/integrations/dyte.js
Pranav Raj S 24cf7af30b
feat: Add video call option with Dyte in the dashboard (#6207)
Co-authored-by: Nithin David Thomas <[email protected]>
Co-authored-by: Sivin Varghese <[email protected]>
2023-01-09 11:49:27 -08:00

24 lines
495 B
JavaScript

/* global axios */
import ApiClient from '../ApiClient';
class DyteAPI extends ApiClient {
constructor() {
super('integrations/dyte', { accountScoped: true });
}
createAMeeting(conversationId) {
return axios.post(`${this.url}/create_a_meeting`, {
conversation_id: conversationId,
});
}
addParticipantToMeeting(messageId) {
return axios.post(`${this.url}/add_participant_to_meeting`, {
message_id: messageId,
});
}
}
export default new DyteAPI();