text: /**
   * Copyright © 2013-2017 Magento, Inc. All rights reserved.
   * See COPYING.txt for license details.
   */
  /*jshint browser:true*/
  /*global define*/
  define(
      [
          'Magento_Checkout/js/model/shipping-save-processor/default'
      ],
      function(defaultProcessor) {
          'use strict';
          var processors = [];
          processors['default'] =  defaultProcessor;
  
          return {
              registerProcessor: function(type, processor) {
                  processors[type] = processor;
              },
              saveShippingInformation: function (type) {
                  var rates = [];
                  if (processors[type]) {
                      rates = processors[type].saveShippingInformation();
                  } else {
                      rates = processors['default'].saveShippingInformation();
                  }
                  return rates;
              }
          }
      }
  );
  