fetch("site/ajax/save-client?id=".concat(e), {
method: "POST",
headers: {
'Accept': 'application/json',
'Content-type': 'application/json'
},
body: JSON.stringify({
'ClientsForm[id]': .concat(e),
'_csrf-backend': 'ZwaTKfTQFmh0leT97_w4u7aRo3qSCRwm1mbAsv7kNCg4S9xtjJQiEEbP1JqklHfe16f7TfVQXWGEApj7sN1nXw==',
'ClientsForm[id]': '415',
'ClientsForm[added]': '2021-09-23',
'ClientsForm[stage]': '1',
'ClientsForm[client_lang]': '0',
'ClientsForm[client_lang]': '1',
'ClientsForm[service]': '0',
'ClientsForm[source]': '1',
'ClientsForm[name]': 'Test React',
'ClientsForm[phone]': '+7 (333) 333-33-33',
'ClientsForm[email]': 'test@test.ru',
'ClientsForm[address]': 'Förskolan Klingsta, Prästhusvägen 32, SE-853 58 Sundsvall',
'ClientsForm[helps]': '1',
'ClientsForm[schedule]': '2',
'ClientsForm[start]': '0',
'ClientsForm[start_date]': '',
'ClientsForm[tags]': '',
'ClientsForm[status]': '1',
'ClientsForm[unconverted_reason]': '1',
'ClientsForm[rate]': '',
'ClientsForm[sec_parent_name]': '',
'ClientsForm[sec_parent_phone]': '',
'ClientsForm[sec_parent_email]': '',
'ClientsForm[form_comment]': 'test',
'ClientsForm[notes]': '',
'ClientsForm[animals_comment]': '',
}),
}