This commit is contained in:
2023-03-11 17:30:20 +00:00
commit b6c4e025bc
5124 changed files with 1153349 additions and 0 deletions
@@ -0,0 +1,136 @@
var Bizgaze;
(function (Bizgaze) {
let Apps;
(function (Apps) {
let Crm;
(function (Crm) {
let Components;
(function (Components) {
class SelfDeclaration extends Unibase.Platform.Core.BaseComponent {
constructor() {
super(...arguments);
this._dateTimeHelper = Unibase.Platform.Helpers.DateTimeHelper.Instance();
}
jsFiles() {
return ["platform/forms/components/formviewer/formviewer.js", 'libs/parsley/parsley.min.js'];
}
cssFiles() {
return [];
}
html() {
var html = '';
return html;
}
loadhtml(Containerid) {
var html = '<form data-validate="parsley" data-isdynamic="false"><div class="card"><div class="card-header"><h3 class="text-center" style ="color:deepskyblue"><u>Self - Declaration</u></h3 ></div><div style="overflow-x:hidden;" class="d modal-body bg-light"><div class="bg-white mb-10"><div id="bizgaze_CreateErrorMessages" class="clear"></div><div class="col-md-12" style ="height:300px; border:1px solid pink"><h4><p>I, <b><span id="userName1"></span></b> on behalf of <b><span id="lblDistributorName1"></span></b> hereby, declare that <b><span id="lblDistributorName2"></span></b> has utilized DMS system to conduct all Mobil related business transactions accurately, completely and in a timely manner for the month of <b><span id="MonthAndYear1"></span></b>, and the transactional data pertaining to purchase, inventory, sales and market collections (payments received from customers) for the month of <b><span id="MonthAndYear2"></span></b> is accurate as per my knowledge.<br/><br/><br/> Name: <b><span id="userName2"></span></b><br/> Date: <b><span id="CurrentDate"></span></b><br/><br/></p></h4><span><b><input type="checkbox" style ="width:30px;height:14px;" id="isSelfDeclared"> <span></span> Yes, I declare <span id="DeclarationMonthI_e_PreviousMonth" class="hidden"></span> <br/><br/></span><div class="text-center"><input type="button" class="btn btn-primary btn-md" id="btnSubmit" value="Submit" disabled /></div></div></div></div></form>';
$("." + Containerid).html(html);
}
load(Containerid) {
}
init(Containerid) {
let instance = this;
var jsfiles = ["platform/forms/components/formviewer/formviewer.js", 'libs/parsley/parsley.min.js'];
SelfDeclaration.Instance().fileCacheHelper.loadJsFiles(jsfiles, function () {
SelfDeclaration.Instance().loadhtml(Containerid);
$("#btn_Close").click(function () {
SelfDeclaration.Instance().navigationHelper.closePopUp();
});
var tenantname = "";
Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().GetTenants(Number(Unibase.Platform.Membership.Infos.Identity.getCurrentUser().tenantId)).then(function (res) {
if (res.result != null) {
tenantname = res.result.TenantName;
$("#lblDistributorName1").text(tenantname.toString());
$("#lblDistributorName2").text(tenantname.toString());
}
});
});
$("#userName1").text(Unibase.Platform.Membership.Infos.Identity.getCurrentUser().name);
$("#lblDistributorName1").text(tenantname.toString());
$("#lblDistributorName2").text(tenantname.toString());
$("#userName2").text(Unibase.Platform.Membership.Infos.Identity.getCurrentUser().name);
var TotalDate = new Date();
var months = ["JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"];
var date = TotalDate.getDate();
var month = TotalDate.getMonth() + 1;
var year = TotalDate.getFullYear();
if (months[TotalDate.getMonth()] == "DECEMBER") {
year = year - 1;
}
$('#MonthAndYear1').text(months[TotalDate.getMonth()] + "-" + year);
$('#MonthAndYear2').text(months[TotalDate.getMonth()] + "-" + year);
$('#CurrentDate').text(date + "/" + month + "/" + year);
$('#DeclarationMonthI_e_PreviousMonth').text(months[TotalDate.getMonth()]);
var todayDate = new Date($.now());
var serverdate = instance._dateTimeHelper.formatServerDate(todayDate);
var OnlyDate = serverdate.split("/");
if (Number(OnlyDate[2]) >= 1 && Number(OnlyDate[2]) <= 10) {
$("#btnSubmit").prop('disabled', false);
}
else {
$("#btnSubmit").prop('disabled', true);
}
if (Number(OnlyDate[2]) > 10) {
$("#btnSubmit").hide();
$("#isSelfDeclared").hide();
$("#description").hide();
}
SelfDeclaration.Instance().Enable();
$('#btnSubmit').click(function () {
SelfDeclaration.Instance().save();
});
});
}
Enable() {
let instance = this;
var da = new Date($.now());
var date = instance._dateTimeHelper.formatServerDate(da);
date = date.replace('/', '-').replace('/', '-');
var month = $('#DeclarationMonthI_e_PreviousMonth').text();
Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getSelfDeclarationByDate(date, month).then(function (response) {
if (response.result == "Record not Found") {
$("#btnSubmit").prop("disabled", false);
}
else {
$("#btnSubmit").prop("disabled", true);
$('#btnSubmit').prop('value', 'Submitted');
$("#isSelfDeclared").prop('checked', true);
$("#isSelfDeclared").prop("disabled", true);
}
});
});
}
save() {
var date = Unibase.Platform.Helpers.DateTimeHelper.Instance().currentDate();
var IsDeclared = $("#isSelfDeclared").prop('checked');
if (IsDeclared == false) {
MessageHelper.Instance().showError('Please Check Declaration', 'bizgaze_CreateErrorMessages');
return false;
}
var data = {
PciDeclared: IsDeclared,
UserId: Unibase.Platform.Membership.Infos.Identity.getCurrentUser().userId,
DeclarationDate: new Date(),
MonthOfDeclaration: $('#DeclarationMonthI_e_PreviousMonth').text(),
PartitionId: Unibase.Platform.Membership.Infos.Identity.getCurrentUser().partitionId
};
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().saveSelfDeclaration(data).then(function (response) {
MessageHelper.Instance().showSuccess(response.message, '');
$("#isSelfDeclared").prop('checked', true);
$("#isSelfDeclared").prop("disabled", true);
$('#btnSubmit').prop('value', 'Submitted');
});
}
static Instance() {
if (this.instance === undefined) {
this.instance = new SelfDeclaration();
}
return this.instance;
}
}
Components.SelfDeclaration = SelfDeclaration;
})(Components = Crm.Components || (Crm.Components = {}));
})(Crm = Apps.Crm || (Apps.Crm = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));
File diff suppressed because one or more lines are too long
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 ContactEmail extends Unibase.Platform.Core.BaseComponent {
constructor() {
super();
}
cssFiles() {
return [];
}
jsFiles() {
return [''];
}
html(id, containerid) {
return "";
}
init(containerid) {
var instance = this;
}
load(id, containerid, callback) {
}
changeDefaultEmail(id) {
var instance = this;
var _recordId = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_recordid").Value);
instance.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
instance.fileCacheHelper.loadJsFile("tenants/themes/compact/components/details/details.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().changedefaultemail(_recordId, id).then(function (response) {
var detail_instance = Unibase.Themes.Compact.Components.Details.Instance();
var containerid = Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId();
var _installedAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
var portletid = detail_instance.unibase_core_activeportletid;
detail_instance.loadWidgets(_installedAppId, portletid, "#" + containerid + "");
MessageHelper.Instance().showSuccess(response.message, '');
});
});
});
}
SetAsLoginEmail(id) {
var instance = this;
var _recordId = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_recordid").Value);
var userName = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_unibaseid").Value;
instance.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
instance.fileCacheHelper.loadJsFile("tenants/themes/compact/components/details/details.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().changedefaultloginemail(_recordId, id, userName).then(function (response) {
var detail_instance = Unibase.Themes.Compact.Components.Details.Instance();
var containerid = Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId();
var _installedAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
var portletid = detail_instance.unibase_core_activeportletid;
detail_instance.loadWidgets(_installedAppId, portletid, "#" + containerid + "");
MessageHelper.Instance().showSuccess(response.message, '');
});
});
});
}
static Instance() {
if (this._instance === undefined)
this._instance = new ContactEmail();
return this._instance;
}
}
Components.ContactEmail = ContactEmail;
})(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 @@
{"version":3,"file":"w_contactemail.js","sourceRoot":"","sources":["w_contactemail.ts"],"names":[],"mappings":"AACA,IAAU,OAAO,CAkFhB;AAlFD,WAAU,OAAO;IACb,IAAiB,IAAI,CAgFpB;IAhFD,WAAiB,IAAI;QACjB,IAAiB,GAAG,CA8EnB;QA9ED,WAAiB,GAAG;YAChB,IAAiB,QAAQ,CA4ExB;YA5ED,WAAiB,QAAQ;gBACrB,IAAiB,UAAU,CA0E1B;gBA1ED,WAAiB,UAAU;oBACvB,MAAa,YAAa,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa;wBACjE;4BACI,KAAK,EAAE,CAAC;wBACZ,CAAC;wBACD,QAAQ;4BACJ,OAAO,EAAE,CAAC;wBACd,CAAC;wBACD,OAAO;4BACH,OAAO,CAAC,EAAE,CAAC,CAAC;wBAChB,CAAC;wBACD,IAAI,CAAC,EAAO,EAAE,WAAmB;4BAC7B,OAAO,EAAE,CAAC;wBACd,CAAC;wBACD,IAAI,CAAC,WAAW;4BACZ,IAAI,QAAQ,GAAG,IAAI,CAAC;wBAExB,CAAC;wBACD,IAAI,CAAC,EAAO,EAAE,WAAmB,EAAE,QAAkB;wBAErD,CAAC;wBAED,kBAAkB,CAAC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wCAC3E,IAAI,SAAS,GAAG,eAAe,CAAC,4BAA4B,CAAC;wCAC7D,eAAe,CAAC,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,GAAG,GAAG,WAAW,GAAG,EAAE,CAAC,CAAA;wCAC/E,aAAa,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;oCAE/D,CAAC,CAAC,CAAC;gCACP,CAAC,CAAC,CAAC;4BACP,CAAC,CAAC,CAAC;wBACP,CAAC;wBAKD,MAAM,CAAC,QAAQ;4BACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;gCAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,YAAY,EAAE,CAAC;4BACxC,OAAO,IAAI,CAAC,SAAS,CAAC;wBAC1B,CAAC;qBACJ;oBAvEY,uBAAY,eAuExB,CAAA;gBAEL,CAAC,EA1EgB,UAAU,GAAV,mBAAU,KAAV,mBAAU,QA0E1B;YACL,CAAC,EA5EgB,QAAQ,GAAR,YAAQ,KAAR,YAAQ,QA4ExB;QACL,CAAC,EA9EgB,GAAG,GAAH,QAAG,KAAH,QAAG,QA8EnB;IACL,CAAC,EAhFgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAgFpB;AACL,CAAC,EAlFS,OAAO,KAAP,OAAO,QAkFhB"}
+1
View File
@@ -0,0 +1 @@
var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{constructor(){super()}cssFiles(){return[]}jsFiles(){return[""]}html(){return""}init(){var n=this}load(){}changeDefaultEmail(t){var i=this,r=Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+Unibase.Themes.Providers.DetailHelper.installedAppId+"_recordid").Value);i.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js",function(){i.fileCacheHelper.loadJsFile("tenants/themes/compact/components/details/details.js",function(){n.Apps.Crm.Contacts.Managers.ContactManager.Instance().changedefaultemail(r,t).then(function(n){var t=Unibase.Themes.Compact.Components.Details.Instance(),i=Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId(),r=Unibase.Themes.Providers.DetailHelper.installedAppId,u=t.unibase_core_activeportletid;t.loadWidgets(r,u,"#"+i+"");MessageHelper.Instance().showSuccess(n.message,"")})})})}SetAsLoginEmail(t){var i=this,r=Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+Unibase.Themes.Providers.DetailHelper.installedAppId+"_recordid").Value),u=Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+Unibase.Themes.Providers.DetailHelper.installedAppId+"_unibaseid").Value;i.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js",function(){i.fileCacheHelper.loadJsFile("tenants/themes/compact/components/details/details.js",function(){n.Apps.Crm.Contacts.Managers.ContactManager.Instance().changedefaultloginemail(r,t,u).then(function(n){var t=Unibase.Themes.Compact.Components.Details.Instance(),i=Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId(),r=Unibase.Themes.Providers.DetailHelper.installedAppId,u=t.unibase_core_activeportletid;t.loadWidgets(r,u,"#"+i+"");MessageHelper.Instance().showSuccess(n.message,"")})})})}static Instance(){return this._instance===undefined&&(this._instance=new i),this._instance}}t.ContactEmail=i})(i=t.Components||(t.Components={}))})(i=t.Contacts||(t.Contacts={}))})(i=t.Crm||(t.Crm={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
@@ -0,0 +1,142 @@
var Bizgaze;
(function (Bizgaze) {
let Apps;
(function (Apps) {
let Crm;
(function (Crm) {
let Contacts;
(function (Contacts) {
let Components;
(function (Components) {
class ContactPhone extends Unibase.Platform.Core.BaseComponent {
constructor() {
super();
}
cssFiles() {
return [];
}
jsFiles() {
return [''];
}
html(id, containerid) {
return "";
}
init(containerid) {
var instance = this;
}
load(id, containerid, callback) {
}
changeDefaultPhone(id) {
var instance = this;
var _recordId = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_recordid").Value);
instance.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
instance.fileCacheHelper.loadJsFile("tenants/themes/compact/components/details/details.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().changedefaultphone(_recordId, id).then(function (response) {
var detail_instance = Unibase.Themes.Compact.Components.Details.Instance();
var containerid = Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId();
var _installedAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
var portletid = detail_instance.unibase_core_activeportletid;
detail_instance.loadWidgets(_installedAppId, portletid, "#" + containerid + "");
MessageHelper.Instance().showSuccess(response.message, '');
});
});
});
}
changeDefaultPhoneLogin(id) {
var instance = this;
var _recordId = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_recordid").Value);
var userName = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_unibaseid").Value;
instance.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
instance.fileCacheHelper.loadJsFile("tenants/themes/compact/components/details/details.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().changedefaultloginphone(_recordId, id, userName).then(function (response) {
var detail_instance = Unibase.Themes.Compact.Components.Details.Instance();
var containerid = Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId();
var _installedAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
var portletid = detail_instance.unibase_core_activeportletid;
detail_instance.loadWidgets(_installedAppId, portletid, "#" + containerid + "");
MessageHelper.Instance().showSuccess(response.message, '');
});
});
});
}
editplcaeholders(phonetype) {
if (phonetype == 2) {
$("#a_Verify_phonenumber").addClass("hidden");
$(".div_Otp_phonenumber").addClass("hidden");
$(".div_PhoneNumber").removeClass("floating-label-form-group-with-value");
$("#lbl_phno").empty();
$("#lbl_phno").append('Landline Number<span class="text-danger"> *</span>');
$("#txtPhn_phonenumber").data({ placeholder: "Enter Landline Number", label: "Landline Number" }).attr("placeholder", "Landline Number *");
$("#txtPhn_phonenumber").attr("maxlength", "20");
}
else {
$("#a_Verify_phonenumber").removeClass("hidden");
$(".div_PhoneNumber").removeClass('floating-label-form-group-with-value');
$("#lbl_phno").empty();
$("#lbl_phno").append('Mobile Number<span class="text-danger"> *</span>');
$("#txtPhn_phonenumber").data({ placeholder: 'Enter Mobile Number', label: 'Mobile Number' }).attr('placeholder', 'Mobile Number *');
$("#txtPhn_phonenumber").attr('maxlength', '10');
}
}
changePlaceholder(phonetype) {
if (phonetype == 2) {
$("#txtPhn_phonenumber").removeAttr("disabled");
$("#a_Verify_phonenumber").addClass("hidden");
$(".div_Otp_phonenumber").addClass("hidden");
$("#txtPhn_phonenumber").val("");
$(".div_PhoneNumber").removeClass('floating-label-form-group-with-value');
$("#lbl_phno").empty();
$("#lbl_phno").append('Landline Number<span class="text-danger"> *</span>');
$("#txtPhn_phonenumber").data({ placeholder: 'Enter Landline Number', label: 'Landline Number' }).attr('placeholder', 'Landline Number *');
$("#txtPhn_phonenumber").attr('maxlength', '20');
$(".divCustomProperties_phonenumber").data("validatename", "Landline Number");
}
else {
$("#a_Verify_phonenumber").removeClass("hidden");
$("#txtPhn_phonenumber").val("");
$(".divCustomProperties_phonenumber").data("validatename", "Mobile Number");
$(".div_PhoneNumber").removeClass('floating-label-form-group-with-value');
$("#lbl_phno").empty();
$("#lbl_phno").append('Mobile Number<span class="text-danger"> *</span>');
$("#txtPhn_phonenumber").data({ placeholder: 'Enter Mobile Number', label: 'Mobile Number' }).attr('placeholder', 'Mobile Number *');
$("#txtPhn_phonenumber").attr('maxlength', '10');
}
}
changeLables() {
$(".div_PhoneNumber").addClass('floating-label-form-group-with-value');
}
changePlaceholderforcustomer(phonetype, id) {
if (phonetype == 2) {
$('.txt_defaultnumberid').val("");
$(".div_defaultnumberid").removeClass('floating-label-form-group-with-value');
var id12 = $(".divCustomProperties_defaultnumberid").find("label").attr("id");
$("#" + id12).empty();
$("#" + id12).append('Landline Number<span class="text-danger hidden"> *</span>');
$(".txt_defaultnumberid").data({ placeholder: 'Enter Landline Number', label: 'Landline Number' }).attr('placeholder', 'Landline Number');
$(".txt_defaultnumberid").attr('maxlength', '20');
}
else {
$(".txt_defaultnumberid").val("");
$(".div_defaultnumberid").removeClass('floating-label-form-group-with-value');
var id12 = $(".divCustomProperties_defaultnumberid").find("label").attr("id");
$("#" + id12).empty();
$("#" + id12).append('Mobile Number<span class="text-danger"> *</span>');
$(".txt_defaultnumberid").data({ placeholder: 'Enter Mobile Number', label: 'Mobile Number' }).attr('placeholder', 'Mobile Number *');
$(".txt_defaultnumberid").attr('maxlength', '10');
}
}
changeLable() {
$(".txt_defaultnumberid").addClass('floating-label-form-group-with-value');
}
static Instance() {
if (this._instance === undefined)
this._instance = new ContactPhone();
return this._instance;
}
}
Components.ContactPhone = ContactPhone;
})(Components = Contacts.Components || (Contacts.Components = {}));
})(Contacts = Crm.Contacts || (Crm.Contacts = {}));
})(Crm = Apps.Crm || (Apps.Crm = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,56 @@
var Bizgaze;
(function (Bizgaze) {
let Apps;
(function (Apps) {
let Crm;
(function (Crm) {
let Contacts;
(function (Contacts) {
let Components;
(function (Components) {
class ContactUrl extends Unibase.Platform.Core.BaseComponent {
constructor() {
super();
}
cssFiles() {
return [];
}
jsFiles() {
return [''];
}
html(id, containerid) {
return "";
}
init(containerid) {
var instance = this;
}
load(id, containerid, callback) {
}
changeDefaultUrl(id) {
var instance = this;
var _recordId = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_recordid").Value);
instance.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
instance.fileCacheHelper.loadJsFile("tenants/themes/compact/components/details/details.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().changedefaulturl(_recordId, id).then(function (response) {
var detail_instance = Unibase.Themes.Compact.Components.Details.Instance();
var containerid = $("._bizgaze_detail_container:visible").attr("id");
var _installedAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
var portletid = detail_instance.unibase_core_activeportletid;
detail_instance.loadWidgets(_installedAppId, portletid, "#" + containerid + "");
MessageHelper.Instance().showSuccess(response.message, '');
});
});
});
}
static Instance() {
if (this._instance === undefined)
this._instance = new ContactUrl();
return this._instance;
}
}
Components.ContactUrl = ContactUrl;
})(Components = Contacts.Components || (Contacts.Components = {}));
})(Contacts = Crm.Contacts || (Crm.Contacts = {}));
})(Crm = Apps.Crm || (Apps.Crm = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"w_contacturl.js","sourceRoot":"","sources":["w_contacturl.ts"],"names":[],"mappings":"AACA,IAAU,OAAO,CA0DhB;AA1DD,WAAU,OAAO;IACb,IAAiB,IAAI,CAwDpB;IAxDD,WAAiB,IAAI;QACjB,IAAiB,GAAG,CAsDnB;QAtDD,WAAiB,GAAG;YAChB,IAAiB,QAAQ,CAoDxB;YApDD,WAAiB,QAAQ;gBACrB,IAAiB,UAAU,CAkD1B;gBAlDD,WAAiB,UAAU;oBACvB,MAAa,UAAW,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa;wBAC/D;4BACI,KAAK,EAAE,CAAC;wBACZ,CAAC;wBACD,QAAQ;4BACJ,OAAO,EAAE,CAAC;wBACd,CAAC;wBACD,OA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,CAAC;wCAC7D,eAAe,CAAC,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,GAAG,GAAG,WAAW,GAAG,EAAE,CAAC,CAAA;wCAC/E,aAAa,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;oCAE/D,CAAC,CAAC,CAAC;gCACP,CAAC,CAAC,CAAC;4BACP,CAAC,CAAC,CAAC;wBACP,CAAC;wBAID,MAAM,CAAC,QAAQ;4BACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;gCAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,UAAU,EAAE,CAAC;4BACtC,OAAO,IAAI,CAAC,SAAS,CAAC;wBAC1B,CAAC;qBACJ;oBA/CY,qBAAU,aA+CtB,CAAA;gBAEL,CAAC,EAlDgB,UAAU,GAAV,mBAAU,KAAV,mBAAU,QAkD1B;YACL,CAAC,EApDgB,QAAQ,GAAR,YAAQ,KAAR,YAAQ,QAoDxB;QACL,CAAC,EAtDgB,GAAG,GAAH,QAAG,KAAH,QAAG,QAsDnB;IACL,CAAC,EAxDgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAwDpB;AACL,CAAC,EA1DS,OAAO,KAAP,OAAO,QA0DhB"}
+1
View File
@@ -0,0 +1 @@
var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{constructor(){super()}cssFiles(){return[]}jsFiles(){return[""]}html(){return""}init(){var n=this}load(){}changeDefaultUrl(t){var i=this,r=Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+Unibase.Themes.Providers.DetailHelper.installedAppId+"_recordid").Value);i.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js",function(){i.fileCacheHelper.loadJsFile("tenants/themes/compact/components/details/details.js",function(){n.Apps.Crm.Contacts.Managers.ContactManager.Instance().changedefaulturl(r,t).then(function(n){var t=Unibase.Themes.Compact.Components.Details.Instance(),i=$("._bizgaze_detail_container:visible").attr("id"),r=Unibase.Themes.Providers.DetailHelper.installedAppId,u=t.unibase_core_activeportletid;t.loadWidgets(r,u,"#"+i+"");MessageHelper.Instance().showSuccess(n.message,"")})})})}static Instance(){return this._instance===undefined&&(this._instance=new i),this._instance}}t.ContactUrl=i})(i=t.Components||(t.Components={}))})(i=t.Contacts||(t.Contacts={}))})(i=t.Crm||(t.Crm={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
@@ -0,0 +1,46 @@
var Bizgaze;
(function (Bizgaze) {
let Apps;
(function (Apps) {
let CRM;
(function (CRM) {
let knowledge;
(function (knowledge) {
class Knowledgereport extends Unibase.Platform.Core.BaseComponent {
constructor() {
super(...arguments);
this.InstalledAppId = 0;
}
cssFiles() {
return [];
}
jsFiles() {
return ['apps/crm/knowledge/Knowledgereport.js'];
}
html(id, containerid) {
return ``;
}
load() {
var instance = this;
var installedappid = Unibase.Themes.Compact.Components.Nav.Instance().installedAppId;
var instance = this;
var appid = Unibase.Themes.Compact.Components.Nav.Instance().installedAppId;
var filter = [];
filter.push({ "Key": "appnames", "Value": installedappid.toString(), ExpOp: 1 });
Unibase.Platform.Analytics.Components.ReportViewer.Instance().report_ViewAllByUniqueId("Bizgaze_Platform_Analytics_Reports_KnowledgeDocumentfiles", null, filter, null);
}
init() {
var instance = this;
}
static Instance() {
if (this.instance === undefined) {
this.instance = new Knowledgereport();
}
return this.instance;
}
}
knowledge.Knowledgereport = Knowledgereport;
})(knowledge = CRM.knowledge || (CRM.knowledge = {}));
})(CRM = Apps.CRM || (Apps.CRM = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));
@@ -0,0 +1 @@
{"version":3,"file":"knowledgereport.js","sourceRoot":"","sources":["knowledgereport.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CA2ChB;AA3CD,WAAU,OAAO;IACb,IAAiB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AC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,EAAE,CAAC;yBACzC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBAlCY,yBAAe,kBAkC3B,CAAA;YACL,CAAC,EArCgB,SAAS,GAAT,aAAS,KAAT,aAAS,QAqCzB;QACL,CAAC,EAvCgB,GAAG,GAAH,QAAG,KAAH,QAAG,QAuCnB;IACL,CAAC,EAzCgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAyCpB;AACL,CAAC,EA3CS,OAAO,KAAP,OAAO,QA2ChB"}
@@ -0,0 +1,501 @@
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 Managers;
(function (Managers) {
class ContactManager extends Unibase.Platform.Core.BaseManager {
changedefaultemail(contactId, contactEmailId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/changedefaultemail/contactid/' + contactId + '/contactemailid/' + contactEmailId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
changedefaultbranch(ContactId, DefaultBranchId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/changedefaultbranch/contactid/' + ContactId + '/defaultbranchid/' + DefaultBranchId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
deletedefaultbranch(UserBranchId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/deletedefaultbranch/userbranchid/' + UserBranchId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getleadbyleadid(contactId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/leads/getleadbyleadid/leadid/' + contactId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getleadtagsbyleadid(contactId, formid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/forms/bindtagcontroldata/refid/' + contactId + '/formid/' + formid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = response.result;
return response;
});
});
}
changedefaulturl(contactId, contactUrlId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/changedefaulturl/contactid/' + contactId + '/contacturlid/' + contactUrlId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
changedefaultloginemail(contactId, contactEmailId, userName) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/changedefaultloginemail/contactid/' + contactId + '/contactemailid/' + contactEmailId + '/username/' + userName;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
changedefaultphone(contactId, contactPhoneId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/changedefaultphone/contactid/' + contactId + '/contactnumberid/' + contactPhoneId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
changedefaultloginphone(contactId, contactPhoneId, userName) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/changedefaultloginphonenumber/contactid/' + contactId + '/contactnumberid/' + contactPhoneId + '/username/' + userName;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
deleteMappingContact(MappingContactId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/organization/deletemappingcontact/mappingcontactid/' + MappingContactId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getManagerDetails(LobId, AddressId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/getmanagerdetails/lobid/' + LobId + '/addressid/' + AddressId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getContactByUserId(UserId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/getcontactbyuserid/userid/' + UserId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getContactnumuberdetails(phonenumner) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/getcontactnumberbynumber/' + phonenumner;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getContactDetails(email, phone) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/getcontactdetailsemailphone/email/' + email + '/phone/' + phone;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getAddressByContactId(ContactId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/address/getdefaultaddressbycontactid/contactid/' + ContactId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
ChangeDefaultAddress(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/address/changedefaultaddress';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getContactDetailsBycontactid(ContactId) {
return __awaiter(this, void 0, void 0, function* () {
debugger;
const url = 'apis/v4/bizgaze/crm/organization/getorganizationdetails/organizationid/' + ContactId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
ChangeAddressStatus(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/address/changeaddressstatus';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
saveAddressCoordinates(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/address/saveaddresscoordinates';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOrgContact(OrgContactId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/orgcontacts/getorgcontact/orgcontactid/' + OrgContactId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getsprlOrgContact(OrgContactId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/sprl/contacts/getorgcontacts/orgcontactid/' + OrgContactId;
return yield this.dataHelper().getAsync(url).then(function (response) {
debugger;
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getLatLongByAddress(address) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/orgcontacts/getlatlongbyaddress/address/' + address;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getAddressById(ContactAddressId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/address/getaddressbycontactaddressid/contactaddressid/' + ContactAddressId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getGridForManagers(LobId, ContactId, empId, page, rows) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/getmanagersbylobandemp/lobid/' + LobId + '/contactid/' + ContactId + '/empid/' + empId + '/page/' + page + '/rows/' + rows;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
saveManager(postdata) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/organization/changeorganizationmanager';
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOrganizationDetails(OrganizationId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/organization/getorganization/organizationid/' + OrganizationId + '';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
}).fail(function () {
});
});
}
getOrganizationById(OrganizationId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/organization/getorganizationbyorgid/organizationid/' + OrganizationId + '';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
}).fail(function () {
});
});
}
getEmployeeManager(employeeid) {
return __awaiter(this, void 0, void 0, function* () {
debugger;
const url = 'apis/v4/bizgaze/crm/contacts/getemployeemanager/employeeid/' + employeeid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getEmployeesByManagerId(employeeId, managerId) {
return __awaiter(this, void 0, void 0, function* () {
debugger;
const url = 'apis/v4/bizgaze/crm/contacts/getemployeesbymanagerid/employeeid/' + employeeId + '/managerid/' + managerId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
deletetcscontactcompanies(tcscontactcompanyid) {
return __awaiter(this, void 0, void 0, function* () {
const url = "apis/v4/bizgaze/crm/contacts/deletetcscontactcompanies/id/" + tcscontactcompanyid + "";
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getOrganizationByLeadId(LeadId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/organization/getorganizationbylead/leadid/' + LeadId + '';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
}).fail(function () {
});
});
}
GetTenants(tenantid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/gettenant/tenantid/' + tenantid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
saveSelfDeclaration(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/saveselfdeclaration';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getSelfDeclarationByDate(declarationdate, month) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/getselfdeclarationbydate/declarationdate/' + declarationdate + '/month/' + month;
return yield this.dataHelper().getAsync(url).then(function (response) {
return response;
});
});
}
getOrganizationDetailsByspocid(orgContactId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/organization/getorganizationbyspocid/orgcontactid/' + orgContactId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getCustomerLocations() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/contacts/getcustomerlocations';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null && response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
changeManager(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/changemanagers/updatemanagerdetails';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
return response;
});
});
}
GetCustomersubtypeDetails(Customertypeid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/leads/getcustomersubtypes/customertypeid/' + Customertypeid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
GetCustomerQualificationDetails(Customerqualificationid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/leads/getcustomerqualificationdetails/customerqualificationmatrixid/' + Customerqualificationid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
GetCustomerSubType(customersubtypeid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/leads/getcustomersubtypebyid/customersubtypeid/' + customersubtypeid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getEmployeeBrekUp(tagids, fromdate, todate, ownerid, employeeid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/employees/breakupbyemployeecount/tagids/' + tagids + '/fromdate/' + fromdate + '/todate/' + todate + '/ownerid/' + ownerid + '/employeeid/' + employeeid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getEmployeeBrekUpDesignation(tagids, fromdate, todate, ownerid, employeeid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/employees/breakupemployeecountbydesignation/tagids/' + tagids + '/fromdate/' + fromdate + '/todate/' + todate + '/ownerid/' + ownerid + '/employeeid/' + employeeid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getEmployee(employeeid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/employees/getemployeebyid/employeeid/' + employeeid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
updateCheckList(workflowchecklistid, leadid, checkliststatus) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/leads/updatechecklist/workflowchecklistid/' + workflowchecklistid + '/leadid/' + leadid + '/checkliststatus/' + checkliststatus;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getChecklist(Leadid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/bizgaze/crm/leads/getleadchecklists/leadid/' + Leadid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getalldistributornames() {
return __awaiter(this, void 0, void 0, function* () {
debugger;
const url = 'apis/v4/bizgaze/crm/employees/getalldistributornames';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
static Instance() {
if (this._instance === undefined)
this._instance = new ContactManager();
return this._instance;
}
}
Managers.ContactManager = ContactManager;
})(Managers = Contacts.Managers || (Contacts.Managers = {}));
})(Contacts = Crm.Contacts || (Crm.Contacts = {}));
})(Crm = Apps.Crm || (Apps.Crm = {}));
})(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
})(Bizgaze || (Bizgaze = {}));
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"icontactmanager.js","sourceRoot":"","sources":["icontactmanager.ts"],"names":[],"mappings":""}