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/client/ui.js

28 lines
667 B

import { settings } from '../../settings/client';
import { hasAllPermission } from '../../authorization/client';
import { AccountBox, MessageTypes } from '../../ui-utils/client';
AccountBox.addItem({
name: 'Omnichannel',
icon: 'headset',
href: '/omnichannel/current',
sideNav: 'omnichannelFlex',
condition: () => settings.get('Livechat_enabled') && hasAllPermission('view-livechat-manager'),
});
MessageTypes.registerType({
id: 'livechat-close',
system: true,
message: 'Conversation_closed',
data(message) {
return {
comment: message.msg,
};
},
});
MessageTypes.registerType({
id: 'livechat-started',
system: true,
message: 'Chat_started',
});