services.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * This file is part of Threema Web.
  3. *
  4. * Threema Web is free software: you can redistribute it and/or modify it
  5. * under the terms of the GNU Affero General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or (at
  7. * your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Affero General Public License
  15. * along with Threema Web. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. import {BatteryStatusService} from './services/battery';
  18. import {BrowserService} from './services/browser';
  19. import {ContactService} from './services/contact';
  20. import {ControllerService} from './services/controller';
  21. import {ControllerModelService} from './services/controller_model';
  22. import {FingerPrintService} from './services/fingerprint';
  23. import {TrustedKeyStoreService} from './services/keystore';
  24. import {LogService} from './services/log';
  25. import {MediaboxService} from './services/mediabox';
  26. import {MessageService} from './services/message';
  27. import {MimeService} from './services/mime';
  28. import {NotificationService} from './services/notification';
  29. import {PushService} from './services/push';
  30. import {QrCodeService} from './services/qrcode';
  31. import {ReceiverService} from './services/receiver';
  32. import {SettingsService} from './services/settings';
  33. import {StateService} from './services/state';
  34. import {StringService} from './services/string';
  35. import {TimeoutService} from './services/timeout';
  36. import {TitleService} from './services/title';
  37. import {UriService} from './services/uri';
  38. import {VersionService} from './services/version';
  39. import {WebClientService} from './services/webclient';
  40. // Create services for the controller
  41. angular.module('3ema.services', [])
  42. // Register services
  43. .service('LogService', LogService)
  44. .service('BatteryStatusService', BatteryStatusService)
  45. .service('ContactService', ContactService)
  46. .service('ControllerModelService', ControllerModelService)
  47. .service('FingerPrintService', FingerPrintService)
  48. .service('MessageService', MessageService)
  49. .service('NotificationService', NotificationService)
  50. .service('PushService', PushService)
  51. .service('QrCodeService', QrCodeService)
  52. .service('ReceiverService', ReceiverService)
  53. .service('StateService', StateService)
  54. .service('TimeoutService', TimeoutService)
  55. .service('TitleService', TitleService)
  56. .service('TrustedKeyStore', TrustedKeyStoreService)
  57. .service('WebClientService', WebClientService)
  58. .service('MimeService', MimeService)
  59. .service('BrowserService', BrowserService)
  60. .service('ControllerService', ControllerService)
  61. .service('StringService', StringService)
  62. .service('SettingsService', SettingsService)
  63. .service('MediaboxService', MediaboxService)
  64. .service('UriService', UriService)
  65. .service('VersionService', VersionService)
  66. ;