function hydrate(force) {
        if (isHydrated() && !force) {
            const key = $state.is('secured.contacts.details') && 'contact.details';
            const key2 = $stateParams.sort && $state.is('secured.contacts') && 'contacts.sort';
            sync([], key || key2);
            emit();
            return Promise.resolve();
        }

        const promise = Contact.all()
            .then((contacts = []) => {
                CACHE.hydrated = true;
                CACHE.contacts = contacts;
                sync();
                return get();
            })
            .then(() => emit());
        networkActivityTracker.track(promise);
        return promise;
    }
/**
     * Call the BE to get the contact list
     * @return {Array} contacts
     */
Call the BE to get the contact list
@return {Array} contacts
Call the BE to get the contact list @return { Array } contacts
function hydrate(force) {
        if (isHydrated() && !force) {
            const key = $state.is('secured.contacts.details') && 'contact.details';
            const key2 = $stateParams.sort && $state.is('secured.contacts') && 'contacts.sort';
            sync([], key || key2);
            emit();
            return Promise.resolve();
        }
        const promise = Contact.all()
            .then((contacts = []) => {
                CACHE.hydrated = true;
                CACHE.contacts = contacts;
                sync();
                return get();
            })
            .then(() => emit());
        networkActivityTracker.track(promise);
        return promise;
    }
function hydrate ( force ) { if ( isHydrated ( ) && ! force ) { const key = $state . is ( 'secured.contacts.details' ) && 'contact.details' ; const key2 = $stateParams . sort && $state . is ( 'secured.contacts' ) && 'contacts.sort' ; sync ( [ ] , key || key2 ) ; emit ( ) ; return Promise . resolve ( ) ; } const promise = Contact . all ( ) . then ( ( contacts = [ ] ) => { CACHE . hydrated = true ; CACHE . contacts = contacts ; sync ( ) ; return get ( ) ; } ) . then ( ( ) => emit ( ) ) ; networkActivityTracker . track ( promise ) ; return promise ; }
Call the BE to get the contact list
 @return {Array} contacts
Call the BE to get the contact list @return { Array } contacts