-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
WebEx.ts
50 lines (42 loc) · 1.72 KB
/
WebEx.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import {
IConfigurationExtend, IEnvironmentRead, ILogger,
} from '@rocket.chat/apps-engine/definition/accessors';
import { App } from '@rocket.chat/apps-engine/definition/App';
import { IAppInfo } from '@rocket.chat/apps-engine/definition/metadata';
import { SettingType } from '@rocket.chat/apps-engine/definition/settings';
import { WebExCommand } from './commands/WebExCommand';
export class WebEx extends App {
constructor(info: IAppInfo, logger: ILogger) {
super(info, logger);
}
protected async extendConfiguration(configuration: IConfigurationExtend, environmentRead: IEnvironmentRead): Promise<void> {
await configuration.settings.provideSetting({
id: 'webex_name',
type: SettingType.STRING,
packageValue: 'WebEx Meetings',
required: true,
public: false,
i18nLabel: 'Customize_Name',
i18nDescription: 'Customize_Name_Description',
});
await configuration.settings.provideSetting({
id: 'webex_company',
type: SettingType.STRING,
packageValue: '',
required: true,
public: false,
i18nLabel: 'Customize_Company',
i18nDescription: 'Customize_Company_Description',
});
await configuration.settings.provideSetting({
id: 'webex_icon',
type: SettingType.STRING,
packageValue: 'https://apps.rocketbooster.net/images/webex_icon.png',
required: true,
public: false,
i18nLabel: 'Customize_Icon',
i18nDescription: 'Customize_Icon_Description',
});
await configuration.slashCommands.provideSlashCommand(new WebExCommand());
}
}