Motion DB Tables


In this section you can find the list and the structure of the tables you can query to obtain custom reports. 

This page is periodically updated by our team. Please note most of the table fields are self-explanatory, if you need further explanation about specific fields or tables please contact us.

V1 Backward compatibility

The table fields are basically the same between Motion V1 and V2. The new fields are marked with (star) in this document.

Staff

report_agent 

 The table contains the information about the queue calls answered or unanswered by the agents

column_namecolumn_typedescription
accountcodevarchar(255)accountcode
acwtimeint(11)acw time
agentacwtinyint(1)0: no acw | 1: acw
agentcalledAtdatetimewhen agent phone start ringing
agentcompletetinyint(1)0: not answered | 1: answered
agentcompleteAtdatetimewhen agent complete the call
agentconnectAtdatetimewhen agent picks up the call
agentdumptinyint(1)agentdump (Asterisk definition)
agentdumpAtdatetimeagentdumpAt
agentringnoanswertinyint(1)0:default | 1: missing call
agentringnoanswerAtdatetimemissing call date time
answeredelsewheredestinationuniqueidvarchar(255)answeredelsewheredestinationuniqueid
answeredelsewheremembernamevarchar(255)for ringall strategy: who answered the call
calleridnamevarchar(255)caller name
calleridnumvarchar(255)caller number
channelvarchar(255)channel
channelstateint(11)channelstate (Asterisk definition)
channelstatedescvarchar(255)channelstatedesc
connectedlinenamevarchar(255)agent name (available if call is answered)
connectedlinenumvarchar(255)agent number (available if call is answered)
contextvarchar(255)context
createdAtdatetimecreatedAt
destaccountcodevarchar(255)destaccountcode
destcalleridnamevarchar(255)destcalleridname
destcalleridnumvarchar(255)destcalleridnum
destchannelvarchar(255)destchannel
destchannelstateint(11)destchannelstate (Asterisk definition)
destchannelstatedescvarchar(255)destchannelstatedesc
destconnectedlinenamevarchar(255)destconnectedlinename
destconnectedlinenumvarchar(255)destconnectedlinenum
destcontextvarchar(255)destcontext
destextenvarchar(255)destexten
destlanguagevarchar(255)destlanguage
destpriorityvarchar(255)destpriority
destuniqueidvarchar(255)destuniqueid
extenvarchar(255)called DID
holdtimeint(11)queue waiting time (sec)
idint(11)autoincrement id
interfacevarchar(255)agent interface
languagevarchar(255)language
lasteventvarchar(255)last Asterisk event (connect|called|complete|abandon|reject)
membernamevarchar(255)agent username
priorityvarchar(255)priority
queuevarchar(255)queue name
reasonvarchar(255)call completed (agent|caller|transfer)|abandoned|ringnoanswer (timeout|reject|abandoned)
talktimeint(11)talking time (sec)
typevarchar(255)Call Type (inbound, outbound) (star)
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt

report_member

The users activity log

column_namecolumn_typedescription
channelvarchar(255)the Motion channel (voice|chat|email|sms|fax|openchannel)
createdAtdatetimecreatedAt
data1varchar(255)additional information (call type, pause type, etc)
data2varchar(255)additional information (caller id, etc)
data3varchar(255)additional information (called DID, etc)
data4varchar(255)additional information (trunk,etc)
data5varchar(255)additional information (queue name, etc)
durationint(11)duration of the event between enterAt and exitAt
enterAtdatetimewhen the event started
exitAtdatetimewhen the event ended
idint(11)autoincrement id
interfacevarchar(255)user SIP interface
internalint(11)internal SIP account
membernamevarchar(255)agent username
rolevarchar(255)role of the user (admin|user|agent)
typevarchar(255)type of the event (interaction|talking|login|pause)
uniqueidvarchar(255)call or interaction unique id
updatedAtdatetimeupdatedAt

Contact Manager

cm_contacts

The contact information table

column_namecolumn_typedescription
cf_1tinyint(1)custom field example (boolean)
cf_2textcustom field example (text)
cityvarchar(255)city
CompanyIdint(11)CompanyId reference from cm_companies table
countryvarchar(255)country
createdAtdatetimecreatedAt
dateOfBirthvarchar(255)dateOfBirth
deletedAtdatetimedeletedAt (the contact is not deleted but marked with the deleted date) (star)
descriptiontextdescription
emailvarchar(255)email
facebookvarchar(255)facebook account id (star)
faxvarchar(255)fax
firstNamevarchar(255)firstName
idint(11)autoincrement id
lastNamevarchar(255)lastName
linevarchar(255)line account id (star)
ListIdint(11)ListId reference from cm_lists
mobilevarchar(255)mobile
phonevarchar(255)phone
postalCodevarchar(255)postalCode
priorityint(2) unsignedpriority (used by Motion Bull) (star)
scheduledatdatetimescheduledat (used by Motion Bull) (star)
skypevarchar(255)skype account id (star)
streetvarchar(255)street
tagsvarchar(255)tags
teamsvarchar(255)MS teams account id (star)
twittervarchar(255)twitter account id (star)
updatedAtdatetimeupdatedAt
urlvarchar(255)url
UserIdint(11)UserId
vibervarchar(255)viber account id (star)
wechatvarchar(255)WeChat account id (star)

cm_lists

The contacts list definition table

