export.js
//Generic "object by ID" function that saves metadata
Generic "object by ID" function that saves metadata
Generic " object by ID " function that saves metadata
function saveObject(type, ids) {
	var deferred = Q.defer();
	if(!ids) ids = [];
	ids = ids.concat(customObjectIds(type));
	object(type, ids).then(function(result) {
		addToMetdata(type, result[type]);
		deferred.resolve(true);
	},
		function(result) {
			console.log("\nFailed saving objects: " + type + " ids:" + ids);
		});
	return deferred.promise;
}
function saveObject ( type , ids ) { var deferred = Q . defer ( ) ; if ( ! ids ) ids = [ ] ; ids = ids . concat ( customObjectIds ( type ) ) ; object ( type , ids ) . then ( function ( result ) { addToMetdata ( type , result [ type ] ) ; deferred . resolve ( true ) ; } , function ( result ) { console . log ( "\nFailed saving objects: " + type + " ids:" + ids ) ; } ) ; return deferred . promise ; }
Generic "object by ID" function that saves metadata
Generic " object by ID " function that saves metadata
//Add any customObjects ids for this type, if any