text: // export const Config = {
  //   API_URL: 'https://jsonplaceholder.typicode.com/users/',
  // }
  export const Config = {
    API_URL: 'http://omni-service-authorization.azurewebsites.net/api/b2c/authorization/', //'https://jsonplaceholder.typicode.com/users/',
    // REGISTER: API_URL + 'register-phone-number'
  }
  
  
  export const SECRET_KEY = '153fa3e1352cd10281496006eb41f9b6'
  export const CID = 'CID-999999'
  const PROTOCOL = 'https:'
  const PROTOCOL2 = 'http:'
  
  // REGEX
  export const REGEX_PASSWORD = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d]{8,}$/i
  export const REGEX_EMAIL = /^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i
  export const REGEX_PHONE_NUMBER = /^(^\+62\s?|^0)(\d{3,4}-?){2}\d{3,4}$/g
  export const REGEX_VALID_URL = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/g
  export const CREDIT_CARD_LIBRARY = [
    {
      type: 'MasterCard',
      reg: /^5[1-5][0-9]{14}$|^2(?:2(?:2[1-9]|[3-9][0-9])|[3-6][0-9][0-9]|7(?:[01][0-9]|20))[0-9]{12}$/g,
      img:
        'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAnCAYAAABAOmveAAAAAXNSR0IArs4c6QAABl5JREFUWAnVWFlsVFUY/u6drcuUThUrFFuLBKIYDEQRI7LKA4uaENT4Ihjji0sIbsEXlqgJCiQkxjeESERjxMgLdXkg4cEoW2Qp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  export const SOCIAL_MEDIA_AUTH = {
    google: {
      android: {
        appId: '511369405285-46itl1hrdq0d990l6vct2vhj6ap39vue.apps.googleusercontent.com', // sera
        callback: 'com.trac.tractogo:/oauth2redirect',
      },
      ios: {
        appId: '511369405285-qetdd8sg48m9e5bk3dmkru2l5gfaldo6.apps.googleusercontent.com',
        callback: 'com.trac.tractogo:/oauth2redirect',
      },
    },
  }
  
  // PRODUCT SERVICE TYPE
  export const RENTAL_TIMEBASE = 'STID-003'
  export const RENTAL_KMBASE = 'STID-004'
  export const RENTAL_HOURLY = 'STID-007'
  export const UAS_TIMEBASE = 'STID-083'
  export const UAS_KMBASE = 'STID-084'
  
  export const STATUS_RESERVATION = [
    {
      name: 'BREAKDOWN',
      id: 'BOSID-001',
    },
    {
      name: 'CANCELLED',
      id: 'BOSID-002',
    },
    {
      name: 'DELIVERY_COMPLETED',
      id: 'BOSID-003',
    },
    {
      name: 'DRAFT',
      id: 'BOSID-004',
    },
    {
      name: 'OPEN',
      id: 'BOSID-006',
    },
    {
      name: 'ORDER_COMPLETED',
      id: 'BOSID-007',
    },
    {
      name: 'READY_TO_BILL',
      id: 'BOSID-009',
    },
    {
      name: 'WAITING_FOR_PAYMENT',
      id: 'BOSID-010',
    },
    {
      name: 'WAITING_FOR_APPROVAL',
      id: 'BOSID-011',
    },
    {
      name: 'REJECTED',
      id: 'BOSID-012',
    },
  ]
  
  export const ACTIVITY_RESERVATION = [
    {
      ActivityID: 'AMID-009#ASID-015',
      classProgress: 'car-on-the-way',
    },
    {
      ActivityID: 'AMID-018#ASID-015',
      classProgress: 'car-on-the-way',
    },
    {
      ActivityID: 'AMID-002#ASID-016',
      classProgress: 'complete',
    },
    {
      ActivityID: 'AMID-002#ASID-017',
      classProgress: 'car-with-you',
    },
    {
      ActivityID: 'AMID-006#ASID-017',
      classProgress: 'complete',
    },
    {
      ActivityID: 'AMID-009#ASID-017',
      classProgress: 'complete',
    },
  ]
  
  // PRODUCT TYPE
  export const CAR_RENTAL = 'PRD0006'
  export const AIRPORT_TRANSFER = 'PRD0007'
  export const BUS_RENTAL = 'PRD0008'
  // SERVICE TYPE
  export const SELF_DRIVE = 'PSV0001'
  export const CHAFFEUR = 'PSV0002'
  export const ONE_WAY = 'PSV0003'
  export const ROUND_TRIP = 'PSV0004'
  export const MULTI_CITY = 'PSV0005'
  
  // BILLING
  export const SONotCreated = 'INV-001'
  export const Paid = 'INV-003'
  
  // AUTH0
  export const AUTH0_DOMAIN = 'ttg-development.au.auth0.com'
  export const AUTH0_CLIENT_ID = 'gK3b9YSXa0TBuhZTVY_t-Dj7A3Hvq7o8'
  
  // SENTRY
  export const PUBLIC_DSN = 'https://7d4c7c0d124147cdad608f3991ca1fc1@sentry.io/2731530' // DEV/QA
  // export const PUBLIC_DSN = 'https://773e4c7a45a8446091d16478a5ec4395@sentry.io/1452966'; // PRD
  
  // BASE API URL
  // const BASE_URL_BTC = prm => `${PROTOCOL}//omni-service-${prm}.azurewebsites.net/api/b2c`;   // QA
  // const BASE_URL = prm => `${PROTOCOL}//omni-service-${prm}.azurewebsites.net/api`;           // QA
  // const BASE_URL_BTC1 = prm => `${PROTOCOL}//omni-service-${prm}.azurewebsites.net/api/b2c`;
  // const BASE_URL_BTC = prm => `${PROTOCOL}//omni-service-${prm}-staging.azurewebsites.net/api/b2c`;   // STAGING
  // const BASE_URL = prm => `${PROTOCOL}//omni-service-${prm}-staging.azurewebsites.net/api`;           // STAGING
  const BASE_URL_BTC = (prm) =>
    `${PROTOCOL}//omni-service-${prm}-staging.azurewebsites.net/api/b2c` // PRD
  const BASE_URL = (prm) => `${PROTOCOL}//omni-service-${prm}-staging.azurewebsites.net/api` // PRD
  const BASE_URL_V1 = (prm) => `${PROTOCOL}//omni-service-${prm}.azurewebsites.net/api`
  const SM_BASE_URL = `https://sm-dev.azurewebsites.net`; // DEV/QA
  // const SM_BASE_URL = `https://sm-prd.azurewebsites.net` // PRD
  export const SM_APP_KEY = '758E1DBF-9D2C-48FC-BD75-C1E26F1D2E4D'
  
  // GOOGLE MAPS
  export const GOOGLE_MAP_API = 'AIzaSyDqP04L8wLhIa27cvtWJfvlfRodR7A8sD0'
  export const GOOGLE_PLACE_AUTOCOMPLETE = `${BASE_URL_BTC(
    'configuration'
  )}/configuration/gmaps/auto-complete`
  export const GOOGLE_PLACE_DETAIL = `${BASE_URL_BTC(
    'configuration'
  )}/configuration/gmaps/place-detail`
  export const GOOGLE_FIND_PLACE = `${BASE_URL_BTC(
    'configuration'
  )}/configuration/gmaps/place-coordinate`
  export const GOOGLE_GET_DISTANCE_MATRIX = `${BASE_URL_BTC(
    'configuration'
  )}/configuration/gmaps/distance-matrix`
  
  // AUTHORIZATION
  export const VERSION_CHECK = `${BASE_URL_BTC('authorization')}/authorization/version`
  export const LOGIN = `${BASE_URL_BTC('authorization')}/authorization/login/`
  export const LOGIN_SOSMED = `${BASE_URL_BTC('authorization')}/authorization/loginSocialite/`
  export const REGISTER = `${BASE_URL_BTC('authorization')}/authorization/register-phone-number/`
  export const LOGOUT = `${BASE_URL_BTC('authorization')}/authorization/logout/`
  export const REFRESH_TOKEN = `${BASE_URL_BTC('authorization')}/authorization/refresh-token/`
  export const CHECK_TOKEN = `${BASE_URL_BTC('authorization')}/authorization/check-token/`
  export const USER = `${BASE_URL_BTC('authorization')}/authorization/get-user/`
  export const FORGOT_PASSWORD = `${BASE_URL_BTC('authorization')}/authorization/forgot-password/`
  export const USER_PROFILE = `${BASE_URL_BTC('authorization')}/authorization/user-profile`
  export const USER_PROFILE_UPDATE = `${BASE_URL_BTC(
    'authorization'
  )}/authorization/user-profile/update`
  // export const CHANGE_PASSWORD = `${BASE_URL_BTC('authorization')}/authorization/update-password/`;
  export const CHANGE_PASSWORD = `${BASE_URL_BTC('authorization')}/authorization/change-password/`
  export const CREDIT_CARD = `${BASE_URL_BTC('authorization')}/authorization/credit-card-account`
  ;('GET: /get-by-user/, SAVE: /save, UPDATE: /update, DELETE: /delete, SET PRIMARY: /set-primary ')
  export const SEND_DEVICE_TOKEN = `${BASE_URL_BTC('authorization')}/authorization/device-token`
  
  // MASTER
  export const LIST_CAR_TYPE = `${BASE_URL_BTC('configuration')}/configuration/car-type/get-by-param`
  export const BANK = `${BASE_URL_BTC('configuration')}/configuration/bank/get-by-param`
  export const ALL_BANK = `${BASE_URL_BTC('configuration')}/configuration/bank`
  export const CITY_COVERAGE = (args) =>
    `${BASE_URL_BTC('configuration')}/configuration/city-coverage/get-by-param/${args[0]}/${
      args[1]
    }/${args[2]}` // {CustomerId}/{BusinessUnitId}/{MsProductId}
  export const EXTRAS = `${BASE_URL_BTC('configuration')}/configuration/extras-detail/get-by-param`
  export const BRANCH = `${BASE_URL_BTC(
    'configuration'
  )}/configuration/branch/get-branch/business-unit` // {business_unit_id}
  export const CANCEL_REASON = `${BASE_URL_BTC('order')}/order/cancellationReason`
  export const AIRPORT_LIST = `${BASE_URL_V1('configuration')}/b2c/configuration/airport`
  
  // PRODUCT
  export const LIST_PRODUCT = `${BASE_URL_BTC('product')}/product/product/`
  
  // GET STOCK
  export const LIST_STOCK = `${BASE_URL_BTC('configuration')}/configuration/stock-management`
  
  // ZONE
  export const ZONE = (args) =>
    `${BASE_URL_BTC('price')}/price/zone/get-by-param/${args[0]}/${args[1]}/${args[2]}` // BusinessUnitId/MsProductId/Distance
  
  /** CAR RENTAL */
  // RENTAL DURATION
  export const RENTAL_DURATION_CAR_RENTAL = `${BASE_URL_BTC(
    'configuration'
  )}/configuration/rental-duration`
  // PRICE
  export const PRICE_PRODUCT_CAR_RENTAL = `${BASE_URL_BTC(
    'price'
  )}/price/price-product-retail/get-by-param`
  
  /** AIRPORT TRANSFER */
  // MASTER AIRPORT
  export const MASTER_AIRPORT = `${BASE_URL_BTC('configuration')}/configuration/airport`
  // AIRPORT COVERAGE
  export const AIRPORT_COVERAGE = `${BASE_URL_BTC(
    'configuration'
  )}/configuration/airport-coverage/get-by-param?MsAirportCode=`
  
  /** BUS RENTAL */
  // PRICE BUS
  export const PRICE_PRODUCT_BUS = `${BASE_URL_BTC('price')}/price/price-bus-retail/get-price`
  
  /** RESERVATION */
  export const RESERVATION = `${BASE_URL_BTC('order')}/order/reservation/save`
  
  /** BILLING */
  export const CREATE_INVOICE = `${BASE_URL_BTC('billing')}/billing/invoice-header/save`
  
  /** DISCOUNT */
  export const VALIDATE_PROMO = (args) => `${BASE_URL('discount')}/discount/promo/validate/${args}/` // ?user_id=USR-001&business_unit_id=0104&branch_id=SR01
  
  /** CUSTOMER DASHBOARD */
  export const MY_BOOKING = `${BASE_URL_BTC('order')}/order/reservation/get-my-booking`
  export const MY_HISTORY = `${BASE_URL_BTC('order')}/order/reservation/get-history`
  export const DETAIL_MY_RESERVATION = `${BASE_URL_BTC('order')}/order/reservation/detail` // /TRAC-201905054000745
  
  /** ADJUSTMENT TIME */
  export const ADJUSTMENT_TIME = `${BASE_URL_BTC('price')}/price/adjustment-retail`
  
  /** VEHICLE ATTRIBUTE */
  export const VEHICLE_ATTRIBUTE = `${BASE_URL_BTC('configuration')}/configuration/vehicle-attribute`
  
  /** CANCEL RESERVATION */
  export const CANCEL_RESERVATION = `${BASE_URL_BTC('order')}/order/reservation/cancelReservation`
  export const CANCEL_RESERVATION_REFUND = `${BASE_URL_BTC(
    'order'
  )}/order/reservation/cancelReservation`
  
  /** CONTACT US */
  export const CONTACT_US = `${BASE_URL('notification')}/email/contact-us/send`
  
  /** CONTENT ARTICLE */
  export const CONTENT_ARTICLE = `${BASE_URL_BTC('product')}/product/content-article`
  
  /** PROMO */
  export const PROMO = `${BASE_URL_BTC('product')}/product/content-promo`
  
  /** NOTIFICATION_BY_USER */
  export const NOTIFICATION_BY_USER = `${BASE_URL('notification')}/notification/notification-history/get-by-param?UserId=`