Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e8aeb4d3b7 | |||
| a457849977 | |||
| bd807b3b1d | |||
| 1872e23ec1 |
@@ -9,23 +9,9 @@ type DBAmendment struct {
|
||||
AmendmentValue string
|
||||
Requestor string
|
||||
RequestedAt time.Time
|
||||
Sequence string
|
||||
}
|
||||
|
||||
func (DBAmendment) TableName() string {
|
||||
return "gc_amendments"
|
||||
}
|
||||
|
||||
type DBAmendmentLog struct {
|
||||
Id int `gorm:"primaryKey;autoIncrement"`
|
||||
ConversationId string `gorm:"index"`
|
||||
AmendmentColumn string
|
||||
OldValue string
|
||||
NewValue string
|
||||
Requestor string
|
||||
RequestedAt time.Time
|
||||
AmendedAt time.Time
|
||||
}
|
||||
|
||||
func (DBAmendmentLog) TableName() string {
|
||||
return "gc_amendment_logs"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package models
|
||||
|
||||
/*
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
@@ -26,3 +27,4 @@ type BaseCall struct {
|
||||
func (BaseCall) TableName() string {
|
||||
return "gc_base_calls"
|
||||
}
|
||||
*/
|
||||
|
||||
28
models/booking.go
Normal file
28
models/booking.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Booking struct {
|
||||
BookingReference int `gorm:"primaryKey;index"`
|
||||
BookingTime *time.Time `gorm:"index"`
|
||||
Timezone *string
|
||||
Language *string
|
||||
CustomData *string
|
||||
Method *string `gorm:"index"`
|
||||
Duration *int
|
||||
BookedDuration *int
|
||||
ConversationId *string `gorm:"index"`
|
||||
CancellationTime *time.Time
|
||||
InterpreterId *int `gorm:"index"`
|
||||
ClientId *int `gorm:"index"`
|
||||
AgentName *string
|
||||
AgentEmail *string
|
||||
AgentPhone *string
|
||||
Comments *string
|
||||
BillingCode *string
|
||||
TicketId string
|
||||
}
|
||||
|
||||
func (Booking) TableName() string {
|
||||
return "gc_bookings"
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package models
|
||||
|
||||
/*
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
@@ -25,3 +26,4 @@ type CallStat struct {
|
||||
func (CallStat) TableName() string {
|
||||
return "gc_call_stats"
|
||||
}
|
||||
*/
|
||||
|
||||
83
models/formatter.go
Normal file
83
models/formatter.go
Normal file
@@ -0,0 +1,83 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type BaseCall struct {
|
||||
ClientConversationId string `gorm:"primaryKey;index"`
|
||||
CallType string `gorm:"index"`
|
||||
GenderPreference string
|
||||
ClientId int `gorm:"index"`
|
||||
LanguageId int
|
||||
CustomerDnis string
|
||||
CustomerAni string
|
||||
SearchStartTime *time.Time
|
||||
P1ConnectTime time.Time `gorm:"index"`
|
||||
P1DisconnectTime time.Time `gorm:"index"`
|
||||
P3ConnectTime *time.Time
|
||||
P3DisconnectTime *time.Time
|
||||
BookingRequestNumber *int `gorm:"index"`
|
||||
IvrData *int
|
||||
UtsEntries int
|
||||
InterpreterCount int
|
||||
}
|
||||
|
||||
func (BaseCall) TableName() string {
|
||||
return "gc_base_calls"
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
type InterpreterConnection struct {
|
||||
InterpreterConversationId string `gorm:"primaryKey;index"`
|
||||
InterpreterAccepted bool
|
||||
InterpreterId int `gorm:"index"`
|
||||
CallType string
|
||||
CallConnected string
|
||||
ClientConversationId string `gorm:"index"`
|
||||
LanguageId int
|
||||
InterpreterPhone string
|
||||
ConferenceStart time.Time
|
||||
ConferenceEnd time.Time
|
||||
}
|
||||
|
||||
func (InterpreterConnection) TableName() string {
|
||||
return "gc_interpreter_connections"
|
||||
}
|
||||
|
||||
type CallStat struct {
|
||||
ClientConversationId string `gorm:"primaryKey;index"`
|
||||
CallType string `gorm:"index"`
|
||||
ClientId int `gorm:"index"`
|
||||
CustomerDnis string
|
||||
CustomerAni string
|
||||
P1ConnectTime time.Time `gorm:"index"`
|
||||
P1DisconnectTime time.Time `gorm:"index"`
|
||||
BookingRequestNumber *int `gorm:"index"`
|
||||
UtsQueue bool
|
||||
InterpreterCount int
|
||||
InterpreterConnected bool
|
||||
ClientDisconnected bool
|
||||
UtsDuration int
|
||||
UtsEntries int
|
||||
Status string
|
||||
}
|
||||
|
||||
func (CallStat) TableName() string {
|
||||
return "gc_call_stats"
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package models
|
||||
|
||||
/*
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
@@ -21,3 +22,4 @@ type InterpreterAttempt struct {
|
||||
func (InterpreterAttempt) TableName() string {
|
||||
return "gc_interpreter_attempts"
|
||||
}
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package models
|
||||
|
||||
/*
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
@@ -20,3 +21,4 @@ type InterpreterConnection struct {
|
||||
func (InterpreterConnection) TableName() string {
|
||||
return "gc_interpreter_connections"
|
||||
}
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,7 @@ type DBClientProcessed struct {
|
||||
// PARTNER DETAILS:
|
||||
// ---
|
||||
PartnerBill float64
|
||||
ParnterRate float64
|
||||
PartnerRate float64
|
||||
|
||||
// TIMESTAMP DETAILS:
|
||||
// ---
|
||||
|
||||
@@ -2,6 +2,73 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
type DBTicket struct {
|
||||
AccountId int
|
||||
ApprovalCount int
|
||||
Assignee string `gorm:"type:json"`
|
||||
AssigneeId int
|
||||
AttachmentCount int
|
||||
Category string
|
||||
CF string `gorm:"type:json"`
|
||||
Channel string
|
||||
ChannelCode string
|
||||
ChannelRelatedInfo string
|
||||
Classification string
|
||||
ClosedTime *time.Time
|
||||
CommentCount int
|
||||
Contact string `gorm:"type:json"`
|
||||
ContactId int
|
||||
CreatedBy int
|
||||
CreatedTime time.Time
|
||||
CustomerResponseTime time.Time
|
||||
DepartmentId int
|
||||
DescAttachments string `gorm:"type:json"`
|
||||
Description string
|
||||
DueDate *time.Time
|
||||
Email string
|
||||
EntitySkills string `gorm:"type:json"`
|
||||
FirstThread string `gorm:"type:json"`
|
||||
FollowerCount int
|
||||
Id string `gorm:"primaryKey"`
|
||||
IsArchived bool
|
||||
IsDeleted bool
|
||||
IsEscalated bool
|
||||
IsOverdue bool
|
||||
IsResponseOverdue bool
|
||||
IsSpam bool
|
||||
IsTrashed bool
|
||||
Language string
|
||||
LayoutDetails string `gorm:"type:json"`
|
||||
LayoutId int
|
||||
ModifiedBy int
|
||||
ModifiedTime time.Time
|
||||
OnHoldTime *time.Time
|
||||
Phone string
|
||||
Priority string
|
||||
ProductId string
|
||||
Resolution string
|
||||
ResponseDueDate *time.Time
|
||||
SecondaryContacts string `gorm:"type:json"`
|
||||
Sentiment string
|
||||
SharedDepartments string `gorm:"type:json"`
|
||||
Source string `gorm:"type:json"`
|
||||
Status string
|
||||
StatusType string
|
||||
SubCategory string
|
||||
Subject string
|
||||
TagCount int
|
||||
TaskCount int
|
||||
TeamId int
|
||||
ThreadCount int
|
||||
TicketNumber int
|
||||
TimeEntryCount int
|
||||
WebUrl string
|
||||
}
|
||||
|
||||
func (DBTicket) TableName() string {
|
||||
return "zoho_live_tickets"
|
||||
}
|
||||
|
||||
type Ticket struct {
|
||||
TicketID string `gorm:"primaryKey;column:ticket_id" json:"ticket_id"`
|
||||
TicketReferenceID *string `gorm:"column:ticket_reference_id" json:"ticket_reference_id"`
|
||||
|
||||
Reference in New Issue
Block a user