Allows to interact with different communication providers through AMQP.
authToken:twilioAUTH_TOKEN,from:twiliophone number,sid:twilioSID,transportOptions:twiliolibrary optionstype: 'twilio',
API documentation.
constAMQP=require('@microfleet/transport-amqp');constPhone=require('ms-mailer');constphone=newPhone({amqp: {// ms-amqp-transport options},accounts: {twilio_test: {// twilio account options}}});constphoneService=phone.connect();// e.g.constamqp=AMQP.connect();constmessage={account: 'twilio_test',message: 'Hello!'to: '+7 923 555 55 55'};amqp.publishAndWait('phone.message.predefined',message).then(response=>{// provider response});