export const togglePinnedContact = (store, contact_uuid) => { contacts.postPinContact( contact_uuid, token.get(), cb => { store.dispatch(types.PIN_CONTACT_SUCCESS, cb) }, errorCb => { store.dispatch(types.PIN_CONTACT_FAILURE, errorCb) } ) }
export const fetchContactEvents = (store, contact_uuid) => { contacts.getContactEvents( contact_uuid, 25, token.get(), cb => { store.dispatch(types.FETCH_CONTACT_EVENTS_SUCCESS, cb) }, errorCb => { store.dispatch(types.FETCH_CONTACT_EVENTS_FAILURE, errorCb) } ) }
export const searchContacts = (store, query) => { setSearching(store, true) contacts.getSearchContacts( query, 10, token.get(), cb => { store.dispatch(types.SEARCH_CONTACTS_SUCCESS, cb) }, errorCb => { store.dispatch(types.SEARCH_CONTACTS_FAILURE, errorCb) } ) }