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.

123456789101112131415161718192021222324252627
  1. /**
  2. * Created by robin on 4/22/16.
  3. */
  4. (function()
  5. {
  6. angular.module("appSdk").factory("EffectsBusiness", ['EffectsDataAccess', '$q', function (EffectsDataAccess, $q) {
  7. var Business = {};
  8. Business.apply = function(data, promise)
  9. {
  10. var defer = $q.defer();
  11. data.image = btoa(data.image);
  12. EffectsDataAccess.apply(data, promise).then(function(data)
  13. {
  14. data.image = atob(data.image);
  15. defer.resolve(data);
  16. }, defer.reject);
  17. return defer.promise;
  18. };
  19. return Business;
  20. }])
  21. })();