Language: JavaScript
Label: safe
CWE: CWE-829 \u2014 Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.

Code:
                duration: Math.floor( (session.end_time.getTime() - session.start_time.getTime()) / 1000),
                status: "Answered"
            });

            // Pause Ring
            BMS.fn.pause();


            // Stop Timer
            BMS.fn.stopTimer(window.timer);

            $("#status").html(`${caller} is disconnected`).show();


            $("#timer").fadeOut(100).fadeIn(100).fadeOut(150).fadeIn(150).fadeOut(200).fadeIn(200).fadeOut(500).fadeIn(500);

            // disable the number search and hangButton
            $("#hangButton").prop("disabled", true);

            // Show the feedback tab
            $('.nav-tabs a[href="#tab_feedback"]').tab('show');

            // Stop the phone
            phone.stop();

        }

        // Complete the session
        completeSession();
        
    });