· 5 years ago · Jun 25, 2020, 05:18 PM
1<?php
2defined('BASEPATH') OR exit('No direct script access allowed');
3
4/*
5|--------------------------------------------------------------------------
6| Display Debug backtrace
7|--------------------------------------------------------------------------
8|
9| If set to TRUE, a backtrace will be displayed along with php errors. If
10| error_reporting is disabled, the backtrace will not display, regardless
11| of this setting
12|
13*/
14defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
15
16/*
17|--------------------------------------------------------------------------
18| File and Directory Modes
19|--------------------------------------------------------------------------
20|
21| These prefs are used when checking and setting modes when working
22| with the file system. The defaults are fine on servers with proper
23| security, but you may wish (or even need) to change the values in
24| certain environments (Apache running a separate process for each
25| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
26| always be used to set the mode correctly.
27|
28*/
29defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
30defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
31defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
32defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
33
34/*
35|--------------------------------------------------------------------------
36| File Stream Modes
37|--------------------------------------------------------------------------
38|
39| These modes are used when working with fopen()/popen()
40|
41*/
42defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
43defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
44defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
45defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
46defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
47defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
48defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
49defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
50
51/*
52|--------------------------------------------------------------------------
53| Exit Status Codes
54|--------------------------------------------------------------------------
55|
56| Used to indicate the conditions under which the script is exit()ing.
57| While there is no universal standard for error codes, there are some
58| broad conventions. Three such conventions are mentioned below, for
59| those who wish to make use of them. The CodeIgniter defaults were
60| chosen for the least overlap with these conventions, while still
61| leaving room for others to be defined in future versions and user
62| applications.
63|
64| The three main conventions used for determining exit status codes
65| are as follows:
66|
67| Standard C/C++ Library (stdlibc):
68| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
69| (This link also contains other GNU-specific conventions)
70| BSD sysexits.h:
71| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
72| Bash scripting:
73| http://tldp.org/LDP/abs/html/exitcodes.html
74|
75*/
76defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
77defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
78defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
79defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
80defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
81defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
82defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
83defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
84defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
85defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
86
87
88define('MAIL_EMISOR', 'soporte.adherencia@impact.cl'); // Correo utilizado como emisor de los correos emitidos por el sistema
89define('API_KEY_SENDGRID','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'); // API KEY DE SENDGRID
90define('ENVIAR_CORREO',false);
91define('PLAZO_MINUTA',72);
92
93define('CLAVE_CADUCA_DIAS',90); //Días maximo que deben existir antes de forzar un cambio de clave
94define('CLAVE_ACTUALIZAR',true); //true:El usuario debe actualizar su calve si la enterior fue creada hace X días
95define('VERSION_JS',49); //Versión de archivos j
96define('CARGOS_ESPECIALES',array(181));
97define('PUBLIC_TOKEN','3RYUnJvngDqCvOG8oX1cv6rVKZ81zbT1');
98define('PRIVATE_TOKEN','GdLRLACsZajvrBooBTMhpw6cdm6rdYcP');
99define('USUARIODUMMY', 9096);
100define('NOMBRE_SISTEMA_CON', 'Gestión Personas');
101
102
103define('ID_ESTAMENTOS', [1, 2, 3, 4, 5, 6]);//ids de los estamentos que pueden ver el modulo repositorio
104
105define('CARGOS_ADMIN',array(502,562,482,563));
106
107/*
108ID: 502 | Coordinador Adherencia
109ID: 562 | Analista Gestión Personas y productividad
110ID: 482 | Consultor Senior Gestión Personas y productividad
111ID: 563 | Admin Portal GPP
112*/
113
114
115/********** */
116
117/*
118ID: 543 | Coordinador de Reportes
119ID: 501 | Coordinador Personas y Productividad
120ID: 493 | Coordinador Control Gestión
121ID: 480 | Control Gestión
122ID: 470 | Consultor Back / Call
123ID: 454 | SubGenrente Operaciones Post Venta
124 */
125
126define('REPORTE_ACTIVIDAD',array(543,501,493,480,470,454));
127define('REPORTE_PAUTA_OBSERVACION',array(543,501,493,480,470,454));
128define('HASH_PROCESO','IMPACT_ADH');
129define('MINUTOS_MINIMO_PLANIFICACION', 15);
130define('MINUTOS_MINIMO_PLANIFICACION_PASADO', 30);