Zoho SalesIQ Connector
Documentation
Version: 1
Documentation

Zoho SalesIQ Connector - Source Code


<?xml version="1.0" encoding="utf-8"?>
<ApiConfig Name="Zoho SalesIQ"
  EngineVersion="15"
  Version="1"
  Id="F3DBC0B8-6AD4-498E-A795-82BBE49A6144"
  Slug="zoho-salesiq-connector"
  Desc="Zoho SalesIQ Connector can be used to integrate Zoho SalesIQ API in your App / BI Tools. You can exchange data on Chats, Visits and more."
  HelpLink="https://www.zoho.com/salesiq/help/developer-section/rest-api-new.html"
  Logo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfoAggXCA/IuGqsAAAkgUlEQVR4Xu1dCVxV1dYnEkUCJ1QQFVFxwAlHEGUQNCccPhQTJ5xntMH0OZSzODVZkpIpJs/Mej5ffurrlc/SLPtyTE3LMjVzCK2sV9qz1399ax329RGee+4F77lw8f5/v/9PhD2dfdZZe629197bww033HDDDTfccMMNN9xwww033HDDDTfcKL4gIk/8/HML7NnTAuvWtcDChS3Qo0cuk5L++G9+DhvWAi+80ALbtrUA4KOKdONeBPbujUB6egSioyPg5xeBoUPTaO1aolmziEaPJkpOJmrenKhFC6JWrf77b8uWf6SkiYkhSk0levRRom7dFsPDI0JjrVoRSEmJwOrVESy4pVTVbpQk4L332mLatCgEBUVRQsJQeuIJon79iOrXJ/L2JhKl5WhWrkzUti3RsGGE+PgpLGxRaN06CpmZUSxoqmVuuBzw2mvtKC4uDi1a9KepU4m6diWqUOFOAXAma9cmGj6cEBMzge67L47Gjo2jAwfiVJPdKK7Ahx+2w+TJCQgN7UMjRhA1bKj/gosD77+fWHsSzZtH6Nx5OJ58soN6DDeKC7BgQQwPM0mYNOnf1LEjm+Ke+i+zuLJ0aaLEREK9eqno3r0Lvf9+R/VobhQFMGVKDFWv3htduvxCVarovzRXY7NmRI88QujadSDef7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MXPqk+9BGlBBeOcaxdesXacUKp4UQuwI04RoyxH7hatuWsHZtCROuTz5JQP/+kxEaet7wsFVrlOOV5E4dH59VGDXqWRw5csfJxvci2H4KxvDhb1q9Ajk/RbhkWLx50+5r8VwCGDo0AYMHfy3bqnQf3BYlHLdJE6KePWVb1mr2lDKwY4epV7IUd+AvfwlGWto2mXjW7bP8bNWKaM2ad1lzlTDhevvtBHTuPIqHt0sFMuzzU/JKZ8bGSnBbJmJiMvlrzMRbb5l23XBxBb37bi3MmLHN5j5QC8XmWrv2PRauEFVEyYFme82de4W6ddN/+IJQziwQeywmRnYLycEYWVS+fBY7D1k0fnwWPf98Fu3YkUUXL2bh/PkhqgklCiwkvli0aL2mkfT6KD8lImL16j1086bNOxddDvjXv0S4BmL06GtykotuBxSWYsvJkdly3he73DLLLxd/suBdgYdHdgnkS6hZc59d1+FZyBoOa9bsxXffNVKvpGQBBw50YO8vmQXsunaii14nuGkOJWBzwID26lWUTOCjjzpg0KC+ePLJn6l7d8cd6uGmIdlb34vExMbqNZRc0A8/yJpjIgUEJKNPn9/sujPQzcJT7idq0qST6v57A7RqVRy6d++HmTN/166gLcw8mJvGlHCnoKA41eX3FvD559FyxSyio/vTsmXaxti73i7lZi6bNSN07erY63tdEbh4MZqWL4+jxo3jEBc3jNLTiYYOJe3uY3ujLd28TYSETKHUVPdOqvzAqVNRyMyMQkxMFHx9ozB48CQeQommTNGmGLTpBpnfkXU1W4dp3EvMPalwCv/stDuIXBpE5Ilr1yKwfXsEli+PQEpKBHr1iuBhNAIeHm5a6OcXQaNHu6N33XDDDTfccMMNN9xwww033HDDDTfccMMNN+yHh8f/A/llnxlcCKfDAAAAAElFTkSuQmCC"
	>
  <VersionHistory>
    <Change Date="2023-12-31">Initial version</Change>
  </VersionHistory>

  <ServiceUrls>
    <ServiceUrl Name="US Domain" Url="https://salesiq.zoho.com/api/v2/[$Compnay$]"/>
	<ServiceUrl Name="EU Domain" Url="https://salesiq.zoho.eu/api/v2/[$Compnay$]"/>
	<ServiceUrl Name="AU Domain" Url="https://salesiq.zoho.com.au/api/v2/[$Compnay$]"/>
	<ServiceUrl Name="IN Domain" Url="https://salesiq.zoho.in/api/v2/[$Compnay$]"/>
	<ServiceUrl Name="CN Domain" Url="https://salesiq.zoho.com.cn/api/v2/[$Compnay$]"/>
	<ServiceUrl Name="JP Domain" Url="https://salesiq.zoho.jp/api/v2/[$Compnay$]"/>

  </ServiceUrls>
  
  <!-- https://www.zoho.com/crm/developer/docs/api/access-refresh.html -->
  <Auths>
    <Auth Type="OAuth" Desc="OAuth Connection for Zoho CRM API" HelpLink="https://www.zoho.com/crm/developer/docs/api/register-client.html"
          ConnStr="Provider=Custom;OAuthVersion=OAuth2;ScopeSeparator={space};ReturnUrl=[$RedirectUrl$];ExtraAttributesForAuthRequest=access_type=offline&amp;prompt=consent;AuthUrl=[$AccountUrl$]/oauth/v2/auth;TokenUrl=[$AccountUrl$]/oauth/v2/token;ClientId=[$ClientId$];ClientSecret=[$ClientSecret$];Scope=[$Permissions$];ExpiresInAttribute=expires_in_sec;" TestEndPoint="get_departments">
      <Params>
		<Param Name="Compnay" Label="Company Screen Name for URL (e.g. mycompany)" />
        <Param Name="ClientId" />
        <Param Name="ClientSecret" Secret="True" />
        <Param Name="Permissions" Value="SalesIQ.operators.READ SalesIQ.conversations.READ SalesIQ.feedbacks.READ SalesIQ.departments.READ"/>
        <Param Name="AccountUrl" Value="https://accounts.zoho.com"
               Options="United States (US) Datacenter=https://accounts.zoho.com;
			   United Kingdom (UK) Datacenter=https://accounts.zoho.uk;
			   Europe (EU) Datacenter=https://accounts.zoho.eu;
			   Canada (CA) Datacenter=https://accounts.zohocloud.ca;
			   Australia (AU) Datacenter=https://accounts.zoho.au;
			   India (IN) Datacenter=https://accounts.zoho.in;
			   Japan (JP) Datacenter=https://accounts.zoho.jp;			   
			   Saudi Arabia (SA) Datacenter=https://accounts.zoho.sa;			   
			   China (CN) Datacenter=https://accounts.zoho.com.cn;"   

			   HelpLink="https://www.zoho.com/accounts/protocol/oauth/multi-dc.html"
			   />
        <Param Name="RedirectUrl" Value="https://zappysys.com/oauth" Desc="This is the redirect URL you entered when you created app in Zoho Portal. URL must match exactly including trailing slash" />

        <!--below not exposed as root level property in HTTP Connection so use as placeholder-->
        <Param Name="RetryMode" Value="RetryWhenStatusCodeMatch" Options="None;RetryAny;RetryWhenStatusCodeMatch;" Hidden="True"  HelpLink="https://www.zoho.com/crm/developer/docs/api/v2/status-codes.html" />
        <Param Name="RetryStatusCodeList" Value="429" Hidden="True" />
        <Param Name="RetryCountMax" Value="5" Hidden="True" />
        <Param Name="RetryMultiplyWaitTime" Value="True" Hidden="True" />
	
      </Params>
      <Notes>
        <![CDATA[To register custom App, perform the following steps (Detailed steps found in the help link at the end)
<ol>
  <li>Go to <a target="_blank" href="https://api-console.zoho.com/">Zoho API Console</a>
  <li>Click <b>Add Client</b> link
  <li>Select <b>Server-based Applications</b> option
  <li>Enter desired client name (Display purpose only)</b>
  <li>Enter some URL for Company homepage</b>
  <li>For Authorized Redirect URI enter https://zappysys.com/oauth (Or enter your own but we recommend using ZappySys one if possible). This URL must match on Zoho Connector UI.
  <li>Click <b>CREATE</b>.
  <li>Copy Client ID and Secret and paste on Zoho Connector UI.
</ol>
]]>
      </Notes>
    </Auth>
  </Auths>

  <Template>
    <!-- When name not specified in EndPoints node .. its considered as base for all other template -->
	<Param Name="date" Options="2023-12-31T00:00:00;now;today;yesterday;yearstart-10y;monthstart;monthend;yearstart;yearend;weekstart;weekend;yearstart-1y;yearend-1y;monthstart-1d;monthend+1d;monthend+1d-1y" Desc="The date for which to retrieve the report in YYYYMMDD format. Supported functions now|today|yesterday|weekstart|weekend|monthstart|monthend|yearstart|yearend and supported intervals for add/subtract are ms|s|sec|min|h|hour|y|year|d|day|m|month|y|year. Example monthstart-3d (subtract 3days from month start)"
	ValueTemplate="&lt;&lt;{$value$}||unix_timestamp_ms,FUN_TO_DATETIME_UTC&gt;&gt;" />
		
    <EndPoint Name="Pagination">
      <Params>
		<Param Name="PageSize" Value="99" Hidden="True" />
		<Param Name="PagingIncrementBy" Type="Property" Value="99" ValueTemplate="[$PageSize$]" />
        <Param Name="NextUrlEndIndicator" Type="Property" Value="regex=(^$)|false" Desc="Stop pagination when more_data_available is false or missing"  />
        <Param Name="StopIndicatorAttributeOrExpr" Type="Property" Value="$.more_data_available" />
        <Param Name="PagingMode" Type="Property" Value="ByUrlParameter" />
		
        <Param Name="PagingByUrlAttributeName" Type="Property" Value="index" />
		
        <Param Name="PagingByUrlEndStrategy" Type="Property" Value="DetectBasedOnMultipleRules" />
        <Param Name="PagingEndRules" Type="Property" Value="&lt;ArrayOfPagingEndRule&gt;&lt;PagingEndRule&gt;&lt;Mode&gt;DetectBasedOnResponseStatusCode&lt;/Mode&gt;&lt;StatusCode&gt;204&lt;/StatusCode&gt;&lt;/PagingEndRule&gt;&lt;PagingEndRule&gt;&lt;Mode&gt;DetectBasedOnResponseStatusCode&lt;/Mode&gt;&lt;StatusCode&gt;304&lt;/StatusCode&gt;&lt;/PagingEndRule&gt;&lt;PagingEndRule&gt;&lt;Mode&gt;DetectBasedOnResponseStatusCode&lt;/Mode&gt;&lt;Mode&gt;DetectBasedOnRecordCount&lt;/Mode&gt;&lt;/PagingEndRule&gt;&lt;/ArrayOfPagingEndRule&gt;" />
      </Params>
    </EndPoint>
    

    <EndPoint Name="NoPagination" Template=".">

    </EndPoint>
	
  </Template>

	<EndPoints>
		<EndPoint Name="get_feedbacks" Template="Pagination" Url="/feedbacks?limit=[$PageSize$]" Filter="$.data[*]"  >
			<Params>
				
				<Param Name="Ratings" Key="ratings" Options=";happy;neutral;sad" Type="Query" MultiSelect="True" MultiSelectSeparator=","  />
				<Param Name="OperatorIds" Key="operator_ids" OptionsEndPoint="get_operators" OptionsEndPointValueColumn="Id" OptionsEndPointLabelColumn="EmailId" Type="Query" MultiSelect="True" MultiSelectSeparator=","   />
				<Param Name="DepartmentIds" Key="department_ids" OptionsEndPoint="get_departments" OptionsEndPointValueColumn="Id" OptionsEndPointLabelColumn="Name" Type="Query" MultiSelect="True" MultiSelectSeparator=","   />
				<Param Name="AppIds" Key="app_ids"  Type="Query"   />
				<Param Name="StartTime" Key="start_time" Template="date" Type="Query"  />
				<Param Name="EndTime" Key="end_time" Template="date" Type="Query"  />
				<Param Name="TimezoneOffset" Key="timezone_offset" Type="Query"  />
				<Param Name="VisitorEmail" Key="visitor_email" Type="Query"  />
			</Params>			
			<OutputColumns>
				<Column Name="reference_id" DataType="DT_WSTR" Label="ReferenceId" Length="50" />
				<Column Name="question" DataType="DT_WSTR" Label="Question" Length="4000" />
				<Column Name="created_time" DataType="DT_DBTIMESTAMP" Label="CreatedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				<Column Name="attender.email" DataType="DT_WSTR" Label="AttenderEmail" Length="500" />
				<Column Name="rating.type" DataType="DT_WSTR" Label="RatingType" Length="100" />
				<Column Name="rating.value" DataType="DT_WSTR" Label="RatingValue" Length="100" />
				<Column Name="feedback" DataType="DT_WSTR" Label="Feedback" Length="1280" />

				<Column Name="visitor.phone" DataType="DT_WSTR" Label="VisitorPhone" Length="500" />
				<Column Name="visitor.email" DataType="DT_WSTR" Label="VisitorEmail" Length="500" />
				<Column Name="visitor.name" DataType="DT_WSTR" Label="VisitorName" Length="500" />
				<Column Name="visitor.supported_operations" DataType="DT_WSTR" Label="VisitorSupportedOperations" Length="50" />
				<Column Name="visitor.ip" DataType="DT_WSTR" Label="VisitorIp" Length="500" />

				<Column Name="support_ticket_id" DataType="DT_WSTR" Label="SupportTicketId" Length="100" />
				
				<Column Name="attender_id" DataType="DT_WSTR" Label="AttenderId" Length="500" />
				<Column Name="attender.display_name" DataType="DT_WSTR" Label="AttenderDisplayName" Length="500" />
				<Column Name="attender.type" DataType="DT_WSTR" Label="AttenderType" Length="100" />
				<Column Name="attender.image_url" DataType="DT_WSTR" Label="AttenderImageUrl" Length="1000" />
				<Column Name="notes_available" DataType="DT_BOOL" Label="NotesAvailable" />
				
				<Column Name="conversation.reference_id" DataType="DT_WSTR" Label="ConversationReferenceId" Length="50" />
				<Column Name="conversation.mode" DataType="DT_WSTR" Label="ConversationMode" Length="50" />
				<Column Name="conversation.id" DataType="DT_WSTR" Label="ConversationId" Length="500" />
				<Column Name="department_id" DataType="DT_WSTR" Label="DepartmentId" Length="500" />
				<Column Name="start_time" DataType="DT_DBTIMESTAMP" Label="StartTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				<Column Name="end_time" DataType="DT_DBTIMESTAMP" Label="EndTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				
				
			</OutputColumns>		
		</EndPoint>
		<EndPoint Name="get_conversations" Template="Pagination" Url="/conversations?limit=[$PageSize$]" Filter="$.data[*]"  >
			<Params>				
				<Param Name="Status" Key="status" Options=";open;closed;waiting;connected;missed;end" Type="Query"  />
				<Param Name="OperatorIds" Key="attender_id" OptionsEndPoint="get_operators" OptionsEndPointValueColumn="Id" OptionsEndPointLabelColumn="EmailId" Type="Query"  />
				<Param Name="DepartmentId" Key="department_id" OptionsEndPoint="get_departments" OptionsEndPointValueColumn="Id" OptionsEndPointLabelColumn="Name" Type="Query" />
				<Param Name="AppId" Key="app_id"  Type="Query"   />
				<Param Name="Email" Key="email"  Type="Query"   />
				<Param Name="StartTime" Key="from_time" Template="date" Type="Query" />
				<Param Name="EndTime" Key="to_time" Template="date" Type="Query"  />
				<Param Name="VisitorType" Key="visitor_type" Options=";lead;contact" Type="Query" />
				<Param Name="UpdatedTimeStart" Key="updated_till_time" Template="date" Type="Query"  />
				<Param Name="UpdatedTimeEnd" Key="updated_from_time" Template="date" Type="Query"  />				
				<Param Name="SortBy" Key="sort_by" Options=";end_time;updated_time" Type="Query"  />
			</Params>		
			<OutputColumns>
				<Column Name="id" DataType="DT_WSTR" Label="Id" Length="500" />			
				<Column Name="question" DataType="DT_WSTR" Label="Question" Length="1000" />
				<Column Name="status" DataType="DT_WSTR" Label="Status" Length="500" />
				<Column Name="start_time" DataType="DT_DBTIMESTAMP" Label="StartTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				<Column Name="end_time" DataType="DT_DBTIMESTAMP" Label="EndTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE"  />
				<Column Name="chat_duration" DataType="DT_WSTR" Label="ChatDuration" Length="500" />
				<Column Name="missed_reason" DataType="DT_WSTR" Label="MissedReason" Length="500" />
				<Column Name="owner.email" DataType="DT_WSTR" Label="OwnerEmail" Length="500" />
				<Column Name="owner.id" DataType="DT_WSTR" Label="OwnerId" Length="500" />
				<Column Name="last_message_info.message.rating_string" DataType="DT_WSTR" Label="RatingString" Length="100" />
				<Column Name="last_message_info.message.rating" DataType="DT_I4" Label="Rating" />
				<Column Name="visitor.country_code" DataType="DT_WSTR" Label="VisitorCountryCode" Length="50" />
				<Column Name="visitor.name" DataType="DT_WSTR" Label="VisitorName" Length="500" />
				<Column Name="visitor.email" DataType="DT_WSTR" Label="VisitorEmail" Length="1000" />
				<Column Name="visitor.id" DataType="DT_WSTR" Label="VisitorId" Length="500" />
				
				<Column Name="visitor.channel_details.channel" DataType="DT_WSTR" Label="VisitorChannelDetailsChannel" Length="100" />
				<Column Name="visitor.channel_details.source" DataType="DT_WSTR" Label="VisitorChannelDetailsSource" Length="4000" />
				<Column Name="visitor.supported_operations" DataType="DT_WSTR" Label="VisitorSupportedOperations" Length="4000" />
				<Column Name="visitor.ip" DataType="DT_WSTR" Label="VisitorIp" Length="500" />
				<Column Name="visitor.phone" DataType="DT_WSTR" Label="VisitorPhone" Length="500" />
				
				<Column Name="visitor.type" DataType="DT_WSTR" Label="VisitorType" Length="100" />
				<Column Name="visitor.channel_name" DataType="DT_WSTR" Label="VisitorChannelName" Length="100" />
				<Column Name="notes" DataType="DT_BOOL" Label="HasNotes" />
				
				<Column Name="unread_chats" DataType="DT_BOOL" Label="UnreadChats" />
				<Column Name="uvid" DataType="DT_WSTR" Label="Uvid" Length="500" />
				<Column Name="status_code" DataType="DT_I4" Label="StatusCode" />				
				
				<Column Name="department.name" DataType="DT_WSTR" Label="DepartmentName" Length="500" />
				<Column Name="department.id" DataType="DT_WSTR" Label="DepartmentId" Length="500" />
				<Column Name="app_name" DataType="DT_WSTR" Label="AppName" Length="100" />
				<Column Name="last_modified_time" DataType="DT_DBTIMESTAMP" Label="LastModifiedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				
				<Column Name="app_id" DataType="DT_WSTR" Label="AppId" Length="500" />
				<Column Name="type" DataType="DT_WSTR" Label="Type" Length="50" />
				<Column Name="chat_status.state_key" DataType="DT_WSTR" Label="ChatStatusStateKey" Length="50" />
				<Column Name="chat_status.status_code" DataType="DT_I4" Label="ChatStatusStatusCode" />
				<Column Name="chat_status.state" DataType="DT_I4" Label="ChatStatusState" />
				<Column Name="chat_status.id" DataType="DT_WSTR" Label="ChatStatusId" Length="50" />
				<Column Name="chat_status.label" DataType="DT_WSTR" Label="ChatStatusLabel" Length="500" />
				<Column Name="chat_status.status_key" DataType="DT_WSTR" Label="ChatStatusStatusKey" Length="100" />
				<Column Name="reference_id" DataType="DT_WSTR" Label="ReferenceId" Length="50" />
				<Column Name="missed_time" DataType="DT_DBTIMESTAMP" Label="MissedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				
				<Column Name="visitor.uuid" DataType="DT_WSTR" Label="VisitorUuid" Length="500" />
				<Column Name="supervisors" DataType="DT_WSTR" Label="Supervisors" Length="4000" />
				<Column Name="owner.image_key" DataType="DT_WSTR" Label="OwnerImageKey" Length="500" />

				<Column Name="owner.name" DataType="DT_WSTR" Label="OwnerName" Length="500" />
				<Column Name="owner.is_bot" DataType="DT_BOOL" Label="OwnerIsBot" />
				<Column Name="owner.call_enabled" DataType="DT_BOOL" Label="OwnerCallEnabled" />

				<Column Name="ended_by.name" DataType="DT_WSTR" Label="EndedByName" Length="500" />
				<Column Name="ended_by.type" DataType="DT_WSTR" Label="EndedByType" Length="100" />
				<Column Name="ended_by.id" DataType="DT_WSTR" Label="EndedById" Length="500" />
				<Column Name="attender.image_key" DataType="DT_WSTR" Label="AttenderImageKey" Length="500" />
				<Column Name="attender.email" DataType="DT_WSTR" Label="AttenderEmail" Length="500" />
				<Column Name="attender.name" DataType="DT_WSTR" Label="AttenderName" Length="500" />
				<Column Name="attender.is_bot" DataType="DT_BOOL" Label="AttenderIsBot" />
				<Column Name="attender.call_enabled" DataType="DT_BOOL" Label="AttenderCallEnabled" />
				<Column Name="attender.id" DataType="DT_WSTR" Label="AttenderId" Length="500" />
				<Column Name="participants" DataType="DT_WSTR" Label="Participants" Length="4000" />
				
				<Column Name="attended_time" DataType="DT_DBTIMESTAMP" Label="AttendedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				<Column Name="last_message_info.sequence_id" DataType="DT_WSTR" Label="LastMessageInfoSequenceId" Length="50" />
				<Column Name="last_message_info.sender.name" DataType="DT_WSTR" Label="LastMessageInfoSenderName" Length="500" />
				<Column Name="last_message_info.sender.id" DataType="DT_WSTR" Label="LastMessageInfoSenderId" Length="500" />
				<Column Name="last_message_info.type" DataType="DT_WSTR" Label="LastMessageInfoType" Length="50" />


				<Column Name="last_message_info.time" DataType="DT_DBTIMESTAMP" Label="LastMessageInfoTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				<Column Name="last_message_info.last_read_message_id" DataType="DT_WSTR" Label="LastMessageInfoLastReadMessageId" Length="500" />
				<Column Name="last_message_info.id" DataType="DT_WSTR" Label="LastMessageInfoId" Length="500" />
				<Column Name="visitor.status_while_end" DataType="DT_WSTR" Label="VisitorStatusWhileEnd" Length="100" />
				<Column Name="customer_info.company" DataType="DT_WSTR" Label="CustomerInfoCompany" Length="500" />
				<Column Name="last_message_info.message.text" DataType="DT_WSTR" Label="LastMessageInfoText" Length="50" />
				<Column Name="last_message_info.message.formatted_text" DataType="DT_WSTR" Label="LastMessageInfoFormattedText" Length="4000" />
				<Column Name="last_message_info.message.message" DataType="DT_WSTR" Label="LastMessageInfoMessage" Length="1280" />
				<Column Name="last_message_info.message.time" DataType="DT_DBTIMESTAMP" Label="LastMessageInfoMessageTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				<Column Name="last_message_info.message.mode" DataType="DT_WSTR" Label="LastMessageInfoMode" Length="100" />
				<Column Name="last_message_info.message.operation_user.name" DataType="DT_WSTR" Label="LastMessageInfoOperationUserName" Length="500" />
				<Column Name="last_message_info.message.operation_user.id" DataType="DT_WSTR" Label="LastMessageInfoOperationUserId" Length="500" />

				<Column Name="owner.aboutme" DataType="DT_WSTR" Label="OwnerAboutme" Length="500" />
				<Column Name="attender.aboutme" DataType="DT_WSTR" Label="AttenderAboutme" Length="500" />
				<Column Name="last_message_info.edited_time" DataType="DT_DBTIMESTAMP" Label="LastMessageInfoEditedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				<Column Name="last_message_info.edited" DataType="DT_BOOL" Label="LastMessageInfoEdited" />
				<Column Name="visitor.user_id" DataType="DT_WSTR" Label="VisitorUserId" Length="500" />
			</OutputColumns>		
		</EndPoint>	
		<EndPoint Name="get_operators" Url="/operators" Filter="$.data[*]"  >
			<Params>
				<Param Name="LastSyncTime" Key="last_sync_time" Template="date" Type="Query"  />
			</Params>
			<OutputColumns>
				<Column Name="id" DataType="DT_WSTR" Label="Id" Length="500" />			
				<Column Name="first_name" DataType="DT_WSTR" Label="FirstName" Length="500" />			
				<Column Name="last_name" DataType="DT_WSTR" Label="LastName" Length="500" />				
				<Column Name="email_id" DataType="DT_WSTR" Label="EmailId" Length="500" />				
				<Column Name="nick_name" DataType="DT_WSTR" Label="NickName" Length="500" />				
				<Column Name="is_chat_enabled" DataType="DT_WSTR" Label="IsChatEnabled" Length="50" />
				<Column Name="is_enabled" DataType="DT_WSTR" Label="IsEnabled" Length="50" />
				<Column Name="is_deleted" DataType="DT_WSTR" Label="IsDeleted" Length="50" />				
				<Column Name="role" DataType="DT_WSTR" Label="Role" Length="500" />
				<Column Name="wms_id" DataType="DT_WSTR" Label="WmsId" Length="500" />
				<Column Name="type" DataType="DT_WSTR" Label="Type" Length="50" />
				<Column Name="modified_time" DataType="DT_DBTIMESTAMP" Label="ModifiedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE"/>
				<Column Name="status_code" DataType="DT_WSTR" Label="StatusCode" Length="50" />
				<Column Name="status_message" DataType="DT_WSTR" Label="StatusMessage" Length="100" />
				<Column Name="notify.new_visit" DataType="DT_WSTR" Label="NotifyNewVisit" Length="50" />
				<Column Name="notify.return_visit" DataType="DT_WSTR" Label="NotifyReturnVisit" Length="50" />
				<Column Name="zuid" DataType="DT_WSTR" Label="Zuid" Length="100" />
				<Column Name="is_owner" DataType="DT_WSTR" Label="IsOwner" Length="50" />

				<Column Name="is_confirmed" DataType="DT_WSTR" Label="IsConfirmed" Length="50" />
				<Column Name="description" DataType="DT_WSTR" Label="Description" Length="500" />
				<Column Name="maximum_concurrent_chat" DataType="DT_WSTR" Label="MaximumConcurrentChat" Length="50" />
				<Column Name="created_time" DataType="DT_DBTIMESTAMP" Label="CreatedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE"/>
				<Column Name="image_url" DataType="DT_WSTR" Label="ImageUrl" Length="1000" />

			</OutputColumns>		
		</EndPoint>
		<EndPoint Name="get_departments" Url="/departments" Filter="$.data[*]"   >
			<Params>
				<Param Name="LastSyncTime" Key="last_sync_time" Template="date" Type="Query"  />
			</Params>		
			<OutputColumns>
				<Column Name="id" DataType="DT_WSTR" Label="Id" Length="500" />			
				<Column Name="name" DataType="DT_WSTR" Label="Name" Length="500" />
				<Column Name="modified_time" DataType="DT_DBTIMESTAMP" Label="ModifiedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				
				<Column Name="is_enabled" DataType="DT_WSTR" Label="IsEnabled" Length="50" />
				<Column Name="created_by" DataType="DT_WSTR" Label="CreatedBy" Length="500" />
				<Column Name="is_public" DataType="DT_WSTR" Label="IsPublic" Length="50" />
				<Column Name="image_url" DataType="DT_WSTR" Label="ImageUrl" Length="1000" />
				<Column Name="is_system_generated" DataType="DT_WSTR" Label="IsSystemGenerated" Length="50" />
				<Column Name="created_time" DataType="DT_DBTIMESTAMP" Label="CreatedTime" Functions="UNIX_TIMESTAMP_MS_TO_DATE" />
				<Column Name="description" DataType="DT_WSTR" Label="Description" Length="1000" />
				<Column Name="display_name" DataType="DT_WSTR" Label="DisplayName" Length="500" />
			</OutputColumns>		
		</EndPoint>	
	</EndPoints>
	
	<Tables>
		<Table Name="Departments" SelectEndPoint="get_departments"/>
		<Table Name="Operators" SelectEndPoint="get_operators"/>
		<Table Name="Conversations" SelectEndPoint="get_conversations"/>
		<Table Name="Feedbacks" SelectEndPoint="get_feedbacks"/>
	</Tables>
	<Examples>
		<Example Group="ODBC" Label="Get Departments" Desc="List all departments">
			<Code>
				<![CDATA[SELECT * FROM Departments]]>
			</Code>
		</Example>
		<Example Group="ODBC" Label="Get Operators" Desc="List all operators">
			<Code>
				<![CDATA[SELECT * FROM Operators]]>
			</Code>
		</Example>		
		<Example Group="ODBC" Label="Get Feedbacks (i.e. ratings)" Desc="List all feedbacks (ratings)">
			<Code>
				<![CDATA[SELECT * FROM Feedbacks]]>
			</Code>
		</Example>			
		<Example Group="ODBC" Label="Get Conversations (i.e. chats)" Desc="List all conversations (chats)">
			<Code>
				<![CDATA[SELECT * FROM Conversations]]>
			</Code>
		</Example>
		
		<Example Group="ODBC" Label="Get Total Feedbacks by Rating Type and Operator for Last Year" Desc="Count Feedbacks by Rating Type and Operator for Last Year.">
			<Code>
				<![CDATA[SELECT
 OwnerEmail,
 OwnerId, 
 RatingString,
 COUNT(Id) Total
FROM Conversations
GROUP BY OwnerEmail, OwnerId, RatingString
Order BY OwnerEmail,RatingString
WITH(
	  --OperatorIds='81565000003048017,81565000002408043,81565000013131025' --You can supply Operator Ids to filter result for those Operators only
	  StartTime='yearstart-1y'
	, EndTime='yearstart-1d'
)]]>
			</Code>
		</Example>	
		
		<Example Group="ODBC" Label="Get Feedbacks (more than 99 rows)" Desc="Get Feedbacks (more than 99 rows). Pagination is not supported so this example shows how to workaround this issue to fetch more rows (assuming each month has less than 99 rows).">
			<Code>
				<![CDATA[SELECT * into #t1 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-01-01', EndTime='2023-02-01');
SELECT * into #t2 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-02-01', EndTime='2023-03-01');
SELECT * into #t3 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-03-01', EndTime='2023-04-01');
SELECT * into #t4 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-04-01', EndTime='2023-05-01');
SELECT * into #t5 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-05-01', EndTime='2023-06-01');
SELECT * into #t6 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-06-01', EndTime='2023-07-01');
SELECT * into #t7 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-07-01', EndTime='2023-08-01');
SELECT * into #t8 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-08-01', EndTime='2023-09-01');
SELECT * into #t9 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-09-01', EndTime='2023-10-01');
SELECT * into #t10 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-10-01', EndTime='2023-11-01');
SELECT * into #t11 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-11-01', EndTime='2023-12-01');
SELECT * into #t12 FROM Feedbacks WITH(OperatorId='81565000003048017', StartTime='2023-12-01', EndTime='2024-01-01');

select * from #t1 UNION 
select * from #t2 UNION 
select * from #t3 UNION 
select * from #t4 UNION 
select * from #t5 UNION 
select * from #t6 UNION 
select * from #t7 UNION 
select * from #t8 UNION 
select * from #t9 UNION 
select * from #t10 UNION 
select * from #t11 UNION 
select * from #t12;]]>
			</Code>
		</Example>
		
	</Examples>	 
	

	
</ApiConfig>