feat(vtiger-crm): add vtiger crm integration

This commit is contained in:
Rıdvan Akca
2024-01-03 14:25:12 +03:00
parent 953c5a5b5b
commit 57d5f34ac5
10 changed files with 1996 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
const addAuthHeader = ($, requestConfig) => {
const { data } = $.auth;
if (data?.username && data?.accessKey) {
requestConfig.headers['Content-Type'] = 'application/x-www-form-urlencoded';
requestConfig.auth = {
username: data.username,
password: data.accessKey,
};
}
return requestConfig;
};
export default addAuthHeader;