* fix(security): harden auth and credential handling (HH-444) * fix(security): address HH-444 review blockers * fix(security): close remaining HH-444 review blockers --------- Co-authored-by: Rogee <rogee@ipao.vip>
20 lines
927 B
Go
20 lines
927 B
Go
package channel
|
|
|
|
import "github.com/gochat/gochat/internal/model"
|
|
|
|
// ChannelWebWidget represents a web widget channel configuration.
|
|
// Reference: Chatwoot app/models/channel/web_widget.rb
|
|
type ChannelWebWidget struct {
|
|
model.BaseModelWithoutID
|
|
InboxID uint `gorm:"not null;uniqueIndex" json:"inbox_id"`
|
|
WebsiteURL string `gorm:"size:1024;not null" json:"website_url"`
|
|
WelcomeTitle string `gorm:"size:255" json:"welcome_title"`
|
|
WelcomeTagline string `gorm:"size:255" json:"welcome_tagline"`
|
|
WidgetColor string `gorm:"size:20;default:#1f93ff" json:"widget_color"`
|
|
ReplyTime string `gorm:"size:50;default:in_a_few_minutes" json:"reply_time"`
|
|
HmacToken string `gorm:"size:512" json:"-" secure:"hmac_token"`
|
|
PreChatFormEnabled bool `gorm:"default:false" json:"pre_chat_form_enabled"`
|
|
}
|
|
|
|
func (ChannelWebWidget) TableName() string { return "channel_web_widgets" }
|