Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7bf15cce48 | |||
| 643c5cc695 | |||
| 8b2b31ef3f | |||
| 423383a2f8 |
@@ -23,8 +23,8 @@ type CrmInvoiceConfig struct {
|
|||||||
PartnerAudioBookingBH *string `gorm:"column:partner_audio_booking_bh" json:"partner_audio_booking_bh"`
|
PartnerAudioBookingBH *string `gorm:"column:partner_audio_booking_bh" json:"partner_audio_booking_bh"`
|
||||||
PartnerVideoBookingAH *string `gorm:"column:partner_video_booking_ah" json:"partner_video_booking_ah"`
|
PartnerVideoBookingAH *string `gorm:"column:partner_video_booking_ah" json:"partner_video_booking_ah"`
|
||||||
PartnerVideoBookingBH *string `gorm:"column:partner_video_booking_bh" json:"partner_video_booking_bh"`
|
PartnerVideoBookingBH *string `gorm:"column:partner_video_booking_bh" json:"partner_video_booking_bh"`
|
||||||
|
RoundingFunction *string `gorm:"column:rounding_function" json:"rounding_function"`
|
||||||
RoundBookings *bool `gorm:"column:round_bookings" json:"round_bookings"`
|
RoundBookings *bool `gorm:"column:round_bookings" json:"round_bookings"`
|
||||||
RoundingFunction *bool `gorm:"column:rounding_function" json:"rounding_function"`
|
|
||||||
SplitBookings *bool `gorm:"column:split_bookings" json:"split_bookings"`
|
SplitBookings *bool `gorm:"column:split_bookings" json:"split_bookings"`
|
||||||
SplitOnDemand *bool `gorm:"column:split_on_demand" json:"split_on_demand"`
|
SplitOnDemand *bool `gorm:"column:split_on_demand" json:"split_on_demand"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,18 +78,30 @@ type CallStat struct {
|
|||||||
InterpreterAccepted bool
|
InterpreterAccepted bool
|
||||||
InterpreterConnectedCount int
|
InterpreterConnectedCount int
|
||||||
InterpreterConnected bool
|
InterpreterConnected bool
|
||||||
// InterpreterCount int
|
ClientDisconnected bool
|
||||||
// InterpreterConnected bool
|
UtsDuration int
|
||||||
ClientDisconnected bool
|
UtsEntries int
|
||||||
UtsDuration int
|
Status string
|
||||||
UtsEntries int
|
SubStatus string
|
||||||
Status string
|
FirstLanguageId int
|
||||||
SubStatus string
|
LastLanguageId int
|
||||||
FirstLanguageId int
|
FirstInterpreter string
|
||||||
LastLanguageId int
|
|
||||||
FirstInterpreter string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (CallStat) TableName() string {
|
func (CallStat) TableName() string {
|
||||||
return "gc_call_stats"
|
return "gc_call_stats"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Breakdown struct {
|
||||||
|
ClientConversationId string `gorm:"primaryKey;index"`
|
||||||
|
InterpreterConversationId string `gorm:"index"`
|
||||||
|
Timestamp time.Time `gorm:"primaryKey;index"`
|
||||||
|
Task string `gorm:"primaryKey"`
|
||||||
|
Duration int
|
||||||
|
Message string
|
||||||
|
Metadata *string `gorm:"type:json"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (Breakdown) TableName() string {
|
||||||
|
return "gc_call_breakdown"
|
||||||
|
}
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ type AnalyticsConversationWithoutAttributes struct {
|
|||||||
DivisionIds []string `json:"divisionIds"`
|
DivisionIds []string `json:"divisionIds"`
|
||||||
Participants []struct {
|
Participants []struct {
|
||||||
ParticipantId string `json:"participantId"`
|
ParticipantId string `json:"participantId"`
|
||||||
|
UserId string `json:"userId"`
|
||||||
ParticipantName string `json:"participantName"`
|
ParticipantName string `json:"participantName"`
|
||||||
Purpose string `json:"purpose"`
|
Purpose string `json:"purpose"`
|
||||||
ExternalContactId string `json:"externalContactId"`
|
ExternalContactId string `json:"externalContactId"`
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ type DBParticipant struct {
|
|||||||
Name *string `gorm:"index"`
|
Name *string `gorm:"index"`
|
||||||
Purpose *string `gorm:"index"`
|
Purpose *string `gorm:"index"`
|
||||||
QueueId *string
|
QueueId *string
|
||||||
|
UserId *string
|
||||||
Wrapup *string `gorm:"type:json"`
|
Wrapup *string `gorm:"type:json"`
|
||||||
WrapupExpected *bool
|
WrapupExpected *bool
|
||||||
WrapupRequired *bool
|
WrapupRequired *bool
|
||||||
|
|||||||
@@ -49,13 +49,14 @@ func ExtractWithoutAttributes(base models.AnalyticsConversationWithoutAttributes
|
|||||||
for _, p := range base.Participants {
|
for _, p := range base.Participants {
|
||||||
|
|
||||||
participant := models.DBParticipant{
|
participant := models.DBParticipant{
|
||||||
ConnectedTime: nil,
|
// ConnectedTime: nil,
|
||||||
ConversationId: base.ConversationId,
|
ConversationId: base.ConversationId,
|
||||||
EndTime: nil,
|
// EndTime: nil,
|
||||||
ExternalContactId: &p.ExternalContactId,
|
ExternalContactId: &p.ExternalContactId,
|
||||||
Id: p.ParticipantId,
|
Id: p.ParticipantId,
|
||||||
Name: &p.ParticipantName,
|
Name: &p.ParticipantName,
|
||||||
Purpose: &p.Purpose,
|
Purpose: &p.Purpose,
|
||||||
|
UserId: &p.UserId,
|
||||||
}
|
}
|
||||||
participants = append(participants, participant)
|
participants = append(participants, participant)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user