<?xml version="1.0"?>
<Crm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Country="IT" Name="MyCrm" Version="8" SupportsEmojis="false">
<Number Prefix="Off" MaxLength="10" />
<Connection MaxConcurrentRequests="8" />
<Scenarios>
<Scenario Id="" Type="REST" EntityId="1" EntityOrder="2">
<Request SkipIf="[IIf([FoundRecordCount]>0,True,False)]" Url="[Url]?opt=people&num=[Number]&type=[CallDirection]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Rules>
<Rule Type="Any">id</Rule>
</Rules>
<Variables>
<Variable Name="id" Path="id">
<Filter />
</Variable>
<Variable Name="FirstName" Path="nome">
<Filter />
</Variable>
<Variable Name="LastName" Path="cognome">
<Filter />
</Variable>
<Variable Name="CompanyName" Path="azienda">
<Filter />
</Variable>
<Variable Name="Email" Path="email">
<Filter />
</Variable>
<Variable Name="PhoneBusiness" Path="telefono">
<Filter />
</Variable>
<Variable Name="PhoneMobile" Path="cellulare">
<Filter />
</Variable>
</Variables>
<Outputs Next="" AllowEmpty="true">
<Output Type="id" Passes="0" Value="[id]" />
<Output Type="FirstName" Passes="0" Value="[FirstName]" />
<Output Type="LastName" Passes="0" Value="[LastName]" />
<Output Type="CompanyName" Passes="0" Value="[CompanyName]" />
<Output Type="Email" Passes="0" Value="[Email]" />
<Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />
<Output Type="PhoneMobile" Passes="0" Value="[PhoneMobile]" />
<Output Type="ContactUrl" Passes="0" Value="https://crm.mysite.com/people/modifica.html?id=[id]" />
</Outputs>
</Scenario>
<Scenario Id="" Type="REST" EntityId="2" EntityOrder="1">
<Request SkipIf="[IIf([FoundRecordCount]>0,True,False)]" Url="[Url]?opt=factory&num=[Number]&type=[CallDirection]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Rules>
<Rule Type="Any">id</Rule>
</Rules>
<Variables>
<Variable Name="accountID" Path="id">
<Filter />
</Variable>
<Variable Name="Azienda" Path="nome">
<Filter />
</Variable>
<Variable Name="Citta" Path="citta">
<Filter />
</Variable>
<Variable Name="PhoneBusiness" Path="telefono">
<Filter />
</Variable>
</Variables>
<Outputs Next="" AllowEmpty="true">
<Output Type="accountID" Passes="0" Value="[accountID]" />
<Output Type="Nome" Passes="0" Value="[Azienda]" />
<Output Type="Citta" Passes="0" Value="[Citta]" />
<Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />
<Output Type="ContactUrl" Passes="0" Value="https://crm.mysite.com/factory/modifica.html?id=[id]" />
</Outputs>
</Scenario>
<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[ReportCallEnabled]!=True||[CallType]!=Inbound" Url="[Url]?opt=Inbound&num=[Number]" MessagePasses="0" Message="{ "id": "[id]", "telefono": "[Number]", "cellulare": "[Number]", "testo": "[Subject]", "datatime":"[DateTime]", "start":"[CallStartTimeLocal]", "end":"[CallEndTimeLocal]"}" RequestContentType="application/json" RequestEncoding="UrlEncoded" RequestType="Post" ResponseType="Json">
<PostValues Key="">
<Value Key="id" Passes="1" Type="String">[id]</Value>
<Value Key="tipo" Passes="1" Type="String">[CallType]</Value>
<Value Key="durata" Passes="1" Type="String">[Duration]</Value>
<Value Key="telefono" Passes="1" Type="String">[Number]</Value>
<Value Key="incarico" Passes="1" Type="String">[Agent]</Value>
<Value Key="data" Passes="1" Type="String">[DateTime]</Value>
<Value Key="start" Passes="1" Type="String">[CallStartTimeLocal]</Value>
<Value Key="end" Passes="1" Type="String">[CallEndTimeLocal]</Value>
</PostValues>
</Request>
<Rules>
<Rule Type="Any" Ethalon="">id</Rule>
</Rules>
<Variables>
<Variable Name="id" Path="id">
<Filter />
</Variable>
</Variables>
<Outputs Next="ReportCallMissed" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCallMissed" Type="REST">
<Request SkipIf="[ReportCallEnabled]!=True||[CallType]!=Missed" Url="[Url]?opt=Missed&num=[Number]" MessagePasses="0" Message="{ "id": "[EntityID]", "telefono": "[Number]", "cellulare": "[Number]", "testo": "[MissedCallText]", "datatime":"[DateTime]" }" RequestContentType="application/json" RequestEncoding="UrlEncoded" RequestType="Post" ResponseType="Json">
<PostValues Key="">
<Value Key="id" Passes="1" Type="String">[id]</Value>
<Value Key="tipo" Passes="1" Type="String">[CallType]</Value>
<Value Key="durata" Passes="1" Type="String">[Duration]</Value>
<Value Key="telefono" Passes="1" Type="String">[Number]</Value>
<Value Key="incarico" Passes="1" Type="String">[Agent]</Value>
<Value Key="data" Passes="1" Type="String">[DateTime]</Value>
<Value Key="start" Passes="1" Type="String">[CallStartTimeLocal]</Value>
<Value Key="end" Passes="1" Type="String">[CallEndTimeLocal]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCallOutbound" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCallOutbound" Type="REST">
<Request SkipIf="[ReportCallEnabled]!=True||[CallType]!=Outbound" Url="[Url]?opt=Outbound&num=[Number]" MessagePasses="0" Message="{ "id": "[id]", "telefono": "[Number]", "cellulare": "[Number]", "testo": "[OutboundCallText]", "datatime":"[DateTime]", "start":"[CallStartTimeLocal]", "end":"[CallEndTimeLocal]"}" RequestContentType="application/json" RequestEncoding="UrlEncoded" RequestType="Post" ResponseType="Json">
<PostValues Key="">
<Value Key="id" Passes="1" Type="String">[id]</Value>
<Value Key="tipo" Passes="1" Type="String">[CallType]</Value>
<Value Key="durata" Passes="1" Type="String">[Duration]</Value>
<Value Key="telefono" Passes="1" Type="String">[Number]</Value>
<Value Key="incarico" Passes="1" Type="String">[Agent]</Value>
<Value Key="data" Passes="1" Type="String">[DateTime]</Value>
<Value Key="start" Passes="1" Type="String">[CallStartTimeLocal]</Value>
<Value Key="end" Passes="1" Type="String">[CallEndTimeLocal]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCallNotanswered" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCallNotanswered" Type="REST">
<Request SkipIf="[ReportCallEnabled]!=True||[CallType]!=Notanswered" Url="[Url]?opt=Notanswered&num=[Number]" MessagePasses="0" Message="{ "id": "[EntityID]", "telefono": "[Number]", "telefono": "[Number]", "testo": "[NotAnsweredOutboundCallText]", "datatime":"[DateTime]", "tipo" : [CallDirection], "durata":[Duration] }" RequestContentType="application/json" RequestEncoding="UrlEncoded" RequestType="Post" ResponseType="Json">
<PostValues Key="">
<Value Key="id" Passes="1" Type="String">[id]</Value>
<Value Key="tipo" Passes="1" Type="String">[CallType]</Value>
<Value Key="durata" Passes="1" Type="String">[Duration]</Value>
<Value Key="telefono" Passes="1" Type="String">[Number]</Value>
<Value Key="incarico" Passes="1" Type="String">[Agent]</Value>
<Value Key="data" Passes="1" Type="String">[DateTime]</Value>
<Value Key="start" Passes="1" Type="String">[CallStartTimeLocal]</Value>
<Value Key="end" Passes="1" Type="String">[CallEndTimeLocal]</Value>
</PostValues>
</Request>
<Variables />
<Outputs AllowEmpty="true" />
</Scenario>
</Scenarios>
</Crm>