Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Remove deprecated Omnichannel Knowledge Base feature #17387

Merged
merged 3 commits into from
May 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions app/livechat/client/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ TabBar.addGroup('uploaded-files-list', ['live']);
TabBar.addGroup('push-notifications', ['live']);
TabBar.addGroup('video', ['live']);

TabBar.addButton({
groups: ['live'],
id: 'external-search',
i18nTitle: 'Knowledge_Base',
icon: 'book',
template: 'externalSearch',
order: 10,
});

MessageTypes.registerType({
id: 'livechat-close',
system: true,
Expand Down
18 changes: 0 additions & 18 deletions app/livechat/client/views/app/tabbar/externalSearch.html

This file was deleted.

57 changes: 0 additions & 57 deletions app/livechat/client/views/app/tabbar/externalSearch.js

This file was deleted.

1 change: 0 additions & 1 deletion app/livechat/client/views/regular.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import './app/livechatNotSubscribed.html';
import './app/livechatRoomTagSelector';
import './app/tabbar/agentEdit';
import './app/tabbar/agentInfo';
import './app/tabbar/externalSearch';
import './app/tabbar/visitorEdit';
import './app/tabbar/visitorForward';
import './app/tabbar/visitorHistory';
Expand Down
25 changes: 0 additions & 25 deletions app/livechat/server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,31 +250,6 @@ Meteor.startup(function() {
i18nLabel: 'Lead_capture_phone_regex',
});

settings.add('Livechat_Knowledge_Enabled', false, {
type: 'boolean',
group: 'Omnichannel',
section: 'Knowledge_Base',
public: true,
i18nLabel: 'Enabled',
});

settings.add('Livechat_Knowledge_Apiai_Key', '', {
type: 'string',
group: 'Omnichannel',
section: 'Knowledge_Base',
public: true,
i18nLabel: 'Apiai_Key',
secret: true,
});

settings.add('Livechat_Knowledge_Apiai_Language', 'en', {
type: 'string',
group: 'Omnichannel',
section: 'Knowledge_Base',
public: true,
i18nLabel: 'Apiai_Language',
});

settings.add('Livechat_history_monitor_type', 'url', {
type: 'select',
group: 'Omnichannel',
Expand Down
72 changes: 0 additions & 72 deletions app/livechat/server/hooks/externalMessage.js

This file was deleted.

1 change: 0 additions & 1 deletion app/livechat/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import './config';
import './roomType';
import './hooks/beforeCloseRoom';
import './hooks/beforeGetNextAgent';
import './hooks/externalMessage';
import './hooks/leadCapture';
import './hooks/markRoomResponded';
import './hooks/offlineMessage';
Expand Down
1 change: 1 addition & 0 deletions server/startup/migrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,5 @@ import './v185';
import './v186';
import './v187';
import './v188';
import './v189';
import './xrun';
11 changes: 11 additions & 0 deletions server/startup/migrations/v189.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Migrations } from '../../../app/migrations/server';
import { Settings } from '../../../app/models/server';

Migrations.add({
version: 189,
up() {
Settings.remove({ _id: 'Livechat_Knowledge_Enabled' });
Settings.remove({ _id: 'Livechat_Knowledge_Apiai_Key' });
Settings.remove({ _id: 'Livechat_Knowledge_Apiai_Language' });
},
});