# UJET (v1)

Information note **UJET is supported by the Singer community**   
This integration is powered by [Singer's](https://www.singer.io/) UJET tap. For support, [visit the GitHub repo](https://github.com/singer-io/tap-ujet) or [join the Singer Slack](https://singer-slackin.herokuapp.com/).

## UJET integration summary

Stitch’s UJET integration replicates data using the [UJET API](https://support.ujet.co/hc/en-us/articles/115006908127-UJET-Data-API#h_7d95eafc-6c02-446b-bcc6-b733f4e1143e). Refer to the [Schema](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#schema) section for a list of objects available for replication.

## UJET feature snapshot

A high-level look at Stitch's UJET (v1) integration, including release status, useful links, and the features supported in Stitch.

| **STITCH** |  |  |  |
| --- | --- | --- | --- |
| **[Release status](https://help.qlik.com/en-US/stitch/integrations/identify-an-integration-version)** | Released on March 4, 2020 | **Supported by**<br><br>the Info icon<br><br>Indicates if the integration is supported by Stitch or the Singer community. | [Singer Community](https://www.singer.io/) |
| **Stitch plan**<br><br>the Info icon<br><br>The type of Stitch plan required to use the integration. | Standard | **[API availability](https://help.qlik.com/en-US/stitch/developers/stitch-connect/guides/source-destination-reference)**<br><br>the Info icon<br><br>Indicates if the integration is available as a source in Stitch Connect. | the Success icon<br><br>This version of the integration is available via the API.<br><br><br>Available |
| **Singer GitHub repository** | [singer-io/tap-ujet](https://github.com/singer-io/tap-ujet) |  |  |
| **REPLICATION SETTINGS** |  |  |  |
| **[Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling where an integration's Replication Frequency is anchored to a time you select. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Advanced Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling)**<br><br>the Info icon<br><br>A type of replication scheduling that allows you to specify granular start times for data extraction using cron expressions. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Table-level reset**<br><br>the Info icon<br><br>Indicates if data can be reset at the table level. If unsupported, data can only be reset at the integration level. | the Remove icon<br><br>Table-level resets are not supported for this integration. Resets are only supported at the integration level.<br><br><br>Unsupported | **[Configurable Replication Methods](https://help.qlik.com/en-US/stitch/replication/replication-methods)**<br><br>the Info icon<br><br>Indicates if Replication Methods can be defined by you for tables in the integration. | the Remove icon<br><br>Configurable Replication Methods are not supported for this integration. Stitch will use pre-defined replication methods for tables you set to replicate.<br><br><br>Unsupported |
| **DATA SELECTION** |  |  |  |
| **Table selection**<br><br>the Info icon<br><br>The ability to select individual tables for replication in the Stitch interface. If table selection is unavailable, all tables and all the columns they contain will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **Column selection**<br><br>the Info icon<br><br>The ability to select individual columns for replication in the Stitch interface. If column selection is unavailable, all columns will be set to replicate by default. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |
| **Select all**<br><br>the Info icon<br><br>Indicates if the integration supports selecting all available tables and columns. | the Success icon<br><br>Supported<br><br><br>Supported |  |  |
| **TRANSPARENCY** |  |  |  |
| **[Extraction Logs](https://help.qlik.com/en-US/stitch/replication/extractions/integration-extraction-logs)**<br><br>the Info icon<br><br>Logs detailing the Extraction phase of the replication process for a given integration. Includes error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported | **[Loading Reports](https://help.qlik.com/en-US/stitch/replication/integration-loading-reports)**<br><br>the Info icon<br><br>Reports detailing the Loading phase of the replication process for a given integration. Includes the number of rows loaded for each table and error info, should an error occur. | the Success icon<br><br>This feature is supported for this version of the integration.<br><br><br>Supported |

## Connecting UJET

### UJET setup requirements

To set up UJET in Stitch, you need:

* A UJET account with **admin privileges**. You need this privilege to retrieve the information required for the Stitch integration.

### Step 1: Retrieve your UJET company credentials

1. Login to your UJET Console.
2. Click on **Settings &gt; Developer Settings**.
3. In the **Agent Platform** section, click on the UJET bubble.
4. Click **Save Changes**.
5. Your **Company Key** and **Company Secret Code** will display. Keep these available to complete your setup in Stitch. ![Your UJET Company and Company Secret Key.](https://help.qlik.com/en-US/stitch/images/integrations/ujet-company-keys.png)Your UJET Company and Company Secret Key.Your UJET Company and Company Secret Key.

### Step 2: Add UJET as a Stitch data source

1. [Sign into your Stitch account](https://app.stitchdata.com/).

2. On the Stitch Dashboard page, click the **Add Integration** button.

3. Click the **UJET** icon.

4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

   For example, the name “Stitch UJET” would create a schema called `stitch_ujet` in the destination. **Note**: Schema names cannot be changed after you save the integration.

5. In the **Company Key** field, enter the Company Key that you retrieved in [Step 1](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#retrieve-keys).

6. In the **Company Secret** field, enter the Company Secret Code that you retrieved in [Step 1](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#retrieve-keys).

7. In the **Domain Field** field, your UJET domain. This will usually be `ujet`, but if you are unsure, check your welcome email from UJET.

8. In the **Subdomain** field, enter the subdomain of your UJET account’s URL. For example: The subdomain for `stitch.ujet.com` would be `stitch`.

### Step 3: Define the historical replication start date

The Sync Historical Data setting defines the starting date for your UJET integration. This means that data **equal to or newer than this date** will be replicated to your data warehouse.

Change this setting if you want to replicate data beyond UJET’s default setting of **1 year**. For a detailed look at historical replication jobs, check out the [Syncing Historical SaaS Data](https://help.qlik.com/en-US/stitch/replication/syncing-historical-saas-data-resetting-replication-keys) guide.

### Step 4: Create a replication schedule

Information note Replication schedules affect the time Extraction begins, not the time to data loaded. Refer to the [Replication Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling) documentation for more information.

In the **Replication Frequency** section, you’ll create the integration’s [replication schedule](https://help.qlik.com/en-US/stitch/replication/replication-scheduling). An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

UJET integrations support the following replication scheduling methods:

* [Replication Frequency](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/replication-frequency)

* [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/anchor-scheduling)

* [Advanced Scheduling using Cron](https://help.qlik.com/en-US/stitch/replication/replication-scheduling/advanced-scheduling) (Advanced or Premium plans only)

To keep your row usage low, consider setting the integration to replicate less frequently. See the [Understanding and Reducing Your Row Usage guide](https://help.qlik.com/en-US/stitch/getting-started/understanding-stitch-usage) for tips on reducing your usage.

### Step 5: Set objects to replicate

Information note **Is an object missing or not replicating?** Verify that the object meets the requirements for [selection](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#selection-requirements) and [replication](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#replication-requirements).

The last step is to select the tables and columns you want to replicate. [Learn about the available tables for this integration.](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#schema)

**Note**: If a replication job is currently in progress, new selections won’t be used until the next job starts.

* Selection options
* Individual tables and columns
* All tables and columns

For UJET integrations, you can select:

1. **Individual tables and columns**

2. **All tables and columns**

Click the tabs to view instructions for each selection method.

1. In the integration’s **Tables to Replicate tab**, locate a table you want to replicate.

2. To track a table, click the **checkbox** next to the table’s name. A blue checkmark means the table is set to replicate.

3. To track a column, click the **checkbox** next to the column’s name. A blue checkmark means the column is set to replicate.

4. Repeat this process for all the tables and columns you want to replicate.

5. When finished, click the **Finalize Your Selections** button at the bottom of the screen to save your selections.

Information note **Important**: Using the **Select All** feature will overwrite any previous selections. However, selections aren’t final until **Finalize Your Selections** is clicked. Clicking **Cancel** will restore your previous selections. Refer to the [Select All guide](https://help.qlik.com/en-US/stitch/replication/extractions/data-selection/setting-tables-and-columns-to-replicate#set-all-data-to-replicate) for more info about this feature.

1. Click into the integration from the Stitch Dashboard page.

2. Click the **Tables to Replicate** tab.

3. In the list of tables, click the box next to the **Table Names** column.

4. In the menu that displays, click **Track all Tables and Fields**:

   ![The Track all Tables and Fields menu in the Tables to Replicate tab](https://help.qlik.com/en-US/stitch/images/replication/select-all-tables-menu.png)The Track all Tables and Fields menu in the Tables to Replicate tabThe Track all Tables and Fields menu in the Tables to Replicate tab

5. Click the **Finalize Your Selections** button at the bottom of the page to save your data selections.

### Initial and historical replication jobs

After you finish setting up UJET, its **Sync Status** may show as **Pending** on either the Stitch Dashboard or in the Integration Details page.

For a new integration, a **Pending** status indicates that Stitch is in the process of scheduling the initial replication job for the integration. **This may take some time to complete.**

Information note

**Initial replication jobs with Anchor Scheduling**

If using Anchor Scheduling, an initial replication job may not kick off immediately. This depends on the selected Replication Frequency and Anchor Time. Refer to the [Anchor Scheduling](https://help.qlik.com/en-US/stitch/replication/replication-scheduling#job-scheduling-and-anchor-times) documentation for more information.

#### Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.

Information note **Replication will continue after the seven days are over**. If you’re no longer interested in this source, be sure to **pause** or **delete** the integration to prevent unwanted usage.

## UJET table reference

Information note

**Schemas and versioning**

Schemas and naming conventions can change from version to version, so we recommend verifying your integration’s version before continuing.

The schema and info displayed below is for **version 1** of this integration.

This is the latest version of the UJET integration.

Information note

**Table and column names in your destination**

Depending on your destination, table and column names may not appear as they are outlined below.

For example: Object names are lowercased in Redshift (`CusTomERs` &gt; `customers`), while case is maintained in PostgreSQL destinations (`CusTomERs` &gt; `CusTomERs`). Refer to the [Loading Guide](https://help.qlik.com/en-US/stitch/replication/loading/destination-guides) for your destination for more info.

### agent\_activity\_logs

The `agent_activity_logs` table contains info about agent activity logs.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | started\_at |
| **Useful links** | [agent_activity_logs schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/agent_activity_logs.json "Opens in new tab: agent_activity_logs schema on GitHub") |

agent\_activity\_logs table foreign keys

| Join agent\_activity\_logs with | on |
| --- | --- |
| [agents](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agents) | ```<br>agent_activity_logs.agent_id = agents.id<br>``` |
| [calls](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#calls) | ```<br>agent_activity_logs.agent_id = calls.agent_info.id<br>```<br><br>```<br>agent_activity_logs.agent_id = calls.transfers.from_agent.id<br>```<br><br>```<br>agent_activity_logs.agent_id = calls.transfers.to_agent.id<br>```<br><br>```<br>agent_activity_logs.call_id = calls.id<br>```<br><br>```<br>agent_activity_logs.call_id = calls.participants.call_id<br>``` |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#chats) | ```<br>agent_activity_logs.agent_id = chats.transfers.from_agent.id<br>```<br><br>```<br>agent_activity_logs.agent_id = chats.transfers.to_agent.id<br>```<br><br>```<br>agent_activity_logs.chat_id = chats.id<br>```<br><br>```<br>agent_activity_logs.chat_id = chats.participants.chat_id<br>``` |
| [menus](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#menus) | ```<br>agent_activity_logs.agent_id = menus.agent_assignments.assignee.id<br>```<br><br>```<br>agent_activity_logs.agent_id = menus.team_assignments.team.assignees.id<br>``` |

agent\_activity\_logs table schema

| **activity**<br><br><br>STRING |
| --- |
| **agent\_id**<br><br><br>INTEGER |
| **call\_id**<br><br><br>INTEGER |
| **chat\_id**<br><br><br>INTEGER |
| **duration**<br><br><br>INTEGER |
| **ended\_at**<br><br><br>DATE-TIME |
| **id**<br><br><br>INTEGER |
| **started\_at**<br><br><br>DATE-TIME |
| **status**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand status<br><br><table> <tr> <td> <p> <strong>								color							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								wfm_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **whodunnit**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand whodunnit<br><br><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |

### agents

The `agents` table contains info about agents.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | status\_updated\_at |
| **Useful links** | [agents schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/agents.json "Opens in new tab: agents schema on GitHub") |

agents table foreign keys

| Join agents with | on |
| --- | --- |
| [agent_activity_logs](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agent-activity-logs) | ```<br>agents.id = agent_activity_logs.agent_id<br>``` |
| [calls](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#calls) | ```<br>agents.id = calls.agent_info.id<br>```<br><br>```<br>agents.id = calls.transfers.from_agent.id<br>```<br><br>```<br>agents.id = calls.transfers.to_agent.id<br>``` |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#chats) | ```<br>agents.id = chats.transfers.from_agent.id<br>```<br><br>```<br>agents.id = chats.transfers.to_agent.id<br>``` |
| [menus](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#menus) | ```<br>agents.id = menus.agent_assignments.assignee.id<br>```<br><br>```<br>agents.id = menus.team_assignments.team.assignees.id<br>```<br><br>```<br>agents.teams.id = menus.team_assignments.team.id<br>``` |
| [teams](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#teams) | ```<br>agents.teams.id = teams.id<br>``` |

agents table schema

| **agent\_number**<br><br><br>STRING |
| --- |
| **avatar\_url**<br><br><br>STRING |
| **call\_count**<br><br><br>INTEGER |
| **channels**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand channels<br><br><table> <tr> <td> <p> <strong>								channel_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								menu							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand menu</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								hidden							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								menu_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								output_msg							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								position							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |
| **chat\_count**<br><br><br>INTEGER |
| **created\_at**<br><br><br>DATE-TIME |
| **crm\_authenticated**<br><br><br>BOOLEAN |
| **email**<br><br><br>STRING |
| **first\_name**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **last\_login\_time**<br><br><br>DATE-TIME |
| **last\_name**<br><br><br>STRING |
| **location**<br><br><br>STRING |
| **middle\_name**<br><br><br>STRING |
| **online**<br><br><br>BOOLEAN |
| **roles**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **status**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand status<br><br><table> <tr> <td> <p> <strong>								color							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								wfm_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **status\_updated\_at**<br><br><br>DATE-TIME |
| **teams**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand teams<br><br><table> <tr> <td> <p> <strong>								agents_count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								position							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **wrap\_up**<br><br><br>BOOLEAN |

### calls

The `calls` table contains info about calls.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated\_at |
| **Useful links** | [calls schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/calls.json "Opens in new tab: calls schema on GitHub") |

calls table foreign keys

| Join calls with | on |
| --- | --- |
| [agents](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agents) | ```<br>calls.agent_info.id = agents.id<br>```<br><br>```<br>calls.transfers.from_agent.id = agents.id<br>```<br><br>```<br>calls.transfers.to_agent.id = agents.id<br>``` |
| [agent_activity_logs](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agent-activity-logs) | ```<br>calls.agent_info.id = agent_activity_logs.agent_id<br>```<br><br>```<br>calls.transfers.from_agent.id = agent_activity_logs.agent_id<br>```<br><br>```<br>calls.transfers.to_agent.id = agent_activity_logs.agent_id<br>```<br><br>```<br>calls.id = agent_activity_logs.call_id<br>```<br><br>```<br>calls.participants.call_id = agent_activity_logs.call_id<br>``` |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#chats) | ```<br>calls.agent_info.id = chats.transfers.from_agent.id<br>```<br><br>```<br>calls.transfers.from_agent.id = chats.transfers.from_agent.id<br>```<br><br>```<br>calls.transfers.to_agent.id = chats.transfers.from_agent.id<br>```<br><br>```<br>calls.agent_info.id = chats.transfers.to_agent.id<br>```<br><br>```<br>calls.transfers.from_agent.id = chats.transfers.to_agent.id<br>```<br><br>```<br>calls.transfers.to_agent.id = chats.transfers.to_agent.id<br>``` |
| [menus](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#menus) | ```<br>calls.agent_info.id = menus.agent_assignments.assignee.id<br>```<br><br>```<br>calls.transfers.from_agent.id = menus.agent_assignments.assignee.id<br>```<br><br>```<br>calls.transfers.to_agent.id = menus.agent_assignments.assignee.id<br>```<br><br>```<br>calls.agent_info.id = menus.team_assignments.team.assignees.id<br>```<br><br>```<br>calls.transfers.from_agent.id = menus.team_assignments.team.assignees.id<br>```<br><br>```<br>calls.transfers.to_agent.id = menus.team_assignments.team.assignees.id<br>``` |

calls table schema

| **agent\_info**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand agent\_info<br><br><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **answer\_type**<br><br><br>STRING |
| **assigned\_at**<br><br><br>DATE-TIME |
| **call\_duration**<br><br><br>INTEGER |
| **call\_type**<br><br><br>STRING |
| **connected\_at**<br><br><br>DATE-TIME |
| **created\_at**<br><br><br>DATE-TIME |
| **deflection**<br><br><br>STRING |
| **deflection\_details**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand deflection\_details<br><br><table> <tr> <td> <p> <strong>								call_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								deflection							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								from_menu_path							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand from_menu_path</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								items_count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								materialized_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								transfer_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **disconnected\_by**<br><br><br>STRING |
| **end\_user**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand end\_user<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								identifier							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								out_contact_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **ends\_at**<br><br><br>DATE-TIME |
| **fail\_details**<br><br><br>STRING |
| **fail\_reason**<br><br><br>STRING |
| **has\_feedback**<br><br><br>BOOLEAN |
| **hold\_duration**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **lang**<br><br><br>STRING |
| **menu\_path**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand menu\_path<br><br><table> <tr> <td> <p> <strong>								items_count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								materialized_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **offer\_events**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand offer\_events<br><br><table> <tr> <td> <p> <strong>								casting_time							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								group							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **offer\_type**<br><br><br>STRING |
| **out\_ticket\_id**<br><br><br>STRING |
| **out\_ticket\_url**<br><br><br>STRING |
| **outbound\_number**<br><br><br>STRING |
| **participants**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand participants<br><br><table> <tr> <td> <p> <strong>								call_duration							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								call_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								connected_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								end_user_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								ended_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								fail_reason							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								hold_duration							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								user_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **photos**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand photos<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								photo_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								url							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **queued\_at**<br><br><br>DATE-TIME |
| **rating**<br><br><br>STRING |
| **recording\_url**<br><br><br>STRING |
| **scheduled\_at**<br><br><br>DATE-TIME |
| **selected\_menu**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand selected\_menu<br><br><table> <tr> <td> <p> <strong>								deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								hidden							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								menu_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								output_msg							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								position							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **status**<br><br><br>STRING |
| **support\_number**<br><br><br>STRING |
| **transfers**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand transfers<br><br><table> <tr> <td> <p> <strong>								answer_type_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								assigned_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								call_duration							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								connected_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								deflection							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								fail_reason							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								from_agent							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand from_agent</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								from_menu_path							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand from_menu_path</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								items_count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								materialized_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								from_queue_priority_level							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								to_agent							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand to_agent</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								to_menu_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								to_queue_priority_level							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								wait_duration							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **updated\_at**<br><br><br>DATE-TIME |
| **verified**<br><br><br>BOOLEAN |
| **videos**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand videos<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								url							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **voicemail\_reason**<br><br><br>STRING |
| **voip\_provider**<br><br><br>STRING |
| **wait\_duration**<br><br><br>INTEGER |

### chats

The `chats` table contains info about chats.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Replication Key ![](https://help.qlik.com/en-US/stitch/images/replication/replication-key-icon.svg)** | updated\_at |
| **Useful links** | [chats schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/chats.json "Opens in new tab: chats schema on GitHub") |

chats table foreign keys

| Join chats with | on |
| --- | --- |
| [agents](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agents) | ```<br>chats.transfers.from_agent.id = agents.id<br>```<br><br>```<br>chats.transfers.to_agent.id = agents.id<br>``` |
| [agent_activity_logs](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agent-activity-logs) | ```<br>chats.transfers.from_agent.id = agent_activity_logs.agent_id<br>```<br><br>```<br>chats.transfers.to_agent.id = agent_activity_logs.agent_id<br>```<br><br>```<br>chats.id = agent_activity_logs.chat_id<br>```<br><br>```<br>chats.participants.chat_id = agent_activity_logs.chat_id<br>``` |
| [calls](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#calls) | ```<br>chats.transfers.from_agent.id = calls.agent_info.id<br>```<br><br>```<br>chats.transfers.to_agent.id = calls.agent_info.id<br>```<br><br>```<br>chats.transfers.from_agent.id = calls.transfers.from_agent.id<br>```<br><br>```<br>chats.transfers.to_agent.id = calls.transfers.from_agent.id<br>```<br><br>```<br>chats.transfers.from_agent.id = calls.transfers.to_agent.id<br>```<br><br>```<br>chats.transfers.to_agent.id = calls.transfers.to_agent.id<br>``` |
| [menus](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#menus) | ```<br>chats.transfers.from_agent.id = menus.agent_assignments.assignee.id<br>```<br><br>```<br>chats.transfers.to_agent.id = menus.agent_assignments.assignee.id<br>```<br><br>```<br>chats.transfers.from_agent.id = menus.team_assignments.team.assignees.id<br>```<br><br>```<br>chats.transfers.to_agent.id = menus.team_assignments.team.assignees.id<br>``` |

chats table schema

| **agent\_info**<br><br><br>STRING |
| --- |
| **assigned\_at**<br><br><br>DATE-TIME |
| **average\_response\_time**<br><br><br>INTEGER |
| **chat\_duration**<br><br><br>INTEGER |
| **chat\_type**<br><br><br>STRING |
| **created\_at**<br><br><br>DATE-TIME |
| **end\_user**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand end\_user<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								identifier							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								out_contact_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **ends\_at**<br><br><br>DATE-TIME |
| **fail\_reason**<br><br><br>STRING |
| **first\_msg\_sent\_at**<br><br><br>DATE-TIME |
| **has\_feedback**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **lang**<br><br><br>STRING |
| **last\_msg\_sent\_at**<br><br><br>DATE-TIME |
| **longest\_response\_time**<br><br><br>INTEGER |
| **menu\_path**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand menu\_path<br><br><table> <tr> <td> <p> <strong>								items_count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								materialized_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **message\_count**<br><br><br>INTEGER |
| **offer\_events**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;. |
| **offer\_type**<br><br><br>STRING |
| **out\_ticket\_id**<br><br><br>STRING |
| **out\_ticket\_url**<br><br><br>STRING |
| **participants**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand participants<br><br><table> <tr> <td> <p> <strong>								chat_duration							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								chat_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								connected_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								end_user_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								fail_reason							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								finished_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								user_id							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **photos**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand photos<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								photo_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								url							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **rating**<br><br><br>STRING |
| **selected\_menu**<br><br><br>OBJECT<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand selected\_menu<br><br><table> <tr> <td> <p> <strong>								deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								hidden							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								menu_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								output_msg							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								position							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **status**<br><br><br>STRING |
| **transcript**<br><br><br>BOOLEAN |
| **transfers**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand transfers<br><br><table> <tr> <td> <p> <strong>								answer_type_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								assigned_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								call_duration							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								connected_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								created_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								deflection							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								fail_reason							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								from_agent							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand from_agent</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								from_menu_path							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand from_menu_path</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								items_count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								materialized_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								from_queue_priority_level							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								status							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								to_agent							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand to_agent</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								to_menu_path							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								to_queue_priority_level							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								updated_at							</strong> </p> <p>							DATE-TIME													</p> </td> </tr> <tr> <td> <p> <strong>								wait_duration							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table> |
| **updated\_at**<br><br><br>DATE-TIME |
| **verified**<br><br><br>BOOLEAN |
| **videos**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand videos<br><br><table> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								url							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **wait\_duration**<br><br><br>INTEGER |

### menu\_tree

The `menu_tree` table contains info about menu trees.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Useful links** | [menu_tree schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/menu_tree.json "Opens in new tab: menu_tree schema on GitHub") |

menu\_tree table schema

| **agents\_count**<br><br><br>INTEGER |
| --- |
| **deleted**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **parent\_id**<br><br><br>INTEGER |
| **position**<br><br><br>INTEGER |

### menus

The `menus` table contains info about menus.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Key-based Incremental |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Useful links** | [menus schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/menus.json "Opens in new tab: menus schema on GitHub") |

menus table foreign keys

| Join menus with | on |
| --- | --- |
| [agents](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agents) | ```<br>menus.agent_assignments.assignee.id = agents.id<br>```<br><br>```<br>menus.team_assignments.team.assignees.id = agents.id<br>```<br><br>```<br>menus.team_assignments.team.id = agents.teams.id<br>``` |
| [agent_activity_logs](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agent-activity-logs) | ```<br>menus.agent_assignments.assignee.id = agent_activity_logs.agent_id<br>```<br><br>```<br>menus.team_assignments.team.assignees.id = agent_activity_logs.agent_id<br>``` |
| [calls](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#calls) | ```<br>menus.agent_assignments.assignee.id = calls.agent_info.id<br>```<br><br>```<br>menus.team_assignments.team.assignees.id = calls.agent_info.id<br>```<br><br>```<br>menus.agent_assignments.assignee.id = calls.transfers.from_agent.id<br>```<br><br>```<br>menus.team_assignments.team.assignees.id = calls.transfers.from_agent.id<br>```<br><br>```<br>menus.agent_assignments.assignee.id = calls.transfers.to_agent.id<br>```<br><br>```<br>menus.team_assignments.team.assignees.id = calls.transfers.to_agent.id<br>``` |
| [chats](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#chats) | ```<br>menus.agent_assignments.assignee.id = chats.transfers.from_agent.id<br>```<br><br>```<br>menus.team_assignments.team.assignees.id = chats.transfers.from_agent.id<br>```<br><br>```<br>menus.agent_assignments.assignee.id = chats.transfers.to_agent.id<br>```<br><br>```<br>menus.team_assignments.team.assignees.id = chats.transfers.to_agent.id<br>``` |
| [teams](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#teams) | ```<br>menus.team_assignments.team.id = teams.id<br>``` |

menus table schema

| **agent\_assignments**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand agent\_assignments<br><br><table> <tr> <td> <p> <strong>								assignee							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand assignee</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								channel_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								group_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								lang							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								queue_level							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| --- |
| **deleted**<br><br><br>BOOLEAN |
| **hidden**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **menu\_type**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **output\_msg**<br><br><br>STRING |
| **parent\_id**<br><br><br>INTEGER |
| **position**<br><br><br>INTEGER |
| **team\_assignments**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand team\_assignments<br><br><table> <tr> <td> <p> <strong>								channel_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								group_type							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								lang							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								queue_level							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								team							</strong> </p> <p>							OBJECT																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes in this object will be flattened into the table. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand team</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agents_count							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								assignees							</strong> </p> <p>							ARRAY																							</p><div><button><div>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.</div></button></div> <p></p> <div> <button>Click to expand assignees</button><div> <div> <div><div><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> <tr> <td> <p> <strong>								deleted							</strong> </p> <p>							BOOLEAN													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								parent_id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								position							</strong> </p> <p>							INTEGER													</p> </td> </tr> </table></div></div></div> </div></div> </td> </tr> </table> |

### team\_tree

The `team_tree` table contains info about team trees.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Useful links** | [team_tree schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/team_tree.json "Opens in new tab: team_tree schema on GitHub") |

team\_tree table schema

| **agents\_count**<br><br><br>INTEGER |
| --- |
| **deleted**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **parent\_id**<br><br><br>INTEGER |
| **position**<br><br><br>INTEGER |

### teams

The `teams` table contains info about teams.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Useful links** | [teams schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/teams.json "Opens in new tab: teams schema on GitHub") |

teams table foreign keys

| Join teams with | on |
| --- | --- |
| [agents](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#agents) | ```<br>teams.id = agents.teams.id<br>``` |
| [menus](https://help.qlik.com/en-US/stitch/integrations/saas/ujet#menus) | ```<br>teams.id = menus.team_assignments.team.id<br>``` |

teams table schema

| **agents\_count**<br><br><br>INTEGER |
| --- |
| **assignees**<br><br>ARRAY<br><br>This is a nested data structure. If your destination doesn't natively support nested data, attributes will be denested into a subtable. &lt;a href='/en-US/stitch/replication/loading/understanding-loading-row-usage-for-nested-data-structures' target='new'&gt;Learn more&lt;/a&gt;.<br><br>Click to expand assignees<br><br><table> <tr> <td> <p> <strong>								agent_number							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								avatar_url							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								first_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								id							</strong> </p> <p>							INTEGER													</p> </td> </tr> <tr> <td> <p> <strong>								last_name							</strong> </p> <p>							STRING													</p> </td> </tr> <tr> <td> <p> <strong>								name							</strong> </p> <p>							STRING													</p> </td> </tr> </table> |
| **deleted**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **parent\_id**<br><br><br>INTEGER |
| **position**<br><br><br>INTEGER |

### user\_statuses

The `user_statuses` table contains info about user statuses.

| **Replication Method [](https://help.qlik.com/en-US/stitch/replication/replication-methods)[the Info icon](https://help.qlik.com/en-US/stitch/replication/replication-methods)[](https://help.qlik.com/en-US/stitch/replication/replication-methods)** | Full Table |
| --- | --- |
| **Primary Key ![](https://help.qlik.com/en-US/stitch/images/replication/primary-key-icon.svg)** | id |
| **Useful links** | [user_statuses schema on GitHub](https://github.com/singer-io/tap-ujet/blob/master/tap_ujet/schemas/user_statuses.json "Opens in new tab: user_statuses schema on GitHub") |

user\_statuses table schema

| **color**<br><br><br>STRING |
| --- |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **wfm\_id**<br><br><br>INTEGER |