feat(call-script): add the Call Script component (0.19.0)
A new Mautic component, listed under Components > Call Scripts (/s/call-scripts),
built like the other domains on AbstractStandardFormController/FormModel.
- CallScript (mt3s_call_scripts): name, description, category, owner, status,
the publish window shown as start/end date and time, the HTML script with
dynamic tokens kept as typed (html cleaning mask), the calling window
(weekdays, hours, sentinel in the contact's or a fixed timezone) and the retry
policy (max attempts, delay, backoff: none/linear/exponential)
- CallScriptOutcome (mt3s_call_script_outcomes, ON DELETE CASCADE): label,
data type (checkbox/radio/free text/dropdown), options JSON ({value,label})
and position; nested collections reuse the program-collection JS
- validators: ValidCallingWindow, ValidCallScriptOutcomeOptions, and an atPath
option on EndDateAfterStartDate so its violation lands on publishDown
- config: routes, the Components menu item (parent mautic.core.components),
call_script category type, model alias, call_scripts permissions, version 0.19.0
- migration Version_0_19_0 creates both tables and their FKs immediately
(users/categories SET NULL, outcomes CASCADE), idempotent
- translations en_US/fr_FR, unit tests, readme/AGENTS documentation
This commit is contained in:
1 parent
88256ca345
commit
4fb36eebfc
33 files changed
+2537
-6
No files matched your search
@@ -67,6 +67,19 @@ In short:
|
||||
configure (it stays a normal Mautic page on any other domain), records a hit per click —
|
||||
date, IP, referer, user agent — and never lets a statistics failure block the redirect.
|
||||
|
||||
### Call Scripts
|
||||
|
||||
- **Call Scripts**, in the **Components** menu: the scripts your agents read when they call a
|
||||
contact.
|
||||
- A script is HTML with dynamic tokens like `{contact.first_name}`, kept as typed, and carries a
|
||||
name, a description, a category, an owner, a status and a start and end date and time.
|
||||
- Each script defines its **outcomes** — the list of things the agent records after the call. Each
|
||||
outcome has a data type: checkboxes, radio buttons or a drop-down (with their options), or free
|
||||
text.
|
||||
- A **calling window** (weekdays and hours, read in the contact's timezone or in a fixed one) and a
|
||||
**retry policy** (maximum attempts, delay between attempts, and whether the delay stays
|
||||
constant, grows linearly or doubles) travel with the script.
|
||||
|
||||
## Configuration
|
||||
|
||||
- **Settings > Configuration > Marketing Program Settings**: the general settings — the
|
||||
|
||||
Reference in new issue
Block a user