Skip to end of metadata
Go to start of metadata
Notificate Agent
Notificate Agent
Relative URL: Integra/resources/api/Notificate
Method: POST
content-type:application/x-www-form-urlencoded; charset=UTF-8
Params: agent (agent name)
queue (campaign name)
message (the message to be displayed to an agent)
icon (fontaswome icon example: fa fa-exclamation-triangle)
when (always-> event if not connected leave the notification to be displayed on next login or online only notify if connected)
Result: OK -> if agent notificated
ERROR -> if agent not notificated
Generate Report
Generate Report
Relative URL: Integra/resources/BI/generatereport
Method: POST
content-type:application/x-www-form-urlencoded; charset=UTF-8
Params: report (JSON Object)
html (0 or 1)
excel (0 or 1 or 2 for csv)
pdf (0 or 1)
doc (0 or 1 or 2 for txt)
Result: GUID of the generated report
Empty on Error
Json Object
{
"name":"Breaks Totales", //Name of the report
"file":"TiemposPausaBreakePorAgente.jrxml", // jrxml file
"description":"Breaks Totales", //Description
"dsn":"Repo", // Data source name
"parameters":"INITIAL_DATE=Timestamp=2015-11-03 00:00:00;FINAL_DATE=Timestamp=2015-11-03 3:59:59;REPORT_LOCALE=Locale=es;AGENT=Agent='Admin',,'Agente1','Agente10','Agente11',",
//Report parameters type and value for generation.
"grouped":"Agentes", //group
"language":"es", //language
"license":"CCS"
}
Report URL
http://Server/tmp/69d1f895-7f5f-42d6-9d84-dd7dad559304.pdf
Or the extension you generated xlsx, docx, pdf, csv, txt, html
Close Form
From Cross Origin iFrame
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/porthole/1.0.0/porthole.js"></script>
<script type="text/javascript">
//for example on click when you want to close a tab
function CloseTab () {
var windowProxy;
windowProxy = new Porthole.WindowProxy(window.location.protocol + window.location.hostname);
windowProxy.post({'action': 'close'});
}
</script>
WebCallBack
WebCallBack
To make the WebCallBack possible to integrate with any web of any client, it was designed with a GET over HTTP, in this way anyone can invoke it.
URL: http://IP:PORT/Integra/resources/Utils/CallBack/phone={phone}&tecnology={tecnology}&context={context}&destination={destination}&priority={priority}
Method: GET
content-type:application/x-www-form-urlencoded; charset=UTF-8
Parameters:
Change the values between {} for the value.
phone: client phone
tecnology: dial string (example: DAHDI/G1/ or SIP/CARRIER/)
context: context once the call is answered by the client
destination: exten on the dialplan (usually a DID of a campaign)
priority: step on the dialplan workflow
Result: 1 (Async)
External Workflow call
External Workflow call
Relative URL: Integra/resources/admin/CallWorkflow
Method: POST
content-type:application/x-www-form-urlencoded; charset=UTF-8
Params: context (incoming context of the flow)
extension (incoming extension of the flow)
jsonparams (JSON Object)
Result: OK
jsonparams object
"{"Dato1":"xxxxx","Dato2":"yyyyy"}"