{"remainingRequest":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js!/home/soeren/dev/keksaccountgui/node_modules/eslint-loader/index.js??ref--13-0!/home/soeren/dev/keksaccountgui/src/services/Apps.js","dependencies":[{"path":"/home/soeren/dev/keksaccountgui/src/services/Apps.js","mtime":1563898371590},{"path":"/home/soeren/dev/keksaccountgui/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/home/soeren/dev/keksaccountgui/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":["import Api from '@/services/Api';\nexport default {\n listApps: function listApps(params) {\n return Api().get('/v1/app');\n },\n getAppImage: function getAppImage(id) {\n return \"https://api.account.keks.cloud/gui/apps/\" + id + \"/icon\";\n },\n getApp: function getApp(id) {\n return Api().get('/v1/app/' + id);\n },\n getAppByKey: function getAppByKey(key) {\n return Api().get(\"/v1/app/find?apiKey=\" + key);\n },\n getStartPageApps: function getStartPageApps() {\n return Api().get(\"/v1/app/find?webpage=1\");\n },\n getAccess: function getAccess(id) {\n return Api().get('/v1/app/' + id + '/access?create=1');\n },\n allowAccess: function allowAccess(id, redirect_uri, scope) {\n return Api().post('/v1/app/' + id + '/access/allow', {\n redirect_uri: redirect_uri,\n scope: scope\n });\n },\n updateApp: function updateApp(app) {\n return Api().put(\"/v1/app/\" + app.id, app);\n },\n getUser: function getUser(id) {\n return Api().get('/v1/app/' + id + '/user');\n },\n newApp: function newApp(name, description, url) {\n return Api().post('/v1/app', {\n name: name,\n description: description,\n url: url\n });\n }\n};",{"version":3,"sources":["/home/soeren/dev/keksaccountgui/src/services/Apps.js"],"names":["Api","listApps","params","get","getAppImage","id","getApp","getAppByKey","key","getStartPageApps","getAccess","allowAccess","redirect_uri","scope","post","updateApp","app","put","getUser","newApp","name","description","url"],"mappings":"AAAA,OAAOA,GAAP,MAAgB,gBAAhB;AAEA,eAAe;AACXC,EAA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B,GAAG,GAAGc,IAAN,CAAW,SAAX,EAAsB;AAACM,MAAAA,IAAI,EAAEA,IAAP;AAAaC,MAAAA,WAAW,EAAEA,WAA1B;AAAuCC,MAAAA,GAAG,EAAEA;AAA5C,KAAtB,CAAP;AACH;AA9BU,CAAf","sourcesContent":["import Api from '@/services/Api'\n\nexport default {\n listApps (params) {\n return Api().get('/v1/app')\n },\n getAppImage(id) {\n return \"https://api.account.keks.cloud/gui/apps/\"+id+\"/icon\";\n },\n getApp(id) {\n return Api().get('/v1/app/'+id)\n },\n getAppByKey(key) {\n return Api().get(\"/v1/app/find?apiKey=\"+key);\n },\n getStartPageApps() {\n return Api().get(\"/v1/app/find?webpage=1\");\n },\n getAccess(id) {\n return Api().get('/v1/app/'+id+'/access?create=1')\n },\n allowAccess(id, redirect_uri, scope) {\n return Api().post('/v1/app/'+id+'/access/allow', {redirect_uri: redirect_uri, scope:scope});\n },\n updateApp(app) {\n return Api().put(\"/v1/app/\"+app.id, app);\n },\n getUser(id) {\n return Api().get('/v1/app/'+id+'/user')\n },\n newApp(name, description, url) {\n return Api().post('/v1/app', {name: name, description: description, url: url});\n }\n}"]}]}