Commit 3d1b81d2 authored by Luis Acosta's avatar Luis Acosta

se adiciona camp agente

parent 27792f80
...@@ -20,7 +20,7 @@ class Callcenter: ...@@ -20,7 +20,7 @@ class Callcenter:
def search_campaing(self,id_campaign): def search_campaing(self,id_campaign):
url_center = f"{self.url}/api/outgoingcampaigns/{id_campaign}" url_center = f"{self.url}/api/outgoingcampaigns/{id_campaign}"
print(f"url: {url_center}") #print(f"url: {url_center}")
headers = { headers = {
"Content-Type": "application/json", "Content-Type": "application/json",
"Accept": "application/json", "Accept": "application/json",
...@@ -43,6 +43,7 @@ class Callcenter: ...@@ -43,6 +43,7 @@ class Callcenter:
"data": campaign_data "data": campaign_data
} }
#return url_center,headers,payload
response = requests.post(url_center, headers=headers, json=payload, verify=False) response = requests.post(url_center, headers=headers, json=payload, verify=False)
return response.content return response.content
......
This diff is collapsed.
...@@ -121,67 +121,78 @@ def validate_keys(data): ...@@ -121,67 +121,78 @@ def validate_keys(data):
def find_name_position(name): def find_name_position(name):
dictionary = { dictionary = {
"2017" : "Paucar Tapia Dennis Andres", "2052":"EARAUJO",
"2018" : "Hurtado Tocache Mayra Biviana", "2051":"GAREVALO",
"2019" : "Bermeo Cajamarca Tania Marcela ", "2070":"JPBACULIMA",
"2020" : "Sojos Bermeo Lourdes Maricela", "2026":"ABARBECHO",
"2021" : "Robles Guerra Jhoanna Maricela", "2019":"TMBERMEO",
"2022" : "Ortega Leon Maria Daniela", "2071":"DABERMEO",
"2023" : "Peralta Jaramillo Michelle Catalina", "2025":"WBRAVO",
"2024" : "Zambrano Santiak Maria Dolores ", "2053":"AECABRERA",
"2025" : "Bravo Andrade Willy Luis", "2054":"JCAGUANA",
"2026" : "Barbecho Arias Alba Janneth", "2027":"ECALDERON",
"2027" : "Calderon Sucuzhanay Eliza Katherine", "2072":"GCARCHI",
"2028" : "Jara Caceres Virginia Carolina", "2033":"MCARDENAS",
"2030" : "Sanchez Zhagnay Angel Marcelo", "2047":"CALOPEZ",
"2031" : "Gomez Ochoa Cristian Gabriel", "2045":"CCHANG",
"2032" : "Leon Duenas Valeria Estefania ", "2055":"PFCRESPO",
"2033" : "Cardenas Torres Madelyne Coraima", "2057":"MESPANA",
"2034" : "Samaniego Gonzaga Camila Nicole ", "2056":"PESPARZA",
"2035" : "Suarez Bacuilima Andres Santiago", "2040":"JFAICAN",
"2037" : "Tapia Penaloza Andreina De Los Angeles", "2038":"CNFLORES",
"2038" : "Flores Lopez Christian Nicolas ", "2044":"GEOCHOA",
"2040" : "Faican Vasquez Jennifer Eliana", "2031":"CGGOMEZ",
"2041" : "Villa Torres Joseline Andrea ", "2018":"MHURTADO",
"2042" : "Penafiel Rodas Karen Salome ", "2028":"VJARA",
"2043" : "Jaramillo Gonzaga Evelin Lizbeth ", "2043":"EJARAMILLO",
"2044" : "Gabriela Elizabeth Ochoa Fajardo", "2073":"ALATA",
"2045" : "Christopher Brian Chang Tapia", "2032":"VLEON",
"2046" : "Maria Guadalupe Arias Asmal", "2074":"JMAITA",
"2047" : "Christian Adrian Lopez Durazno", "2046":"MGARIAS",
"2050" : "Matute Segarra Miriam Viviana ", "2050":"MMATUTE",
"2051" : "Arevalo Jara Gabriela Alexandra", "2075":"GMEJIA",
"2052" : "Araujo Segovia Erika Patricia", "2058":"AMENDOZA",
"2053" : "Cabrera Arteaga Andreina Estefania", "2076":"MMORALES",
"2054" : "Caguana Laime Jhoanna Maribel", "2077":"ALMURILLO",
"2055" : "Crespo Pizarro Paola Fernanda", "2059":"PNAULA",
"2056" : "Esparza Ayala Pablo Andres", "2060":"RENIETO",
"2057" : "Espana Marcia", "2061":"XORDONEZ",
"2058" : "Mendoza Avila Andres Fabricio", "2022":"MDORTEGA",
"2059" : "Naula Cardenas Paola Cecibel", "2062":"aparra",
"2060" : "Nieto Guerrero Rolando Estuardo", "2017":"DPAUCAR",
"2061" : "Ordonez Plaza Arturo Xavier", "2042":"KPENAFIEL",
"2062" : "Parra Reyes Andres Remigio", "2023":"MCPERALTAJ",
"2063" : "Ramon Rodas Katherine Fernanda", "2063":"KRAMON",
"2064" : "Rodriguez Rodriguez Paul Esteban", "2021":"JROBLES",
"2065" : "Romero Calero Stefania Magdalena", "2064":"PRODRIGUEZ",
"2066" : "Tenezaca Maza Adriana Nube", "2065":"SROMERO",
"2067" : "Uzhca Gonzalez Jessica Karina", "2078":"JJROMERO",
"2068" : "Velez Arcentales Jenny Isabel", "2034":"CSAMANIEGO",
"2069" : "Yanez Arevalo Maria Belen", "2030":"ASANCHEZ",
"2070" : "Baculima Bueno Jessica Priscila", "2020":"LSOJOS",
"2071" : "Bermeo Zuna Diego Alejandro", "2035":"ASSUAREZ",
"2072" : "Carchi Ordonez Gabriela Elizabeth", "2037":"ATAPIA",
"2073" : "Lata Sinchi Ana Lucia", "2066":"ATENEZACA",
"2074" : "Maita Robles John Christian", "2079":"HULLOA",
"2075" : "Mejia Lojano Gloria Beatriz", "2067":"JUZHCA",
"2076" : "Morales Figueroa Miriam Susana", "2080":"DVALDIVIESO",
"2077" : "Murillo Pinos Ana Lucia", "2081":"TVASQUEZ",
"2078" : "Romero Carpio Joseline Lorena", "2068":"IVELEZ",
"2079" : "Ulloa Vintimilla Hernan Marcelo", "2041":"JAVILLA",
"2080" : "Valdivieso Aviles Jessica Daniela", "2082":"SVIVAR",
"2081" : "Vasquez Sari Tatiana Cecibel", "2069":"MBYANEZ",
"2082" : "Vivar Rivadeneira Susana Elizabeth" "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(): for key, value in dictionary.items():
if value == name: if value == name:
......
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