- Source:
Methods
(static) AgentLibrary#leadHistory(leadId, callbackopt)
Get the history for a given lead
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
leadId |
number | The lead id to retrieve history for | ||
callback |
function |
<optional> |
null | Callback function when lead history response received |
- Source:
(static) AgentLibrary#leadInsert(dataObj, callbackopt)
Insert a lead to the given campaign
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
dataObj |
object | agentId, campaignId, and lead info | ||
callback |
function |
<optional> |
null | Callback function when lead history response received |
- Source:
(static) AgentLibrary#leadUpdate(leadId, leadPhone, baggage, callbackopt)
Update lead information
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
leadId |
string | Id for lead to update | ||
leadPhone |
string | Lead phone number | ||
baggage |
object | Object containing lead information | ||
callback |
function |
<optional> |
null | Callback function when lead history response received |
- Source: