code: function moveEmbedded(object, sourceKey, destinationKey, embeddedObject) {
          if (embeddedObject) {
              var extender = {};
  
              extender[destinationKey] = function (key) {
                  return key ? embeddedObject[key] : embeddedObject;
              };
  
              object = angular.extend(object, extender);
              delete object[sourceKey];
          }
      }
docs: /*
  Add an embedded lookup function and remove the original embedded property on the resource
  
  @param {object} object the object in which the source key exists and destination key is created
  @param {string} sourceKey the source key from which the array is moved
  @param {string} destinationKey the destination key to which the array is moved
  @param {object} embeddedObject the object representing embedded resources
  
  @returns {object} the processed object