@ -37,15 +37,21 @@ export function getDeviceList(options) {
order _by : PBX _CONFIG _ORDER _BY ,
order _by _direction : PBX _CONFIG _ORDER _DIRECTION
} ;
if ( params . profile _id === null ) {
if ( params . profile _id === null || params . profile _id === undefined || params . profile _id === "" ) {
delete params [ 'profile_id' ] ;
}
if ( params . identifier === null ) {
if ( params . identifier === null || params . identifier === undefined || params . identifier === "" ) {
delete params [ 'identifier' ] ;
}
if ( params . station _name === null ) {
else {
params . identifier = "*" + params . identifier + "*"
}
if ( params . station _name === null || params . station _name === undefined || params . station _name === "" ) {
delete params [ 'station_name' ] ;
}
else {
params . station _name = "*" + params . station _name + "*"
}
getDevices ( {
params : params
} ) . then ( ( devices ) => {