Iniit
This commit is contained in:
@@ -0,0 +1,173 @@
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Crm;
|
||||
(function (Crm) {
|
||||
let Contacts;
|
||||
(function (Contacts) {
|
||||
let Components;
|
||||
(function (Components) {
|
||||
class CreateLead extends Unibase.Platform.Core.BaseComponent {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
cssFiles() {
|
||||
return [];
|
||||
}
|
||||
jsFiles() {
|
||||
return [''];
|
||||
}
|
||||
html(id, containerid) {
|
||||
return "";
|
||||
}
|
||||
init(containerid) {
|
||||
var instance = this;
|
||||
}
|
||||
load(id, containerid, callback) {
|
||||
}
|
||||
createcustomer() {
|
||||
let detailContainer = $("._bizgaze_detail_container:visible");
|
||||
var isconverttocustomer = (Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function (o) {
|
||||
return o.Key === "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_isconvertedtocustomer";
|
||||
})[0].Value);
|
||||
if (Boolean(isconverttocustomer) == true) {
|
||||
$(detailContainer).find('.DetailSetting_' + Unibase.Themes.Providers.DetailHelper.installedAppId + '_Confirm').addClass('hidden');
|
||||
}
|
||||
else {
|
||||
$(detailContainer).find('.DetailSetting_' + Unibase.Themes.Providers.DetailHelper.installedAppId + '_Confirm').removeClass('hidden');
|
||||
}
|
||||
var instance = this;
|
||||
$(detailContainer).find('.DetailSetting_' + Unibase.Themes.Providers.DetailHelper.installedAppId + '_Confirm').click(function () {
|
||||
Unibase.Platform.Forms.Managers.FormManager.Instance().getFormbyUniqueId("Bizgaze_Platform_Crm_CreateCustomer").then(function (res) {
|
||||
var formid = res.result.FormId;
|
||||
var loadobj = {
|
||||
CallBack: function () {
|
||||
$(".div_SubFormdetails").find(".btn-success").click();
|
||||
var tagpropertyid = $(".hdn_tagcontrol").parents(".divCustomProperties").data("uniqueid");
|
||||
var tagJson = "";
|
||||
instance.fileCacheHelper.loadJsFile('apps/crm/contacts/managers/contactmanager.js', function () {
|
||||
$(".div_SubFormdetails").find(".btn-success").click();
|
||||
var leadid = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function (o) { return o.Key === "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_recordid"; })[0].Value;
|
||||
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getleadbyleadid(Number(leadid)).then(function (leadres) {
|
||||
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getleadtagsbyleadid(Number(leadid), formid).then(function (res) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
if (leadres.result.LeadType == 2) {
|
||||
var drdbid = $("#rdb_organizationtypeid_2");
|
||||
$("#hdnRdb_organizationtypeid").val(2);
|
||||
drdbid.attr("checked", true).trigger('change');
|
||||
}
|
||||
$(".hdn_refid").val(Number(leadid));
|
||||
$(".txt_organizationid").val(leadres.result.OrganizationName);
|
||||
if (leadres.result.OrganizationName != "")
|
||||
$(".div_organizationid").addClass("floating-label-form-group-with-value");
|
||||
$(".txt_defaultemailid").val(leadres.result.OrganizationEmail);
|
||||
if (leadres.result.OrganizationEmail != "")
|
||||
$(".div_defaultemailid").addClass("floating-label-form-group-with-value");
|
||||
$(".txt_defaultnumberid").val(leadres.result.PhoneNumber);
|
||||
if (leadres.result.PhoneNumber != "")
|
||||
$(".div_defaultnumberid").addClass("floating-label-form-group-with-value");
|
||||
$(".txt_contactname").val(leadres.result.ContactPersonName);
|
||||
if (leadres.result.ContactPersonName != "")
|
||||
$(".div_contactname ").addClass("floating-label-form-group-with-value");
|
||||
$("#txtPhn_phonenumber").val(leadres.result.ContactNumbers);
|
||||
if (leadres.result.ContactNumbers != "")
|
||||
$(".div_phonenumber ").addClass("floating-label-form-group-with-value");
|
||||
$(".txt_emailaddress").val(leadres.result.Email);
|
||||
if (leadres.result.Email != "")
|
||||
$(".div_emailaddress").addClass("floating-label-form-group-with-value");
|
||||
$(".txtAutoComplete_branchid").append($("<option></option>")
|
||||
.attr("value", leadres.result.BranchId)
|
||||
.text(leadres.result.AliasName));
|
||||
$(".txtAutoComplete_designationid")
|
||||
.append($("<option></option>")
|
||||
.attr("value", leadres.result.DesignationId)
|
||||
.text(leadres.result.DesignationName));
|
||||
if ((leadres.result.AddressName1 != "" && leadres.result.AddressName1 != undefined) || (leadres.result.CityId1 != 0 && leadres.result.CityId1 != undefined)) {
|
||||
yield $.when().then(function (x) {
|
||||
$(".subform_container_1").find(".txt_addressname").val(leadres.result.AddressName1);
|
||||
if (leadres.result.AddressName1 != "")
|
||||
$(".subform_container_1").find(".div_addressname").addClass("floating-label-form-group-with-value");
|
||||
$(".subform_container_1").find(".txt_addressline1").val(leadres.result.AddressLine11);
|
||||
if (leadres.result.AddressLine11 != "")
|
||||
$(".subform_container_1").find(".div_addressline1").addClass("floating-label-form-group-with-value");
|
||||
$(".subform_container_1").find(".txt_addressline2").val(leadres.result.AddressLine12);
|
||||
if (leadres.result.AddressLine12 != "")
|
||||
$(".subform_container_1").find(".div_addressline2").addClass("floating-label-form-group-with-value");
|
||||
$(".subform_container_1").find(".txtAutoComplete_cityid").append($("<option></option>").attr("value", leadres.result.CityId1)
|
||||
.text(leadres.result.Address_CityName1)).trigger("change");
|
||||
$(".subform_container_1").find(".txt_zipcode").val(leadres.result.PinCode1);
|
||||
if (leadres.result.PinCode1 != "")
|
||||
$(".subform_container_1").find(".div_zipcode").addClass("floating-label-form-group-with-value");
|
||||
$(".subform_container_1").find(".txt_landmark").val(leadres.result.LandMark1);
|
||||
if (leadres.result.LandMark1 != "")
|
||||
$(".subform_container_1").find(".div_landmark").addClass("floating-label-form-group-with-value");
|
||||
});
|
||||
}
|
||||
else {
|
||||
$(".subform_1").find(".btn-icon-circle").click();
|
||||
}
|
||||
if ((leadres.result.AddressName2 != "" && leadres.result.AddressName2 != undefined) || (leadres.result.CityId2 != 0 && leadres.result.CityId2 != undefined)) {
|
||||
$(".subform_container_2").find(".txt_addressname").val(leadres.result.AddressName2);
|
||||
if (leadres.result.AddressName2 != "")
|
||||
$(".subform_container_2").find(".div_addressname").addClass("floating-label-form-group-with-value");
|
||||
$(".subform_container_2").find(".txt_addressline1").val(leadres.result.AddressLine21);
|
||||
if (leadres.result.AddressLine21 != "")
|
||||
$(".subform_container_2").find(".div_addressline1").addClass("floating-label-form-group-with-value");
|
||||
$(".subform_container_2").find(".txt_addressline2").val(leadres.result.AddressLine22);
|
||||
if (leadres.result.AddressLine22 != "")
|
||||
$(".subform_container_2").find(".div_addressline2").addClass("floating-label-form-group-with-value");
|
||||
$(".subform_container_2").find(".txtAutoComplete_cityid").append($("<option></option>").attr("value", leadres.result.CityId2)
|
||||
.text(leadres.result.Address_CityName2)).trigger("change");
|
||||
$(".subform_container_2").find(".txt_zipcode").val(leadres.result.PinCode2);
|
||||
if (leadres.result.PinCode2 != "")
|
||||
$(".subform_container_2").find(".div_zipcode ").addClass("floating-label-form-group-with-value");
|
||||
$(".subform_container_2").find(".txt_landmark").val(leadres.result.LandMark2);
|
||||
if (leadres.result.LandMark2 != "")
|
||||
$(".subform_container_2").find(".div_landmark").addClass("floating-label-form-group-with-value");
|
||||
}
|
||||
else {
|
||||
$(".subform_2").find(".btn-icon-circle").click();
|
||||
}
|
||||
Unibase.Forms.Controls.Tag.Instance().bindEditFormDetails(tagpropertyid, res.result, "");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
Parameters: null,
|
||||
};
|
||||
var formviewerObj = {
|
||||
FormId: formid,
|
||||
AppConfigurationId: 0,
|
||||
Pk_Value: 0,
|
||||
PortletWidgetId: 0,
|
||||
OnSuccess: null,
|
||||
OnFail: null,
|
||||
OnLoad: loadobj,
|
||||
};
|
||||
Unibase.Platform.Forms.Components.FormViewer.Instance().init(formviewerObj);
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new CreateLead();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Components.CreateLead = CreateLead;
|
||||
})(Components = Contacts.Components || (Contacts.Components = {}));
|
||||
})(Contacts = Crm.Contacts || (Crm.Contacts = {}));
|
||||
})(Crm = Apps.Crm || (Apps.Crm = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,73 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Crm;
|
||||
(function (Crm) {
|
||||
let Contacts;
|
||||
(function (Contacts) {
|
||||
let Components;
|
||||
(function (Components) {
|
||||
class LeadChecklist extends Unibase.Platform.Core.BaseComponent {
|
||||
cssFiles() {
|
||||
return [];
|
||||
}
|
||||
jsFiles() {
|
||||
return [''];
|
||||
}
|
||||
html(id, containerid) {
|
||||
return "";
|
||||
}
|
||||
init(containerid) {
|
||||
var instance = this;
|
||||
}
|
||||
load(id, containerid, callback) {
|
||||
}
|
||||
strikeThrough(workflowchecklistid) {
|
||||
var LeadId = Unibase.Themes.Providers.DetailHelper.recordId;
|
||||
var cheked = $("#checkBox-no-" + workflowchecklistid).prop('checked');
|
||||
if (cheked == true) {
|
||||
$(".Dependentcheckbox").css('background-color', '#2196F3');
|
||||
$('#note-text-' + workflowchecklistid).css('text-decoration', 'line-through');
|
||||
$('#note-text-' + workflowchecklistid).css('color', 'red');
|
||||
}
|
||||
else {
|
||||
$(".Dependentcheckbox").css('background-color', '');
|
||||
$('#note-text-' + workflowchecklistid).css('text-decoration', '');
|
||||
$('#note-text-' + workflowchecklistid).css('color', '');
|
||||
}
|
||||
Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile('apps/crm/contacts/managers/contactmanager.js', function () {
|
||||
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().updateCheckList(workflowchecklistid, LeadId, cheked).then(function (response) {
|
||||
MessageHelper.Instance().showSuccess(response.message, 'bizgaze_ErrorMessages');
|
||||
});
|
||||
});
|
||||
}
|
||||
Completed() {
|
||||
var Leadid = Unibase.Themes.Providers.DetailHelper.recordId;
|
||||
Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile('apps/crm/contacts/managers/contactmanager.js', function () {
|
||||
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getChecklist(Leadid).then(function (response) {
|
||||
if (response.result.length > 0) {
|
||||
for (var i = 0; i < response.result.length; i++) {
|
||||
var data = (response.result)[i];
|
||||
if (data.ischecked == true) {
|
||||
$('#note-text-' + data.workflowchecklistid).css('text-decoration', 'line-through');
|
||||
$('#note-text-' + data.workflowchecklistid).css('color', 'red');
|
||||
$('#checkBox-no-' + data.workflowchecklistid).prop('checked', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new LeadChecklist();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Components.LeadChecklist = LeadChecklist;
|
||||
})(Components = Contacts.Components || (Contacts.Components = {}));
|
||||
})(Contacts = Crm.Contacts || (Crm.Contacts = {}));
|
||||
})(Crm = Apps.Crm || (Apps.Crm = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 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{
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class CustomerSubType extends Unibase.Platform.Core.BaseComponent {
|
||||
init(formpropertyid, prop, callback) {
|
||||
var instance = this;
|
||||
$(".txtAutoComplete_customertypeid").change(function () {
|
||||
var customertypeid = $(".txtAutoComplete_customertypeid").val();
|
||||
instance.getCustomerSubTypes(customertypeid);
|
||||
});
|
||||
if (callback != null) {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
loadControl(containerid, prop) {
|
||||
var html = '<ul>' +
|
||||
'<li class="length-row" id="li_CustomerSubType_Details">' +
|
||||
'</li>' +
|
||||
'<input type="hidden" id="hdn_customersubtypecontrol" class="value-control" value="Bizgaze.Apps.Crm.Leads.Controls.CustomerSubType.Instance().customersubtypeControlObj();">' +
|
||||
'</ul>';
|
||||
$("#" + containerid).html(html);
|
||||
}
|
||||
loadControlSettings(controlsettingjson, formpropertyid) {
|
||||
return null;
|
||||
}
|
||||
loadPropertySettings(propertysettings, formpropertyid) {
|
||||
return null;
|
||||
}
|
||||
bindEditFormDetails(formpropertyid, propval, DocPropertyName) {
|
||||
var customerqualificationid = Number(propval);
|
||||
var instance = this;
|
||||
var jsfiles = ['apps/crm/contacts/managers/contactmanager.js'];
|
||||
instance.fileCacheHelper.loadJsFiles(jsfiles, function (response) {
|
||||
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().GetCustomerQualificationDetails(customerqualificationid).then(function (response) {
|
||||
var data = response.result[0];
|
||||
instance.CustomerSubType(data);
|
||||
});
|
||||
});
|
||||
}
|
||||
CustomerSubType(data) {
|
||||
let customersubtypeid = data.customersubtypeid;
|
||||
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().GetCustomerSubType(Number(customersubtypeid)).then(function (response) {
|
||||
var data1 = response.result[0];
|
||||
var html = '<li class="list-group-item CustomerSubTypes_Items" id="li_CustomerSubTpes_">' +
|
||||
'<div class="row">' +
|
||||
'<input type ="hidden" class="hf_customersubtypeid" value = "' + data1.customersubtypeid + '" id = "customersubtypeid" />' +
|
||||
'<input type ="hidden" class="hf_customertypeid" value = "' + data.customertypeid + '" id = "customertypeid" /> ' +
|
||||
'<div class="col-sm-6" > ' + data1.customersubtypename + ' </div>' +
|
||||
'<div class="col-sm-6" ><input type ="text" class="form-control floating-label-control txt_Description" id="txt_Description" data-isdynamic="false" placeholder="Description" data-placeholder="Description" data-label="Description" ></div >' +
|
||||
'</div></li> ';
|
||||
$("#li_CustomerSubType_Details").after(html);
|
||||
$(".txt_Description").val(data.description);
|
||||
});
|
||||
}
|
||||
getCustomerSubTypes(customertypeid) {
|
||||
var instance = this;
|
||||
var jsfiles = ['apps/crm/contacts/managers/contactmanager.js'];
|
||||
$(".CustomerSubTypes_Items").remove();
|
||||
instance.fileCacheHelper.loadJsFiles(jsfiles, function (response) {
|
||||
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().GetCustomersubtypeDetails(customertypeid).then(function (response) {
|
||||
var dt = response.result;
|
||||
if (dt.length > 0) {
|
||||
for (var i = 0; i < dt.length; i++) {
|
||||
var data = dt[i];
|
||||
var html = '<li class="list-group-item CustomerSubTypes_Items" id="li_CustomerSubTpes_' + i + '">' +
|
||||
'<div class="row">' +
|
||||
'<input type ="hidden" class="hf_customersubtypeid" value = "' + data.customersubtypeid + '" id = "customersubtypeid" />' +
|
||||
'<input type ="hidden" class="hf_customertypeid" value = "' + data.customertypeid + '" id = "customertypeid" /> ' +
|
||||
'<div class="col-sm-6" > ' + data.customersubtypename + ' </div>' +
|
||||
'<div class="col-sm-6" ><input type ="text" class="form-control floating-label-control txt_Description" id="txt_Description" data-isdynamic="false" placeholder="Description" data-placeholder="Description" data-label="Description" ></div >' +
|
||||
'</div></li> ';
|
||||
$("#li_CustomerSubType_Details").after(html);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
customersubtypeControlObj() {
|
||||
var customerSubTypesEntries = new Array();
|
||||
let leadid = Unibase.Themes.Providers.DetailHelper.recordId;
|
||||
$('.CustomerSubTypes_Items').each(function (index) {
|
||||
var element = $(this);
|
||||
customerSubTypesEntries.push({
|
||||
CustomerSubTypeId: Number(element.find('.hf_customersubtypeid').val()),
|
||||
LeadId: Number(leadid),
|
||||
CustomerTypeId: Number(element.find('.hf_customertypeid').val()),
|
||||
Description: element.find('.txt_Description ').val()
|
||||
});
|
||||
});
|
||||
return customerSubTypesEntries;
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined)
|
||||
this.instance = new CustomerSubType();
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.CustomerSubType = CustomerSubType;
|
||||
})(Controls = Leads.Controls || (Leads.Controls = {}));
|
||||
})(Leads = Crm.Leads || (Crm.Leads = {}));
|
||||
})(Crm = Apps.Crm || (Apps.Crm = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"customersubtype.component.js","sourceRoot":"","sources":["customersubtype.component.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAoHhB;AApHD,WAAU,OAAO;IACb,IAAiB,IAAI,CAkHpB;IAlHD,WAAiB,IAAI;QACjB,IAAiB,GAAG,CAgHnB;QAhHD,WAAiB,GAAG;YAChB,IAAiB,KAAK,CA8GrB;YA9GD,WAAiB,KAAK;gBAClB,IAAiB,QAAQ,CA4GxB;gBA5GD,WAAiB,QAAQ;oBACrB,MAAa,eAAgB,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa;wBACpE,IAAI,CAAC,cAAsB,EAAE,IAAgB,EAAE,QAAa;4BACxD,IAAI,QAAQ,GAAG,IAAI,CAAC;4BACpB,CAAC,CAAC,iCAAiC,CAAC,CAAC,MAAM,CAAC;gCACxC,IAAI,cAAc,GAAG,CAAC,CAAC,iCAAiC,CAAC,CAAC,GAAG,EAAE,CAAC;gCAChE,QAAQ,CAAC,mBAAmB,CAAC,cAAc,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,QAAQ;4BACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;gCAC3B,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;4BAC1C,OAAO,IAAI,CAAC,QAAQ,CAAC;wBACzB,CAAC;qBACJ;oBA1GY,wBAAe,kBA0G3B,CAAA;gBACL,CAAC,EA5GgB,QAAQ,GAAR,cAAQ,KAAR,cAAQ,QA4GxB;YACL,CAAC,EA9GgB,KAAK,GAAL,SAAK,KAAL,SAAK,QA8GrB;QACL,CAAC,EAhHgB,GAAG,GAAH,QAAG,KAAH,QAAG,QAgHnB;IACL,CAAC,EAlHgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAkHpB;AACL,CAAC,EApHS,OAAO,KAAP,OAAO,QAoHhB"}
|
||||
@@ -0,0 +1,43 @@
|
||||
var Bizgaze;
|
||||
(function (Bizgaze) {
|
||||
let Apps;
|
||||
(function (Apps) {
|
||||
let Crm;
|
||||
(function (Crm) {
|
||||
let Leads;
|
||||
(function (Leads) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class CustomerSubType_Settings {
|
||||
loadControlPropertiesHtml(controlpropList, container) {
|
||||
return ``;
|
||||
}
|
||||
bindPropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
savePropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
loadSettingHtml() {
|
||||
return null;
|
||||
}
|
||||
bindControlData(controldatajson) {
|
||||
return null;
|
||||
}
|
||||
SaveControlData(controldatajson) {
|
||||
return controldatajson;
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new CustomerSubType_Settings();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Controls.CustomerSubType_Settings = CustomerSubType_Settings;
|
||||
})(Controls = Leads.Controls || (Leads.Controls = {}));
|
||||
})(Leads = Crm.Leads || (Crm.Leads = {}));
|
||||
})(Crm = Apps.Crm || (Apps.Crm = {}));
|
||||
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
|
||||
})(Bizgaze || (Bizgaze = {}));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"customersubtype.settings.js","sourceRoot":"","sources":["customersubtype.settings.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAsChB;AAtCD,WAAU,OAAO;IACb,IAAiB,IAAI,CAoCpB;IApCD,WAAiB,IAAI;QACjB,IAAiB,GAAG,CAkCnB;QAlCD,WAAiB,GAAG;YAChB,IAAiB,KAAK,CAgCrB;YAhCD,WAAiB,KAAK;gBAClB,IAAiB,QAAQ,CA8BxB;gBA9BD,WAAiB,QAAQ;oBACrB,MAAa,wBAAwB;wBACjC,yBAAyB,CAAC,eAAsC,EAAE,SAAS;4BACvE,OAAO,EAAE,CAAC;wBACd,CAAC;wBACD,oBAAoB,CAAC,IAAgB;4BACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;4BACvE,OAAO,EAAE,CAAC;wBACd,CAAC;wBACD,oBAAoB,CAAC,IAAgB;4BACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;4BACvE,OAAO,EAAE,CAAC;wBACd,CAAC;wBACD,eAAe;4BACX,OAAO,IAAI,CAAC;wBAChB,CAAC;wBACD,eAAe,CAAC,eAAoB;4BAChC,OAAO,IAAI,CAAC;wBAChB,CAAC;wBACD,eAAe,CAAC,eAAoB;4BAChC,OAAO,eAAe,CAAC;wBAC3B,CAAC;wBAGD,MAAM,CAAC,QAAQ;4BACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;gCAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,wBAAwB,EAAE,CAAC;4BACpD,OAAO,IAAI,CAAC,SAAS,CAAC;wBAC1B,CAAC;qBACJ;oBA5BY,iCAAwB,2BA4BpC,CAAA;gBACL,CAAC,EA9BgB,QAAQ,GAAR,cAAQ,KAAR,c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