function manageAddresses(events = []) {
        if (!events.length) {
            return Promise.resolve();
        }
        return $injector.get('addressesModel').update(events);
    }
/**
     * Manage the addresses update for a user. Check early because addressesmodel.update will always re-set.
     * @param {Array} events
     * @returns {Promise}
     */
Manage the addresses update for a user. Check early because addressesmodel.update will always re-set.
@param {Array} events
@returns {Promise}
Manage the addresses update for a user . Check early because addressesmodel . update will always re - set . @param { Array } events @returns { Promise }
function manageAddresses(events = []) {
        if (!events.length) {
            return Promise.resolve();
        }
        return $injector.get('addressesModel').update(events);
    }
function manageAddresses ( events = [ ] ) { if ( ! events . length ) { return Promise . resolve ( ) ; } return $injector . get ( 'addressesModel' ) . update ( events ) ; }
Manage the addresses update for a user.
Manage the addresses update for a user .