Compare commits

..
2 Commits
2 changed files with 4 additions and 3 deletions

No files matched your search

+2 -1
View File
@@ -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
View File
@@ -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,
}