<?php

date_default_timezone_set("America/Bogota");

/* ===============================
   BASE DE DATOS
   =============================== */

define('DB_HOST', '26.157.185.113');
define('DB_USER', 'sa');
define('DB_PASS', 'Ser$02Cq#');
define('DB_NAME', 'DATA_4');

/* ===============================
   SISTEMA
   =============================== */

define('NOMBRE_PROVEEDOR', 'Departamento de T.I.');
define('NOMBRE_SISTEMA', 'Grupo Quiroga Cloud');
define('LOGO_PROVEEDOR', 'logo-gq.png');

define('TELEFONO_EMPRESA', '975931886');
define('EMAIL_EMPRESA', 'sistemas@grupoquiroga.pe');
define('LOGO_EMPRESA', 'logo-gq.png');

define('TIENDAS_KEY', 'M1cI0ksn49Dd83Jkflw992Ld8');

/* ===============================
   TIENDAS (FUENTE ÚNICA)
   =============================== */

const TIENDAS = [
    'LQUE' => ['ip' => '26.41.153.26',  'nombre' => 'CQ LA QUEBRADA'],
    'CDOS' => ['ip' => '26.203.218.69', 'nombre' => 'CQ CALLE DOS'],
    'AVEN' => ['ip' => '26.69.222.96',  'nombre' => 'CQ AV.BUENOS AIRES'],
    'CSUL' => ['ip' => '26.152.34.47',  'nombre' => 'CQ ALMACEN SULLANA'],
    'ESUL' => ['ip' => '26.70.39.49',   'nombre' => 'EQR ALMACEN SULLANA'],
    'PRIN' => ['ip' => '26.157.185.113','nombre' => 'EQR TDA.PRINCIPAL'],
    'OVAL' => ['ip' => '26.178.243.216','nombre' => 'EQR OVALO CACERES'],
    'CAST' => ['ip' => '26.178.222.61', 'nombre' => 'EQR TDA.CASTILLA'],
    'LAMA' => ['ip' => '26.27.135.123', 'nombre' => 'EQR JOSE DE LAMA'],
    'ALPI' => ['ip' => '26.149.176.92', 'nombre' => 'EQR ALMACEN PIURA'],
    'CHIC' => ['ip' => '26.219.233.90', 'nombre' => 'EQR TDA.CHICLAYO'],
    'TACA' => ['ip' => '26.188.230.138','nombre' => 'EQR TDA.TACALA'],
    'LAMB' => ['ip' => '26.122.123.127','nombre' => 'EQR ALMACEN LAMBAYEQUE'],
];


const USUARIOS = [
    'MONICA'  => ['password' => 'M0nic4'     ,'tienda'   => 'CDOS'],
    'LUIS'    => ['password' => 'LuiZ'       ,'tienda'   => 'LQUE'],
    'ALFREDO' => ['password' => 'av3nidv'    ,'tienda'   => 'AVEN'],
    'JACKY'   => ['password' => 'L0l4'       ,'tienda'   => 'PRIN'],
    'JENNY'   => ['password' => 'J3nnY'      ,'tienda'   => 'OVAL'],
    'ADDY'    => ['password' => '4DD1'       ,'tienda'   => 'CAST'],
    'OSCAR'   => ['password' => '0SC4R'      ,'tienda'   => 'LAMA'],
    'INGRID'  => ['password' => '1NGR1D'     ,'tienda'   => 'ALPI'],
    'JIMMY'   => ['password' => 'J1MMY'      ,'tienda'   => 'CHIC'],
    'AURA'    => ['password' => '4UR4'       ,'tienda'   => 'TACA'],
    'CESAR'   => ['password' => 'C3SAR'      ,'tienda'   => 'LAMB'],
    'ALBERTO' => ['password' => 'gerentegq'  ,'tienda'   => 'TODOS'],
    'ALMACEN' => ['password' => 'almacen'    ,'tienda'   => 'ALMACEN'],
];

/* ===============================
   USUARIOS → TIENDA
   =============================== */

/*
foreach (USUARIOS as $user => $data) {
    echo "'$user' => ['password' => '" 
        . password_hash($data['password'], PASSWORD_DEFAULT) 
        . "', 'tienda' => '{$data['tienda']}'],<br>";
}


const USUARIOS = [
    'MONICA' => [
        'password' => '$2y$10$wGzF6K1q2kQ1oY9Y7QxYtO4Y2WmJm9mF3dXv6Vg1VQm7vC6V3lQ8G',
        'tienda' => 'CDOS'
    ],
    'LUIS' => [
        'password' => '$2y$10$9z1kYwYlM1Xg3s2sXl3q8eR4Z3x8yJr5kQpT0zF7nB2Wj8cH5fK9a',
        'tienda' => 'LQUE'
    ],
    'ALFREDO' => [
        'password' => '$2y$10$Xy8Qv3dP9gK1b7zL4kT2hO5sJ6mN8rF1aB2cD3eF4gH5iJ6kL7mN',
        'tienda' => 'AVEN'
    ],
    'JACKY' => [
        'password' => '$2y$10$7pQ9kT3vZ1xW8cR5dF2gH6jL9mN4bV8yK3sD1fG6hJ2kL0pQ8rS',
        'tienda' => 'PRIN'
    ],
    'JENNY' => [
        'password' => '$2y$10$kP3mN7vX1sD4fG6hJ2kL0pQ8rS9tU5wY8zA1bC2dE3fF4gH5iJ6',
        'tienda' => 'OVAL'
    ],
    'ADDY' => [
        'password' => '$2y$10$Zx8cV3bN5mK2jH7gF4dS1aQ9wE6rT0yU8iO2pL5kJ3hG6fD9sA',
        'tienda' => 'CAST'
    ],
    'OSCAR' => [
        'password' => '$2y$10$Y7uI8oP9aS1dF2gH3jK4lZ5xC6vB7nM8qW2eR3tY4uI5oP6aS7d',
        'tienda' => 'LAMA'
    ],
    'INGRID' => [
        'password' => '$2y$10$F6gH7jK8lZ9xC1vB2nM3qW4eR5tY6uI7oP8aS9dF1gH2jK3lZ4x',
        'tienda' => 'ALPI'
    ],
    'JIMMY' => [
        'password' => '$2y$10$Q1wE2rT3yU4iO5pL6kJ7hG8fD9sA0zX1cV2bN3mK4jH5gF6dS7a',
        'tienda' => 'CHIC'
    ],
    'AURA' => [
        'password' => '$2y$10$P9oI8uY7tR6eW5qQ4aS3dF2gH1jK0lZ9xC8vB7nM6kJ5hG4fD3s',
        'tienda' => 'TACA'
    ],
    'CESAR' => [
        'password' => '$2y$10$L0kJ9hG8fD7sA6zX5cV4bN3mK2jH1gF0dS9aQ8wE7rT6yU5iO4p',
        'tienda' => 'LAMB'
    ],
    'ALBERTO' => [
        'password' => '$2y$10$H5gF4dS3aQ2wE1rT0yU9iO8pL7kJ6hG5fD4sA3zX2cV1bN0mK9j',
        'tienda' => 'TODOS'
    ],
    'ALMACEN' => [
        'password' => '$2y$10$G4fD3sA2zX1cV0bN9mK8jH7gF6dS5aQ4wE3rT2yU1iO0pL9kJ8h',
        'tienda' => 'ALMACEN'
    ],
];*/