Skip to content

Instantly share code, notes, and snippets.

@CoutinhoElias
Last active March 11, 2024 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CoutinhoElias/0db8828ef525a4e4b0e2ea3e6e4e7a2e to your computer and use it in GitHub Desktop.
Save CoutinhoElias/0db8828ef525a4e4b0e2ea3e6e4e7a2e to your computer and use it in GitHub Desktop.
Trello app applied to my needs.
# Json init unique_deal_stage_names.json
{"Testados": "colors.LIGHT_GREEN", "Realizados": "colors.DEEP_ORANGE_400", "Liberados": "colors.LIGHT_GREEN", "Concluidos": "colors.RED"}
# My Modified Trello. (dd_personalizado.py)
import logging
import flet
from flet import (
Page,
DragTarget,
Draggable,
Container,
Column,
Row,
Text,
TextButton,
Icon,
TextField,
UserControl,
Card,
icons,
border_radius,
border,
alignment,
colors,
padding,
ScrollMode,
ElevatedButton,
MaterialState,
BorderSide,
RoundedRectangleBorder,
ButtonStyle,
FontWeight,
MainAxisAlignment,
ScrollbarTheme,
Theme,
)
from pprint import pprint
from pedidos_rd import *
# Imports para tratar formato de valores numéricos.
import locale
# Definir a localização como "Português do Brasil"
locale.setlocale(locale.LC_ALL, 'pt_BR.utf8')
# logging.basicConfig(level=logging.INFO)
# print("flet version: ", flet.version.version)
class ItemList(UserControl):
def __init__(self, page, list_name, color):
super().__init__()
self.page = page
self.list_name: str = list_name
self.list_color = color
# self.items = Column([], tight=True, spacing=5)
# Coluna onde se encontra o Card
self.items = Column(
[],
spacing=0,
height=800,
width=450,
scroll=ScrollMode.ALWAYS,
on_scroll_interval=0,
)
# Container que se encontra o indicador de objeto arrastável.
self.end_indicator = Container(
bgcolor=colors.BLACK26,
border_radius=border_radius.all(30),
height=3,
width=100,
opacity=0.0
)
# self.item_name = TextField(
# label="New Item Name", width=200, height=50, bgcolor=colors.WHITE, on_submit=self.add_item_handler)
def build(self):
self.view = Draggable(
group="lists",
content=DragTarget(
group="items",
content=DragTarget(
group="lists",
content=Container(
content=Column(
[
ElevatedButton(
self.list_name, # ************************************************************
width=400,
# style=ButtonStyle(
# color={
# MaterialState.HOVERED: colors.WHITE,
# MaterialState.FOCUSED: colors.BLUE,
# # MaterialState.DEFAULT: colors.BLACK,
# },
# # bgcolor={MaterialState.FOCUSED: colors.PINK_200, "": colors.YELLOW},
# padding={MaterialState.HOVERED: 20},
# overlay_color=colors.TRANSPARENT,
# elevation={"pressed": 0, "": 1},
# animation_duration=500,
# side={
# MaterialState.DEFAULT: BorderSide(1, colors.BLUE),
# MaterialState.HOVERED: BorderSide(2, colors.BLUE),
# },
# shape={
# MaterialState.HOVERED: RoundedRectangleBorder(radius=20),
# MaterialState.DEFAULT: RoundedRectangleBorder(radius=2),
# },
# ),
),
# self.item_name,
# TextButton(
# "Add Item", icon=icons.ADD, on_click=self.add_item_handler),
self.items,
self.end_indicator
],
spacing=4,
tight=True,
expand=True
),
# Container de cada coluna.
border=border.all(2, colors.BLACK12),
border_radius=border_radius.all(15),
bgcolor=self.list_color, # Modifica a cor da coluna
# bgcolor=colors.AMBER_100,
padding=padding.all(7),
width=430,
),
data=self,
on_accept=self.drag_accept,
on_will_accept=self.drag_will_accept,
on_leave=self.drag_leave
),
data=self,
on_accept=self.item_drag_accept,
on_will_accept=self.item_drag_will_accept,
on_leave=self.item_drag_leave,
)
)
return self.view
def add_item_handler(self, e):
self.add_item()
def add_item(self, item: str = None, chosen_control: Draggable = None, swap_control: Draggable = None):
controls_list = [x.controls[1] for x in self.items.controls]
to_index = controls_list.index(
swap_control) if swap_control in controls_list else None
from_index = controls_list.index(
chosen_control) if chosen_control in controls_list else None
# Indicador de posição ao arrastar. **********
control_to_add = Column([
Container(
bgcolor=colors.BLACK26,
border_radius=border_radius.all(30),
height=5,
alignment=alignment.center_right,
width=400,
opacity=0.0
)
])
# rearrange (i.e. drag drop from same list)
if ((from_index is not None) and (to_index is not None)):
# print("rearrange: ", to_index, from_index)
self.items.controls.insert(
to_index, self.items.controls.pop(from_index))
self.set_indicator_opacity(swap_control, 0.0)
# insert (drag from other list to middle of this list)
elif (to_index is not None):
# print("insert: ", to_index)
new_item = Item(self, item)
control_to_add.controls.append(new_item.view)
self.items.controls.insert(to_index, control_to_add)
# add new (drag from other list to end of this list, or use add item button)
else:
# print("add new: ", item)
new_item = new_item = Item(self, item) if item else Item(
self, self.item_name.value)
control_to_add.controls.append(new_item.view)
self.items.controls.append(control_to_add)
# self.item_name.value = "" # Caso precise de um campo texto na coluna
# print("self.items: ", self.items.controls)
self.view.update()
self.page.update()
def set_indicator_opacity(self, item, opacity):
controls_list = [x.controls[1] for x in self.items.controls]
self.items.controls[controls_list.index(
item)].controls[0].opacity = opacity
self.view.update()
# print('8')
def remove_item(self, item):
controls_list = [x.controls[1] for x in self.items.controls]
del self.items.controls[controls_list.index(item)]
self.view.update()
# print('7')
def drag_accept(self, e):
print('Acontece na linha 206')
lista_cores_conhecidas = {
'lightgreen':'colors.LIGHT_GREEN',
'red':'colors.RED',
'amber500':'colors.AMBER_500',
'pink300':'colors.PINK_300',
'orange300':'colors.ORANGE_300',
'lightblue300':'colors.LIGHT_BLUE',
'deeporange400': 'colors.DEEP_ORANGE_400',
'purple100':'colors.PURPLE_100',
'red700':'colors.RED_700',
'teal500':'colors.TEAL_500',
'yellow400':'colors.YELLOW_400',
'purple400':'colors.PURPLE_400',
'brown300':'colors.BROWN_300',
'cyan500':'colors.CYAN_500',
'bluegrey500':'colors.BLUE_GREY_500',
'amber': 'colors.AMBER',
'cyan100': 'colors.CYAN_100',
}
src = self.page.get_control(e.src_id)
l = self.page.item_lists.controls
to_index = l.index(e.control.data)
from_index = l.index(src.content.data)
l[to_index], l[from_index] = l[from_index], l[to_index]
self.end_indicator.opacity = 0.0
# Crie o arquivo inicialmente com a estrutura desejada
existing_data = {} # {'Liberados': colors.LIGHT_GREEN, 'Realizados': colors.LIGHT_GREEN, 'Concluidos': colors.LIGHT_GREEN}
# Aqui você processa seus dados reais e atualiza as cores conforme necessário
for stage_name in l:
if stage_name not in existing_data:
existing_data[stage_name.__dict__["list_name"]] = lista_cores_conhecidas[getattr(stage_name, 'list_color')] # ou qualquer cor padrão desejada
# Atualize o arquivo (ou crie-o, se não existir)
with open("unique_deal_stage_names.json", "w") as file:
json.dump(existing_data, file)
# self.update()
self.page.update()
def drag_will_accept(self, e):
print('Acontece na linha 251')
self.end_indicator.opacity = 0.0
self.page.update()
# print('5')
def drag_leave(self, e):
self.end_indicator.opacity = 0.0
self.page.update()
# print('4')
def item_drag_accept(self, e):
src = self.page.get_control(e.src_id)
self.add_item(src.data.item_text)
src.data.list.remove_item(src)
self.end_indicator.opacity = 0.0
self.update()
# print('3')
def item_drag_will_accept(self, e):
self.end_indicator.opacity = 1.0
self.update()
# print('2')
def item_drag_leave(self, e):
self.end_indicator.opacity = 0.0
self.update()
# print('1')
class Item():
def __init__(self, list: ItemList, item_text: str):
self.list = list
self.item_text = item_text
self.card_item = Card(
content=Container(
content=Column(
[
Row(
[
Text(self.item_text['name']),
Text(
locale.currency(self.item_text['amount_total'], grouping=True, symbol=False), weight=FontWeight.BOLD,
)
],
alignment=MainAxisAlignment.SPACE_BETWEEN,
),
Text(self.item_text['organization']['name']),
Row(
[
Row(
[
Text("Vendedor: "),
Text(self.item_text['user']['name'])
],
alignment=MainAxisAlignment.START,
),
Text(self.item_text['campaign']['name'])
],
alignment=MainAxisAlignment.SPACE_BETWEEN,
),
], spacing=1
),
width=400,
padding=10,
),
)
# Card(
# content=Container(
# content=Row([
# Icon(name=icons.CIRCLE_OUTLINED),
# Text(value=f"{self.item_text['organization']['name']}")
# ],
# alignment="start",
# ),
# width=200,
# padding=7
# ),
# elevation=1,
# data=self.list
# )
self.view = Draggable(
group="items",
content=DragTarget(
group="items",
content=self.card_item,
on_accept=self.drag_accept,
on_leave=self.drag_leave,
on_will_accept=self.drag_will_accept,
),
data=self
)
def drag_accept(self, e):
# this is the item picked up (Draggable control)
src = self.list.page.get_control(e.src_id)
# e.control is the DragTarget, i.e. This (self) Item in the list
# skip if item is dropped on itself
if (src.content.content == e.control.content):
e.control.content.elevation = 1
self.list.set_indicator_opacity(self.view, 0.0)
e.control.update()
return
# item dropped within same list but not on self
if (src.data.list == self.list):
self.list.add_item(chosen_control=src,
swap_control=self.view)
self.list.set_indicator_opacity(self.view, 0.0)
e.control.content.elevation = 1
e.control.update()
return
# item added to different list
self.list.add_item(src.data.item_text, swap_control=self.view)
# remove from the list to which draggable belongs
src.data.list.remove_item(src)
self.list.set_indicator_opacity(self.view, 0.0)
e.control.content.elevation = 1
e.control.update()
def drag_will_accept(self, e):
self.list.set_indicator_opacity(self.view, 1.0)
e.control.content.elevation = 20 if e.data == "true" else 1
e.control.update()
def drag_leave(self, e):
self.list.set_indicator_opacity(self.view, 0.0)
e.control.content.elevation = 1
e.control.update()
# from flet.color import colors
import json
def color_option_creator(color: str):
return Container(
bgcolor=color,
border_radius=border_radius.all(50),
height=10,
width=10,
padding=padding.all(5),
alignment=alignment.center,
data=color
)
color_options = {
colors.LIGHT_GREEN: color_option_creator(colors.LIGHT_GREEN),
colors.RED_200: color_option_creator(colors.RED_200),
colors.AMBER_500: color_option_creator(colors.AMBER_500),
colors.PINK_300: color_option_creator(colors.PINK_300),
colors.ORANGE_300: color_option_creator(colors.ORANGE_300),
colors.LIGHT_BLUE: color_option_creator(colors.LIGHT_BLUE),
colors.DEEP_ORANGE_300: color_option_creator(colors.DEEP_ORANGE_300),
colors.PURPLE_100: color_option_creator(colors.PURPLE_100),
colors.RED_700: color_option_creator(colors.RED_700),
colors.TEAL_500: color_option_creator(colors.TEAL_500),
colors.YELLOW_400: color_option_creator(colors.YELLOW_400),
colors.PURPLE_400: color_option_creator(colors.PURPLE_400),
colors.BROWN_300: color_option_creator(colors.BROWN_300),
colors.CYAN_500: color_option_creator(colors.CYAN_500),
colors.BLUE_GREY_500: color_option_creator(colors.BLUE_GREY_500),
}
def main(page: Page):
page.theme_mode = "dark"
page.theme = Theme(
scrollbar_theme=ScrollbarTheme(
track_color={
MaterialState.HOVERED: colors.AMBER,
MaterialState.DEFAULT: colors.TRANSPARENT,
},
track_visibility=True,
track_border_color=colors.BLUE,
thumb_visibility=True,
thumb_color={
MaterialState.HOVERED: colors.RED,
MaterialState.DEFAULT: colors.GREY_300,
},
thickness=5,
radius=15,
main_axis_margin=5,
cross_axis_margin=5,
# interactive=False,
)
)
# Criamos um dicionário para acumular os dados e exibir nas colunas.
unique_deal_stage_names = set()
# Criar o dicionário deal_stages.
deal_stages = {}
for deal in pedidos_rd['deals']:
stage_name = deal['deal_stage']['name']
# pprint(deal['deal_stage']['name'])
deal_data = {
'_id': deal['_id'],
'name': deal['name'],
'amount_total': deal['amount_total'],
'win': deal['win'],
'organization': {
'_id': deal['organization']['_id'],
'name': deal['organization']['name'],
'user_name': deal['organization']['user']['name']
},
'user': {
'_id': deal['user']['_id'],
'name': deal['user']['name']
},
'deal_stage': {
'_id': deal['deal_stage']['_id'],
'name': deal['deal_stage']['name']
},
'campaign': {
'_id': deal['campaign']['_id'],
'name': deal['campaign']['name']
}
}
# Adicionar os dados ao dicionário deal_stages usando stage_name como chave
deal_stages.setdefault(stage_name, []).append(deal_data)
unique_deal_stage_names.add(stage_name)
# CRIAMOS AS COLUNAS E CORES DE COLUNAS ---------------------------------------------------------------------------------------
# Testei com json zerado, com 1 coluna, mudei a ordem e manteve.
# Próximo passo: Carregar a cor da coluna.
try:
with open("unique_deal_stage_names.json", "r") as file:
existing_data = json.load(file)
except FileNotFoundError:
# Crie o arquivo inicialmente com a estrutura desejada
existing_data = {}# {'Liberados': colors.LIGHT_GREEN, 'Realizados': colors.LIGHT_GREEN, 'Concluidos': colors.LIGHT_GREEN}
# Aqui você processa seus dados reais e atualiza as cores conforme necessário
for stage_name in unique_deal_stage_names:
if stage_name not in existing_data:
existing_data[stage_name] = 'colors.LIGHT_GREEN' # ou qualquer cor padrão desejada
# Atualize o arquivo (ou crie-o, se não existir)
with open("unique_deal_stage_names.json", "w") as file:
json.dump(existing_data, file)
# -----------------------------------------------------------------------------------------------------------------------------
page.title = "Drag and drop ordering"
# Crio um dicionário para compor minha lista de colunas.
listas = {}
# Padrão sugerido pela documentação.
# for key, value_list in deal_stages.items():
# listas[key] = ItemList(page, key, colors.DEEP_ORANGE_400)
# # print(key, '*************')
# Percorro a base de dados do RD Station em busca de Pedidos de Venda.
# Armazeno tudo em um dicionário chamado listas
for key, value_list in deal_stages.items():
# Achave literalmente é o valor "key" no FOR
# e o Valor é o valor no dicionário existing_data que possui a mesma chave deste FOR
listas[key] = ItemList(page, key, eval(existing_data[key])) # eval transforma uma expressão texto em código python.
# Cria um novo dicionário vazio para fazer o novo jogo de valores.
novo_dicionario = {}
# Itera sobre as chaves do dicionário "existing_data" e defino a nova ordem
for chave in existing_data.keys():
# Adiciona a chave e o objeto "ItemList" ao novo dicionário
novo_dicionario[chave] = listas[chave]
page.item_lists = Row([
*novo_dicionario.values()
], vertical_alignment="start", scroll=ScrollMode.ALWAYS,)
page.add(page.item_lists)
for item_list in novo_dicionario.items():
fase, cartao = item_list
# print(fase, '***************************') # Imprime o objeto ItemList
for dados_key in deal_stages[fase]:
# print(dados_key['name'])
cartao.add_item(dados_key) # Chama o método add_item no objeto ItemList
flet.app(target=main)
# My Json Data (pedidos_rd.py)
pedidos_rd = {
"total": 295,
"has_more": True,
"deals": [
{
"_id": "65ba30916c02ea001f2d7baa",
"id": "65ba30916c02ea001f2d7baa",
"name": "1303298 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 13581.15,
"amount_total": 13581.15,
"prediction_date": "2024-01-31",
"markup": "today",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-31T08:35:45.261-03:00",
"updated_at": "2024-01-31T08:35:52.316-03:00",
"rating": 1,
"markup_created": "today",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": 999,
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-02-01T08:35:45.261-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "6545091f48136f00159b2938",
"id": "6545091f48136f00159b2938",
"name": "CLIENTE 1",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "65294628e68619001e9ff8d5",
"id": "65294628e68619001e9ff8d5",
"name": "VENDEDOR 1",
"email": "anelissedias@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "6557d0138c10770012236b71",
"id": "6557d0138c10770012236b71",
"name": "VENDEDOR 2",
"nickname": "MM",
"email": "mariamartins@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65ba30980f1e260001f7bec0",
"id": "65ba30980f1e260001f7bec0",
"date": "2024-02-01T07:35:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "07:35"
},
"contacts": [
{
"name": "CONSTRUTORA PLATO LTDA ME",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"(85) 3268-2888\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65ba30916c02ea001f2d7bbe",
"id": "65ba30916c02ea001f2d7bbe",
"product_id": "65ba30916c02ea001f2d7bbd",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303298",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303298",
"base_price": 13581.15,
"created_at": "2024-01-31T08:35:45.460-03:00",
"updated_at": "2024-01-31T08:35:45.460-03:00",
"price": 13581.15,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 13581.15
}
]
},
{
"_id": "65b9739edb7d990013c92f84",
"id": "65b9739edb7d990013c92f84",
"name": "1303275 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 15297,
"amount_total": 15297,
"prediction_date": "2024-01-30",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T19:09:34.958-03:00",
"updated_at": "2024-01-30T19:09:43.467-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T19:09:34.958-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "655cd482af40ac000d8131f7",
"id": "655cd482af40ac000d8131f7",
"name": "SUPERMERCADO COMETA LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "655b8d2ce8f35700141ca5bc",
"id": "655b8d2ce8f35700141ca5bc",
"name": "VENDEDOR 4",
"email": "rafaelrabelo@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "655b8d2ce8f35700141ca5bc",
"id": "655b8d2ce8f35700141ca5bc",
"name": "VENDEDOR 4",
"nickname": "RR",
"email": "rafaelrabelo@fakemail.com"
},
"deal_stage": {
"_id": "655cd7fa33d98f0013580202",
"id": "655cd7fa33d98f0013580202",
"name": "Liberados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b973a7983dc70001ab3608",
"id": "65b973a7983dc70001ab3608",
"date": "2024-01-31T18:09:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "18:09"
},
"contacts": [
{
"name": "SUPERMERCADO COMETA LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[85999999999]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b9739fdb7d990013c92f98",
"id": "65b9739fdb7d990013c92f98",
"product_id": "65b9739fdb7d990013c92f97",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303275",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303275",
"base_price": 15297,
"created_at": "2024-01-30T19:09:35.153-03:00",
"updated_at": "2024-01-30T19:09:35.153-03:00",
"price": 15297,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 15297
}
]
},
{
"_id": "65b94caea9d55a000d7bd431",
"id": "65b94caea9d55a000d7bd431",
"name": "1303050 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 18947.16,
"amount_total": 18947.16,
"prediction_date": "2024-01-30",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T16:23:26.514-03:00",
"updated_at": "2024-01-30T16:23:36.358-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T16:23:26.514-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "65453580cfd804000ff36a98",
"id": "65453580cfd804000ff36a98",
"name": "3P INSTALACOES ELETRICAS LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "65294317577a710011af875a",
"id": "65294317577a710011af875a",
"name": "EDILZA SOUZA",
"email": "edilzasouza@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "65294317577a710011af875a",
"id": "65294317577a710011af875a",
"name": "EDILZA SOUZA",
"nickname": "ES",
"email": "edilzasouza@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b94cb8dd72940001940051",
"id": "65b94cb8dd72940001940051",
"date": "2024-01-31T15:23:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "15:23"
},
"contacts": [
{
"name": "3P INSTALACOES ELETRICAS LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"71 98164 9170\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b94caea9d55a000d7bd445",
"id": "65b94caea9d55a000d7bd445",
"product_id": "65b94caea9d55a000d7bd444",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303050",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303050",
"base_price": 18947.16,
"created_at": "2024-01-30T16:23:26.679-03:00",
"updated_at": "2024-01-30T16:23:26.679-03:00",
"price": 18947.16,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 18947.16
}
]
},
{
"_id": "65b94ca75d344d00122368cc",
"id": "65b94ca75d344d00122368cc",
"name": "1303028 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 40002.38,
"amount_total": 40002.38,
"prediction_date": "2024-01-30",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T16:23:20.039-03:00",
"updated_at": "2024-01-30T16:23:35.980-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T16:23:20.039-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "65524005936e9c06cea79e05",
"id": "65524005936e9c06cea79e05",
"name": "ACADEMIAS GREENLIFE EUSEBIO LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "65294596d9909e0010ae9dd1",
"id": "65294596d9909e0010ae9dd1",
"name": "VENDEDOR 3",
"email": "alexandresantos@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "65294596d9909e0010ae9dd1",
"id": "65294596d9909e0010ae9dd1",
"name": "VENDEDOR 3",
"nickname": "AS",
"email": "alexandresantos@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b94cb72b6ca100010553f4",
"id": "65b94cb72b6ca100010553f4",
"date": "2024-01-31T15:23:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "15:23"
},
"contacts": [
{
"name": "ACADEMIAS GREENLIFE EUSEBIO LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"85 99820 9574\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b94ca85d344d00122368e0",
"id": "65b94ca85d344d00122368e0",
"product_id": "65b94ca85d344d00122368df",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303028",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303028",
"base_price": 40002.3806056,
"created_at": "2024-01-30T16:23:20.218-03:00",
"updated_at": "2024-01-30T16:23:20.218-03:00",
"price": 40002.3806056,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 40002.38
}
]
},
{
"_id": "65b94ca19e0cae0017c09add",
"id": "65b94ca19e0cae0017c09add",
"name": "1303168 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 18516.34,
"amount_total": 18516.34,
"prediction_date": "2024-01-30",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T16:23:13.614-03:00",
"updated_at": "2024-01-30T16:23:29.714-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T16:23:13.614-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "6598120bb31ce3000d0f4016",
"id": "6598120bb31ce3000d0f4016",
"name": "EU FIT ACADEMIA DE GINASTICA LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"email": "brunomendonca@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"nickname": "BM",
"email": "brunomendonca@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b94cb1dd72940001940031",
"id": "65b94cb1dd72940001940031",
"date": "2024-01-31T15:23:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "15:23"
},
"contacts": [
{
"name": "EU FIT ACADEMIA DE GINASTICA LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"romulo.ferreira@smartfit.com\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b94ca19e0cae0017c09af1",
"id": "65b94ca19e0cae0017c09af1",
"product_id": "65b94ca19e0cae0017c09af0",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303168",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303168",
"base_price": 18516.3432,
"created_at": "2024-01-30T16:23:13.827-03:00",
"updated_at": "2024-01-30T16:23:13.827-03:00",
"price": 18516.3432,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 18516.34
}
]
},
{
"_id": "65b94c9b8bf3b10017496fb3",
"id": "65b94c9b8bf3b10017496fb3",
"name": "1303141 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 17775.2,
"amount_total": 17775.2,
"prediction_date": "2024-01-30",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T16:23:07.263-03:00",
"updated_at": "2024-01-30T16:23:18.541-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T16:23:07.263-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "655e09f7bef224000d4ee0a6",
"id": "655e09f7bef224000d4ee0a6",
"name": "EURASIA CONSTRUCOES LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"email": "brunomendonca@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"nickname": "BM",
"email": "brunomendonca@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Concluidos",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b94ca645f09d00010072df",
"id": "65b94ca645f09d00010072df",
"date": "2024-01-31T15:23:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "15:23"
},
"contacts": [
{
"name": "EURASIA CONSTRUCOES LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"eurasiaengenharia@outlook.com\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b94c9b8bf3b10017496fc7",
"id": "65b94c9b8bf3b10017496fc7",
"product_id": "65b94c9b8bf3b10017496fc6",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303141",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303141",
"base_price": 17775.195825,
"created_at": "2024-01-30T16:23:07.459-03:00",
"updated_at": "2024-01-30T16:23:07.459-03:00",
"price": 17775.195825,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 17775.2
}
]
},
{
"_id": "65b94c941aed93000d7ef1d2",
"id": "65b94c941aed93000d7ef1d2",
"name": "1303099 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 10871.74,
"amount_total": 10871.74,
"prediction_date": "2024-01-30",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T16:23:00.985-03:00",
"updated_at": "2024-01-30T16:23:07.726-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T16:23:00.985-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "65b94c9004abb80014defe26",
"id": "65b94c9004abb80014defe26",
"name": "H E G ELETROTECNICA E SERVICOS DE ENGENHARIA LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "655b8d2ce8f35700141ca5bc",
"id": "655b8d2ce8f35700141ca5bc",
"name": "VENDEDOR 4",
"email": "rafaelrabelo@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "655b8d2ce8f35700141ca5bc",
"id": "655b8d2ce8f35700141ca5bc",
"name": "VENDEDOR 4",
"nickname": "RR",
"email": "rafaelrabelo@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b94c9b3cb75400011a71e8",
"id": "65b94c9b3cb75400011a71e8",
"date": "2024-01-31T15:23:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "15:23"
},
"contacts": [
{
"name": "H E G ELETROTECNICA E SERVICOS DE ENGENHARIA LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"85 3269 3503\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b94c951aed93000d7ef1e6",
"id": "65b94c951aed93000d7ef1e6",
"product_id": "65b94c951aed93000d7ef1e5",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303099",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303099",
"base_price": 10871.735,
"created_at": "2024-01-30T16:23:01.149-03:00",
"updated_at": "2024-01-30T16:23:01.149-03:00",
"price": 10871.735,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 10871.74
}
]
},
{
"_id": "65b94c87955140051754d6e1",
"id": "65b94c87955140051754d6e1",
"name": "1303110 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 33859.24,
"amount_total": 33859.24,
"prediction_date": "2024-01-30",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T16:22:47.756-03:00",
"updated_at": "2024-01-30T16:22:55.845-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T16:22:47.756-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "655c98d9ebfbd8000d35c54a",
"id": "655c98d9ebfbd8000d35c54a",
"name": "ITA RENTAL PARTICIPACOES LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"email": "brunomendonca@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"nickname": "BM",
"email": "brunomendonca@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b94c8f23ad850001478a33",
"id": "65b94c8f23ad850001478a33",
"date": "2024-01-31T15:22:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "15:22"
},
"contacts": [
{
"name": "ITA RENTAL PARTICIPACOES LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"Mal formatado\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b94c88955140051754d711",
"id": "65b94c88955140051754d711",
"product_id": "65b94c88955140051754d710",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303110",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303110",
"base_price": 33859.24,
"created_at": "2024-01-30T16:22:48.086-03:00",
"updated_at": "2024-01-30T16:22:48.086-03:00",
"price": 33859.24,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 33859.24
}
]
},
{
"_id": "65b94c80d5a7f3002186136c",
"id": "65b94c80d5a7f3002186136c",
"name": "1303049 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 21581.68,
"amount_total": 21581.68,
"prediction_date": "2024-01-30",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T16:22:40.742-03:00",
"updated_at": "2024-01-30T16:22:50.075-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T16:22:40.742-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "655cdd9980e5c7000d4b6014",
"id": "655cdd9980e5c7000d4b6014",
"name": "UNILINK TRANSPORTES INTEGRADOS LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"email": "brunomendonca@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"nickname": "BM",
"email": "brunomendonca@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Testados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b94c8923ad8500014789ed",
"id": "65b94c8923ad8500014789ed",
"date": "2024-01-31T15:22:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "15:22"
},
"contacts": [
{
"name": "UNILINK TRANSPORTES INTEGRADOS LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"9 9603 1019\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b94c80d5a7f30021861380",
"id": "65b94c80d5a7f30021861380",
"product_id": "65b94c80d5a7f3002186137f",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1303049",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1303049",
"base_price": 21581.6778,
"created_at": "2024-01-30T16:22:40.981-03:00",
"updated_at": "2024-01-30T16:22:40.981-03:00",
"price": 21581.6778,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 21581.68
}
]
},
{
"_id": "65b92e44679c552158504df9",
"id": "65b92e44679c552158504df9",
"name": "1302388 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 55425.17,
"amount_total": 55425.17,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:13:40.427-03:00",
"updated_at": "2024-01-30T14:13:48.210-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:13:40.427-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "655b95e929ae7b001b30934e",
"id": "655b95e929ae7b001b30934e",
"name": "ALBANO & ALBANO COMERCIO ALIMENTOS LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"email": "brunomendonca@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"nickname": "BM",
"email": "brunomendonca@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e4cb199d600019ad813",
"id": "65b92e4cb199d600019ad813",
"date": "2024-01-31T13:13:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:13"
},
"contacts": [
{
"name": "ALBANO & ALBANO COMERCIO ALIMENTOS LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"85 3361 1158\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e44679c552158504e0d",
"id": "65b92e44679c552158504e0d",
"product_id": "65b92e44679c552158504e0c",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302388",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302388",
"base_price": 55425.17,
"created_at": "2024-01-30T14:13:40.609-03:00",
"updated_at": "2024-01-30T14:13:40.609-03:00",
"price": 55425.17,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 55425.17
}
]
},
{
"_id": "65b92e3eaceb6900213e105f",
"id": "65b92e3eaceb6900213e105f",
"name": "1302259 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 25637.4,
"amount_total": 25637.4,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:13:34.128-03:00",
"updated_at": "2024-01-30T14:13:48.126-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:13:34.128-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "656f5663eb5eea001969642f",
"id": "656f5663eb5eea001969642f",
"name": "BLOKUS ENGENHARIA LTDA*****",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "65608ea2dd8b43000d2b0f4c",
"id": "65608ea2dd8b43000d2b0f4c",
"name": "VENDEDOR 6",
"email": "joaopaz@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "65294317577a710011af875a",
"id": "65294317577a710011af875a",
"name": "EDILZA SOUZA",
"nickname": "ES",
"email": "edilzasouza@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Concluidos",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e4b4ff77c00011ce8a7",
"id": "65b92e4b4ff77c00011ce8a7",
"date": "2024-01-31T13:13:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:13"
},
"contacts": [
{
"name": "BLOKUS ENGENHARIA LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"8531333921\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e3eaceb6900213e1073",
"id": "65b92e3eaceb6900213e1073",
"product_id": "65b92e3eaceb6900213e1072",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302259",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302259",
"base_price": 25637.4,
"created_at": "2024-01-30T14:13:34.279-03:00",
"updated_at": "2024-01-30T14:13:34.279-03:00",
"price": 25637.4,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 25637.4
}
]
},
{
"_id": "65b92e375c527912259edd10",
"id": "65b92e375c527912259edd10",
"name": "1302484 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 51673.59,
"amount_total": 51673.59,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:13:27.447-03:00",
"updated_at": "2024-01-30T14:13:41.176-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:13:27.447-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "656876a7057575001062dbea",
"id": "656876a7057575001062dbea",
"name": "BRAVUS ENG PROJ E CONSULTORIA LTDA ME",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "65608ea2dd8b43000d2b0f4c",
"id": "65608ea2dd8b43000d2b0f4c",
"name": "VENDEDOR 6",
"email": "joaopaz@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "65608ea2dd8b43000d2b0f4c",
"id": "65608ea2dd8b43000d2b0f4c",
"name": "VENDEDOR 6",
"nickname": "JP",
"email": "joaopaz@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e45f6efc300011be06f",
"id": "65b92e45f6efc300011be06f",
"date": "2024-01-31T13:13:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:13"
},
"contacts": [
{
"name": "BRAVUS ENG PROJ E CONSULTORIA LTDA ME",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"85 99635 3464 \"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e375c527912259edd24",
"id": "65b92e375c527912259edd24",
"product_id": "65b92e375c527912259edd23",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302484",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302484",
"base_price": 51673.59,
"created_at": "2024-01-30T14:13:27.999-03:00",
"updated_at": "2024-01-30T14:13:27.999-03:00",
"price": 51673.59,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 51673.59
}
]
},
{
"_id": "65b92e31b2be72229cb2a198",
"id": "65b92e31b2be72229cb2a198",
"name": "1302622 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 29877,
"amount_total": 29877,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:13:21.088-03:00",
"updated_at": "2024-01-30T14:13:35.386-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:13:21.088-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "65b92e2c43dbed0fbf1a3eb0",
"id": "65b92e2c43dbed0fbf1a3eb0",
"name": "CLASSE COURO INDUSTRIA DE ARTEFATOS DE COURO LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "65608ea2dd8b43000d2b0f4c",
"id": "65608ea2dd8b43000d2b0f4c",
"name": "VENDEDOR 6",
"email": "joaopaz@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "65608ea2dd8b43000d2b0f4c",
"id": "65608ea2dd8b43000d2b0f4c",
"name": "VENDEDOR 6",
"nickname": "JP",
"email": "joaopaz@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e3ff6efc300011be05b",
"id": "65b92e3ff6efc300011be05b",
"date": "2024-01-31T13:13:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:13"
},
"contacts": [
{
"name": "CLASSE COURO INDUSTRIA DE ARTEFATOS DE COURO LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"(75) 3254-1182\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e31b2be72229cb2a1ac",
"id": "65b92e31b2be72229cb2a1ac",
"product_id": "65b92e31b2be72229cb2a1ab",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302622",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302622",
"base_price": 29877,
"created_at": "2024-01-30T14:13:21.260-03:00",
"updated_at": "2024-01-30T14:13:21.260-03:00",
"price": 29877,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 29877
}
]
},
{
"_id": "65b92e2340786f1adafb219c",
"id": "65b92e2340786f1adafb219c",
"name": "1302476 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 12434.31,
"amount_total": 12434.31,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:13:07.890-03:00",
"updated_at": "2024-01-30T14:13:20.158-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:13:07.890-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "654500ba9304870020593b4b",
"id": "654500ba9304870020593b4b",
"name": "CLIENTE GERAL",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "652946c3d9909e0010aea081",
"id": "652946c3d9909e0010aea081",
"name": "LAISLA COSTA COSTA",
"email": "laislacosta@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "6558f9a904041f001350e815",
"id": "6558f9a904041f001350e815",
"name": "BRUNO MENDONCA",
"nickname": "BM",
"email": "brunomendonca@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e305cdfb3000199ee21",
"id": "65b92e305cdfb3000199ee21",
"date": "2024-01-31T13:13:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:13"
},
"contacts": [
{
"name": "CLIENTE GERAL",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"Mal formatado\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e2440786f1adafb21b0",
"id": "65b92e2440786f1adafb21b0",
"product_id": "65b92e2440786f1adafb21af",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302476",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302476",
"base_price": 12434.31,
"created_at": "2024-01-30T14:13:08.078-03:00",
"updated_at": "2024-01-30T14:13:08.078-03:00",
"price": 12434.31,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 12434.31
}
]
},
{
"_id": "65b92e1c9053f90019e5a3b7",
"id": "65b92e1c9053f90019e5a3b7",
"name": "1302455 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 19038.55,
"amount_total": 19038.55,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:13:01.029-03:00",
"updated_at": "2024-01-30T14:13:13.933-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:13:01.029-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "657b6f88eb711800120a5195",
"id": "657b6f88eb711800120a5195",
"name": "COLEGIO TELEYOS LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "655b8d2ce8f35700141ca5bc",
"id": "655b8d2ce8f35700141ca5bc",
"name": "VENDEDOR 4",
"email": "rafaelrabelo@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "655b8d2ce8f35700141ca5bc",
"id": "655b8d2ce8f35700141ca5bc",
"name": "VENDEDOR 4",
"nickname": "RR",
"email": "rafaelrabelo@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e29b5464f0001c065a4",
"id": "65b92e29b5464f0001c065a4",
"date": "2024-01-31T13:13:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:13"
},
"contacts": [
{
"name": "COLEGIO TELEYOS LTDA",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"85 3296 71 06\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e1d9053f90019e5a3cb",
"id": "65b92e1d9053f90019e5a3cb",
"product_id": "65b92e1d9053f90019e5a3ca",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302455",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302455",
"base_price": 19038.55,
"created_at": "2024-01-30T14:13:01.274-03:00",
"updated_at": "2024-01-30T14:13:01.274-03:00",
"price": 19038.55,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 19038.55
}
]
},
{
"_id": "65b92e16aceb6915513df830",
"id": "65b92e16aceb6915513df830",
"name": "1302327 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 48020.02,
"amount_total": 48020.02,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:12:54.724-03:00",
"updated_at": "2024-01-30T14:13:06.694-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:12:54.724-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "655b91d58d79d30016d9092e",
"id": "655b91d58d79d30016d9092e",
"name": "COSAMPA PROJ E CONSTRUCOES LTDA",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "6557d0138c10770012236b71",
"id": "6557d0138c10770012236b71",
"name": "VENDEDOR 2",
"email": "mariamartins@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "6557d0138c10770012236b71",
"id": "6557d0138c10770012236b71",
"name": "VENDEDOR 2",
"nickname": "MM",
"email": "mariamartins@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e22cd13480001a2a9f2",
"id": "65b92e22cd13480001a2a9f2",
"date": "2024-01-31T13:13:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:13"
},
"contacts": [
{
"name": "CLIENTE 2",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"85 3289 3608\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e16aceb6915513df844",
"id": "65b92e16aceb6915513df844",
"product_id": "65b92e16aceb6915513df843",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302327",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302327",
"base_price": 48020.0154,
"created_at": "2024-01-30T14:12:54.927-03:00",
"updated_at": "2024-01-30T14:12:54.927-03:00",
"price": 48020.0154,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 48020.02
}
]
},
{
"_id": "65b92e105a6b811c7b20ca3d",
"id": "65b92e105a6b811c7b20ca3d",
"name": "1301938 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 29962.73,
"amount_total": 29962.73,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:12:48.239-03:00",
"updated_at": "2024-01-30T14:12:59.350-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:12:48.239-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "65450bfc1f00980013caba7b",
"id": "65450bfc1f00980013caba7b",
"name": "CLIENTE 3",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "65294596d9909e0010ae9dd1",
"id": "65294596d9909e0010ae9dd1",
"name": "VENDEDOR 3",
"email": "alexandresantos@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "65294596d9909e0010ae9dd1",
"id": "65294596d9909e0010ae9dd1",
"name": "VENDEDOR 3",
"nickname": "AS",
"email": "alexandresantos@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e1b2f12800001ea9193",
"id": "65b92e1b2f12800001ea9193",
"date": "2024-01-31T13:12:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:12"
},
"contacts": [
{
"name": "CLIENTE 3",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"diamantes.compras@hotmail.com\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e105a6b811c7b20ca51",
"id": "65b92e105a6b811c7b20ca51",
"product_id": "65b92e105a6b811c7b20ca50",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1301938",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1301938",
"base_price": 29962.7268,
"created_at": "2024-01-30T14:12:48.451-03:00",
"updated_at": "2024-01-30T14:12:48.451-03:00",
"price": 29962.7268,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 29962.73
}
]
},
{
"_id": "65b92e095c527912259edcb4",
"id": "65b92e095c527912259edcb4",
"name": "1301944 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 36560.75,
"amount_total": 36560.75,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:12:41.844-03:00",
"updated_at": "2024-01-30T14:12:47.081-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:12:41.844-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "655f667bb8a284000dddcaa9",
"id": "655f667bb8a284000dddcaa9",
"name": "CLIENTE 4",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "655b8d2ce8f35700141ca5bc",
"id": "655b8d2ce8f35700141ca5bc",
"name": "VENDEDOR 4",
"email": "rafaelrabelo@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "655b8d2ce8f35700141ca5bc",
"id": "655b8d2ce8f35700141ca5bc",
"name": "VENDEDOR 4",
"nickname": "RR",
"email": "rafaelrabelo@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e0eb5464f0001c064cb",
"id": "65b92e0eb5464f0001c064cb",
"date": "2024-01-31T13:12:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:12"
},
"contacts": [
{
"name": "CLIENTE 4",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"85 4009 4149\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e0a5c527912259edcc8",
"id": "65b92e0a5c527912259edcc8",
"product_id": "65b92e0a5c527912259edcc7",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1301944",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1301944",
"base_price": 36560.7545,
"created_at": "2024-01-30T14:12:42.068-03:00",
"updated_at": "2024-01-30T14:12:42.068-03:00",
"price": 36560.7545,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 36560.75
}
]
},
{
"_id": "65b92e0346a308000df79396",
"id": "65b92e0346a308000df79396",
"name": "1302471 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 11550.59,
"amount_total": 11550.59,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:12:35.521-03:00",
"updated_at": "2024-01-30T14:12:44.353-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:12:35.521-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "65819b99471af10014e93182",
"id": "65819b99471af10014e93182",
"name": "CLIENTE 5***",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "652947e6e04fa4000d5e9985",
"id": "652947e6e04fa4000d5e9985",
"name": "VENDEDOR 5",
"email": "danielcavalcante@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "652947e6e04fa4000d5e9985",
"id": "652947e6e04fa4000d5e9985",
"name": "VENDEDOR 5",
"nickname": "DC",
"email": "danielcavalcante@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e0c5cdfb3000199ed29",
"id": "65b92e0c5cdfb3000199ed29",
"date": "2024-01-31T13:12:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:12"
},
"contacts": [
{
"name": "CLIENTE 5",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"(011) 2106-9511\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92e0346a308000df793aa",
"id": "65b92e0346a308000df793aa",
"product_id": "65b92e0346a308000df793a9",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302471",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302471",
"base_price": 11550.5864,
"created_at": "2024-01-30T14:12:35.694-03:00",
"updated_at": "2024-01-30T14:12:35.694-03:00",
"price": 11550.5864,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 11550.59
}
]
},
{
"_id": "65b92dfc46a308000df79370",
"id": "65b92dfc46a308000df79370",
"name": "1302109 - A - 1/2024",
"amount_montly": 0,
"amount_unique": 46074.94,
"amount_total": 46074.94,
"prediction_date": "2024-01-29",
"markup": "past",
"last_activity_at": "null",
"interactions": 0,
"markup_last_activities": "null",
"created_at": "2024-01-30T14:12:28.975-03:00",
"updated_at": "2024-01-30T14:12:35.160-03:00",
"rating": 1,
"markup_created": "1 day",
"last_activity_content": "null",
"user_changed": True,
"hold": "null",
"win": "null",
"closed_at": "null",
"stop_time_limit": {
"expiration_date_time": "2024-01-31T14:12:28.975-03:00",
"expired": False,
"expired_days": 0
},
"organization": {
"_id": "65687ccb764aa2000f865737",
"id": "65687ccb764aa2000f865737",
"name": "CLIENTE 6",
"address": "",
"address_latitude": "null",
"address_longitude": "null",
"user": {
"_id": "65608ea2dd8b43000d2b0f4c",
"id": "65608ea2dd8b43000d2b0f4c",
"name": "VENDEDOR 6",
"email": "joaopaz@fakemail.com"
},
"organization_segments": []
},
"user": {
"_id": "65608ea2dd8b43000d2b0f4c",
"id": "65608ea2dd8b43000d2b0f4c",
"name": "VENDEDOR 6",
"nickname": "JP",
"email": "joaopaz@fakemail.com"
},
"deal_stage": {
"_id": "64de232ffa761a0019dddc49",
"id": "64de232ffa761a0019dddc49",
"name": "Realizados",
"nickname": "R",
"created_at": "2023-08-17T10:39:59.875-03:00",
"updated_at": "2024-01-31T12:39:28.807-03:00"
},
"campaign": {
"_id": "659439674cc9d500129de36d",
"id": "659439674cc9d500129de36d",
"name": "01/2024",
"created_at": "2024-01-02T13:27:19.639-03:00",
"updated_at": "2024-01-02T13:27:19.639-03:00"
},
"next_task": {
"_id": "65b92e03f6efc300011bdf59",
"id": "65b92e03f6efc300011bdf59",
"date": "2024-01-31T13:12:00.000-03:00",
"subject": "follow-up",
"type": "whatsapp",
"hour": "13:12"
},
"contacts": [
{
"name": "CLIENTE 6",
"title": "contato a aprimorar",
"notes": "null",
"facebook": "null",
"linkedin": "null",
"skype": "null",
"birthday": "null",
"emails": [],
"phones": [
{
"phone": "[\"(86) 8889-8128\"]",
"type": "cellphone"
}
]
}
],
"deal_custom_fields": [],
"deal_products": [
{
"_id": "65b92dfd46a308000df79384",
"id": "65b92dfd46a308000df79384",
"product_id": "65b92dfd46a308000df79383",
"name": "SOMA DOS PRODUTOS DO PEDIDO: 1302109",
"description": "SOMA DOS PRODUTOS DO PEDIDO: 1302109",
"base_price": 46074.94,
"created_at": "2024-01-30T14:12:29.169-03:00",
"updated_at": "2024-01-30T14:12:29.169-03:00",
"price": 46074.94,
"amount": 1,
"recurrence": "spare",
"discount": 0,
"discount_type": "value",
"total": 46074.94
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment