Quantcast
Channel: LivePerson Connect : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2324

Chat availability on Cellcom's app

$
0
0

היי

אנחנו עובדים עפ"י ה API

בבדיקת debugשעשיתי כאשר יש ממתינים, הערך החוזר מה callbackהיה true

קרי יש נציג פנוי (למרות שבפועל אין)

הפרמטר maxWaitTimeהועבר תקין.

הפעלה של this.onAvailabilityמפעילה מטודה שלנו המציגה את ההודעה למשתמש כאשר הערך הוא false (אין נציג פנוי/מוקד סגור)

כאשר הערך trueהלקוח ממתין.

האם יש מקום ברמת הגדרות המוקד, שבו מוגדר מהו זמן ההמתנה.

האם צריך להעביר את כל הקיט של הפניה, כולל SKIILqueue

הבדיקה מתייחסת לקטע הקוד הנ"ל

  1. lpChat.prototype.handleAvailability = function(a) {

    try {

        if (typeof (a.ResultSet.lpCallError) != "undefined") {

            this.handleErrorResponse(a);

        } else {

            if (a.ResultSet.lpData.length > 0) {

                var c = a.ResultSet.lpData[0];

                if (typeof (c.error) != "undefined" && typeof (this["onError"]) == "function") {

                    this.callOnErrorCallback(c);

                } else {

                    if (typeof (this["onAvailability"]) == "function") {

                        this.onAvailability(c);

                    }

                }

            }

        }

    } catch (b) {

        this.reportError(b, "handleAvailability()");

    }

 


Viewing all articles
Browse latest Browse all 2324

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>