@ -476,8 +476,8 @@ export default {
async removeSubscriberRegistration ( context , row ) {
async removeSubscriberRegistration ( context , row ) {
await httpApi . delete ( ` api/subscriberregistrations/ ${ row . id } ` )
await httpApi . delete ( ` api/subscriberregistrations/ ${ row . id } ` )
} ,
} ,
async removeCustomerPhonebook ( context , { row , customerId } ) {
async removeCustomerPhonebook ( context , row ) {
await httpApi . delete ( ` api/ v2/ customers/${ customerId } / phonebook/${ row . id } ` )
await httpApi . delete ( ` api/ customerphonebookentries /${ row . id } ` )
} ,
} ,
async getNcosLevelsSubscriber ( ) {
async getNcosLevelsSubscriber ( ) {
const ncosLevel = [ ]
const ncosLevel = [ ]
@ -514,15 +514,15 @@ export default {
async setNcosLevelsSubscriber ( value ) {
async setNcosLevelsSubscriber ( value ) {
await setPreference ( getSubscriberId ( ) , 'ncos' , value )
await setPreference ( getSubscriberId ( ) , 'ncos' , value )
} ,
} ,
async getPhonebookCustomerDetails ( context , { phonebookId , customerId } ) {
async getPhonebookCustomerDetails ( context , id ) {
const list = await httpApi . get ( ` api/ v2/customers/${ customerId } /phonebook/ ${ phonebookI d} ` )
const list = await httpApi . get ( ` api/ customerphonebookentries/${ i d} ` )
return list
return list
} ,
} ,
async getValueNameCustomer ( context , options ) {
async getValueNameCustomer ( context , options ) {
await setValueNameCustomer ( options . phonebookId , options . name )
await setValueNameCustomer ( options . phonebookId , options . name )
} ,
} ,
async getValueNumberCustomer ( context , options ) {
async getValueNumberCustomer ( context , options ) {
await setValueNumberCustomer ( options . customerId, options . phonebookId, options . number )
await setValueNumberCustomer ( options . phonebookId, options . number )
} ,
} ,
async createPhonebookCustomer ( context , data ) {
async createPhonebookCustomer ( context , data ) {
await createCustomerPhonebook ( data )
await createCustomerPhonebook ( data )