This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cache): refactor use of cache for click2call services, plus res…
…etCache method created
- Loading branch information
Jérémy DE CESARE
committed
Jan 18, 2018
1 parent
a4ad939
commit 21a9118
Showing
4 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
src/telephony/line/click2Call/user/telephony-line-click2Call-user.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
angular.module("ovh-api-services").service("OvhApiTelephonyLineClick2CallUser", function ($injector) { | ||
angular.module("ovh-api-services").service("OvhApiTelephonyLineClick2CallUser", ["$cacheFactory", "$injector", function ($cacheFactory, $injector) { | ||
"use strict"; | ||
|
||
var cache = $cacheFactory("OvhApiTelephonyLineClick2CallUser"); | ||
return { | ||
Lexi: function () { | ||
return $injector.get("OvhApiTelephonyLineClick2CallUserLexi"); | ||
}, | ||
Aapi: angular.noop | ||
Aapi: angular.noop, | ||
resetCache: cache.removeAll, | ||
cache: cache | ||
}; | ||
}); | ||
}]); |