change
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.navigationhelper=n.Platform.Helpers.NavigationHelper.Instance()}cssFiles(){return["libs/nestable/JqueryminMenu.css"]}jsFiles(){return["platform/automation/managers/rulemanager.js","platform/automation/components/rulebuilder/importrule.js","platform/forms/components/formviewer/formviewer.js","libs/parsley/parsley.min.js","platform/core/infos/status.js","/platform/core/helpers/file/filehelper.js"]}html(n,t){var i=this;return'<form id="form_ImportRule" data-validate="parsley" data-isdynamic="false"><div id="div_importmessage" class="clear"><\/div><div class="b-b bg-white header dataApiHeader"><strong>Import Rule<\/strong><\/div><div data-simplebar class="simple-scroll-bar scrollable import-export-body"><div class="card" id="importexportsection"><div class="card-header">Select file to import<\/div><div class="card-body"><div class="" id="div_Import"><input type="file" id="import_File" class="bg-light d-none d-sm-block required"><hr /><a href="javascript:;" id="fileUpload" class="btn btn-warning text-white" onclick=" Unibase.Platform.Automation.Components.ImportRule.Instance().FileUpload(\''+t+'\');">Upload<\/a><\/div><\/div><\/div><div class="hidden" id="div_Export"><span id="sp_formName"><\/span><a href="javascript:;" id="fileExport" class="btn btn-primary text-white">Download<\/a><\/div><\/div><div class="bg-white footer"><button id="btn_CloseImport" class="btn btn-sm mr-auto btn-close">Close<\/button><\/div><\/form>'}showImport(){this.navigationHelper.popup(0,"",n.Platform.Automation.Components.ImportRule.Instance(),null,t.Helpers.Size.Large)}FileUpload(i){var r=this,u;r.navigationHelper.showLoading();u=_appsettings.server_url()+"/apis/v4/unibase/notificationrule/platform/importrules/np";t.Helpers.FileHelper.Instance().upload(u,n.Platform.Automation.Components.ImportRule.fileData).then(function(t){t.status==n.Data.Status.Error?(r.navigationHelper.hideLoading(),MessageHelper.Instance().showError(t.message,"div_importmessage")):(r.navigationHelper.hideLoading(),MessageHelper.Instance().showSuccess(t.message,"div_importmessage"),$("#"+i).modal("hide"),$("#"+i).remove())})}load(t,i){var r=this;$("#btn_CloseImport").click(function(){$("#"+i).modal("hide");$("#"+i).remove()});$("#btn_Import").click(function(){$("#importexportsection").removeClass("hidden");$("#div_Import").removeClass("hidden")});$("#import_File").change(function(t){n.Platform.Automation.Components.ImportRule.Instance().fileEvent(t)});$("#txt_Icon").focus(function(){$(".div_Icons").fadeIn();$("#icons").toggleClass("hidden");$(".div_Icons").removeClass("hidden")});$("#txt_Icon").focusout(function(){$(".div_Icons").fadeOut()})}fileEvent(t){const i=t.target.files[0];n.Platform.Automation.Components.ImportRule.fileData=new FormData;n.Platform.Automation.Components.ImportRule.fileData.append(i.name,i)}exportSingleRule(){var r=this.fileCacheHelper,u=this,t=0;if(n.Themes.Providers.Detail_Settings.Instance().InputParameters.length>0)for(let i of n.Themes.Providers.Detail_Settings.Instance().InputParameters)i.Key==="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_recordid"&&(t=Number(i.Value));r.loadJsFileAsync("platform/automation/managers/rulemanager.js",function(){i.Managers.RuleManager.Instance().exportSingleRule(t).then(function(n){var i=n.result,t=document.createElement("a"),r=new Blob([i],{type:"text/plain"});t.setAttribute("href",window.URL.createObjectURL(r));t.setAttribute("download","Rules.xml");t.dataset.downloadurl=["text/plain",t.download,t.href].join(":");t.draggable=!0;t.classList.add("dragout");t.click()})})}exportsRules(){var n=this.fileCacheHelper,t=this;n.loadJsFileAsync("platform/automation/managers/rulemanager.js",function(){i.Managers.RuleManager.Instance().exportRules().then(function(n){var i=n.result,t=document.createElement("a"),r=new Blob([i],{type:"text/plain"});t.setAttribute("href",window.URL.createObjectURL(r));t.setAttribute("download","Rules.xml");t.dataset.downloadurl=["text/plain",t.download,t.href].join(":");t.draggable=!0;t.classList.add("dragout");t.click()})})}static Instance(){return this.instance===undefined&&(this.instance=new u),this.instance}}u.fileData=new FormData;r.ImportRule=u})(r=i.Components||(i.Components={}))})(i=t.Automation||(t.Automation={}))})(t=n.Platform||(n.Platform={}))})(Unibase||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AhFM,2BAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;gBADxB,6BAAkB,qBAkF9B,CAAA;YACL,CAAC,EApFY,UAAU,GAAV,qBAAU,KAAV,qBAAU,QAoFtB;QACL,CAAC,EAtFY,UAAU,GAAV,mBAAU,KAAV,mBAAU,QAsFtB;IACL,CAAC,EAxFY,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAwFpB;AACL,CAAC,EA1FK,OAAO,KAAP,OAAO,QA0FZ"}
|
||||
@@ -1 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(i){class r extends t.Core.BaseComponent{cssFiles(){return["libs/nestable/JqueryminMenu.css"]}jsFiles(){return["platform/automation/managers/rulemanager.js","platform/automation/components/rulebuilder/importruleprovider.js","platform/forms/components/formviewer/formviewer.js","libs/parsley/parsley.min.js","platform/core/infos/status.js","/platform/core/helpers/file/filehelper.js"]}html(n,t){var i=this;return'<form id="form_ImportRuleProvider" data-validate="parsley" data-isdynamic="false"><div id="div_importmessage" class="clear"><\/div><div class="b-b bg-white header dataApiHeader"><strong>Import RuleProvider<\/strong><\/div><div data-simplebar class="simple-scroll-bar scrollable import-export-body"><div class="card" id="importexportsection"><div class="card-header">Select file to import<\/div><div class="card-body"><div class="" id="div_Import"><input type="file" id="import_File" class="bg-light d-none d-sm-block required"><hr /><a href="javascript:;" id="fileUpload" class="btn btn-warning text-white" onclick=" Unibase.Platform.Automation.Components.ImportRuleProvider.Instance().FileUpload(\''+t+'\');">Upload<\/a><\/div><\/div><\/div><div class="hidden" id="div_Export"><span id="sp_formName"><\/span><a href="javascript:;" id="fileExport" class="btn btn-primary text-white">Download<\/a><\/div><\/div><div class="bg-white footer"><button id="btn_CloseImport" class="btn btn-sm mr-auto btn-close">Close<\/button><\/div><\/form>'}showImport(){this.navigationHelper.popup(0,"",n.Platform.Automation.Components.ImportRuleProvider.Instance(),null,t.Helpers.Size.Large)}FileUpload(i){var r=this,u;r.navigationHelper.showLoading();u=_appsettings.server_url()+"/apis/v4/unibase/notificationrule/platform/importruleproviders/np";t.Helpers.FileHelper.Instance().upload(u,n.Platform.Automation.Components.ImportRuleProvider.fileData).then(function(t){t.status==n.Data.Status.Error?(r.navigationHelper.hideLoading(),MessageHelper.Instance().showError(t.message,"div_importmessage")):(r.navigationHelper.hideLoading(),MessageHelper.Instance().showSuccess(t.message,"div_importmessage"),$("#"+i).modal("hide"),$("#"+i).remove())})}load(t,i){var r=this;$("#btn_CloseImport").click(function(){$("#"+i).modal("hide");$("#"+i).remove()});$("#btn_Import").click(function(){$("#importexportsection").removeClass("hidden");$("#div_Import").removeClass("hidden")});$("#import_File").change(function(t){n.Platform.Automation.Components.ImportRuleProvider.Instance().fileEvent(t)});$("#txt_Icon").focus(function(){$(".div_Icons").fadeIn();$("#icons").toggleClass("hidden");$(".div_Icons").removeClass("hidden")});$("#txt_Icon").focusout(function(){$(".div_Icons").fadeOut()})}fileEvent(t){const i=t.target.files[0];n.Platform.Automation.Components.ImportRuleProvider.fileData=new FormData;n.Platform.Automation.Components.ImportRuleProvider.fileData.append(i.name,i)}static Instance(){return this.instance===undefined&&(this.instance=new r),this.instance}}r.fileData=new FormData;i.ImportRuleProvider=r})(r=i.Components||(i.Components={}))})(i=t.Automation||(t.Automation={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"rulebuilder.advrule.js","sourceRoot":"","sources":["rulebuilder.advrule.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CA2JhB;AA3JD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAyJxB;IAzJD,WAAiB,QAAQ;QACrB,IAAiB,UAAU,CAuJ1B;QAvJD,WAAiB,UAAU;YACvB,IAAiB,UAAU,CAqJ1B;YArJD,WAAiB,UAAU;gBACvB,MAAa,OAAQ,SAAQ,SAAA,IAAI,CAAC,aAAa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CAAC;wBACP,CAAC,CAAC,CAAC;oBACP,CAAC;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;4BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAC;yBACjC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;;gBAjJM,sBAAc,GAAqD,CAAC,CAAC;gBADnE,kBAAO,UAmJnB,CAAA;YACL,CAAC,EArJgB,UAAU,GAAV,qBAAU,KAAV,qBAAU,QAqJ1B;QACL,CAAC,EAvJgB,UAAU,GAAV,mBAAU,KAAV,mBAAU,QAuJ1B;IACL,CAAC,EAzJgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAyJxB;AACL,CAAC,EA3JS,OAAO,KAAP,OAAO,QA2JhB"}
|
||||
-42
@@ -1,42 +0,0 @@
|
||||
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{jsFiles(){return["platform/automation/managers/rulemanager.js","platform/datasources/managers/doctypemanager.js","platform/analytics/managers/reportmanager.js","platform/forms/managers/formmanager.js","platform/automation/enums/eventtype.js","platform/automation/enums/expop.js","platform/automation/enums/automationmode.js","platform/automation/enums/executeactionstatus.js","platform/automation/components/conditions.js","platform/automation/requests/rule.js","platform/automation/requests/ruleevent.js","platform/automation/requests/ruleaction.js","platform/automation/requests/rulecondition.js","platform/automation/components/rulebuilder/rulebuilder.condition.js","platform/forms/components/formviewer/formviewer.js","libs/parsley/parsley.min.js"]}cssFiles(){return[]}html(){return`<form id="frmUnibase_AdvRule" data-validate="parsley" data-isdynamic="false">
|
||||
<div class="card bg-light">
|
||||
<div class="b-b bg-white card-header header">
|
||||
<strong class="text-dark title" id="Form_AdvRule">Create Rule</strong>
|
||||
</div>
|
||||
<div class="card-body scrollable" style="overflow-y: scroll;">
|
||||
<div class="bg-white card" id="AdvRuleDetails">
|
||||
<div id="Validate_AdvRule" class="clear"></div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="floating-label-form-group">
|
||||
<label for="lbl_AdvRule" id="lbl_AdvRule">Rule Name<span class="text-danger">*</span></label>
|
||||
<input type="text" id="txt_AdvRule" class="form-control required value-control floating-label-control" data-isdynamic="false" placeholder="Rule Name*" data-placeholder="Enter Rule Name" data-label="Rule Name*" />
|
||||
<input type="hidden" id="hf_AdvRule" />
|
||||
<label for="Validation" id="lblValidation_AdvRule"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-10">
|
||||
<div class="col-sm-6">
|
||||
Installed App<span class="text-danger">*</span>
|
||||
<select id="Autocomplete_InstalledApp" class="required form-control value-control" data-isdynamic="true">
|
||||
</select>
|
||||
<input type="hidden" id="hf_Autocomplete_InstalledApp" value="" />
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
Rule Provider<span class="text-danger">*</span>
|
||||
<select id="Autocomplete_RuleProvider" class="required form-control value-control" data-isdynamic="true">
|
||||
</select>
|
||||
<input type="hidden" id="hf_Autocomplete_RuleProvider" value="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-white card-footer footer" id="CreateAdvRuleFooter">
|
||||
<a href="javascript:;" id="btnCloseAdvRule" class="btn btn-light btn-sm mr-auto "> Close</a>
|
||||
<a href="javascript:;" id="btnSaveAdvRule" class="btn btn-primary btn-sm"> Save</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>`}load(t,i){n.Platform.Automation.Components.AdvRule.AutomationMode=n.Platform.Automation.Enums.AutomationMode.AdvancedMode;$("#btnCloseAdvRule").click(function(){$("#"+i).modal("hide");$("#"+i).remove()});$("#btnSaveAdvRule").click(function(){let r=n.Platform.Forms.Components.FormViewer.Instance().requiredFieldValidation("frmUnibase_AdvRule");if(r==!1)return MessageHelper.Instance().showError("Mandatory fields are missing","Validate_AdvRule"),!1;n.Platform.Automation.Components.AdvRule.Instance().SaveRule(t,i)});t!=""&&n.Platform.Automation.Components.AdvRule.Instance().EditRule(t);var r=_appsettings.server_url()+"/apis/v4/unibase/platform/apps/installedappautocomplete";AutoCompleteHelper.getHelper().Create("#Autocomplete_InstalledApp","#hf_Autocomplete_InstalledApp",r,function(n){var t=n});$("#Autocomplete_InstalledApp").change(function(){let n=Number($("#Autocomplete_InstalledApp option:selected").val());var t=_appsettings.server_url()+"/apis/v4/unibase/notificationrule/platform/ruleprovidersautocomplete/InstalledAppId/"+n;AutoCompleteHelper.getHelper().Create("#Autocomplete_RuleProvider","hf_Autocomplete_RuleProvider",t,function(n){var t=n})})}SaveRule(t,u){return __awaiter(this,void 0,void 0,function*(){let e=Number(t),f=new n.Platform.Automation.Requests.Rule;f.RuleId=e;f.RuleName=$("#txt_Rule").val().toString();f.RuleProviderId=Number($("#ddl_RuleProvider option:selected").val());f.AutomationModeId=Number(n.Platform.Automation.Enums.AutomationMode.AdvancedMode);f.RuleType=n.Platform.Automation.Enums.RuleType.Event;yield i.Managers.RuleManager.Instance().saveRule(f).then(function(i){i.status==n.Data.Status.Error?MessageHelper.Instance().showError(i.message,"Validate_RuleEvent"):(MessageHelper.Instance().showSuccess(i.message,"Validate_RuleEvent"),eval("bizgaze_automation_flow_main.saveruleblock('"+i.result.RuleId+"','"+i.result.RuleName+"','"+i.result.RuleProviderId+"')"),r.RuleEvent.Instance().SaveRuleEvent(t,u))})})}EditRule(t){let i=Number(t);$("#Form_AdvRule").text("Edit Rule");n.Platform.Automation.Managers.RuleManager.Instance().getRule(i).then(function(t){let i=t.RuleId;$("#hf_RuleProvider").val(t.RuleProviderId);$("#txt_AdvRule").val(t.RuleName);n.Platform.Automation.Managers.RuleManager.Instance().getRuleProvider(t.RuleProviderId).then(function(n){var i=new Option(n.AppTitle,n.InstalledAppId.toString(),!0),t;$("#Autocomplete_InstalledApp").append(i);t=new Option(n.RuleProviderName,n.RuleProviderId.toString(),!0);$("#Autocomplete_RuleProvider").append(t);eval("_floatingLabelHelper.init();")})})}static Instance(){return this.instance===undefined&&(this.instance=new u),this.instance}}u.AutomationMode=0;r.AdvRule=u})(r=i.Components||(i.Components={}))})(i=t.Automation||(t.Automation={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
-59
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super(...arguments);this.RuleFlow=[]}jsFiles(){return["platform/automation/managers/rulemanager.js","libs/notificationbuilder/notificationbuilder.js","platform/automation/components/eventtemplate.js"]}cssFiles(){return["libs/flowy/styles.css","libs/notificationbuilder/notificationbuilder.css"]}html(){return`<div class="flowchart_new" onclick="eval('closemenu()')" style="background-color:white"><div id="Validate_RuleBuilder" class="col-sm-12 clear"></div><div class=" col-md-12 create_rule" style="margin-top:15px"><div class="row"><div class="col-sm-6 d-flex"><span class="rule_name" style="margin-right:10px;margin-left:10px;"><input type="text" class="form-control border-0" placeholder="Rule Name" id="txt_Rule" style="height:38px;width:200px" class="Rulename_text"></span><span class="Installed_app" style="width:200px"><select id="installedapp_dropdown" class="form-control text-control required" style="width:100%;" onchange="eval('ruleproviders()')" placeholder="Select InstalledApp" data-placeholder="InstalledApp" data-label="" data-istagselect="true"></select></span><span class="rule_providerdropdown ml-5"><select id="ddl_RuleProvider" onchange="eval('ruleprovideridinfo()')" class="form-control text-control"style="margin-right:10px;height:38px;width:200px"><option value='0'>Select RuleProvider</option></select><input type="hidden" id="hf_RuleProvider" value="" /></span></div><div class="col-md-6"><span class="buttons pull-right"><span id="discard">Discard</span><span id="publish">Save Flow</span></span></div></div></div><hr><div class="treeContainer">
|
||||
<div class="treebody"></div></div></div>`}load(t,i){var r=this;$("#discard").click(function(){let n=eval("bizgaze_automation_flow_main.getruleid()");n!=0?bootbox.confirm("All items will be deleted, Do You Want To Continue?",function(n){if(n)$(".treebody").html(""),eval("bizgaze_automation_flow_main.getcloseadvmode()"),$("#"+i).modal("hide"),$("#"+i).remove();else return}):($(".treebody").html(""),eval("bizgaze_automation_flow_main.getcloseadvmode()"),$("#"+i).modal("hide"),$("#"+i).remove())});$("#publish").click(function(){r.SaveRuleFlow(i)});n.Platform.Automation.Components.RuleBuilder.Instance().loadinstalledappsfordrpdown();t!=0?n.Platform.Automation.Components.RuleBuilder.Instance().EditRuleFlow(t):eval("load()")}loadScript(n,t){let i=document.createElement("script");i.type="text/javascript";i.readyState?i.onreadystatechange=function(){(i.readyState=="loaded"||i.readyState=="complete")&&(i.onreadystatechange=null,t())}:i.onload=function(){t()};i.src=n;document.getElementsByTagName("head")[0].appendChild(i)}removejscssfile(n,t){for(var u=t=="js"?"script":t=="css"?"link":"none",f=t=="js"?"src":t=="css"?"href":"none",r=document.getElementsByTagName(u),i=r.length;i>=0;i--)r[i]&&r[i].getAttribute(f)!=null&&r[i].outerHTML.includes(n)&&r[i].parentNode.removeChild(r[i])}loadinstalledappsfordrpdown(){var n=_appsettings.server_url()+"/apis/v4/unibase/platform/apps/installedappautocomplete";AutoCompleteHelper.getHelper().Create("#installedapp_dropdown","#hf_Autocomplete_InstalledApp",n,function(n){var t=n})}SearchBlocks(){var u,i,f,t,r,n;for(u=document.getElementById("SearchBlocks"),i=u.value.toUpperCase(),f=document.getElementById("blocklist"),t=f.getElementsByClassName("blockelem create-flowy noselect"),n=0;n<t.length;n++)t[n].firstElementChild.value.toUpperCase()==i?(r=t[n],r.innerHTML.indexOf(i)>-1&&(t[n].style.display="")):(r=t[n],t[n].style.display=r.firstElementChild.value.toUpperCase().indexOf(i)>-1?"":"none")}render(i){this.navigationHelper.popup(i,"",n.Platform.Automation.Components.RuleBuilder.Instance(),null,t.Helpers.Size.ExtraLarge)}SaveRuleFlow(t){let u=eval("bizgaze_automation_flow_main.getruleid()"),e=eval("bizgaze_automation_flow_main.output()"),f=JSON.stringify(e),r=new n.Platform.Automation.Requests.Rule;r.RuleId=eval("bizgaze_automation_flow_main.getruleid()");r.RuleFlow=f;f!=undefined&&u!=0?i.Managers.RuleManager.Instance().saveRuleFlow(r).then(function(i){i.status==n.Data.Status.Error?MessageHelper.Instance().showError(i.message,"Validate_RuleBuilder"):(MessageHelper.Instance().showSuccess(i.message,"Validate_RuleBuilder"),eval("bizgaze_automation_flow_main.getcloseadvmode()"),$("#"+t).modal("hide"),$("#"+t).remove(),n.Platform.Helpers.NavigationHelper.Instance().loadDetail(u,n.Platform.Automation.Components.Rule.installedappid,null))}):MessageHelper.Instance().showError("Please Create Rule","Validate_RuleBuilder")}EditRuleFlow(t){n.Platform.Automation.Managers.RuleManager.Instance().getRule(t).then(function(t){eval("bizgaze_automation_flow_main.appendruleid('"+t.RuleId+"')");eval("bizgaze_automation_flow_main.appendruleproviderid('"+t.RuleProviderId+"')");n.Platform.Automation.Components.RuleBuilder.Instance().RuleFlow=t.RuleFlow;eval(" bizgaze_automation_flow_main.import("+t.RuleFlow+")");eval("load()")})}static Instance(){return this.instance===undefined&&(this.instance=new u),this.instance}}r.RuleBuilder=u})(r=i.Components||(i.Components={}))})(i=t.Automation||(t.Automation={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-74
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user