Got you
My expectations was to be able to issue preview request just to take a
look what notification will be sent, but still stay synced with default
system template.
In the other words to take a look without changing anything.
Regarding absent attachments during migration.
here is my test request:
https://gist.github.com/anonymous/fe8c09d90dd945d4536a
here are logs:
https://gist.github.com/anonymous/081e5ef5ea82e5f05fe2
Here is the doc without attachments appeared:
{
"_id": "notification.low_balance",
"_rev": "1-40048c5eb6a44579dde458926b886931",
"macros": {
"
account.name": {
"i18n_label": "account_name",
"friendly_name": "Account Name",
"description": "Name of the account"
},
"account.realm": {
"i18n_label": "account_realm",
"friendly_name": "Account Realm",
"description": "SIP Realm of the account"
},
"
account.id": {
"i18n_label": "account_id",
"friendly_name": "Account ID",
"description": "Account ID"
},
"account.language": {
"i18n_label": "account_language",
"friendly_name": "Account Language",
"description": "Account Language"
},
"account.timezone": {
"i18n_label": "account_timezone",
"friendly_name": "Account Timezone",
"description": "Account Timezone"
}
},
"subject": "Account {{
account.name}} is running out of credit",
"category": "account",
"friendly_name": "Low Balance",
"to": {
"type": "admins"
},
"from": "
no_r...@kz527.onnet.su",
"cc": {
"type": "specified",
"email_addresses": [
]
},
"bcc": {
"type": "specified",
"email_addresses": [
]
},
"pvt_type": "notification",
"pvt_vsn": "1",
"pvt_account_id": "a33e2943eef14c904ff0b65b44ee77fc",
"pvt_account_db": "account%2Fa3%2F3e%2F2943eef14c904ff0b65b44ee77fc",
"pvt_created": 63620453039,
"pvt_modified": 63620453039,
"pvt_request_id": "a97b84aa92aacbbec42c1c8d04457aa5",
"pvt_auth_user_id": "8b81351bc3afaf4c34d67eb799438498",
"pvt_auth_account_id": "b35483a7e18684f4cd5f09eae01a4c0c",
"pvt_is_authenticated": true