diff --git a/app/email_templates/app_defaults.php b/app/email_templates/app_defaults.php index 5524795196..e80c462985 100644 --- a/app/email_templates/app_defaults.php +++ b/app/email_templates/app_defaults.php @@ -38,6 +38,25 @@ //build the array $x = 0; + $array['email_templates'][$x]['email_template_uuid'] = '5256e0aa-10a3-41a9-a7d9-47240823a186'; + $array['email_templates'][$x]['template_language'] = 'de-at'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Sprachnachricht von ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] = "Neue Sprachnachricht
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "Nebenstelle \${voicemail_name_formatted}
\n"; + $array['email_templates'][$x]['template_body'] .= "Anrufer \${caller_id_number}
\n"; + $array['email_templates'][$x]['template_body'] .= "Lä nge \${message_duration}
\n"; + $array['email_templates'][$x]['template_body'] .= "Nachricht \${message}
\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; + $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; $array['email_templates'][$x]['email_template_uuid'] = '861e6e04-92fe-4bfb-a983-f29b3a5c07cf'; $array['email_templates'][$x]['template_language'] = 'de-at'; $array['email_templates'][$x]['template_category'] = 'voicemail'; @@ -49,6 +68,27 @@ $array['email_templates'][$x]['template_body'] .= "Anrufer \${caller_id_number}\n"; $array['email_templates'][$x]['template_body'] .= "Lä nge \${message_duration}\n"; $array['email_templates'][$x]['template_body'] .= "Nachricht \${message}\n"; + $array['email_templates'][$x]['template_type'] = 'text'; + $array['email_templates'][$x]['template_enabled'] = 'false'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = 'cb0045f2-6ff1-4ed8-a030-6cec6c65b632'; + $array['email_templates'][$x]['template_language'] = 'de-de'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Sprachnachricht von ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] = "Neue Sprachnachricht
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "Nebenstelle \${voicemail_name_formatted}
\n"; + $array['email_templates'][$x]['template_body'] .= "Anrufer \${caller_id_number}
\n"; + $array['email_templates'][$x]['template_body'] .= "Lä nge \${message_duration}
\n"; + $array['email_templates'][$x]['template_body'] .= "Nachricht \${message}
\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; @@ -63,6 +103,27 @@ $array['email_templates'][$x]['template_body'] .= "Anrufer \${caller_id_number}\n"; $array['email_templates'][$x]['template_body'] .= "Lä nge \${message_duration}\n"; $array['email_templates'][$x]['template_body'] .= "Nachricht \${message}\n"; + $array['email_templates'][$x]['template_type'] = 'text'; + $array['email_templates'][$x]['template_enabled'] = 'false'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = '62d1e7ef-c423-4ac6-be9e-c0e2adbbb60d'; + $array['email_templates'][$x]['template_language'] = 'en-gb'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Voicemail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "From \${caller_id_name} \${caller_id_number}
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "To \${voicemail_name_formatted}
\n"; + $array['email_templates'][$x]['template_body'] .= "Received \${message_date}
\n"; + $array['email_templates'][$x]['template_body'] .= "Length \${message_duration}
\n"; + $array['email_templates'][$x]['template_body'] .= "Message \${message}
\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; @@ -70,13 +131,37 @@ $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'default'; - $array['email_templates'][$x]['template_subject'] = 'Voice Mail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; - $array['email_templates'][$x]['template_body'] = "Voicemail \${caller_id_name} <\${caller_id_number}>\n"; + $array['email_templates'][$x]['template_subject'] = 'Voicemail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] = "Voicemail from \${caller_id_name} <\${caller_id_number}>\n"; $array['email_templates'][$x]['template_body'] .= "\n"; $array['email_templates'][$x]['template_body'] .= "To \${voicemail_name_formatted}\n"; $array['email_templates'][$x]['template_body'] .= "Received \${message_date}\n"; $array['email_templates'][$x]['template_body'] .= "Length \${message_duration}\n"; $array['email_templates'][$x]['template_body'] .= "Message \${message}\n"; + $array['email_templates'][$x]['template_type'] = 'text'; + $array['email_templates'][$x]['template_enabled'] = 'false'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = '5d73fb7f-c48a-4752-b5e9-bfe94b4b02d6'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; + $array['email_templates'][$x]['template_subcategory'] = 'transcription'; + $array['email_templates'][$x]['template_subject'] = 'Voicemail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "Voicemail from \${caller_id_name} \${caller_id_number}
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "To \${voicemail_name_formatted}
\n"; + $array['email_templates'][$x]['template_body'] .= "Received \${message_date}
\n"; + $array['email_templates'][$x]['template_body'] .= "Length \${message_duration}
\n"; + $array['email_templates'][$x]['template_body'] .= "Message \${message}
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "Transcription
\n"; + $array['email_templates'][$x]['template_body'] .= "\${message_text}\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; @@ -84,8 +169,8 @@ $array['email_templates'][$x]['template_language'] = 'en-gb'; $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'transcription'; - $array['email_templates'][$x]['template_subject'] = 'Voice Mail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; - $array['email_templates'][$x]['template_body'] = "Voicemail \${caller_id_name} <\${caller_id_number}>\n"; + $array['email_templates'][$x]['template_subject'] = 'Voicemail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] = "Voicemail from \${caller_id_name} <\${caller_id_number}>\n"; $array['email_templates'][$x]['template_body'] .= "\n"; $array['email_templates'][$x]['template_body'] .= "To \${voicemail_name_formatted}\n"; $array['email_templates'][$x]['template_body'] .= "Received \${message_date}\n"; @@ -94,6 +179,27 @@ $array['email_templates'][$x]['template_body'] .= "\n"; $array['email_templates'][$x]['template_body'] .= "Transcription\n"; $array['email_templates'][$x]['template_body'] .= "\${message_text}\n"; + $array['email_templates'][$x]['template_type'] = 'text'; + $array['email_templates'][$x]['template_enabled'] = 'false'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = 'fbd0c8ea-6adb-4f8b-92cf-00e9087e3568'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Voicemail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "Voicemail from \${caller_id_name} \${caller_id_number}
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "To \${voicemail_name_formatted}
\n"; + $array['email_templates'][$x]['template_body'] .= "Received \${message_date}
\n"; + $array['email_templates'][$x]['template_body'] .= "Length \${message_duration}
\n"; + $array['email_templates'][$x]['template_body'] .= "Message \${message}
\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; @@ -101,13 +207,37 @@ $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'default'; - $array['email_templates'][$x]['template_subject'] = 'Voice Mail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; - $array['email_templates'][$x]['template_body'] = "Voicemail \${caller_id_name} <\${caller_id_number}>\n"; + $array['email_templates'][$x]['template_subject'] = 'Voicemail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] = "Voicemail from \${caller_id_name} <\${caller_id_number}>\n"; $array['email_templates'][$x]['template_body'] .= "\n"; $array['email_templates'][$x]['template_body'] .= "To \${voicemail_name_formatted}\n"; $array['email_templates'][$x]['template_body'] .= "Received \${message_date}\n"; $array['email_templates'][$x]['template_body'] .= "Length \${message_duration}\n"; $array['email_templates'][$x]['template_body'] .= "Message \${message}\n"; + $array['email_templates'][$x]['template_type'] = 'text'; + $array['email_templates'][$x]['template_enabled'] = 'false'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = '233135c9-7e3e-48d6-b6ad-ba1a383c0ac4'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'voicemail'; + $array['email_templates'][$x]['template_subcategory'] = 'transcription'; + $array['email_templates'][$x]['template_subject'] = 'Voicemail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "Voicemail from \${caller_id_name} \${caller_id_number}
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "To \${voicemail_name_formatted}
\n"; + $array['email_templates'][$x]['template_body'] .= "Received \${message_date}
\n"; + $array['email_templates'][$x]['template_body'] .= "Length \${message_duration}
\n"; + $array['email_templates'][$x]['template_body'] .= "Message \${message}
\n"; + $array['email_templates'][$x]['template_body'] .= "
\n"; + $array['email_templates'][$x]['template_body'] .= "Transcription
\n"; + $array['email_templates'][$x]['template_body'] .= "\${message_text}\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; @@ -115,8 +245,8 @@ $array['email_templates'][$x]['template_language'] = 'en-us'; $array['email_templates'][$x]['template_category'] = 'voicemail'; $array['email_templates'][$x]['template_subcategory'] = 'transcription'; - $array['email_templates'][$x]['template_subject'] = 'Voice Mail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; - $array['email_templates'][$x]['template_body'] = "Voicemail \${caller_id_name} <\${caller_id_number}>\n"; + $array['email_templates'][$x]['template_subject'] = 'Voicemail from ${caller_id_name} <${caller_id_number}> ${message_duration}'; + $array['email_templates'][$x]['template_body'] = "Voicemail from \${caller_id_name} <\${caller_id_number}>\n"; $array['email_templates'][$x]['template_body'] .= "\n"; $array['email_templates'][$x]['template_body'] .= "To \${voicemail_name_formatted}\n"; $array['email_templates'][$x]['template_body'] .= "Received \${message_date}\n"; @@ -125,6 +255,22 @@ $array['email_templates'][$x]['template_body'] .= "\n"; $array['email_templates'][$x]['template_body'] .= "Transcription\n"; $array['email_templates'][$x]['template_body'] .= "\${message_text}\n"; + $array['email_templates'][$x]['template_type'] = 'text'; + $array['email_templates'][$x]['template_enabled'] = 'false'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = '133860ce-175f-4a6f-bfa3-ef7322e80b98'; + $array['email_templates'][$x]['template_language'] = 'en-us'; + $array['email_templates'][$x]['template_category'] = 'missed'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Missed Call from ${caller_id_name} <${caller_id_number}>'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] = "Missed Call from \${caller_id_name} <\${caller_id_number}> to \${sip_to_user} ext \${dialed_user}\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; @@ -134,6 +280,22 @@ $array['email_templates'][$x]['template_subcategory'] = 'default'; $array['email_templates'][$x]['template_subject'] = 'Missed Call from ${caller_id_name} <${caller_id_number}>'; $array['email_templates'][$x]['template_body'] = "Missed Call from \${caller_id_name} <\${caller_id_number}> to \${sip_to_user} ext \${dialed_user}\n"; + $array['email_templates'][$x]['template_type'] = 'text'; + $array['email_templates'][$x]['template_enabled'] = 'false'; + $array['email_templates'][$x]['template_description'] = ''; + $x++; + + $array['email_templates'][$x]['email_template_uuid'] = 'eafaf4fe-b21d-47a0-ab2c-5943cb8cb5be'; + $array['email_templates'][$x]['template_language'] = 'en-gb'; + $array['email_templates'][$x]['template_category'] = 'missed'; + $array['email_templates'][$x]['template_subcategory'] = 'default'; + $array['email_templates'][$x]['template_subject'] = 'Missed Call from ${caller_id_name} <${caller_id_number}>'; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "Missed Call from \${caller_id_name} <\${caller_id_number}> to \${sip_to_user} ext \${dialed_user}\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_body'] .= "\n"; + $array['email_templates'][$x]['template_type'] = 'html'; $array['email_templates'][$x]['template_enabled'] = 'true'; $array['email_templates'][$x]['template_description'] = ''; $x++; @@ -142,9 +304,11 @@ $array['email_templates'][$x]['template_category'] = 'missed'; $array['email_templates'][$x]['template_subcategory'] = 'default'; $array['email_templates'][$x]['template_subject'] = 'Missed Call from ${caller_id_name} <${caller_id_number}>'; - $array['email_templates'][$x]['template_body'] = "Missed Call from \${caller_id_name} <\${caller_id_number}> to \${sip_to_user} ext \${dialed_user}\n"; - $array['email_templates'][$x]['template_enabled'] = 'true'; + $array['email_templates'][$x]['template_body'] .= "Missed Call from \${caller_id_name} <\${caller_id_number}> to \${sip_to_user} ext \${dialed_user}\n"; + $array['email_templates'][$x]['template_type'] = 'text'; + $array['email_templates'][$x]['template_enabled'] = 'false'; $array['email_templates'][$x]['template_description'] = ''; + $x++; //add the temporary permission $p = new permissions;