Merge pull request #22164 from eileenmcnaughton/parent
[civicrm-core.git] / ang / crmCxn.js
CommitLineData
098de400
TO
1(function (angular, $, _) {
2
0b199194 3 angular.module('crmCxn', CRM.angRequires('crmCxn'));
098de400
TO
4
5 angular.module('crmCxn').config([
6 '$routeProvider',
7 function ($routeProvider) {
8 $routeProvider.when('/cxn', {
9 templateUrl: '~/crmCxn/ManageCtrl.html',
10 controller: 'CrmCxnManageCtrl',
11 resolve: {
12 apiCalls: function(crmApi){
13 var reqs = {};
14 reqs.cxns = ['Cxn', 'get', {sequential: 1}];
757ef0aa 15 reqs.appMetas = ['CxnApp', 'get', {sequential: 1, return: ['id', 'title', 'desc', 'appId', 'appUrl', 'links', 'perm']}];
0b5469cd 16 reqs.cfg = ['Cxn', 'getcfg', {}];
098de400
TO
17 reqs.sysCheck = ['System', 'check', {}]; // FIXME: filter on checkCxnOverrides
18 return crmApi(reqs);
19 }
20 }
21 });
22 }
23 ]);
24
25})(angular, CRM.$, CRM._);