2020-04-03 07:34:58 +00:00
|
|
|
import authEndPoint from 'widget/api/endPoints';
|
|
|
|
import { API } from 'widget/helpers/axios';
|
|
|
|
|
|
|
|
export default {
|
2020-04-10 11:12:37 +00:00
|
|
|
update: ({ messageId, email, values }) => {
|
|
|
|
const urlData = authEndPoint.updateMessage(messageId);
|
2020-04-03 07:34:58 +00:00
|
|
|
return API.patch(urlData.url, {
|
|
|
|
contact: { email },
|
2020-04-10 11:12:37 +00:00
|
|
|
message: { submitted_values: values },
|
2020-04-03 07:34:58 +00:00
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|