Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b2b31ef3f | |||
| 423383a2f8 | |||
| 00b946fc8d | |||
| 4e5f789671 | |||
| ee521aa378 | |||
| c106209130 | |||
| 4c6eed2e47 | |||
| 0f4223e873 | |||
| faca742f5f | |||
| 3823096f4c | |||
| c9a99faa54 |
@@ -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"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ type BaseCall struct {
|
|||||||
IvrData *int
|
IvrData *int
|
||||||
UtsEntries int
|
UtsEntries int
|
||||||
InterpreterCount int
|
InterpreterCount int
|
||||||
|
Status string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (BaseCall) TableName() string {
|
func (BaseCall) TableName() string {
|
||||||
@@ -61,23 +62,46 @@ func (InterpreterConnection) TableName() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CallStat struct {
|
type CallStat struct {
|
||||||
ClientConversationId string `gorm:"primaryKey;index"`
|
ClientConversationId string `gorm:"primaryKey;index"`
|
||||||
CallType string `gorm:"index"`
|
CallType string `gorm:"index"`
|
||||||
ClientId int `gorm:"index"`
|
ClientId int `gorm:"index"`
|
||||||
CustomerDnis string
|
CustomerDnis string
|
||||||
CustomerAni string
|
CustomerAni string
|
||||||
P1ConnectTime time.Time `gorm:"index"`
|
ConversationStart *time.Time `gorm:"index"`
|
||||||
P1DisconnectTime time.Time `gorm:"index"`
|
ConversationEnd *time.Time `gorm:"index"`
|
||||||
BookingRequestNumber *int `gorm:"index"`
|
SearchStartTime *time.Time
|
||||||
UtsQueue bool
|
P1ConnectTime time.Time `gorm:"index"`
|
||||||
InterpreterCount int
|
P1DisconnectTime time.Time `gorm:"index"`
|
||||||
InterpreterConnected bool
|
BookingRequestNumber *int `gorm:"index"`
|
||||||
ClientDisconnected bool
|
UtsQueue bool
|
||||||
UtsDuration int
|
InterpreterAcceptedCount int
|
||||||
UtsEntries int
|
InterpreterAccepted bool
|
||||||
Status string
|
InterpreterConnectedCount int
|
||||||
|
InterpreterConnected bool
|
||||||
|
ClientDisconnected bool
|
||||||
|
UtsDuration int
|
||||||
|
UtsEntries int
|
||||||
|
Status string
|
||||||
|
SubStatus string
|
||||||
|
FirstLanguageId int
|
||||||
|
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:"index"`
|
||||||
|
Task string
|
||||||
|
Duration int
|
||||||
|
Message string
|
||||||
|
Metadata *string `gorm:"type:json"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (Breakdown) TableName() string {
|
||||||
|
return "gc_call_breakdown"
|
||||||
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ type DBClientProcessed struct {
|
|||||||
// ---
|
// ---
|
||||||
BuggedCall bool
|
BuggedCall bool
|
||||||
Amended bool
|
Amended bool
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||||||
ModifiedAt time.Time
|
ModifiedAt time.Time
|
||||||
CustomData *string `gorm:"type:json"`
|
CustomData *string `gorm:"type:json"`
|
||||||
InternalUse *string `gorm:"type:json"`
|
InternalUse *string `gorm:"type:json"`
|
||||||
@@ -85,7 +85,7 @@ type DBInterpreterProcessed struct {
|
|||||||
// ---
|
// ---
|
||||||
BuggedCall bool
|
BuggedCall bool
|
||||||
Amended bool
|
Amended bool
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
||||||
ModifiedAt time.Time
|
ModifiedAt time.Time
|
||||||
CustomData *string `gorm:"type:json"`
|
CustomData *string `gorm:"type:json"`
|
||||||
InternalUse *string `gorm:"type:json"`
|
InternalUse *string `gorm:"type:json"`
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ func ExtractWithoutAttributes(base models.AnalyticsConversationWithoutAttributes
|
|||||||
var endTime *time.Time
|
var endTime *time.Time
|
||||||
parsedEndTime, err := time.Parse(time.RFC3339, base.ConversationEnd)
|
parsedEndTime, err := time.Parse(time.RFC3339, base.ConversationEnd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
startTime = nil
|
endTime = nil
|
||||||
} else {
|
} else {
|
||||||
startTime = &parsedEndTime
|
endTime = &parsedEndTime
|
||||||
}
|
}
|
||||||
|
|
||||||
divisionIdsBytes, err := json.Marshal(base.DivisionIds)
|
divisionIdsBytes, err := json.Marshal(base.DivisionIds)
|
||||||
|
|||||||
Reference in New Issue
Block a user