如何在Amazon ccp中实现保持按钮?

问题描述

如何使用connection.holdconnection.resume来建立保持按钮?有两个功能,分别是恢复和保持在Amazon Connect流中。如何利用它?

connection.hold = function hold() {
  window.myCPP.set.setstate(Holdstate,{
    success: function() {
      logInfoMsg("Set agent status to Hold via Streams")
    },failure: function() {
      logInfoMsg("Failed to set agent status to hold via Streams")
    }
  });
}
connection.resume = function resume() {
  window.myCPP.set.setstate(Resumestate,{
    success: function() {
      logInfoMsg("Set agent status to RESUME via Streams")
    },failure: function() {
      logInfoMsg("Failed to set agent status to RESUME via Streams")
    }
  });
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)