column_namecolumn_typedescription
createdAtdatetimecreatedAt
descriptionvarchar(255)description
dialPrefixvarchar(255)If set, the prefix will be used when the contacts are called using the click2dial function (star)
idint(11)autoincrement id
namevarchar(255)name
updatedAtdatetimeupdatedAt

cm_custom_fields

The custom fields definition table

column_namecolumn_typedescription
aliasvarchar(255)alias
createdAtdatetimecreatedAt
deletedAtdatetimedeletedAt
idint(11)autoincrement id
ListIdint(11)ListId
requiredtinyint(1)0: no 1: yes (mandatory)
typevarchar(255)Text|Select|Number|Switch|DateTime
updatedAtdatetimeupdatedAt
valueslongtextvalues

cm_companies 

The companies list definition table

column_namecolumn_typedescription
cityvarchar(255)city
companyIdvarchar(255)external company reference
countryvarchar(255)country
createdAtdatetimecreatedAt
descriptionvarchar(255)description
emailvarchar(255)email address
emailDomainvarchar(255)company email domain
faxvarchar(255)fax number
namevarchar(255)name
phonevarchar(255)phone number
postalCodevarchar(255)postal code
streetvarchar(255)street
sCityvarchar(255)shipping city
sCountryvarchar(255)shipping country
sPostalCodevarchar(255)shipping postal code
sStreetvarchar(255)shipping street
typevarchar(255)type
updatedAtdatetimeupdatedAt
vatvarchar(255)vat number
websitevarchar(255)company website

Voice

report_queue

The queue calls details

column_namecolumn_typedescription
accountcodevarchar(255)agent internal  extension if available
assignedtinyint(1)1: call assigned to agent | 0: call not assigned
calleridnamevarchar(255)caller name
calleridnumvarchar(255)caller number
channelvarchar(255)SIP channel
connectedlinenamevarchar(255)agent name (where available)
connectedlinenumvarchar(255)agent number (where available)
contextvarchar(255)context
countint(11)count (Asterisk parameter)
createdAtdatetimecreatedAt
dispositionvarchar(255)call disposition (star)
extenvarchar(255)called DID
holdtimeint(11)queue waiting time (sec)
idint(11)autoincrement id
lastAssignedTovarchar(255)agent username
mohtimeint(11)sum of waiting time in queue and waiting time during call (star)
originalpositionint(11)originalposition (Asterisk queue parameter)
positionint(11)queue position 
priorityvarchar(255)priority
queuevarchar(255)queue name
queuecallerabandontinyint(1)0: not abandoned | 1:  abandoned
queuecallerabandonAtdatetimewhen the call is abandoned
queuecallercompletetinyint(1)0: not answered | 1: answered
queuecallercompleteAtdatetimewhen the call is completed
queuecallerenterreasonint(11)0: new call | 1: transferred call | 2: consultant call
queuecallerexittinyint(1)0: call is completed into the queue | 1: call is exited from the queue 
queuecallerexitAtdatetimewhen the call is exited from the queue
queuecallerexitreasonvarchar(255)queue exit reason
queuecallerjoinAtdatetimewhen the call joined to the queue
queuecallerleaveAtdatetimewhen the call left the queue
transfertinyint(1)0: no tranfer | 1: call is transferred
transferextenvarchar(255)transfer destination extension (star) (replace transferextension in V1)
transfertypevarchar(255)type of transfer (blind|attended|warm)
transferuniqueidvarchar(255)transfer destination uniqueid 
typevarchar(255)call type (inbound|outbound) (star)
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt

report_call

Calls information based on the Asterisk cdr data

column_namecolumn_typedescription
accountcodevarchar(255)agent internal  extension if available
amaflagsvarchar(255)no use
answertimedatetimewhen the call is answered by an agent
billablesecondsint(11)billable seconds
calleridvarchar(255)caller id
channelvarchar(255)channel
ContactIdint(11)contact id 
createdAtdatetimecreatedAt
destinationvarchar(255)destination number
destinationchannelvarchar(255)destinationchannel
destinationcontextvarchar(255)destinationcontext
dispositionvarchar(255)Asterisk standard disposition
durationint(11)duration
endtimedatetimewhen the call ended
idint(11)autoincrement id
lastapplicationvarchar(255)last Asterisk application
lastdatatextlast Asterisk app data
mohtimeint(11)sum of waiting time in queue and waiting time during call (star)
notevarchar(255)note (star)
prefixvarchar(255)the outbound prefix used (star)
routeIdint(11)the dialplan route id (star)
sourcevarchar(255)source number
starttimedatetimewhen the call started
tagvarchar(255)tag
typeenum('inbound','internal','outbound','inbound-fax','outbound-fax','dialer')call type
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt
userDispositionvarchar(255)user Disposition (star)
userfieldvarchar(255)userfield
UserIdint(11)UserId (star)

report_dial

The table contains detailed info about the outbound calls

