import { ChatConfigurator, } from '../../shared/framework';
import { MessageTranslationExtensionDecorator } from './MessageTranslationDecorator';
export class MessageTranslationExtension {
    MessageTranslationConfigurationInterface;
    constructor(MessageTranslationConfigurationConfiguration) {
        if (MessageTranslationConfigurationConfiguration != null) {
            this.MessageTranslationConfigurationInterface =
                MessageTranslationConfigurationConfiguration;
        }
    }
    /**
     * enable
     *  @description enables the Text moderation extension which includes Data profanity and data masking
     */
    enable() {
        ChatConfigurator.enable((dataSource) => {
            return new MessageTranslationExtensionDecorator(dataSource, this.MessageTranslationConfigurationInterface);
        });
    }
}
//# sourceMappingURL=MessageTranslationExtension.js.map