Zend certified PHP/Magento developer

How to use gift-options.js function in my JS file

I wanted to use the functionality of gift-options.js file. Basically I want to reuse the REST api call for gift-message. I don’t want to recreate the same function as it’s already existing. Now I want to use this function inside my update-shopping-cart.js how do I do that?

So basically inside the function

    /**
     * Form validation succeed.
     */
    onSuccess: function () {

        // I WANT TO USE THE gift-options.js HERE

        $(document).trigger('ajax:' + this.options.eventName);
        this.submitForm();
    },

How can I do that?