column_namecolumn_typedescription
accountcodevarchar(255)agent internal  extension if available
answertimedatetimeanswertime
billablesecondsint(11)billableseconds (star)
calleridnamevarchar(255)caller name
calleridnumvarchar(255)caller number
channelvarchar(255)channel
channelstateint(11)channelstate
channelstatedescvarchar(255)channelstatedesc
connectedlinenamevarchar(255)agent name (where available)
connectedlinenumvarchar(255)agent number (where available)
contextvarchar(255)context
createdAtdatetimecreatedAt
destaccountcodevarchar(255)destaccountcode
destcalleridnamevarchar(255)destcalleridname
destcalleridnumvarchar(255)destcalleridnum
destchannelvarchar(255)destchannel
destchannelstateint(11)destchannelstate
destchannelstatedescvarchar(255)destchannelstatedesc
destconnectedlinenamevarchar(255)destconnectedlinename
destconnectedlinenumvarchar(255)destconnectedlinenum
destcontextvarchar(255)destcontext
destextenvarchar(255)destexten
destlanguagevarchar(255)destlanguage
destlinkedidvarchar(255)destlinkedid
destpriorityint(11)destpriority
destuniqueidvarchar(255)destuniqueid
dialstatusvarchar(255)dialstatus
dialstringvarchar(255)dialstring
durationint(11)duration (star)
endtimedatetimeendtime
extenvarchar(255)called DID
holdtimeint(11)queue waiting time (sec) (star)
idint(11)autoincrement id
languagevarchar(255)language
lasteventvarchar(255)lastevent
linkedidvarchar(255)linkedid
priorityint(11)priority
privilegevarchar(255)privilege
routeIdint(11)the dialplan route id
starttimedatetimestarttime
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt

report_call_transfer

The table contains detailed info about the blind and the attended transfer.

Please note the following definitions are used into the tables:

transferer = Who transfer the call (first call leg)

transferee = Who is transferred (second call leg)

column_namecolumn_typedescription
contextvarchar(255)call context
createdAtdatetimecreatedAt
extensionvarchar(255)Called DID
idint(11)autoincrement id
isexternalenum('Yes','No')Not Used
resultvarchar(255)Fail|Success|Invalid|Not Permitted
transfereeaccountcodevarchar(255)transfereeaccountcode
transfereecalleridnamevarchar(255)transfereecalleridname
transfereecalleridnumvarchar(255)transfereecalleridnum
transfereechannelvarchar(255)transfereechannel
transfereeconnectedlinenamevarchar(255)transfereeconnectedlinename
transfereeconnectedlinenumvarchar(255)transfereeconnectedlinenum
transfereecontextvarchar(255)transfereecontext
transfereeextenvarchar(255)transfereeexten
transfereelinkedidvarchar(255)transfereelinkedid
transfereraccountcodevarchar(255)transfereraccountcode
transferercalleridnamevarchar(255)transferercalleridname
transferercalleridnumvarchar(255)transferercalleridnum
transfererchannelvarchar(255)transfererchannel
transfererconnectedlinenamevarchar(255)transfererconnectedlinename
transfererconnectedlinenumvarchar(255)transfererconnectedlinenum
transferercontextvarchar(255)transferercontext
transfererextenvarchar(255)transfererexten
transfererlinkedidvarchar(255)transfererlinkedid
typeenum('blind','attended')type
updatedAtdatetimeupdatedAt

voice_recordings

The table contains detailed info about the recorded calls

column_namecolumn_typedescription
accountcodevarchar(255)agent internal  extension if available
calleridnamevarchar(255)caller name
calleridnumvarchar(255)caller number
channelvarchar(255)Asterisk SIP channel
connectedlinenamevarchar(255)agent name (where available)
connectedlinenumvarchar(255)agent number (where available)
contextvarchar(255)context
createdAtdatetimecreatedAt
extenvarchar(255)called DID
idint(11)autoincrement id
membernamevarchar(255)agent username
queuevarchar(255)queue name
ratingint(11)rating
typevarchar(255)call type (internal|inbound|outbound)
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt
userDispositionvarchar(255)user disposition (star)
UserIdint(11)UserId (star)
valuevarchar(255)recording path

Motion Bull Dialer


The Motion Bull dialer has totally replaced the TigerDial module used on the Motion V1 and XCALLY Shuttle.

The new dialer mode is not backward compatible with the old dialer modules.

cm_hopper

The table contains the scheduled contacts the dialer engine has to dial

column_namecolumn_typedescription
activetinyint(1)1: the contact is being processed otherwise is 0
callbacktinyint(1)1: the contact source is the callback IVR block
callbackatdatetimewhen the callback has been required
callbackuniqueidvarchar(255)the source inbound call id 
CampaignIdint(11)CampaignId
ContactIdint(11)ContactId
countbusyretryint(11)number of busy attempts
countcongestionretryint(11)number of congestion attempts
countnoanswerretryint(11)number of no answer attempts
createdAtdatetimecreatedAt
idint(11)autoincrement id
ListIdint(11)ListId
phonevarchar(255)phone
priorityint(2) unsignedpriority
recallmetinyint(1)the contact has been assigned to an agent 1: yes | 0: no
scheduledatdatetimewhen the contact has been scheduled
updatedAtdatetimeupdatedAt
UserIdint(11)the agent id assigned to the contact
VoiceQueueIdint(11)VoiceQueueId

cm_hopper_final

The final status of the contacts managed by the Motion Bull

