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 464B

123456789101112131415161718192021
  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.upload = function(data, promise)
  10. {
  11. data.image = btoa(data.image);
  12. return ImagesDataAccess.upload(data, promise);
  13. };
  14. return Business;
  15. }])
  16. })();