import {
  currentUser,
  getRememberPassword,
  hasPermissionsAction,
  logout,
  sweepReducerStateAction
} from 'amos-security/lib/model/auth';

const requestHeader = () => {
  let _currentUser = currentUser() || {};
  return {
    'X-Api-Key': _currentUser.api_key,
    'X-Access-Token': _currentUser.token
    // 'token': _currentUser.token,
    // 'appKey': 'YH-PATROL',
    // 'product': 'AGENCY_APP',
  };
};

export {
  currentUser,
  getRememberPassword,
  hasPermissionsAction,
  logout,
  sweepReducerStateAction,
  requestHeader
};