column_namecolumn_typedescription
agiafteratdatetimeif present, an IVR project has started after the agent hangup
amdtinyint(1)automatic machine detection 0:disabled | 1:enabled
answertimedatetimewhen the call has been answered by the customer
blacklisttinyint(1)blacklisted contact
callbacktinyint(1)1: the contact source is the callback IVR block
callbackatdatetimewhen the callback has been required
callbackuniqueidvarchar(255)the source inbound call id 
calleridnamevarchar(255)contact name
calleridnumvarchar(255)contact number
campaignvarchar(255)outbound campaign
CampaignIdint(11)CampaignId
campaigntypevarchar(255)campaigntype (queue|ivr)
ContactIdint(11)ContactId
countbusyretryint(11)number of busy attempts
countcongestionretryint(11)number of congestion attempts
countglobalint(11)global retries counter
countnoanswerretryint(11)number of no answer attempts
createdAtdatetimecreatedAt
deletedvarchar(255)deleted (1: the contact has been deleted)
deletedatdatetimedeletedat
dispositionvarchar(255)disposition
dispositionatdatetimewhen the agent has set the disposition
dropreasonvarchar(255)the reason the call has been dropped (timeout|callerexit)
droptimedatetimewhen the call has been dropped
endtimedatetimethe end of the call
faxtinyint(1)fax
followuptimeint(11)followuptime
holdtimeint(11)queue waiting time (sec)
idint(11)autoincrement id
ListIdint(11)ListId
membernamevarchar(255)agent username
originatecalleridnamevarchar(255)originatecalleridname
originatecalleridnumvarchar(255)originatecalleridnum
reasonvarchar(255)hangup reason
recallmetinyint(1)the contact has been assigned to an agent 1: yes | 0: no
rescheduledtinyint(1)the contact has been rescheduled (0:no | 1:yes)
rescheduledatdatetimewhen the contact has been rescheduled
responsetimedatetimewhen the customer answered the call
ringtimeint(11)ringing time
scheduledatdatetimescheduledat
starttimedatetimewhen the call started
stateint(2)status of the contact
statedescvarchar(255)status description**
talktimeint(11)talking time
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt
UserIdint(11)UserId
VoiceQueueIdint(11)VoiceQueueId

** Here is the complete status description

cm_hopper_history

The detailed log about every call handled by the Motion Bull

column_namecolumn_typedescription
amdtinyint(1)automatic machine detection 0:disabled | 1:enabled
answertimedatetimewhen the call has been answered by the customer
callbacktinyint(1)1: the contact source is the callback IVR block
callbackatdatetimewhen the callback has been required
callbackuniqueidvarchar(255)the source inbound call id 
calleridnamevarchar(255)contact name
calleridnumvarchar(255)contact number
campaignvarchar(255)outbound campaign
CampaignIdint(11)CampaignId
campaigntypevarchar(255)campaigntype (queue|ivr)
ContactIdint(11)ContactId
countbusyretryint(11)number of busy attempts
countcongestionretryint(11)number of congestion attempts
countglobalint(11)global retries counter
countnoanswerretryint(11)number of no answer attempts
createdAtdatetimecreatedAt
dropreasonvarchar(255)the reason the call has been dropped (timeout|callerexit)
droptimedatetimewhen the call has been dropped
editedtinyint(1)the contact has been manually edited
editedatdatetimewhen the contact has been edited
endtimedatetimethe end of the call
faxtinyint(1)fax
followuptimeint(11)followuptime
holdtimeint(11)queue waiting time (sec)
idint(11)autoincrement id
ListIdint(11)ListId
membernamevarchar(255)agent username
originatecalleridnamevarchar(255)caller id name for the originated call
originatecalleridnumvarchar(255)caller id number for the originated call
reasonvarchar(255)hangup reason
recallmetinyint(1)the contact has been assigned to an agent 1: yes | 0: no
responsetimedatetimewhen the customer answered the call
ringtimeint(11)ringing time
scheduledatdatetimescheduledat
starttimedatetimewhen the call started
stateint(2)status of the contact
statedescvarchar(255)status description**
talktimeint(11)talking time
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt
UserIdint(11)UserId
VoiceQueueIdint(11)VoiceQueueId

**Here is the complete status description

Motion Bull Campaigns and db tables relation

The cm_contacts contains the contacts, as the name says itself, that will be called by the dialer. 

When the campaign is started and the contact list is added, the contacts to be called will be moved to the cm_hopper table, that is the ‘realtime’ table of the dialer. It means that it will show the contacts that are being processed and it will also hold the values for the schedule time in case of a contact reschedule.

Every attempt to call the single contact will be inserted as a single record in the cm_hopper_history with the call result, and when the contact is closed (for any of the calls result), a record will be written in the cm_hopper_final, so the last record for that contact that you will find in the cm_hopper_history will be a lot similar to the record you’ll find in the cm_hopper_final.

There is also the cm_hopper_black table, which will hold the contacts that, before (and instead of) being moved to the cm_hopper table, have been found in a contacts blacklist assigned to the campaign.


Cally Square (IVR)

report_square

CallySquare projects operations


column_namecolumn_typedescription
accountcodevarchar(255)agent internal  extension if available
calleridvarchar(255)caller number
calleridnamevarchar(255)caller name
callingani2varchar(255)system config
callingpresvarchar(255)system config
callingtnsvarchar(255)system config
callingtonvarchar(255)system config
channelvarchar(255)channel
contextvarchar(255)context
createdAtdatetimecreatedAt
dnidvarchar(255)called extension number
enhancedvarchar(255)system config
extensionvarchar(255)called extension number
idint(11)autoincrement id
joinAtdatetimewhen the call has joined the IVR progect
languagevarchar(255)language
leaveAtdatetimewhen the call has left the IVR project
networkvarchar(255)network
network_scriptvarchar(255)network_script
priorityvarchar(255)priority
project_namevarchar(255)the CallySqaure project name
rdnisvarchar(255)system config
requestvarchar(255)request
threadidvarchar(255)threadid
typevarchar(255)type
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt
versionvarchar(255)version

