Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
Webservice Marcimex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Luis Acosta
Webservice Marcimex
Commits
3d1b81d2
Commit
3d1b81d2
authored
Jan 16, 2025
by
Luis Acosta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se adiciona camp agente
parent
27792f80
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
171 additions
and
88 deletions
+171
-88
Connect_CC2.py
Connect_CC2.py
+2
-1
app.py
app.py
+97
-26
functions.py
functions.py
+72
-61
No files found.
Connect_CC2.py
View file @
3d1b81d2
...
...
@@ -20,7 +20,7 @@ class Callcenter:
def
search_campaing
(
self
,
id_campaign
):
url_center
=
f
"{self.url}/api/outgoingcampaigns/{id_campaign}"
print
(
f
"url: {url_center}"
)
#
print(f"url: {url_center}")
headers
=
{
"Content-Type"
:
"application/json"
,
"Accept"
:
"application/json"
,
...
...
@@ -43,6 +43,7 @@ class Callcenter:
"data"
:
campaign_data
}
#return url_center,headers,payload
response
=
requests
.
post
(
url_center
,
headers
=
headers
,
json
=
payload
,
verify
=
False
)
return
response
.
content
...
...
app.py
View file @
3d1b81d2
This diff is collapsed.
Click to expand it.
functions.py
View file @
3d1b81d2
...
...
@@ -121,67 +121,78 @@ def validate_keys(data):
def
find_name_position
(
name
):
dictionary
=
{
"2017"
:
"Paucar Tapia Dennis Andres"
,
"2018"
:
"Hurtado Tocache Mayra Biviana"
,
"2019"
:
"Bermeo Cajamarca Tania Marcela "
,
"2020"
:
"Sojos Bermeo Lourdes Maricela"
,
"2021"
:
"Robles Guerra Jhoanna Maricela"
,
"2022"
:
"Ortega Leon Maria Daniela"
,
"2023"
:
"Peralta Jaramillo Michelle Catalina"
,
"2024"
:
"Zambrano Santiak Maria Dolores "
,
"2025"
:
"Bravo Andrade Willy Luis"
,
"2026"
:
"Barbecho Arias Alba Janneth"
,
"2027"
:
"Calderon Sucuzhanay Eliza Katherine"
,
"2028"
:
"Jara Caceres Virginia Carolina"
,
"2030"
:
"Sanchez Zhagnay Angel Marcelo"
,
"2031"
:
"Gomez Ochoa Cristian Gabriel"
,
"2032"
:
"Leon Duenas Valeria Estefania "
,
"2033"
:
"Cardenas Torres Madelyne Coraima"
,
"2034"
:
"Samaniego Gonzaga Camila Nicole "
,
"2035"
:
"Suarez Bacuilima Andres Santiago"
,
"2037"
:
"Tapia Penaloza Andreina De Los Angeles"
,
"2038"
:
"Flores Lopez Christian Nicolas "
,
"2040"
:
"Faican Vasquez Jennifer Eliana"
,
"2041"
:
"Villa Torres Joseline Andrea "
,
"2042"
:
"Penafiel Rodas Karen Salome "
,
"2043"
:
"Jaramillo Gonzaga Evelin Lizbeth "
,
"2044"
:
"Gabriela Elizabeth Ochoa Fajardo"
,
"2045"
:
"Christopher Brian Chang Tapia"
,
"2046"
:
"Maria Guadalupe Arias Asmal"
,
"2047"
:
"Christian Adrian Lopez Durazno"
,
"2050"
:
"Matute Segarra Miriam Viviana "
,
"2051"
:
"Arevalo Jara Gabriela Alexandra"
,
"2052"
:
"Araujo Segovia Erika Patricia"
,
"2053"
:
"Cabrera Arteaga Andreina Estefania"
,
"2054"
:
"Caguana Laime Jhoanna Maribel"
,
"2055"
:
"Crespo Pizarro Paola Fernanda"
,
"2056"
:
"Esparza Ayala Pablo Andres"
,
"2057"
:
"Espana Marcia"
,
"2058"
:
"Mendoza Avila Andres Fabricio"
,
"2059"
:
"Naula Cardenas Paola Cecibel"
,
"2060"
:
"Nieto Guerrero Rolando Estuardo"
,
"2061"
:
"Ordonez Plaza Arturo Xavier"
,
"2062"
:
"Parra Reyes Andres Remigio"
,
"2063"
:
"Ramon Rodas Katherine Fernanda"
,
"2064"
:
"Rodriguez Rodriguez Paul Esteban"
,
"2065"
:
"Romero Calero Stefania Magdalena"
,
"2066"
:
"Tenezaca Maza Adriana Nube"
,
"2067"
:
"Uzhca Gonzalez Jessica Karina"
,
"2068"
:
"Velez Arcentales Jenny Isabel"
,
"2069"
:
"Yanez Arevalo Maria Belen"
,
"2070"
:
"Baculima Bueno Jessica Priscila"
,
"2071"
:
"Bermeo Zuna Diego Alejandro"
,
"2072"
:
"Carchi Ordonez Gabriela Elizabeth"
,
"2073"
:
"Lata Sinchi Ana Lucia"
,
"2074"
:
"Maita Robles John Christian"
,
"2075"
:
"Mejia Lojano Gloria Beatriz"
,
"2076"
:
"Morales Figueroa Miriam Susana"
,
"2077"
:
"Murillo Pinos Ana Lucia"
,
"2078"
:
"Romero Carpio Joseline Lorena"
,
"2079"
:
"Ulloa Vintimilla Hernan Marcelo"
,
"2080"
:
"Valdivieso Aviles Jessica Daniela"
,
"2081"
:
"Vasquez Sari Tatiana Cecibel"
,
"2082"
:
"Vivar Rivadeneira Susana Elizabeth"
"2052"
:
"EARAUJO"
,
"2051"
:
"GAREVALO"
,
"2070"
:
"JPBACULIMA"
,
"2026"
:
"ABARBECHO"
,
"2019"
:
"TMBERMEO"
,
"2071"
:
"DABERMEO"
,
"2025"
:
"WBRAVO"
,
"2053"
:
"AECABRERA"
,
"2054"
:
"JCAGUANA"
,
"2027"
:
"ECALDERON"
,
"2072"
:
"GCARCHI"
,
"2033"
:
"MCARDENAS"
,
"2047"
:
"CALOPEZ"
,
"2045"
:
"CCHANG"
,
"2055"
:
"PFCRESPO"
,
"2057"
:
"MESPANA"
,
"2056"
:
"PESPARZA"
,
"2040"
:
"JFAICAN"
,
"2038"
:
"CNFLORES"
,
"2044"
:
"GEOCHOA"
,
"2031"
:
"CGGOMEZ"
,
"2018"
:
"MHURTADO"
,
"2028"
:
"VJARA"
,
"2043"
:
"EJARAMILLO"
,
"2073"
:
"ALATA"
,
"2032"
:
"VLEON"
,
"2074"
:
"JMAITA"
,
"2046"
:
"MGARIAS"
,
"2050"
:
"MMATUTE"
,
"2075"
:
"GMEJIA"
,
"2058"
:
"AMENDOZA"
,
"2076"
:
"MMORALES"
,
"2077"
:
"ALMURILLO"
,
"2059"
:
"PNAULA"
,
"2060"
:
"RENIETO"
,
"2061"
:
"XORDONEZ"
,
"2022"
:
"MDORTEGA"
,
"2062"
:
"aparra"
,
"2017"
:
"DPAUCAR"
,
"2042"
:
"KPENAFIEL"
,
"2023"
:
"MCPERALTAJ"
,
"2063"
:
"KRAMON"
,
"2021"
:
"JROBLES"
,
"2064"
:
"PRODRIGUEZ"
,
"2065"
:
"SROMERO"
,
"2078"
:
"JJROMERO"
,
"2034"
:
"CSAMANIEGO"
,
"2030"
:
"ASANCHEZ"
,
"2020"
:
"LSOJOS"
,
"2035"
:
"ASSUAREZ"
,
"2037"
:
"ATAPIA"
,
"2066"
:
"ATENEZACA"
,
"2079"
:
"HULLOA"
,
"2067"
:
"JUZHCA"
,
"2080"
:
"DVALDIVIESO"
,
"2081"
:
"TVASQUEZ"
,
"2068"
:
"IVELEZ"
,
"2041"
:
"JAVILLA"
,
"2082"
:
"SVIVAR"
,
"2069"
:
"MBYANEZ"
,
"2024"
:
"MDZAMBRANO"
,
"2096"
:
"GAANDRADE"
,
"2097"
:
"S/N"
,
"2098"
:
"ECARDENAS"
,
"2099"
:
"BBENAVIDES"
,
"2100"
:
"KPAUZHI"
,
"2101"
:
"AGUANUCHI"
,
"2102"
:
"PCARPIO"
,
"2103"
:
"MBOCHOA"
,
"2104"
:
"CCANDO"
,
"2095"
:
"BPLOPEZ"
,
"4050"
:
"Test Indurama"
}
for
key
,
value
in
dictionary
.
items
():
if
value
==
name
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment