code: function processTask (obj) {
          console.assert(obj);
          try {
            if (obj.type === TNMT$1.AddCallTaskQueueSuccess) {
              __agent.log(logCord$7, 'add task queue success and start after!');
              var queueID = obj.queueInfo.id;
              $bc_$16.sendQueueEvent(queueID, 'calltask', 'start');
              __mc.trigger(TypeMsg$6.onTaskAdded, {
                data: obj
              });
            } else if (obj.type === TNMT$1.CallTaskStart) {
              __agent.log(logCord$7, 'call task start!');
              __mc.trigger(TypeMsg$6.onTaskStarted, {
                data: obj
              });
            } else if (obj.type === TNMT$1.CallTaskFailed) {
              __agent.log(logCord$7, 'call task error!');
              __agent.log(logCord$7, JSON.stringify(obj));
              __mc.trigger(TypeMsg$6.onTaskError, {
                data: obj
              });
            } else if (obj.type === TNMT$1.CallTaskSuccess) {
              __agent.log(logCord$7, 'call task finished!');
              __agent.log(logCord$7, JSON.stringify(obj));
              __mc.trigger(TypeMsg$6.onTaskFinished, {
                data: obj
              });
            } else if (obj.type === TNMT$1.CancelCallTask) {
              __agent.log(logCord$7, 'call task cancel!');
              __agent.log(logCord$7, JSON.stringify(obj));
              __mc.trigger(TypeMsg$6.onTaskCanceled, {
                data: obj
              });
            }
          } catch (error) {
            console.error(logCord$7, error);
          }
        }
docs: 声明处理Task的方法