report_square_details

CallySquare blocks data

column_namecolumn_typedescription
applicationvarchar(255)CallySquare application
calleridvarchar(255)caller number
createdAtdatetimewhen the application started
datatextdata
idint(11)autoincrement id
nodevarchar(255)block name
project_namevarchar(255)project name
uniqueidvarchar(255)call unique id
updatedAtdatetimeupdatedAt

Chat

report_chat_queue

Chat queue operation details 

column_namecolumn_typedescription
acceptAtdatetimewhen the agent accepted the chat
ChatInteractionIdint(11)ChatInteractionId
ChatMessageIdint(11)ChatMessageId
ChatQueueIdint(11)ChatQueueId
ChatWebsiteIdint(11)ChatWebsiteId
ContactIdint(11)ContactId
createdAtdatetimecreatedAt
exitAtdatetimeexitAt (in case of timeout)
fromvarchar(255)from
idint(11)autoincrement id
joinAtdatetimejoinAt
leaveAtdatetimeleaveAt
ListIdint(11)ListId
reasonvarchar(255)reason (accepted | timeout)
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt
UserIdint(11)UserId

chat_interactions

Chat interactions details

column_namecolumn_typedescription
browserNamevarchar(255)browserName
browserVersionvarchar(255)browserVersion
ChatWebsiteIdint(11)ChatWebsiteId
closedtinyint(1)Status 0: open | 1: closed
closedAtdatetimeclosedAt
closeReasonvarchar(255)contact|agent|system
ContactIdint(11)ContactId
createdAtdatetimecreatedAt
customerIpvarchar(255)customerIp
deviceModelvarchar(255)deviceModel
deviceTypevarchar(255)deviceType
deviceVendorvarchar(255)deviceVendor
dispositionvarchar(255)disposition
formDatalongtextformData
idint(11)autoincrement id
lastMsgAtdatetimethe last message datetime
lastMsgDirectionenum('in','out')the last message direction
mailTranscriptvarchar(255)the destination email for the trsnscript
notevarchar(255)note
osNamevarchar(255)osName
osVersionvarchar(255)osVersion
pathTranscripttextthe text file of the chat transcript
ratingMessagetextratingMessage
ratingTypeenum('star','thumb')ratingType
ratingValueint(11)ratingValue
read1stAtdatetimethe chat answer time
referervarchar(255)the webpage
updatedAtdatetimeupdatedAt
UserIdint(11)UserId

chat_messages

The chat message content table

column_namecolumn_typedescription
AttachmentIdint(11)AttachmentId
bodymediumtextbody
ChatInteractionIdint(11)ChatInteractionId
ChatWebsiteIdint(11)ChatWebsiteId
ContactIdint(11)ContactId
createdAtdatetimecreatedAt
directionenum('in','out')direction
idint(11)autoincrement id
readtinyint(1)message unread (0) read (1)
readAtdatetimereadAt
secrettinyint(1)1: the message is not visible to the customer
updatedAtdatetimeupdatedAt
UserIdint(11)UserId

chat_offline_messages

The offline message details

column_namecolumn_typedescription
bodymediumtextbody
ChatWebsiteIdint(11)ChatWebsiteId
ContactIdint(11)ContactId
createdAtdatetimecreatedAt
idint(11)autoincrement id
updatedAtdatetimeupdatedAt

chat_websites

Chat website configuration table

