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