Gravity Forms integration with Appointments

We are trying to use the hook to use Gravity Form and Gravity View to approve the submitted service by a user for appointment+.

Source:https://gist.github.com/mgratch/8a17c7050eb4db270829