const T = require('./time')

const anonymousCustomer = {
  uuid: '47ac1184-8102-11e7-9079-8f13a7117867',
  name: 'anonymous'
}

const CASSETTE_MAX_CAPACITY = 500

const CASH_OUT_MINIMUM_AMOUNT_OF_CASSETTES = 2
const CASH_OUT_MAXIMUM_AMOUNT_OF_CASSETTES = 4
const AUTHENTICATOR_ISSUER_ENTITY = 'Lamassu'
const AUTH_TOKEN_EXPIRATION_TIME = '30 minutes'
const REGISTRATION_TOKEN_EXPIRATION_TIME = '30 minutes'
const USER_SESSIONS_TABLE_NAME = 'user_sessions'
const USER_SESSIONS_CLEAR_INTERVAL = 1 * T.hour

const AUTOMATIC = 'automatic'
const MANUAL = 'manual'

const CASH_OUT_DISPENSE_READY = 'cash_out_dispense_ready'
const CONFIRMATION_CODE = 'sms_code'
const RECEIPT = 'sms_receipt'

const WALLET_SCORE_THRESHOLD = 9

module.exports = {
  anonymousCustomer,
  CASSETTE_MAX_CAPACITY,
  AUTHENTICATOR_ISSUER_ENTITY,
  AUTH_TOKEN_EXPIRATION_TIME,
  REGISTRATION_TOKEN_EXPIRATION_TIME,
  AUTOMATIC,
  MANUAL,
  USER_SESSIONS_TABLE_NAME,
  USER_SESSIONS_CLEAR_INTERVAL,
  CASH_OUT_DISPENSE_READY,
  CONFIRMATION_CODE,
  CASH_OUT_MINIMUM_AMOUNT_OF_CASSETTES,
  CASH_OUT_MAXIMUM_AMOUNT_OF_CASSETTES,
  WALLET_SCORE_THRESHOLD,
  RECEIPT
}
