• david latotzky
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I have a visualforce-page on my console that helps our agents handling (live agent) chats.
It automatically opens as a sub-tab when our agents accepts chat coming thourg omnichannel,
and hooks up with chat events , e.g. using https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_onNewMessage.htm

How can i (programatically) request  chat transfer to anothoer skill?

I see onChatTransferredOut() (https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_onChatTransferredOut.htm?search_text=transfer),
but i miss something like 'requestChatTransferToSkill(..)'
 
I have a visualforce-page on my console that helps our agents handling (live agent) chats.
It automatically opens as a sub-tab when our agents accepts chat coming thourg omnichannel,
and hooks up with chat events , e.g. using https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_onNewMessage.htm

How can i (programatically) request  chat transfer to anothoer skill?

I see onChatTransferredOut() (https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_onChatTransferredOut.htm?search_text=transfer),
but i miss something like 'requestChatTransferToSkill(..)'
 
Should liveagent.disconnect(), allow then to re-initialise the chat?
From what I can see this is prevented by the fact that a "qa" variable (obfuscated code) is set to 0 during initialization

var v = f.getCookie("liveagent_sid") , $ = f.getCookie("liveagent_chatted") , qa = !1 , Q = !1 , k = {}

and then the function that handles the button visibility (and more) does not get executed as qa is 

function O() {
if (!qa) {
  qa = !0;
  f.log("DOM is ready. Setting up environment.");
  null == u.getOref() && u.setOref(document.referrer); null == u.getVisitCount() &&   u.setVisitCount(1); if (window._laq) for (var a = 0; a <     window._laq.length; a++) window._laq[a].call(window); q.connection.setCallback("liveagent._.handlePing"); ra()
  }
}

why liveagent.disconnect() does not reset that 'qa' variable to the default and allow us to make a "re"- init() ?

I came across this problem, as the button that displays the livechat link in our application is inside a dialog, therefore the first time I open the dialog the button appears correcty.
The second time it doesn't for the issue highlighed above