2020-05-09 16:32:43 +00:00
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
hideInputForBotConversations() {
|
|
|
|
return window.chatwootWebChannel.hideInputForBotConversations;
|
|
|
|
},
|
|
|
|
useInboxAvatarForBot() {
|
|
|
|
return window.chatwootWidgetDefaults.useInboxAvatarForBot;
|
|
|
|
},
|
|
|
|
hasAConnectedAgentBot() {
|
|
|
|
return !!window.chatwootWebChannel.hasAConnectedAgentBot;
|
|
|
|
},
|
|
|
|
inboxAvatarUrl() {
|
|
|
|
return window.chatwootWebChannel.avatarUrl;
|
|
|
|
},
|
|
|
|
channelConfig() {
|
|
|
|
return window.chatwootWebChannel;
|
|
|
|
},
|
2020-08-05 12:16:17 +00:00
|
|
|
hasEmojiPickerEnabled() {
|
|
|
|
return this.channelConfig.enabledFeatures.includes('emoji_picker');
|
|
|
|
},
|
|
|
|
hasAttachmentsEnabled() {
|
|
|
|
return this.channelConfig.enabledFeatures.includes('attachments');
|
|
|
|
},
|
2020-10-18 18:02:22 +00:00
|
|
|
replyTime() {
|
|
|
|
return window.chatwootWebChannel.replyTime;
|
|
|
|
},
|
|
|
|
replyTimeStatus() {
|
|
|
|
switch (this.replyTime) {
|
|
|
|
case 'in_a_few_minutes':
|
|
|
|
return this.$t('REPLY_TIME.IN_A_FEW_MINUTES');
|
|
|
|
case 'in_a_few_hours':
|
|
|
|
return this.$t('REPLY_TIME.IN_A_FEW_HOURS');
|
|
|
|
case 'in_a_day':
|
|
|
|
return this.$t('REPLY_TIME.IN_A_DAY');
|
|
|
|
default:
|
|
|
|
return this.$t('REPLY_TIME.IN_A_FEW_HOURS');
|
|
|
|
}
|
|
|
|
},
|
2020-05-09 16:32:43 +00:00
|
|
|
},
|
|
|
|
};
|