in source/static-assets/js/main.js [244:267]
$('.user-endpoint-input').each(function (address, index) {
var endpointID = ''
if ($(this).data('endpointid')) {
// Existing Endpoint, so update
endpointID = $(this).data('endpointid')
var endpointInput = this
endpoints.forEach(function (endpoint, index) {
if (endpointID === endpoint.Id) {
endpoint.Address = $(endpointInput).val()
}
})
} else if ($(this).val()) {
// New Endpoint, so create new endpoint
var tmpAddress = ''
tmpAddress = $(this).val()
endpoints.push({
Address: tmpAddress,
ChannelType: $(this).data('attribute'),
User: {
UserAttributes: {}
}
})
}
})