TP-42732|Kunal| added campaign in /accept api (#583)
* TP-42732|Kunal|added campaign id in accept api * TP-42732|Kunal|added campaign id in accept api * TP-42732|Kunal|added campaign id in accept api
This commit is contained in:
@@ -242,7 +242,8 @@ const HrDashBoard = () => {
|
||||
type: 'error',
|
||||
autoClose: 6500
|
||||
});
|
||||
}
|
||||
},
|
||||
campaignId
|
||||
)
|
||||
);
|
||||
dispatch(setShowMainScreen(true));
|
||||
|
||||
@@ -17,10 +17,11 @@ export const setCallStatus = (
|
||||
accountNumber: string,
|
||||
crtObjectId: string,
|
||||
callAcceptedTime: number,
|
||||
errorCallback: (e: any) => void
|
||||
errorCallback: (e: any) => void,
|
||||
campaignId: string | null
|
||||
) => {
|
||||
const url = getApiUrl(ApiKeys.HUMAN_REMINDER_ACCEPT);
|
||||
const data = { connectedPhoneNumber, accountNumber, crtObjectId, callAcceptedTime };
|
||||
const data = { connectedPhoneNumber, accountNumber, crtObjectId, callAcceptedTime, campaignId };
|
||||
addClickstreamEvent(HRC_CLICKSTREAM[HRC_EVENTS.HRC_ACCEPT_CALL_MADE], {
|
||||
connectedPhoneNumber,
|
||||
accountNumber,
|
||||
@@ -41,8 +42,12 @@ export const setCallStatus = (
|
||||
response: response.data.body,
|
||||
currentCallStatus: ExtensionHandler.currentCallStatus()
|
||||
});
|
||||
dispatch(getCustomerImage(response.data.body?.customerDetails?.customerReferenceId,
|
||||
response.data.body?.loanDetails?.loanAccountNumber));
|
||||
dispatch(
|
||||
getCustomerImage(
|
||||
response.data.body?.customerDetails?.customerReferenceId,
|
||||
response.data.body?.loanDetails?.loanAccountNumber
|
||||
)
|
||||
);
|
||||
dispatch(setHumanReminderCustomerDetails({ humanReminderResponse: response.data.body }));
|
||||
dispatch(setHumanReminderCustomerDetailsLoading(false));
|
||||
dispatch(setReminderRefId(response.data.body?.reminderRefId));
|
||||
@@ -111,8 +116,12 @@ export const getCustomerDetails = (humanReferenceId: string) => {
|
||||
.then(response => {
|
||||
if (response?.data?.body) {
|
||||
dispatch(setHumanReminderCustomerDetailsLoading(false));
|
||||
dispatch(getCustomerImage(response.data.body.customerDetails.customerReferenceId,
|
||||
response.data.body.loanDetails.loanAccountNumber));
|
||||
dispatch(
|
||||
getCustomerImage(
|
||||
response.data.body.customerDetails.customerReferenceId,
|
||||
response.data.body.loanDetails.loanAccountNumber
|
||||
)
|
||||
);
|
||||
dispatch(setHumanReminderCustomerDetails({ humanReminderResponse: response.data.body }));
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user