How to integrate the Smile.io Rewards with Faqprime?

One can integrate the SmileIO rewards at the chat placeholder with the Faqprime. 

 

Integration Step (Add Smile Button inplace the chat interface).

1. Go to the Widget Settings > Live Chat and select others as a chat option.

2. Add the following code with Faqprime Standard Code and you are done.

<script>

var faqbotMyVar = setInterval(faqbotMyTimer, 200);
var faqbotSmileIOChatMinVar;

 

function faqbotMyTimer()
{
        if (document.getElementsByClassName("smile-launcher-frame-container").length > 0) 
        {       
                document.getElementsByClassName("smile-launcher-frame-container")[0].style.display="none";
                clearInterval(faqbotMyVar);
        }
}

 

function faqbotChatExecution()
{
        window.SmileUI.openPanel()
        faqbotSmileIOChatMinVar = setInterval(faqbotSmileIOChatMin, 200);
}

 

function faqbotSmileIOChatMin()

        if (document.getElementsByClassName("smile-panel-frame-container").length <= 0)
        {       
                var botRight = "";
                
                if (typeof faqbotIsRight == "undefined") {
                        botRight = "";
                }
                else
                {       
                        if (faqbotIsRight == "right") {
                                botRight = " faq-bot-right";
                        }
                }

                if (document.getElementById("faq-bot-button"))
                        document.getElementById("faq-bot-button").className = "faq-bot-button" + botRight;
                clearInterval(faqbotSmileIOChatMinVar);
        }
}

</script>

 

Integration Step (Add Smile Button on the link1)

1. Go to the Widget Settings > Modules and Enable Link Integration. Choose a dummy URL, Provide your title, Choose the image an Open Link-1 inside the Widget as yes.

2. Add the following code with Faqprime Standard Code and you are done.

<script>

var faqbotMyVar = setInterval(faqbotMyTimer, 200);

var faqbotStartSmileIOVar = setInterval(faqbotStartSmileIO, 200);


function faqbotMyTimer()
{
        if (document.getElementsByClassName("smile-launcher-frame-container").length > 0) 
        {       
                document.getElementsByClassName("smile-launcher-frame-container")[0].style.display="none";
                clearInterval(faqbotMyVar);
        }
}

function faqbotStartSmileIO() 

{

   if (document.getElementById("faq-bot-bottom-calendy-container")) {

         document.getElementById("faq-bot-bottom-calendy-container").setAttribute("onclick", "faqprime_StartSmileIO()");

         clearInterval(faqbotStartSmileIOVar);

   }

}

function faqprime_StartSmileIO()

{

     faqbotIdHide("faq-bot-container");

     faqbotIdShow("faq-bot-button");

     faqbotSetAttr("faq-bot-iframe", "src", "");

     faqbotSetAttr("faq-bot-iframe", "data-src", "");

      window.SmileUI.openPanel();
}

</script>

 

Integration Step (Add Smile Button on the link2)

1. Go to the Widget Settings > Modules and Enable Link Integration. Choose a dummy URL, Provide your title, Choose the image an Open Link-2 inside the Widget as yes.

2. Add the following code with Faqprime Standard Code and you are done.

<script>

var faqbotMyVar = setInterval(faqbotMyTimer, 200);

var faqbotStartSmileIOVar = setInterval(faqbotStartSmileIO, 200);


function faqbotMyTimer()
{
        if (document.getElementsByClassName("smile-launcher-frame-container").length > 0) 
        {       
                document.getElementsByClassName("smile-launcher-frame-container")[0].style.display="none";
                clearInterval(faqbotMyVar);
        }
}

function faqbotStartSmileIO() 

{

   if (document.getElementById("faq-bot-bottom-contactus-container")) {

         document.getElementById("faq-bot-bottom-contactus-container").setAttribute("onclick", "faqprime_StartSmileIO()");

         clearInterval(faqbotStartSmileIOVar);

   }

}

function faqprime_StartSmileIO()

{

     faqbotIdHide("faq-bot-container");

     faqbotIdShow("faq-bot-button");

     faqbotSetAttr("faq-bot-iframe", "src", "");

     faqbotSetAttr("faq-bot-iframe", "data-src", "");

      window.SmileUI.openPanel();
}

</script>

...