code: function createService(senderType) {
          return (function (type) {
  
              // Angular service constructor
              return function ($q, $rootScope) {
                  var className = type.charAt(0).toUpperCase() + type.slice(1) + 'Sender',
                      sender = new enplug.classes[className]();
  
                  // Remove event listeners for existing sender and reassign
                  enplug[type].cleanup();
                  enplug[type] = sender;
  
                  // Return promises
                  decorateSend($q, $rootScope, sender.transport);
                  return sender;
              };
          }(senderType));
      }
docs: Creates a new {@link Sender} to be used as an AngularJS service.
  
  @param {string} senderType - Sender type to create.