|
|
@ -635,13 +635,7 @@ export function getSoundHandles(options) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
getList(options).then((list) => {
|
|
|
|
getList(options).then((list) => {
|
|
|
|
// Ngcp-panel only lists three groups ('digits', 'music_on_hold'
|
|
|
|
resolve(list.items);
|
|
|
|
// 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);
|
|
|
|
|
|
|
|
}).catch((err)=>{
|
|
|
|
}).catch((err)=>{
|
|
|
|
reject(err);
|
|
|
|
reject(err);
|
|
|
|
});
|
|
|
|
});
|
|
|
|