Commit c76add0a authored by Luis Acosta's avatar Luis Acosta

Version 1.0.0

parent 4d3a5a32
...@@ -12,8 +12,8 @@ db_host = os.getenv("DB_HOST") ...@@ -12,8 +12,8 @@ db_host = os.getenv("DB_HOST")
db_user = os.getenv("DB_USER") db_user = os.getenv("DB_USER")
db_pass = os.getenv("DB_PASS") db_pass = os.getenv("DB_PASS")
db_call_center = os.getenv("DB_NAME_CALL_CENTER") db_call_center = os.getenv("DB_NAME_CALL_CENTER")
db_name_asterisk = os.getenv("DB_NAME_ASTERISK") #db_name_asterisk = os.getenv("DB_NAME_ASTERISK")
db_name_cdr = os.getenv("DB_NAME_CDR") #db_name_cdr = os.getenv("DB_NAME_CDR")
db_name_hiper_service = os.getenv("DB_NAME_HIPER_SERVICE") db_name_hiper_service = os.getenv("DB_NAME_HIPER_SERVICE")
cc_url = 'https://mxcc-gruposerviandina.hiperpbx.com' cc_url = 'https://mxcc-gruposerviandina.hiperpbx.com'
...@@ -36,9 +36,7 @@ fecha_hora = datetime.now().strftime('%Y-%m-%d %H:%M:%S') ...@@ -36,9 +36,7 @@ fecha_hora = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
@app.route('/') @app.route('/')
def home(): def home():
namecampaign='Camp_Agente_1007' return jsonify({"Mensaje":"Hola"}), 200
db = MySQLDatabase(host="localhost", user="root", password="", database="call_center")
resultado = db.consultar("select id, estatus from campaign where name=%s limit 1", (f'{namecampaign}',))
return jsonify(resultado) return jsonify(resultado)
@app.route('/login', methods=['POST']) @app.route('/login', methods=['POST'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment