code: function(actions) {
      var actionPromises = [];
  
      angular.forEach(actions, function(value) {
        var action = angular.isString(value) ? $injector.get(value) : $injector.invoke(value);
        actionPromises.push($q.when(action));
      });
  
      return $q.all(actionPromises);
    }
docs: Process actions
  
  @param  {Object}  actions An array of actions items
  @return {Promise}         A promise fulfilled when actions processed