column_namecolumn_typedescription
addressvarchar(255)address
agentAliasvarchar(255)agentAlias
agentAvatartextagentAvatar
agentIdentifiervarchar(255)agentIdentifier
agentTransfertinyint(1)agentTransfer
agentTransferTimeoutint(11)agentTransferTimeout
alignmentvarchar(255)alignment
animationtinyint(1)animation
autoclosetinyint(1)autoclose
backgroundColorvarchar(255)backgroundColor
closingMessagevarchar(255)closingMessage
closingMessageButtonvarchar(255)closingMessageButton
closingQuestionvarchar(255)closingQuestion
colorvarchar(255)color
color_buttonvarchar(255)color_button
conditionAgreementtinyint(1)conditionAgreement
createdAtdatetimecreatedAt
customerAliasvarchar(255)customerAlias
customerAvatartextcustomerAvatar
defaultTitlevarchar(255)defaultTitle
defaultWhiteLabeltinyint(1)defaultWhiteLabel
descriptionvarchar(255)description
download_transcripttinyint(1)download_transcript
enableCustomerAttachmenttinyint(1)enableCustomerAttachment
enableCustomerCheckmarkstinyint(1)enableCustomerCheckmarks
enableCustomerWritingtinyint(1)enableCustomerWriting
enableFeedbacktinyint(1)enableFeedback
enableRatingtinyint(1)enableRating
enableUnmanagedNotetinyint(1)enableUnmanagedNote
fontSizeint(11)fontSize
formSubmitFailureMessagevarchar(255)formSubmitFailureMessage
formSubmitSuccessMessagevarchar(255)formSubmitSuccessMessage
forwardOfflinetinyint(1)forwardOffline
forwardOfflineAddressvarchar(255)forwardOfflineAddress
forwardTranscripttinyint(1)forwardTranscript
forwardTranscriptMessagevarchar(255)forwardTranscriptMessage
header_offlinevarchar(255)header_offline
header_onlinevarchar(255)header_online
header_shapeenum('rounded','squared')header_shape
hideWhenOfflinetinyint(1)hideWhenOffline
idint(11)autoincrement id
IntervalIdint(11)IntervalId
keyvarchar(255)key
ListIdint(11)ListId
mapKeyvarchar(255)mapKey
mapKeyOfflinevarchar(255)mapKeyOffline
messageFontSizeint(11)messageFontSize
messagesAlignmentvarchar(255)messagesAlignment
namevarchar(255)name
noteTitlevarchar(255)noteTitle
notificationShaketinyint(1)notificationShake
notificationSoundtinyint(1)notificationSound
notificationTemplatetextnotificationTemplate
offlineFormtextofflineForm
offlineMessageBodyvarchar(255)offlineMessageBody
offlineMessageSubjectvarchar(255)offlineMessageSubject
offline_chat_buttonvarchar(255)offline_chat_button
onlineFormtextonlineForm
placeholderMessagevarchar(255)placeholderMessage
queueTransfertinyint(1)queueTransfer
queueTransferTimeoutint(11)queueTransferTimeout
ratingStarsNumberint(11)ratingStarsNumber
ratingTypeenum('star','thumb')ratingType
remotevarchar(255)remote
sendUnmanagedvarchar(255)sendUnmanaged
showAgentAvatartinyint(1)showAgentAvatar
showCustomerAvatartinyint(1)showCustomerAvatar
sitepictextsitepic
skipMessageButtonvarchar(255)skipMessageButton
skipUnmanagedvarchar(255)skipUnmanaged
start_chat_buttonvarchar(255)start_chat_button
systemAliasvarchar(255)systemAlias
systemAvatartextsystemAvatar
textColorvarchar(255)textColor
timeoutint(11)timeout
timezonevarchar(255)timezone
tokenvarchar(255)token
unmanagedMessagevarchar(255)unmanagedMessage
updatedAtdatetimeupdatedAt
verticalAlignmentint(11)verticalAlignment
waitForTheAssignedAgentint(11)waitForTheAssignedAgent
waitingMessagevarchar(255)waitingMessage
waitingTitlevarchar(255)waitingTitle
whiteLabelvarchar(255)whiteLabel

Email

report_mail_queue

Email queue operation details

column_namecolumn_typedescription
acceptAtdatetimewhen the email has been accepted by the agent
ContactIdint(11)ContactId
createdAtdatetimecreatedAt
exitAtdatetimewhen the email exited from the queue (unmanaged)
fromvarchar(255)from
idint(11)autoincrement id
joinAtdatetimewhen the email has joined the queue
leaveAtdatetimewhen the email has left the queue
ListIdint(11)ListId
MailAccountIdint(11)MailAccountId
MailInteractionIdint(11)MailInteractionId
MailMessageIdint(11)MailMessageId
MailQueueIdint(11)MailQueueId
reasonvarchar(255)accepted | timeout
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt
UserIdint(11)UserId

mail_interactions

Email interaction details

column_namecolumn_typedescription
attachtinyint(1)number of attachments
cclongtextcc
closedtinyint(1)0: open | 1: closed
closedAtdatetimewhen the ineraction has been closed
ContactIdint(11)ContactId
createdAtdatetimecreatedAt
dispositionvarchar(255)disposition
firstMsgDirectionenum('in','out')direction of the first message (in | out)
idint(11)autoincrement id
inReplyTovarchar(190)inReplyTo
lastMsgAtdatetimelast message date time
lastMsgBodylongtextlas message body
lastMsgDirectionenum('in','out')direction of the last message
MailAccountIdint(11)MailAccountId
notevarchar(255)note
read1stAtdatetimewhen the first message has been read
subjecttextsubject
substatusvarchar(60)substatus
substatusAtdatetimewhen the substatus has been applied
tovarchar(255)to
updatedAtdatetimeupdatedAt
UserIdint(11)UserId

mail_messages

Email messages details

column_namecolumn_typedescription
attachint(11)number of attachments
bcclongtextbcc
bodylongtextbody
cclongtextcc
ContactIdint(11)ContactId
createdAtdatetimecreatedAt
directionenum('in','out')direction
fromvarchar(255)from
idint(11)autoincrement id
MailAccountIdint(11)MailAccountId
MailInteractionIdint(11)MailInteractionId
messageIdvarchar(190)messageId
originCclongtextoriginCc
originTolongtextoriginTo
readtinyint(1)0: message unread | 1: message read
readAtdatetimewhen the message has been read
secrettinyint(1)0: public message | 1: message visible only by agent (note)
sentAtdatetimewhen the email has been sent
subjecttextsubject
tolongtextto
updatedAtdatetimeupdatedAt
UserIdint(11)UserId

mail_accounts

Email accounts configuration table

