Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08f7391490 | ||
|
|
0cee0f6c5c | ||
|
|
128bac375e |
No files matched your search
@@ -144,6 +144,7 @@ type CallStat struct {
|
||||
FirstLanguageId int
|
||||
LastLanguageId int
|
||||
FirstInterpreter string
|
||||
UtsStartTime *time.Time
|
||||
}
|
||||
|
||||
func (CallStat) TableName() string {
|
||||
|
||||
+2
-1
@@ -27,9 +27,10 @@ type AnalyticsConversationWithAttributes struct {
|
||||
OriginatingDirection string `json:"originatingDirection"`
|
||||
Participants []struct {
|
||||
ExternalContactId string `json:"externalContactId"`
|
||||
ParticipantId string `json:"id"`
|
||||
ParticipantId string `json:"participantId"`
|
||||
ParticipantName string `json:"participantName"`
|
||||
Purpose string `json:"purpose"`
|
||||
UserId string `json:"userId"`
|
||||
Sessions []struct {
|
||||
ANI string `json:"ani"`
|
||||
Direction string `json:"direction"`
|
||||
|
||||
+2
-2
@@ -11,7 +11,6 @@ import (
|
||||
func ExtractWithoutAttributes(base models.AnalyticsConversationWithoutAttributes) (models.DBConversation, []models.DBParticipant, []models.DBSession, []models.DBSegment) {
|
||||
|
||||
var startTime *time.Time
|
||||
|
||||
parsedStartTime, err := time.Parse(time.RFC3339, base.ConversationStart)
|
||||
if err != nil {
|
||||
startTime = nil
|
||||
@@ -314,6 +313,7 @@ func ExtractWithAttributes(base models.AnalyticsConversationWithAttributes) (mod
|
||||
Name: &p.ParticipantName,
|
||||
Purpose: &p.Purpose,
|
||||
Attributes: &attributesBytesStr,
|
||||
UserId: &p.UserId,
|
||||
}
|
||||
participants = append(participants, participant)
|
||||
|
||||
@@ -371,7 +371,7 @@ func ExtractWithAttributes(base models.AnalyticsConversationWithAttributes) (mod
|
||||
SegmentEnd: segmentEnd,
|
||||
SegmentStart: segmentStart,
|
||||
SegmentType: seg.SegmentType,
|
||||
SessionId: sess.SessionId,
|
||||
SessionId: session.Id,
|
||||
WrapUpCode: seg.WrapUpCode,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user