123456789101112131415161718192021222324252627 |
- /**
- * Created by robin on 4/22/16.
- */
-
- (function()
- {
- angular.module("appSdk").factory("EffectsBusiness", ['EffectsDataAccess', '$q', function (EffectsDataAccess, $q) {
- var Business = {};
-
- Business.apply = function(data, promise)
- {
- var defer = $q.defer();
-
- data.image = btoa(data.image);
-
- EffectsDataAccess.apply(data, promise).then(function(data)
- {
- data.image = atob(data.image);
- defer.resolve(data);
- }, defer.reject);
-
- return defer.promise;
- };
-
- return Business;
- }])
- })();
|