Constructor
-
new CustomerManagement(csConfig)
-
Customer Management API
Parameters:
Name Type Description csConfigAvayaDataStoreClient.Config.CsConfiguration
Methods
-
createJourneyElement(body, authorization) → {Object}
-
Create Journey Element
Parameters:
Name Type Description bodyObject authorizationString Authorization Header
Returns:
{ Object }response with JSON Object
-
getCustomerDetails(workrequestId, customerId) → {Object}
-
Get Customer Details from Customer Management via work Request Id or Customer ID
Parameters:
Name Type Description workrequestIdString workrequestId of data object
customerIdString Customer ID
Returns:
{ Object }response with JSON Object
-
getCustomerHistory(workrequestId) → {Object}
-
Get Customer History from Customer Management via work Request Id
Parameters:
Name Type Description workrequestIdString workrequestId of data object
Returns:
{ Object }response with JSON Object
-
getCustomerHistoryOnCustomer(customerId) → {Object}
-
Get Customer History from Customer Management via customer Id
Parameters:
Name Type Description customerIdString customerId of data object
Returns:
{ Object }response with JSON Object
-
getCustomerId(crmId, phone, email, social, platform, accountId, accountType) → {Object}
-
Get Customer Id from Customer Management via email or phone
Parameters:
Name Type Description crmIdString Customer Record ID
phoneString phone of Customer
emailString email of Customer
socialString social media details of Customer
platformString social media platform associated with the social media details of Customer
accountIdString account id
accountTypeString account type
Returns:
{ Object }response with JSON Object
-
getCustomerJourney(workrequestId, topic) → {Object}
-
Get Customer Journey from Customer Management via work Request Id
Parameters:
Name Type Description workrequestIdString workrequestId of data object
topicString topic associated with the customer journey
Returns:
{ Object }response with JSON Object
-
getCustomerJourneyOnCustomer(customerId, topic) → {Object}
-
Get Customer Journey from Customer Management via customer Id
Parameters:
Name Type Description customerIdString customerId of data object
topicString topic associated with the customer journey
Returns:
{ Object }response with JSON Object
-
getCustomerManagementStatus(csConfig) → {String}
-
Get Customer Management Status
Parameters:
Name Type Description csConfigAvayaDataStoreClient.Config.CsConfiguration Returns:
{ String }response with String
-
getCustomerRecord(custId, crmId, phone, email, social, platform, accountId, accountType, summaryDataOnly, authorization) → {Object}
-
Get Customer Record from Customer Management via Customer Id
Parameters:
Name Type Description custIdString Customer ID
crmIdString Customer Record ID
phoneString phone of Customer
emailString email of Customer
socialString social media details of Customer
platformString social media platform associated with the social media details of Customer
accountIdString account id
accountTypeString account type
summaryDataOnlyBoolean When set to true, only a data summary is shown
authorizationString Authorization
Returns:
{ Object }response with JSON Object
-
updateJourneyElement(elementId, body, authorization) → {Object}
-
Update Journey Element
Parameters:
Name Type Description elementIdString Journey Element Id
bodyObject authorizationString Authorization Header
Returns:
{ Object }response with JSON Object