in source/static-assets/js/main.js [320:334]
$('.publication_' + publication.id).each(function (attribute, index) {
for (const property in tmpAttributes) {
if ($(this).attr('name') === property) {
if ($(this).prop('checked')) {
tmpAttributes[property].push($(this).val())
// If the user opted in to a publication and they were unsubscribed, then set their OptOut flag back to All
var selectedChannel = $(this).val()
endpoints.forEach(function (endpoint, index) {
if(endpoint.ChannelType === selectedChannel) endpoint.OptOut = 'NONE'
})
}
}
}
})