/*! phoscon-app 2023-07-31 */

function bbInitRules(){var Rule=Backbone.Model.extend({sync:function(method,model,options){return"patch"===method&&(method="update"),Backbone.sync(method,model,options)}});app.RulesCollection=Backbone.Collection.extend({name:"rules",model:Rule,url:"//"+app.session.gw+"/api/"+app.apikey+"/rules",parse:function(response,options){return _.map(response,(item,id)=>(item.id=id,item))}}),app.rules=new app.RulesCollection}