You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Obter Contatos através dos Ids das Etiquetas no WhatsApp Bussiness
WPP.Labels.GetContactLabels = function (id) {
const models = WPP.whatsapp.LabelStore._models.filter((label) => label.id === id).map(c => c.labelItemCollection).map(id => id._models);
let resultado = [];
const chat = 'Chat';
if (models) {
for (let index = 0; index < models.length; index++){
const num = models[index];
for (let ind = 0; ind < num.length; ind++){
let isCOntato = num[ind].__x_parentId.toLowerCase().split("@");
if (isCOntato[1] == "c.us" )
{
if (num[ind])
{
if (num[ind].__x_id.includes(chat))
{
resultado.push(num[ind].__x_id);
}
}
}
}
}
return resultado;
}
};
The text was updated successfully, but these errors were encountered:
// Obter Contatos através dos Ids das Etiquetas no WhatsApp Bussiness
WPP.Labels.GetContactLabels = function (id) {
const models = WPP.whatsapp.LabelStore._models.filter((label) => label.id === id).map(c => c.labelItemCollection).map(id => id._models);
let resultado = [];
const chat = 'Chat';
if (models) {
};
The text was updated successfully, but these errors were encountered: