Your IP : 216.73.216.95


Current Path : /var/www/ljmtc/cbt/blocks/recentlyaccesseditems/amd/build/
Upload File :
Current File : /var/www/ljmtc/cbt/blocks/recentlyaccesseditems/amd/build/repository.min.js.map

{"version":3,"sources":["../src/repository.js"],"names":["define","Ajax","getRecentItems","limit","args","call","methodname"],"mappings":"AAuBAA,OAAM,0CAAC,CAAC,WAAD,CAAD,CAAgB,SAASC,CAAT,CAAe,CAoBjC,MAAO,CACHC,cAAc,CAZG,QAAjBA,CAAAA,cAAiB,CAASC,CAAT,CAAgB,CACjC,GAAIC,CAAAA,CAAI,CAAG,EAAX,CACA,GAAqB,WAAjB,QAAOD,CAAAA,CAAX,CAAkC,CAC9BC,CAAI,CAACD,KAAL,CAAaA,CAChB,CAKD,MAAOF,CAAAA,CAAI,CAACI,IAAL,CAAU,CAJH,CACVC,UAAU,CAAE,8CADF,CAEVF,IAAI,CAAEA,CAFI,CAIG,CAAV,EAAqB,CAArB,CACV,CACM,CAGV,CAvBK,CAAN","sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * A javascript module to handle user ajax actions.\n *\n * @module     block_recentlyaccesseditems/repository\n * @package    block_recentlyaccesseditems\n * @copyright  2018 Victor Deniz <victor@moodle.com>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine(['core/ajax'], function(Ajax) {\n\n    /**\n     * Get the list of items that the user has most recently accessed.\n     *\n     * @method getRecentItems\n     * @param {int} limit Only return this many results\n     * @return {promise} Resolved with an array of items\n     */\n    var getRecentItems = function(limit) {\n        var args = {};\n        if (typeof limit !== 'undefined') {\n            args.limit = limit;\n        }\n        var request = {\n            methodname: 'block_recentlyaccesseditems_get_recent_items',\n            args: args\n        };\n        return Ajax.call([request])[0];\n    };\n    return {\n        getRecentItems: getRecentItems\n    };\n});"],"file":"repository.min.js"}