/*! phoscon-app 2024-05-27 */

function bbInitScenes(){var Scene=Backbone.Model.extend({sync:function(method,model,options){return"patch"===method&&(method="update"),Backbone.sync(method,model,options)}});app.ScenesCollection=Backbone.Collection.extend({name:"scenes",model:Scene,url:function(){return"//"+app.session.gw+"/api/"+app.apikey+"/groups/"+app.session.gid+"/scenes"},parse:function(response,options){return _.map(response,function(scene,sid){return scene.id=sid,scene})}}),app.scenes=new app.ScenesCollection}