MU
Size: a a a
MU
KP
JS
const start = async function() {
const showUsers = async function() {
await getUsers();
}
await showUsers()
const calendarTasks = async function() {
await getDeals(['2021-05-20T00:00:00+03:00','2021-05-30T00:00:00+03:00'])
await getTasks(['2021-05-20T00:00:00+03:00','2021-05-30T00:00:00+03:00'])
await buildTable()
}
await calendarTasks();
}
start()
С
Δ
Δ
СВ
С
JS
JS
С
JS
С
С
JS
let arr = {}
const showUsers = async function() {
arr = getUsers();
}
await showUsers()
console.log("ЮЗЕРЫ",arr)
JS
С
e
JS
const users = {};
let IdsUsers = [];
const getUsers = async function() {
BX24.callMethod('user.get',{},async function(res){
for(let i in res.data()){
users[res.data()[i].ID] = res.data()[i]
IdsUsers.push(res.data()[i].ID)
}
if(res.more()){
setTimeout(() => {
res.next()
},400)
}else{
return users
}
})
}
j