column_namecolumn_typedescription
activetinyint(1)active
agentTransfertinyint(1)agentTransfer
agentTransferTimeoutint(11)agentTransferTimeout
createdAtdatetimecreatedAt
descriptionvarchar(255)description
emailvarchar(255)email
fontFamilyvarchar(255)fontFamily
fontSizeint(2) unsignedfontSize
idint(11)autoincrement id
keyvarchar(255)key
ListIdint(11)ListId
markAsUnreadtinyint(1)markAsUnread
namevarchar(255)name
notificationShaketinyint(1)notificationShake
notificationSoundtinyint(1)notificationSound
notificationTemplatetextnotificationTemplate
queueTransfertinyint(1)queueTransfer
queueTransferTimeoutint(11)queueTransferTimeout
servicetinyint(1)service
templatetexttemplate
TemplateIdint(11)TemplateId
updatedAtdatetimeupdatedAt
waitForTheAssignedAgentint(11)waitForTheAssignedAgent

SMS

report_SMS_queue

SMS queue operations details


column_namecolumn_typedescription
acceptAtdatetimewhen the SMS has been accepted by the agent
ContactIdint(11)ContactId
createdAtdatetimecreatedAt
exitAtdatetimewhen the interaction exited the queue
fromvarchar(255)sender
idint(11)autoincrement id
joinAtdatetimewhen the interaction has joined the queue
leaveAtdatetimewhen the interaction has left the queue
ListIdint(11)ListId
reasonvarchar(255)queue exit reason (accepted|timeout)
SmsAccountIdint(11)SmsAccountId
SmsInteractionIdint(11)SmsInteractionId
SmsMessageIdint(11)SmsMessageId
SmsQueueIdint(11)SmsQueueId
uniqueidvarchar(255)unique id
updatedAtdatetimeupdatedAt
UserIdint(11)UserId


sms_interactions


Table name: sms_interactions
id
closedIndicates if the interaction is closed
closedAt

Timestamp when the interaction is closed

dispositionThe closing disposition specified by the agent (if any)
noteNote written by the agent when disposing
phoneCustomer mobile phone number
UserIdAgent owner id
SmsAccountIdSms Account Id
ContactIdContact Id
createdAtTimestamp when the interaction is created
read1stAtThe date the interaction has been accepted

sms_messages


Table name: sms_messages
id
bodyText of the message
readTrue if the message is read by the customer, false otherwise
directionMessage direction (in, out)
messageIdMessage Id generated by the Sms provider
phoneCustomer mobile phone number
SmsAccountIdSms Account Id
SmsInteractionIdSms Interaction Id
UserIdAgent Id
ContactIdContact Id
createdAtTimestamp when the message is created
readAtThe date the interaction has been read



SMS_Accounts 

SMS account configuration table


column_namecolumn_typedescription
accountSidvarchar(255)accountSid
agentTransfertinyint(1)agentTransfer
agentTransferTimeoutint(11)agentTransferTimeout
apiKeyvarchar(255)apiKey
authIdvarchar(255)authId
authTokenvarchar(255)authToken
baseUrlvarchar(255)baseUrl
createdAtdatetimecreatedAt
deliveryReporttinyint(1)deliveryReport
descriptionvarchar(255)description
idint(11)autoincrement id
keyvarchar(255)key
ListIdint(11)ListId
namevarchar(255)name
notificationShaketinyint(1)notificationShake
notificationSoundtinyint(1)notificationSound
notificationTemplatetextnotificationTemplate
passwordvarchar(255)password
phonevarchar(255)phone
queueTransfertinyint(1)queueTransfer
queueTransferTimeoutint(11)queueTransferTimeout
remotevarchar(255)remote
senderStringvarchar(255)senderString
smsMethodenum('basic','classic','classic+')smsMethod
tokenvarchar(255)token
typeenum('twilio','skebby','connectel','clicksend','plivo')type
updatedAtdatetimeupdatedAt
usernamevarchar(255)username
waitForTheAssignedAgentint(11)waitForTheAssignedAgent


Open Channel

report_openchannel_queue



Table name: report_openchannel_queue

id
uniqueidUnique ID
fromThe value mapped within the API request
joinAtTime the customer joined the queue
leaveAtTime the customer left the queue
acceptAtTime the agent accepted the chat
exitAtTime the customer left the queue (it is set if the reason is timeout)
reason
Reason the customer left the queue (accepted, timeout)
OpenchannelAccountIdOpenchannel Account Id
ListId
ContactId
OpenchannelInteractionId
OpenchannelMessageId
UserId
OpenchannelQueueId

openchannel_interactions


Table name: openchannel_interactions
id
closedIndicates if the interaction is closed
closedAt

time the interaction is closed

dispositionThe closing disposition specified by the agent (if any) or the routing algorithm (abandoned, unmanaged)
noteNote written by the agent when disposing
UserIdAgent owner id
OpenchannelAccountIdOpenchannel account Id
ContactIdContact Id
createdAtCreation Date
read1stAtThe date the interaction has been accepted

openchannel_messages


Table name: openchannel_messages
id
bodyText of the message
readTrue if the message is read by the customer, false otherwise
directionMessage direction (in, out)
OpenchannelAccountIdOpenchannel Account Id
OpenchannelInteractionIdOpenchannel Interaction Id
UserIdAgent Id
ContactIdContact Id
createdAtCreation Date
read1stAtThe date the interaction has been accepted
readAtThe date the interaction has been read



Openchannel_Accounts 

Openchannel account configuration table


