1 | import angular from 'angular';
|
2 |
|
3 | import { AvProxy } from '@availity/api-core';
|
4 |
|
5 | function factory($http, $q, avApiOptions) {
|
6 | class AvProxyApi extends AvProxy {
|
7 | constructor(options) {
|
8 | options = angular.merge({}, avApiOptions, options);
|
9 | super({
|
10 | http: $http,
|
11 | promise: $q,
|
12 | merge: angular.merge,
|
13 | config: options,
|
14 | });
|
15 | }
|
16 | }
|
17 | return AvProxyApi;
|
18 | }
|
19 | export default factory;
|