Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  data.list.forEach(function (val) {
  2.                 if (val.Status !== 'Dialing') {
  3.                     console.log(val.Id);
  4.                     if (that.cache[val.Id] === undefined) {
  5.                         that.cache[val.Id] = {
  6.                             Caller: val.Caller,
  7.                             Callee: val.Callee,
  8.                             Status: val.Status,
  9.                             LastChangeStatus: val.LastChangeStatus,
  10.                             Duration: val.Duration
  11.                         };
  12.                         that.emit('newCall',val);
  13.                     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement