You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

images.js 516B

1234567891011121314151617181920212223
  1. /**
  2. * Created by robin on 4/22/16.
  3. */
  4. (function()
  5. {
  6. angular.module("appSdk").factory("ImagesBusiness", ['ImagesDataAccess', '$q', function (ImagesDataAccess, $q) {
  7. var Business = {};
  8. Business.getAll = ImagesDataAccess.getAll;
  9. Business.delete = ImagesDataAccess.delete;
  10. Business.upload = function(data, promise)
  11. {
  12. data.image = btoa(data.image);
  13. return ImagesDataAccess.upload(data, promise);
  14. };
  15. return Business;
  16. }])
  17. })();