See DetailedInteractionData - Expands all the GUIDs with their lookups
CREATE VIEW vwdetailedinteractiondata AS (
SELECT di.keyid,
di.conversationid,
di.conversationstartdate,
di.conversationstartdateltc,
di.conversationenddate,
di.conversationenddateltc,
di.conversationminmos,
di.conversationminrfactor,
di.originaldirection,
di.participantid,
di.participantname,
di.purpose,
di.mediatype,
di.externaltag,
di.ani,
di.dnis,
di.sessiondnis,
di.edgeid,
di.gencode,
di.remotedisplayable,
di.segmentstartdate,
di.segmentstartdateltc,
di.segmentenddate,
di.segmentenddateltc,
di.segmenttime,
di.convtosegmentstarttime,
di.convtosegmentendtime,
(di.segmenttime / 86400.00) AS segmenttimeday,
(di.convtosegmentstarttime / 86400.00) AS convtosegmentstarttimeday,
(di.convtosegmentendtime / 86400.00) AS convtosegmentendtimeday,
di.segmenttype,
di.conference,
di.disconnectiontype,
di.wrapupcode,
di.wrapupnote,
wd.name AS wrapupdesc,
di.recordingexists,
di.sessionprovider,
di.flowid,
di.flowname,
di.flowversion,
di.flowtype,
di.exitreason,
di.entryreason,
di.entrytype,
di.transfertype,
di.transfertargetname,
di.queueid,
qd.name AS queuename,
di.userid,
ud.name AS agentname,
ud.managerid,
ud.managername,
di.issuedcallback,
di.nflow,
di.tivr,
(di.tivr / 86400.00) AS tivrday,
di.tflow,
(di.tflow / 86400.00) AS tflowday,
di.tflowdisconnect,
(di.tflowdisconnect / 86400.00) AS tflowdisconnectday,
di.tflowexit,
(di.tflowexit / 86400.00) AS tflowexitday,
di.tflowout,
(di.tflowout / 86400.00) AS tflowoutday,
di.tacd,
(di.tacd / 86400.00) AS tacdday,
di.tacw,
(di.tacw / 86400.00) AS tacwday,
di.talert,
(di.talert / 86400.00) AS talertday,
di.tanswered,
(di.tanswered / 86400.00) AS tansweredday,
di.ttalk,
(di.ttalk / 86400.00) AS ttalkday,
di.ttalkcomplete,
(di.ttalkcomplete / 86400.00) AS ttalkcompleteday,
di.thandle,
(di.thandle / 86400.00) AS thandleday,
di.tcontacting,
(di.tcontacting / 86400.00) AS tcontactingday,
di.tdialing,
(di.tdialing / 86400.00) AS tdialingday,
di.tnotresponding,
(di.tnotresponding / 86400.00) AS tnotrespondingday,
di.tabandon,
(di.tabandon / 86400.00) AS tabandonday,
di.theld,
(di.theld / 86400.00) AS theldday,
di.theldcomplete,
(di.theldcomplete / 86400.00) AS theldcompleteday,
di.tvoicemail,
(di.tvoicemail / 86400.00) AS tvoicemailday,
di.tmonitoring,
(di.tmonitoring / 86400.00) AS tmonitoringday,
di.noffered,
di.nconnected,
di.nconsult,
di.nconsulttransferred,
di.ntransferred,
di.nblindtransferred,
di.nerror,
di.noutbound,
di.nstatetransitionerror,
di.noversla,
di.nbotinteractions,
di.tpark,
di.tparkcomplete,
di.sessiondirection,
di.segdestinationconversationid,
di.updated
FROM (((detailedinteractiondata di
LEFT JOIN vwuserdetail ud ON (((ud.id)::text = (di.userid)::text)))
LEFT JOIN queuedetails qd ON (((qd.id)::text = (di.queueid)::text)))
LEFT JOIN wrapupdetails wd ON (((wd.id)::text = (di.wrapupcode)::text)))
)
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
keyid | varchar(255) | true | Key GUID | |||
conversationid | varchar(50) | true | Conversation GUID | |||
conversationstartdate | timestamp without time zone | true | Conversation Start Date (UTC) | |||
conversationstartdateltc | timestamp without time zone | true | Conversation Start Date (UTC) | |||
conversationenddate | timestamp without time zone | true | Conversation End Date (UTC) | |||
conversationenddateltc | timestamp without time zone | true | Conversation End Date (LTC) | |||
conversationminmos | numeric(20,2) | true | Conversation Min MOS | |||
conversationminrfactor | numeric(20,2) | true | Conversation Min RFactor | |||
originaldirection | varchar(50) | true | Conversation Original Direction | |||
participantid | varchar(50) | true | Conversation Participant GUID | |||
participantname | varchar(255) | true | Conversation Participant Name | |||
purpose | varchar(50) | true | Conversation Segment Purpose | |||
mediatype | varchar(50) | true | Conversation Segment Media Type | |||
externaltag | varchar(50) | true | ||||
ani | varchar(400) | true | Conversation Segment ANI | |||
dnis | varchar(400) | true | Conversation Segment DNIS | |||
sessiondnis | varchar(400) | true | Conversation Segment Session DNIS | |||
edgeid | varchar(50) | true | Conversation Segment Edge GUID | |||
gencode | varchar(20) | true | Conversation Segment (Admin Code - Internal Use Only) | |||
remotedisplayable | varchar(255) | true | Conversation Segment Remote Displayable | |||
segmentstartdate | timestamp without time zone | true | Conversation Segment Start Date (UTC) | |||
segmentstartdateltc | timestamp without time zone | true | Conversation Segment Start Date (LTC) | |||
segmentenddate | timestamp without time zone | true | ||||
segmentenddateltc | timestamp without time zone | true | ||||
segmenttime | numeric(20,2) | true | Conversation Segment Total Time Sec(s) | |||
convtosegmentstarttime | numeric(20,2) | true | Conversation Segment Time From Start of Conversation to Start of Segment | |||
convtosegmentendtime | numeric(20,2) | true | Conversation Segment Time From Start of Conversation to End of Segment | |||
segmenttimeday | numeric | true | ||||
convtosegmentstarttimeday | numeric | true | ||||
convtosegmentendtimeday | numeric | true | ||||
segmenttype | varchar(50) | true | Conversation Segment Type | |||
conference | bit(1) | true | Conversation Segment Conference (True/False) | |||
disconnectiontype | varchar(50) | true | Conversation Segment Disconnection Type | |||
wrapupcode | varchar(255) | true | Conversation Segment Wrapup Code GUID | |||
wrapupnote | text | true | Conversation Segment Wrapup Notes | |||
wrapupdesc | varchar(255) | true | ||||
recordingexists | bit(1) | true | Conversation Segment Recording Exists (True/False) | |||
sessionprovider | varchar(50) | true | Conversation Segment Session Source | |||
flowid | varchar(50) | true | Conversation Segment Flow GUID | |||
flowname | varchar(255) | true | Conversation Segment Flow Name | |||
flowversion | numeric(20,2) | true | Conversation Segment Flow Version | |||
flowtype | varchar(50) | true | Conversation Segment Flow Type | |||
exitreason | varchar(100) | true | Conversation Segment Exit Reason | |||
entryreason | varchar(500) | true | Conversation Segment Entry Reason | |||
entrytype | varchar(50) | true | Conversation Segment Entry Type | |||
transfertype | varchar(50) | true | Conversation Segment Division GUID | |||
transfertargetname | varchar(255) | true | Conversation Segment Transfer Target Name | |||
queueid | varchar(50) | true | Conversation Segment Queue GUID | |||
queuename | varchar(255) | true | ||||
userid | varchar(50) | true | Conversation Segment Queue GUID | |||
agentname | varchar(200) | true | Agent Name | |||
managerid | varchar(50) | true | Manager GUID | |||
managername | varchar(200) | true | Manager Name | |||
issuedcallback | bit(1) | true | Conversation Segment Callback Requested ? | |||
nflow | integer | true | Conversation Count of Flows | |||
tivr | numeric(20,2) | true | Conversation Total IVR Time (Seconds) | |||
tivrday | numeric | true | ||||
tflow | numeric(20,2) | true | Conversation Total Flow Time (Seconds) | |||
tflowday | numeric | true | Conversation Total Flow Time (Seconds) | |||
tflowdisconnect | numeric(20,2) | true | Conversation Total Flow Time before Disconnection | |||
tflowdisconnectday | numeric | true | Conversation Total Flow Time before Disconnection | |||
tflowexit | numeric(20,2) | true | Conversation Total Flow Time before exit | |||
tflowexitday | numeric | true | Conversation Total Flow Time before exit | |||
tflowout | numeric(20,2) | true | Conversation Total Flow Out Time (Seconds) | |||
tflowoutday | numeric | true | Conversation Total Flow Out Time (Day) | |||
tacd | numeric(20,2) | true | Conversation Total Queing Time (Seconds) | |||
tacdday | numeric | true | ||||
tacw | numeric(20,2) | true | Conversation Total ACW Time (Seconds) | |||
tacwday | numeric | true | ||||
talert | numeric(20,2) | true | Conversation Total Agent Alerting Time (Seconds) | |||
talertday | numeric | true | Conversation Total Agent Alerting Time (Day) | |||
tanswered | numeric(20,2) | true | Conversation Total Answer Time (Seconds) | |||
tansweredday | numeric | true | ||||
ttalk | numeric(20,2) | true | Conversation Total Talk Time (Seconds) | |||
ttalkday | numeric | true | ||||
ttalkcomplete | numeric(20,2) | true | Conversation Total Talk Time (Seconds) | |||
ttalkcompleteday | numeric | true | ||||
thandle | numeric(20,2) | true | Conversation Total Handle Time (Seconds) | |||
thandleday | numeric | true | Conversation Total Handle Time (Day) | |||
tcontacting | numeric(20,2) | true | Conversation Total Contacting Time (Seconds) | |||
tcontactingday | numeric | true | ||||
tdialing | numeric(20,2) | true | Conversation Total Dialing Time (Seconds) | |||
tdialingday | numeric | true | Conversation Total Dialing Time (Day) | |||
tnotresponding | numeric(20,2) | true | Conversation Total Not Responding Time (Seconds) | |||
tnotrespondingday | numeric | true | Conversation Total Not Responding Time (Day) | |||
tabandon | numeric(20,2) | true | Conversation Total Abandon Time (Seconds) | |||
tabandonday | numeric | true | Conversation Total Abandon Time (Day) | |||
theld | numeric(20,2) | true | Conversation Total Held Time (Seconds) | |||
theldday | numeric | true | Conversation Total Held Time (Day) | |||
theldcomplete | numeric(20,2) | true | Conversation Total Held Time (Seconds) | |||
theldcompleteday | numeric | true | Conversation Total Held Time (Day) | |||
tvoicemail | numeric(20,2) | true | Conversation Total Voice Mail Time (Seconds) | |||
tvoicemailday | numeric | true | ||||
tmonitoring | numeric(20,2) | true | Conversation Total Monitoring Time (Seconds) | |||
tmonitoringday | numeric | true | Conversation Total Monitoring Time (Day) | |||
noffered | integer | true | Conversation Total Offered Count | |||
nconnected | integer | true | ||||
nconsult | integer | true | Conversation Total Consults Count | |||
nconsulttransferred | integer | true | Conversation Total Consult Transferred Count | |||
ntransferred | integer | true | Conversation Total Transferred Count | |||
nblindtransferred | integer | true | Conversation Total Blind Transferred Count | |||
nerror | integer | true | Conversation Total Error Count | |||
noutbound | integer | true | Conversation Total OutBound Count | |||
nstatetransitionerror | integer | true | Conversation Total Trans Error Count | |||
noversla | integer | true | Conversation Total Count Answered Over SLA Time (Seconds) | |||
nbotinteractions | integer | true | Conversation Total Bot Interaction Count | |||
tpark | numeric(20,2) | true | Conversation Total Parked Time (Seconds) | |||
tparkcomplete | numeric(20,2) | true | Conversation Total Parked Time (Day) | |||
sessiondirection | varchar(50) | true | Conversation Segment Session Direction | |||
segdestinationconversationid | varchar(50) | true | Conversation Segment Destination Conversation GUID | |||
updated | timestamp without time zone | true | Conversation Segment |
Name | Columns | Comment | Type |
---|---|---|---|
public.detailedinteractiondata | 101 | Conversation Detailed Data | BASE TABLE |
public.vwuserdetail | 17 | See UserDetail: User Description in detail | VIEW |
public.queuedetails | 17 | Queue Lookup data | BASE TABLE |
public.wrapupdetails | 3 | Wrap Up Code Details Lookup Up Data | BASE TABLE |