|
|
|
@ -65,10 +65,15 @@ for (let deliveryModeIndex in config.deliveryModes) {
|
|
|
|
|
const deliveryModeData = config.deliveryModes[ deliveryModeIndex ]
|
|
|
|
|
|
|
|
|
|
let msgId = (
|
|
|
|
|
await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!deliveryModeData.preset ? 'preset' : 'advanced'), Object.assign( !!deliveryModeData.preset
|
|
|
|
|
? { ...deliveryModeData.params } // backward compatibility
|
|
|
|
|
: { preset: deliveryModeData.preset }
|
|
|
|
|
, { payload: origText }))
|
|
|
|
|
await axios.post(
|
|
|
|
|
new URL(config.pager.url).origin + '/api/message/' + (!!deliveryModeData.preset ? 'preset' : 'advanced'),
|
|
|
|
|
Object.assign( !!deliveryModeData.preset
|
|
|
|
|
? { preset: deliveryModeData.preset } // backward compatibility
|
|
|
|
|
: { ...deliveryModeData.params }
|
|
|
|
|
, {
|
|
|
|
|
payload: origText
|
|
|
|
|
})
|
|
|
|
|
)
|
|
|
|
|
).data
|
|
|
|
|
assoc[msgId] = {
|
|
|
|
|
date: new Date(),
|
|
|
|
|