column_namecolumn_typedescription
agentTransfertinyint(1)agentTransfer
agentTransferTimeoutint(11)agentTransferTimeout
createdAtdatetimecreatedAt
descriptionvarchar(255)description
idint(11)autoincrement id
keyvarchar(255)key
ListIdint(11)ListId
mapKeyvarchar(255)mapKey
namevarchar(255)name
notificationShaketinyint(1)notificationShake
notificationSoundtinyint(1)notificationSound
notificationTemplatetextnotificationTemplate
queueTransfertinyint(1)queueTransfer
queueTransferTimeoutint(11)queueTransferTimeout
replyUrivarchar(255)replyUri
tokenvarchar(255)token
updatedAtdatetimeupdatedAt
waitForTheAssignedAgentint(11)waitForTheAssignedAgent


Fax

report_fax_queue



Table name: report_fax_queue

id
uniqueidUnique ID
fromCustomer fax phone number
joinAtTimestamp when the customer joined the queue
leaveAtTimestamp when the customer left the queue
acceptAtTimestamp when the agent accepted the chat
exitAtTimestamp when the customer left the queue (it is set if the reason is timeout)
reason
Reason why the customer left the queue (accepted, timeout)
FaxAccountIdFax Account Id associated to the interaction
ListIdCM List Id within the customer profile
ContactIdCM Contact Id associated to the interaction (customer profile)
FaxInteractionIdFax Interaction Id
FaxMessageIdFax Message Id
UserIdUser who accepted the message
FaxQueueIdFax Queue Id
createdAtCreation date

fax_interactions


Table name: fax_interactions
id
closedIndicates if the interaction is closed
closedAt

Timestamp when the interaction is closed

dispositionThe closing disposition specified by the agent (if any)
noteNote written by the agent when disposing
UserIdAgent owner id
FaxAccountIdFax Account Id
ContactIdContact Id
createdAtTimestamp when the interaction is created

fax_messages


Table name: fax_messages
id
bodyAttachment file name
readTrue if the message is read by the customer, false otherwise
directionMessage direction (in, out)
FaxAccountIdFax Account Id
FaxInteractionIdFax Interaction Id
UserIdAgent Id
ContactIdContact Id
AttachmentIdAttachment Id
createdAtTimestamp when the message is created
readAtThe date the interaction has been read



Fax_Accounts 

Fax account configuration table


column_namecolumn_typedescription
agentTransfertinyint(1)agentTransfer
agentTransferTimeoutint(11)agentTransferTimeout
createdAtdatetimecreatedAt
descriptionvarchar(255)description
ecmenum('yes','no')ecm
faxdetectvarchar(255)faxdetect
gatewayvarchar(255)gateway
headerinfovarchar(255)headerinfo
idint(11)autoincrement id
keyvarchar(255)key
ListIdint(11)ListId
localstationidvarchar(255)localstationid
maxrateenum('2400','4800','7200','9600','12000','14400')maxrate
minrateenum('2400','4800','7200','9600','12000','14400')minrate
modemvarchar(255)modem
namevarchar(255)name
notificationShaketinyint(1)notificationShake
notificationSoundtinyint(1)notificationSound
notificationTemplatetextnotificationTemplate
queueTransfertinyint(1)queueTransfer
queueTransferTimeoutint(11)queueTransferTimeout
t38timeoutint(11)t38timeout
techenum('SIP','IAX','DADHI','KHOMP')tech
TrunkIdint(11)TrunkId
updatedAtdatetimeupdatedAt
waitForTheAssignedAgentint(11)waitForTheAssignedAgent


Jscripty

report_jscripty_answers



Table name: report_jscripty_answers

id
questionThe questions of the survey. There will be as many rows per question as how many answers have been chosen for that question.
answerThe answer relative to the question. In case of multiple answers for the same question, there will be as many rows as the number of the chosen answers.
membernameThe name of the agent that started the session.
projectnameThe name of the Jscripty Project.
queueThe name of the Queue in case the caller is coming from a Queue.
uniqueidThe unique ID of the call.
calleridnameThe caller name, if present.
calleridnumThe caller number.
createdAtThe date of creation of the row, that correspond to the date of the survey completion.
updatedAt
SessionIdThe ID of the interaction.
ProjectIdThe Jscripty Project ID.


report_jscripty_questions


Table name: report_jscripty_questions

id
questionThe questions of the survey, one row for every question.
answerThe answers of the survey. In case of multiple answers on the same question, the values will be separated by a column symbol.
membernameThe name of the agent that started the session.
projectnameThe name of the Jscripty Project.
queueThe name of the Queue in case the caller is coming from a Queue.
uniqueidThe unique ID of the call.
calleridnameThe caller name, if present.
calleridnumThe caller number.
createdAtThe date of creation of the row, that corresponds to the date of the survey completion.
updatedAt
SessionIdThe ID of the interaction.
ProjectIdThe Jscripty Project ID.

report_jscripty_sessions


Table name: report_jscripty_sessions

id
starttimeThe start date of the session.
endtimeThe end date of the session.
membernameThe name of the agent that started the session.
projectnameThe name of the Jscripty Project.
queueThe name of the Queue in case the caller is coming from a Queue.
uniqueidThe unique ID of the call.
calleridnameThe caller name, if present.
calleridnumThe caller number.
createdAtThe date of creation of the row, that corresponds to the date of the survey completion.
updatedAt
VoiceQueueIdThe Queue ID, if the caller is coming from a Queue.
ContactIdThe Contact ID, if the session is associated to a Contact.
ProjectIdThe Jscripty Project ID.



Related pages