2 * Provides an interface for a tool proxy in the Moodle server.
4 * @module mod_lti/tool_proxy
5 * @copyright 2015 Ryan Wyllie <ryan@moodle.com>
6 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
9 define("mod_lti/tool_proxy",["core/ajax","core/notification"],(function(ajax,notification){return{query:function(args){var request={methodname:"mod_lti_get_tool_proxies",args:args||{}},promise=ajax.call([request])[0];return promise.fail(notification.exception),promise},delete:function(id){var request={methodname:"mod_lti_delete_tool_proxy",args:{id:id}},promise=ajax.call([request])[0];return promise.fail(notification.exception),promise},create:function(args){var request={methodname:"mod_lti_create_tool_proxy",args:args};return ajax.call([request])[0]}}}));
11 //# sourceMappingURL=tool_proxy.min.js.map