Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
feat(telephony): add agent and tones api routes for easy and mini Pabx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisay committed Sep 28, 2017
1 parent 59760f7 commit a652c42
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 18 deletions.
95 changes: 89 additions & 6 deletions dist/ovh-api-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -11361,6 +11361,10 @@ angular.module("ovh-api-services").service("OvhApiTelephonyEasyHuntingTimeCondit
};
}]);

/**
* This is vocated to be removed.
* Done in best effort without separating routes.
*/
angular.module("ovh-api-services").service("OvhApiTelephonyEasyPabxLexi", ["$resource", function ($resource) {
"use strict";

Expand Down Expand Up @@ -11393,11 +11397,46 @@ angular.module("ovh-api-services").service("OvhApiTelephonyEasyPabxLexi", ["$res
method: "GET",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/agent/:agentNumber",
params: {
agentNumber: "@"
agentNumber: "@agentNumber"
}
},
createAgent: {
method: "POST",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/agent",
isArray: false
},
saveAgent: {
method: "PUT",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/agent/:agentNumber",
isArray: false,
params: {
agentNumber: "@agentNumber"
}
},
deleteAgent: {
method: "DELETE",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/agent/:agentNumber",
isArray: false,
params: {
agentNumber: "@agentNumber"
}
},
getTones: {
method: "GET",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/tones",
isArray: false
},
saveTones: {
method: "PUT",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/tones",
isArray: false
},
uploadTones: {
method: "PUT",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/tones/toneUpload",
isArray: false
}
}
);
});
}]);

angular.module("ovh-api-services").service("OvhApiTelephonyEasyPabx", ["$injector", "$cacheFactory", function ($injector, $cacheFactory) {
Expand Down Expand Up @@ -12750,6 +12789,10 @@ angular.module("ovh-api-services").service("OvhApiTelephonyLines", ["$injector",
};
}]);

/**
* This is vocated to be removed.
* Done in best effort without separating routes.
*/
angular.module("ovh-api-services").service("OvhApiTelephonyMiniPabxLexi", ["$resource", function ($resource) {
"use strict";

Expand Down Expand Up @@ -12782,11 +12825,46 @@ angular.module("ovh-api-services").service("OvhApiTelephonyMiniPabxLexi", ["$res
method: "GET",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/agent/:agentNumber",
params: {
agentNumber: "@"
agentNumber: "@agentNumber"
}
},
createAgent: {
method: "POST",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/agent",
isArray: false
},
saveAgent: {
method: "PUT",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/agent/:agentNumber",
isArray: false,
params: {
agentNumber: "@agentNumber"
}
},
deleteAgent: {
method: "DELETE",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/agent/:agentNumber",
isArray: false,
params: {
agentNumber: "@agentNumber"
}
},
getTones: {
method: "GET",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/tones",
isArray: false
},
saveTones: {
method: "PUT",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/tones",
isArray: false
},
uploadTones: {
method: "PUT",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/tones/toneUpload",
isArray: false
}
}
);
});
}]);

angular.module("ovh-api-services").service("OvhApiTelephonyMiniPabx", ["$injector", "$cacheFactory", function ($injector, $cacheFactory) {
Expand Down Expand Up @@ -15182,6 +15260,11 @@ angular.module("ovh-api-services").service("OvhApiTelephonyLexi", ["$resource",
method: "GET",
url: "/telephony/line/offer/phones",
isArray: true
},
searchService: {
method: "GET",
url: "/telephony/searchServices",
isArray: true
}
});

Expand Down
12 changes: 6 additions & 6 deletions dist/ovh-api-services.min.js

Large diffs are not rendered by default.

45 changes: 42 additions & 3 deletions src/telephony/easyPabx/telephony-easyPabx.lexi.service.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* This is vocated to be removed.
* Done in best effort without separating routes.
*/
angular.module("ovh-api-services").service("OvhApiTelephonyEasyPabxLexi", function ($resource) {
"use strict";

Expand Down Expand Up @@ -30,9 +34,44 @@ angular.module("ovh-api-services").service("OvhApiTelephonyEasyPabxLexi", functi
method: "GET",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/agent/:agentNumber",
params: {
agentNumber: "@"
agentNumber: "@agentNumber"
}
},
createAgent: {
method: "POST",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/agent",
isArray: false
},
saveAgent: {
method: "PUT",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/agent/:agentNumber",
isArray: false,
params: {
agentNumber: "@agentNumber"
}
},
deleteAgent: {
method: "DELETE",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/agent/:agentNumber",
isArray: false,
params: {
agentNumber: "@agentNumber"
}
},
getTones: {
method: "GET",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/tones",
isArray: false
},
saveTones: {
method: "PUT",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/tones",
isArray: false
},
uploadTones: {
method: "PUT",
url: "/telephony/:billingAccount/easyPabx/:serviceName/hunting/tones/toneUpload",
isArray: false
}
}
);
});
});
45 changes: 42 additions & 3 deletions src/telephony/miniPabx/telephony-miniPabx.lexi.service.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* This is vocated to be removed.
* Done in best effort without separating routes.
*/
angular.module("ovh-api-services").service("OvhApiTelephonyMiniPabxLexi", function ($resource) {
"use strict";

Expand Down Expand Up @@ -30,9 +34,44 @@ angular.module("ovh-api-services").service("OvhApiTelephonyMiniPabxLexi", functi
method: "GET",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/agent/:agentNumber",
params: {
agentNumber: "@"
agentNumber: "@agentNumber"
}
},
createAgent: {
method: "POST",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/agent",
isArray: false
},
saveAgent: {
method: "PUT",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/agent/:agentNumber",
isArray: false,
params: {
agentNumber: "@agentNumber"
}
},
deleteAgent: {
method: "DELETE",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/agent/:agentNumber",
isArray: false,
params: {
agentNumber: "@agentNumber"
}
},
getTones: {
method: "GET",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/tones",
isArray: false
},
saveTones: {
method: "PUT",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/tones",
isArray: false
},
uploadTones: {
method: "PUT",
url: "/telephony/:billingAccount/miniPabx/:serviceName/hunting/tones/toneUpload",
isArray: false
}
}
);
});
});
5 changes: 5 additions & 0 deletions src/telephony/telephony.lexi.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ angular.module("ovh-api-services").service("OvhApiTelephonyLexi", function ($res
method: "GET",
url: "/telephony/line/offer/phones",
isArray: true
},
searchService: {
method: "GET",
url: "/telephony/searchServices",
isArray: true
}
});

Expand Down

0 comments on commit a652c42

Please sign in to comment.