Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function Transport(optns) {
//obtain env defaults
var defaults = ({
username: getString('SMS_INFOBIP_USERNAME'),
password: getString('SMS_INFOBIP_PASSWORD')
});
//prepare extended options
var options = _.merge({}, defaults, optns);
//default options
this.options = {
baseUrl: 'https://api.infobip.com',
username: undefined,
password: undefined,
balanceUrl: '/account/1/balance',
logsUrl: '/sms/1/logs',
deliveryReportUrl: '/sms/1/reports',
sendSingleUrl: '/sms/1/text/single',
sendMultiUrl: '/sms/1/text/multi',
sendFeaturedUrl: '/sms/1/text/advanced',
function Transport(optns) {
//obtain env defaults
var defaults = ({
username: getString('SMS_INFOBIP_USERNAME'),
password: getString('SMS_INFOBIP_PASSWORD')
});
//prepare extended options
var options = _.merge({}, defaults, optns);
//default options
this.options = {
baseUrl: 'https://api.infobip.com',
username: undefined,
password: undefined,
balanceUrl: '/account/1/balance',
logsUrl: '/sms/1/logs',
deliveryReportUrl: '/sms/1/reports',
sendSingleUrl: '/sms/1/text/single',
sendMultiUrl: '/sms/1/text/multi',