(function(){"use strict";u8.Crm.ApplicationType={Web:1,Tablet:4,Ras:6};u8.Crm.Configuration=function(n){$.extend(this,n)};$.extend(u8.Crm.Configuration.prototype,{getConfigurationsByApplicationType:function(n,i){u8.request("ConfigurationChannel.GetConfigurationsByApplicationType",{applicationType:n},function(n,o){if(!o.response||!o.response.configurations){u8.log.error("Error during retrieving configurations");return}var r=o.response.configurations;i(r)})},getConfigurationById:function(n,i){u8.request("ConfigurationChannel.GetConfigurationById",{configurationId:n},function(n,o){if(!o.response){u8.log.error("Error during retrieving configuration");return}var r=o.response.configuration;i(r)})}});u8.services.add({name:"configuration",scope:"Application",ctor:u8.Crm.Configuration})})();