function for getting a users order library
moved flow for getting order library from ting_infomedia
refactoring provider_agency_get_order_library hook by removing the callback function
refactor logic for getting order library