Lines total: 22
Tokens: 70
app/scripts/modules/api/services/category.service.js
Line 50
app/scripts/modules/api/services/highlight.service.js
Line 50
deferred.resolve(result);},function(error) { deferred.resolve(error);}); return deferred.promise;}}} /** * Get categories API Request * * @param $resource * @param ENV * @param $http * * @returns {*} */function getCategoriesRequest($resource, ENV, $http) { return $resource(ENV.apiBaseUrl + ENV.categoryRequestUrlPattern, {
Lines total: 15
Tokens: 93
app/scripts/modules/api/services/category.service.js
Line 73
app/scripts/modules/api/services/highlight.service.js
Line 73
token: '@token', localeId: '@localeId'}, { get: { method: 'POST', isArray: false, transformResponse: [function(data, headersGetter) { return angular.fromJson(data); }].concat($http.defaults.transformResponse), timeout: ENV.timeout }});}})();
Lines total: 12
Tokens: 80
app/scripts/modules/api/services/category.service.js
Line 76
app/scripts/modules/api/services/imprint.service.js
Line 76
get: {method: 'POST',isArray: false,transformResponse: [function(data, headersGetter) {return angular.fromJson(data);}].concat($http.defaults.transformResponse),timeout: ENV.timeout}});}})();
Lines total: 13
Tokens: 85
app/scripts/modules/api/services/imprint.service.js
Line 75
app/scripts/modules/api/services/locale.service.js
Line 74
}, { get: { method: 'POST', isArray: false, transformResponse: [function(data, headersGetter) { return angular.fromJson(data); }].concat($http.defaults.transformResponse), timeout: ENV.timeout }});}})();
Lines total: 35
Tokens: 188
app/scripts/modules/app/services/model.service.js
Line 296
app/scripts/modules/app/services/model.service.js
Line 350
var data = {}; //start async progressvar deferred = $q.defer();var promises = angular.forEach(this._attributes, function(attribute) { //check if attribute is in scope and overstep if not. //empty scope = every attribute will be updated if (Object.keys(attributes).length > 0 && angular.isUndefined(attributes[attribute.name])) { return; //means continue in third party loops } switch (attribute.type) { case 'pk': // do nothing with PK break; case 'integer': data[attribute.name] = attributes[attribute.name]; break; case 'text': data[attribute.name] = String(attributes[attribute.name]); break; }}); $q.all(promises).then(function() { //query db self.data = db.localStorage.queryAll(self._table, { "query": data }); deferred.resolve(true);});