(function(){"use strict";u8.Crm.Variables=function(e){$.extend(this,e)};u8.Crm.Variables.makeClass({name:"Variables"});$.extend(u8.Crm.Variables.prototype,{getValues:function(e,r){if(!e){return r(null)}u8.request("VariablesChannel.GetVariableValues",{names:e},function(e,s){return r(s.error?s:s.response)})},"DataProvider.execute":function(e){var r=[];if(e.names){if(u8.tools.isArray(e.names)){r=e.names}else if(typeof e.names=="string"){r=e.names.split(",")}}var s=$.Deferred();this.getValues(r,function(e){if(e.error){s.reject(e.error)}else{s.resolve({values:e})}});return s}});u8.services.add({name:"variables",type:"Variables",scope:"Session"})})();