chore: Refactor audio notification helper (#6148)

This commit is contained in:
Pranav Raj S
2022-12-29 20:01:14 -08:00
parent 297e144f33
commit 6ffb7fe34e
10 changed files with 131 additions and 273 deletions

View File

@@ -0,0 +1,5 @@
import { IFrameHelper } from 'widget/helpers/utils';
export const playNewMessageNotificationInWidget = () => {
IFrameHelper.sendMessage({ event: 'playAudio' });
};

View File

@@ -1,5 +1,5 @@
import BaseActionCableConnector from '../../shared/helpers/BaseActionCableConnector';
import { playNewMessageNotificationInWidget } from 'shared/helpers/AudioNotificationHelper';
import { playNewMessageNotificationInWidget } from 'widget/helpers/WidgetAudioNotificationHelper';
import { ON_AGENT_MESSAGE_RECEIVED } from '../constants/widgetBusEvents';
class ActionCableConnector extends BaseActionCableConnector {