|
|
@ -3837,54 +3837,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.upay_risk_level = $scope.partner.upay_risk_level;
|
|
|
|
$scope.file.upay_risk_level = $scope.partner.upay_risk_level;
|
|
|
|
$scope.file.upay_risk_remark = $scope.partner.upay_risk_remark;
|
|
|
|
$scope.file.upay_risk_remark = $scope.partner.upay_risk_remark;
|
|
|
|
|
|
|
|
|
|
|
|
$scope.bankIsImage = true;
|
|
|
|
|
|
|
|
$scope.asicIsImage = true;
|
|
|
|
|
|
|
|
$scope.idIsImage = true;
|
|
|
|
|
|
|
|
$scope.utilityIsImage = true;
|
|
|
|
|
|
|
|
$scope.refundIsImage = true;
|
|
|
|
|
|
|
|
$scope.privacyIsImage = true;
|
|
|
|
|
|
|
|
$scope.cardIsImage = true;
|
|
|
|
|
|
|
|
$scope.letterIsImage = true;
|
|
|
|
|
|
|
|
$scope.promotionalIsImage = true;
|
|
|
|
|
|
|
|
$scope.termsIsImage = true;
|
|
|
|
|
|
|
|
$scope.applicationIsImage = true;
|
|
|
|
|
|
|
|
$scope.descIsImage = true;
|
|
|
|
|
|
|
|
if ($scope.file.client_bank_file && $scope.file.client_bank_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.bankIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.client_company_file && $scope.file.client_company_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.asicIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.upay_driver_license && $scope.file.upay_driver_license.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.idIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.kyc_utility_bill_file && $scope.file.kyc_utility_bill_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.utilityIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.refund_exchange_policy && $scope.file.refund_exchange_policy.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.refundIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.upay_privacy_policy && $scope.file.upay_privacy_policy.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.privacyIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.card_security_policy && $scope.file.card_security_policy.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.cardIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.upay_offer_letter && $scope.file.upay_offer_letter.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.letterIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.upay_promotional_offer && $scope.file.upay_promotional_offer.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.promotionalIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.upay_terms_conditions && $scope.file.upay_terms_conditions.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.termsIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.upay_application_form && $scope.file.upay_application_form.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.applicationIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.upay_desc_file && $scope.file.upay_desc_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.descIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$scope.uploadApplicationFile = function (file) {
|
|
|
|
$scope.uploadApplicationFile = function (file) {
|
|
|
|
if (file != null) {
|
|
|
|
if (file != null) {
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
@ -3900,11 +3852,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.upay_application_form = resp.data.url;
|
|
|
|
$scope.file.upay_application_form = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_application_form = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_application_form = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.upay_application_form.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.bankIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.bankIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.applicationFileProgress;
|
|
|
|
delete $scope.applicationFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -3929,11 +3876,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.client_bank_file = resp.data.url;
|
|
|
|
$scope.file.client_bank_file = resp.data.url;
|
|
|
|
$scope.uploadFile.client_bank_file = resp.data.url;
|
|
|
|
$scope.uploadFile.client_bank_file = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.client_bank_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.bankIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.bankIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.bankFileProgress;
|
|
|
|
delete $scope.bankFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -3958,11 +3900,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.client_company_file = resp.data.url;
|
|
|
|
$scope.file.client_company_file = resp.data.url;
|
|
|
|
$scope.uploadFile.client_company_file = resp.data.url;
|
|
|
|
$scope.uploadFile.client_company_file = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.client_company_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.bankIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.bankIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.ASICProgress;
|
|
|
|
delete $scope.ASICProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -3987,11 +3924,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.upay_driver_license = resp.data.url;
|
|
|
|
$scope.file.upay_driver_license = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_driver_license = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_driver_license = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.upay_driver_license.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.idIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.idIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.idProgress;
|
|
|
|
delete $scope.idProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4016,11 +3948,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.kyc_utility_bill_file = resp.data.url;
|
|
|
|
$scope.file.kyc_utility_bill_file = resp.data.url;
|
|
|
|
$scope.uploadFile.kyc_utility_bill_file = resp.data.url;
|
|
|
|
$scope.uploadFile.kyc_utility_bill_file = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.kyc_utility_bill_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.utilityIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.utilityIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.residenceFileProgress;
|
|
|
|
delete $scope.residenceFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4045,11 +3972,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.refund_exchange_policy = resp.data.url;
|
|
|
|
$scope.file.refund_exchange_policy = resp.data.url;
|
|
|
|
$scope.uploadFile.refund_exchange_policy = resp.data.url;
|
|
|
|
$scope.uploadFile.refund_exchange_policy = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.refund_exchange_policy.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.utilityIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.utilityIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.refundPolicyFileProgress;
|
|
|
|
delete $scope.refundPolicyFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4074,11 +3996,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.upay_privacy_policy = resp.data.url;
|
|
|
|
$scope.file.upay_privacy_policy = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_privacy_policy = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_privacy_policy = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.upay_privacy_policy.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.privacyIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.privacyIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.privacyFileProgress;
|
|
|
|
delete $scope.privacyFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4103,11 +4020,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.card_security_policy = resp.data.url;
|
|
|
|
$scope.file.card_security_policy = resp.data.url;
|
|
|
|
$scope.uploadFile.card_security_policy = resp.data.url;
|
|
|
|
$scope.uploadFile.card_security_policy = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.card_security_policy.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.privacyIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.privacyIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.cardFileProgress;
|
|
|
|
delete $scope.cardFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4132,11 +4044,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.upay_offer_letter = resp.data.url;
|
|
|
|
$scope.file.upay_offer_letter = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_offer_letter = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_offer_letter = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.upay_offer_letter.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.letterIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.letterIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.letterFileProgress;
|
|
|
|
delete $scope.letterFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4161,11 +4068,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.upay_promotional_offer = resp.data.url;
|
|
|
|
$scope.file.upay_promotional_offer = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_promotional_offer = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_promotional_offer = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.upay_promotional_offer.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.promotionalIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.promotionalIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.promotionalFileProgress;
|
|
|
|
delete $scope.promotionalFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4190,11 +4092,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.upay_terms_conditions = resp.data.url;
|
|
|
|
$scope.file.upay_terms_conditions = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_terms_conditions = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_terms_conditions = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.upay_terms_conditions.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.termsIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.termsIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.termsFileProgress;
|
|
|
|
delete $scope.termsFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4219,11 +4116,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.file.upay_desc_file = resp.data.url;
|
|
|
|
$scope.file.upay_desc_file = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_desc_file = resp.data.url;
|
|
|
|
$scope.uploadFile.upay_desc_file = resp.data.url;
|
|
|
|
$scope.updateFile();
|
|
|
|
$scope.updateFile();
|
|
|
|
if ($scope.file.upay_desc_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.descIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.descIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
}, function (resp) {
|
|
|
|
delete $scope.descFileProgress;
|
|
|
|
delete $scope.descFileProgress;
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
@ -4297,6 +4189,24 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$scope.complianceChangeCheck();
|
|
|
|
$scope.complianceChangeCheck();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.deleteMWComplianceFiles = function (file_id) {
|
|
|
|
|
|
|
|
commonDialog.confirm({
|
|
|
|
|
|
|
|
title: 'Warning',
|
|
|
|
|
|
|
|
content: 'This operation will delete the file, Are you sure?'
|
|
|
|
|
|
|
|
}).then(function () {
|
|
|
|
|
|
|
|
$http.put('/sys/partners/auth_file/' + file_id + '/mw_delete').then(function (resp) {
|
|
|
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
|
|
|
title: 'Success',
|
|
|
|
|
|
|
|
content: 'Delete Successful',
|
|
|
|
|
|
|
|
type: 'success'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$state.reload();
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
|
|
app.controller('partnerKycFileCtrl', ['$scope', '$http', '$rootScope', 'commonDialog', '$state', 'Upload', 'file', function ($scope, $http, $rootScope, commonDialog, $state, Upload, file) {
|
|
|
|
app.controller('partnerKycFileCtrl', ['$scope', '$http', '$rootScope', 'commonDialog', '$state', 'Upload', 'file', function ($scope, $http, $rootScope, commonDialog, $state, Upload, file) {
|
|
|
|