Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ed3f089736 | |||
| d862a79c0f | |||
| d5ba285a0c | |||
| d8e83b8e75 | |||
| 4b75eccdcd |
@@ -11,6 +11,7 @@ type BaseCall struct {
|
|||||||
ClientId int `gorm:"index"`
|
ClientId int `gorm:"index"`
|
||||||
CustomerDnis string
|
CustomerDnis string
|
||||||
CustomerAni string
|
CustomerAni string
|
||||||
|
SearchStartTime *time.Time
|
||||||
P1ConnectTime time.Time `gorm:"index"`
|
P1ConnectTime time.Time `gorm:"index"`
|
||||||
P1DisconnectTime time.Time `gorm:"index"`
|
P1DisconnectTime time.Time `gorm:"index"`
|
||||||
P3ConnectTime *time.Time
|
P3ConnectTime *time.Time
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ type AnalyticsConversationWithAttributes struct {
|
|||||||
OriginatingDirection string `json:"originatingDirection"`
|
OriginatingDirection string `json:"originatingDirection"`
|
||||||
Participants []struct {
|
Participants []struct {
|
||||||
ExternalContactId string `json:"externalContactId"`
|
ExternalContactId string `json:"externalContactId"`
|
||||||
ParticipantId string `json:"participantId"`
|
ParticipantId string `json:"id"`
|
||||||
ParticipantName string `json:"participantName"`
|
ParticipantName string `json:"participantName"`
|
||||||
Purpose string `json:"purpose"`
|
Purpose string `json:"purpose"`
|
||||||
Sessions []struct {
|
Sessions []struct {
|
||||||
|
|||||||
23
models/interpreter_attempt.go
Normal file
23
models/interpreter_attempt.go
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
package models
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
type InterpreterAttempt struct {
|
||||||
|
InterpreterConversationId string `gorm:"primaryKey;index"`
|
||||||
|
InterpreterResponseTime time.Time
|
||||||
|
InterpreterAccepted bool
|
||||||
|
InterpreterId int `gorm:"index"`
|
||||||
|
CallType string
|
||||||
|
CallConnected string
|
||||||
|
ClientConversationId string `gorm:"index"`
|
||||||
|
LanguageId int
|
||||||
|
InterpreterPhone string
|
||||||
|
ConversationStart time.Time
|
||||||
|
ConversationEnd time.Time
|
||||||
|
}
|
||||||
|
|
||||||
|
func (InterpreterAttempt) TableName() string {
|
||||||
|
return "gc_interpreter_attempts"
|
||||||
|
}
|
||||||
@@ -8,6 +8,7 @@ type DBQueueLog struct {
|
|||||||
Start time.Time `gorm:"index"`
|
Start time.Time `gorm:"index"`
|
||||||
End time.Time `gorm:"index"`
|
End time.Time `gorm:"index"`
|
||||||
Duration float64
|
Duration float64
|
||||||
|
NextQueue string
|
||||||
Result string `gorm:"type:json"`
|
Result string `gorm:"type:json"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ type DBSegment struct {
|
|||||||
SegmentEnd time.Time `gorm:"index"`
|
SegmentEnd time.Time `gorm:"index"`
|
||||||
SegmentStart time.Time `gorm:"index"`
|
SegmentStart time.Time `gorm:"index"`
|
||||||
SegmentType string `gorm:"index"`
|
SegmentType string `gorm:"index"`
|
||||||
SessionId string `gorm:"foreignKey"`
|
SessionId string `gorm:"index;foreignKey"`
|
||||||
WrapUpCode string
|
WrapUpCode string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user