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
@@ -531,3 +531,70 @@ mt3s.smart_links.taxonomies.unpublished_choice="%name% (no longer published)"
|
||||
mt3s.smart_links.taxonomies.free_values.tooltip="The allowed values of this parameter for the links using this taxonomy. One value per line, optionally value;Label for a display label."
|
||||
mt3s.smart_links.taxonomies.free_values.placeholder="one value per line"
|
||||
mt3s.smart_links.taxonomies.no_values.tooltip="No values are configured for this parameter in Smart Links Settings yet: ask the admin to configure some."
|
||||
|
||||
; Call Scripts (Components > Call Scripts). Translation base mt3s.call_script.
|
||||
mt3s.call_script.menu.index="Call Scripts"
|
||||
mt3s.call_script.category.type="Call Script"
|
||||
mt3s.call_script.header.index="Call Scripts"
|
||||
mt3s.call_script.header.new="New Call Script"
|
||||
mt3s.call_script.header.edit="Call Script - %name%"
|
||||
mt3s.call_script.error.notfound="No call script with the ID %id% was found."
|
||||
mt3s.call_script.form.confirmdelete="Delete the call script %name%? Its outcomes are deleted too."
|
||||
mt3s.call_script.form.confirmbatchdelete="Delete the selected call scripts? Their outcomes are deleted too."
|
||||
mt3s.call_script.onboarding.heading="No call scripts yet"
|
||||
mt3s.call_script.onboarding.subheading="Call scripts guide your agents through a call and record what happens."
|
||||
mt3s.call_script.onboarding.copy="Use the New button above to add a call script. Define its script, its outcomes, its calling window and its retry policy."
|
||||
mt3s.call_script.field.name="Name"
|
||||
mt3s.call_script.field.description="Description"
|
||||
mt3s.call_script.field.script="Script"
|
||||
mt3s.call_script.field.script.help="HTML is allowed. Use dynamic tokens like {contact.first_name}; they are kept as typed."
|
||||
mt3s.call_script.field.owner="Owner"
|
||||
mt3s.call_script.field.category="Category"
|
||||
mt3s.call_script.field.start="Start date and time"
|
||||
mt3s.call_script.field.end="End date and time"
|
||||
mt3s.call_script.field.calling_days="Calling days"
|
||||
mt3s.call_script.field.calling_from="From"
|
||||
mt3s.call_script.field.calling_to="To"
|
||||
mt3s.call_script.field.calling_timezone_mode="Timezone mode"
|
||||
mt3s.call_script.field.calling_timezone="Fixed timezone"
|
||||
mt3s.call_script.field.retry_max_attempts="Maximum attempts"
|
||||
mt3s.call_script.field.retry_delay_minutes="Delay between attempts (minutes)"
|
||||
mt3s.call_script.field.retry_backoff="Backoff"
|
||||
mt3s.call_script.list.published="Published"
|
||||
mt3s.call_script.list.unpublished="Unpublished"
|
||||
mt3s.call_script.list.owner="Owner"
|
||||
mt3s.call_script.list.category="Category"
|
||||
mt3s.call_script.list.status="Status"
|
||||
mt3s.call_script.list.modified="Modified"
|
||||
mt3s.call_script.day.mon="Monday"
|
||||
mt3s.call_script.day.tue="Tuesday"
|
||||
mt3s.call_script.day.wed="Wednesday"
|
||||
mt3s.call_script.day.thu="Thursday"
|
||||
mt3s.call_script.day.fri="Friday"
|
||||
mt3s.call_script.day.sat="Saturday"
|
||||
mt3s.call_script.day.sun="Sunday"
|
||||
mt3s.call_script.timezone_mode.contact="Contact's timezone"
|
||||
mt3s.call_script.timezone_mode.fixed="Fixed timezone"
|
||||
mt3s.call_script.retry_backoff.none="No backoff (constant delay)"
|
||||
mt3s.call_script.retry_backoff.linear="Linear (delay multiplied by the attempt number)"
|
||||
mt3s.call_script.retry_backoff.exponential="Exponential (delay doubled at every attempt)"
|
||||
mt3s.call_script.outcome.list="Outcomes"
|
||||
mt3s.call_script.outcome.empty="No outcomes yet."
|
||||
mt3s.call_script.outcome.add="Add outcome"
|
||||
mt3s.call_script.outcome.remove="Remove this outcome"
|
||||
mt3s.call_script.outcome.drag="Drag to reorder"
|
||||
mt3s.call_script.outcome.field.label="Outcome"
|
||||
mt3s.call_script.outcome.field.type="Data type"
|
||||
mt3s.call_script.outcome.options="Options"
|
||||
mt3s.call_script.outcome.options.empty="No options yet."
|
||||
mt3s.call_script.outcome.options.add="Add option"
|
||||
mt3s.call_script.outcome.options.remove="Remove this option"
|
||||
mt3s.call_script.outcome_type.checkbox="Checkboxes"
|
||||
mt3s.call_script.outcome_type.radio="Radio buttons"
|
||||
mt3s.call_script.outcome_type.free_text="Free text"
|
||||
mt3s.call_script.outcome_type.dropdown="Drop-down"
|
||||
mt3s.call_script.outcome_option.field.value="Value"
|
||||
mt3s.call_script.outcome_option.field.label="Label"
|
||||
|
||||
mt3s.call_script.section.calling_window="Calling window"
|
||||
mt3s.call_script.section.retry_policy="Retry policy"
|
||||
Reference in new issue
Block a user