TT#55874 Remove hardcoded sound handles filter

Change-Id: I9943a47c90ba9fac8d8327bb8ad7ab616269c38f
changes/11/28311/1
Robert Axelsen 6 years ago
parent 125cdd80e7
commit be8ece395b

@ -635,13 +635,7 @@ export function getSoundHandles(options) {
}
});
getList(options).then((list) => {
// Ngcp-panel only lists three groups ('digits', 'music_on_hold'
// and 'pbx'). Filtering out the rest for that reason, as the
// enpoint has 11 groups total
let soundHandles = list.items.filter((handle) => {
return ['digits', 'music_on_hold', 'pbx'].indexOf(handle.group) > -1;
});
resolve(soundHandles);
resolve(list.items);
}).catch((err)=>{
reject(err);
});

Loading…
Cancel
Save