code: function() {
  
      var args = {
        output_timezone: customerTimezone
      };
  
      if (getConfig().project_id) args.project_id = getConfig().project_id
      if (getConfig().resources) args.resources = getConfig().resources
      if (getConfig().availability_constraints) args.constraints = getConfig().availability_constraints
  
      $.extend(args, getConfig().availability);
  
      utils.doCallback('fetchAvailabilityStarted', args);
  
      sdk
      .makeRequest({
        method: 'post',
        url: '/availability',
        data: args
      })
      .then(function(response){
  
        utils.doCallback('fetchAvailabilitySuccessful', response);
        hideLoadingScreen();
  
        // Render available timeslots in FullCalendar
        if(response.data.length > 0) renderCalendarEvents(response.data);
  
        // Render test ribbon if enabled
        if (response.headers['timekit-testmode']) renderTestModeRibbon();
  
      }).catch(function(response){
        utils.doCallback('fetchAvailabilityFailed', response);
        hideLoadingScreen();
        triggerError(['An error with Timekit Fetch Availability occured', response]);
      });
  
    }
docs: Fetch availabile time through Timekit SDK