gofelix 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/config.js +11 -1
- package/dist/constants.js +11 -1
- package/dist/index.js +11 -1
- package/dist/queries/addFriend.js +11 -1
- package/dist/queries/addPendingFeedBackForm.js +11 -1
- package/dist/queries/addUserExperience.js +11 -1
- package/dist/queries/addUserMails.js +11 -1
- package/dist/queries/generateDiscountTokenFromUserAmount.js +11 -1
- package/dist/queries/getAllQRCodeUrl.js +11 -1
- package/dist/queries/getBiStats.js +11 -1
- package/dist/queries/getUserAccessTokenFromActivationCode.js +11 -1
- package/dist/queries/getUserBulkData.js +11 -1
- package/dist/queries/getUserMails.js +11 -1
- package/dist/queries/getUserProfiles.js +11 -1
- package/dist/queries/logError.js +11 -1
- package/dist/queries/redeemDiscountCode.js +11 -1
- package/dist/queries/removeFriend.js +11 -1
- package/dist/queries/removePendingFeedbackLink.js +11 -1
- package/dist/queries/removeUserMail.js +11 -1
- package/dist/queries/subscribeToCompany.js +11 -1
- package/dist/queries/unSubscribeToCompany.js +11 -1
- package/dist/queries/updateUserProfile.js +11 -1
- package/dist/queries/updateUserSettings.js +11 -1
- package/dist/queries/userApiLogout.js +11 -1
- package/dist/services/BI/companyNewsStats.js +11 -1
- package/dist/services/BI/discountStats.js +11 -1
- package/dist/services/BI/feedbackStats.js +11 -1
- package/dist/services/BI/getAllCompanyStats.js +11 -1
- package/dist/services/BI/getCompanyOverallStats.js +11 -1
- package/dist/services/BI/userExperienceStats.js +11 -1
- package/dist/services/OAuth/callback.js +11 -1
- package/dist/services/OAuth/index.js +11 -1
- package/dist/services/OAuth/logout.js +11 -1
- package/dist/services/Online/qrCode.js +11 -1
- package/dist/services/User/discountToken.js +11 -1
- package/dist/services/User/feedbackService.js +11 -1
- package/dist/services/User/friendService.js +11 -1
- package/dist/services/User/mailService.js +11 -1
- package/dist/services/User/subscribe.js +11 -1
- package/dist/services/User/userExperiences.js +11 -1
- package/dist/services/User/userProfile.js +11 -1
- package/dist/types/UserExperience.js +11 -1
- package/dist/types/commonTypes.js +11 -1
- package/dist/types/companyNewsTypes.js +11 -1
- package/dist/types/discountTypes.js +11 -1
- package/dist/types/feedbackTypes.js +11 -1
- package/dist/types/friendTypes.js +11 -1
- package/dist/types/mailTypes.js +11 -1
- package/dist/types/oAuthTypes.js +11 -1
- package/dist/types/qrCodes.js +11 -1
- package/dist/types/subscribeTypes.js +11 -1
- package/dist/types/userTypes.js +11 -1
- package/dist/utilities/fetch.js +11 -1
- package/dist/utilities/mapper.js +11 -1
- package/package.json +1 -1
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";const a22_0x371a7d=a22_0x4586;function a22_0x4586(t,e){t-=236;return a22_0x29cf()[t]}function a22_0x29cf(){const t=["2yXvOFx","default","4976919GltQHP","9105264kGHbLH","8918832vccyCC","711312vJdGpz","1440471BzKdWX","2760kinPpG","\n mutation updateUserSettings($settings: userSettingsInput!) {\n updateUserSettings(settings: $settings) {\n hasUpdatedSuccess\n isSuccess\n errorCode\n errorMessage\n }\n }\n","2042370mofJVn","384yhLAPi","150lGkUCh"];return(a22_0x29cf=function(){return t})()}!function(){const t=a22_0x4586,e=a22_0x29cf();for(;;)try{if(982998===parseInt(t(237))/1+parseInt(t(243))/2*(-parseInt(t(245))/3)+parseInt(t(236))/4+-parseInt(t(238))/5*(-parseInt(t(241))/6)+-parseInt(t(246))/7+-parseInt(t(247))/8+parseInt(t(240))/9*(parseInt(t(242))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),Object.defineProperty(exports,"__esModule",{value:!0});const updateUserSettings=a22_0x371a7d(239);exports[a22_0x371a7d(244)]=updateUserSettings;
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";function a23_0x3f64(t,e){t-=207;return a23_0x573a()[t]}const a23_0xfb00ec=a23_0x3f64;function a23_0x573a(){const t=["defineProperty","3332990pwLmTn","2869588ysiapN","42777LbtVzT","__esModule","179034NothaE","944zcUoSC","7463990ORWNlO","4857713ioBBSv","294186SRCmtG","\n mutation userApiLogout {\n userApiLogout {\n hasLoggedOut\n isSuccess\n errorMessage\n errorCode\n }\n }\n","14IruIsj","default","6JDZpNW"];return(a23_0x573a=function(){return t})()}!function(){const t=a23_0x3f64,e=a23_0x573a();for(;;)try{if(360977===parseInt(t(218))/1+parseInt(t(210))/2*(parseInt(t(208))/3)+-parseInt(t(215))/4+parseInt(t(214))/5*(-parseInt(t(212))/6)+parseInt(t(207))/7+parseInt(t(219))/8*(-parseInt(t(216))/9)+parseInt(t(220))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),Object[a23_0xfb00ec(213)](exports,a23_0xfb00ec(217),{value:!0});const userApiLogout=a23_0xfb00ec(209);exports[a23_0xfb00ec(211)]=userApiLogout;
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var a24_0x2adc21=a24_0x5aa5;function a24_0x5aa5(a,e){return a-=317,a24_0x9a7e()[a]}function a24_0x9a7e(){var a=["Request Failed, Please make sure you have enter the licenseKey","1445220TZrwKz","resolve","__esModule","forEach","mfkYb","28148725JEwzrv","getCompanyNewsStatsAsync","4dojKlv","done","origin","rSTZf","MapToResponseObj","getBiStatsCommands","getBiStats","Unable to process this request at this time, please try again later","graphQlCommandNames","../../utilities/mapper","activateMockCalls","995946GVFZmS","1438246eMKedb","../../queries/getBiStats","8pbIKtS","rzaJu","hAhzh","stringify","../../queries/logError","apiKey","next","NeXFa","errorMessage","default","mockCalls","piEFG","PcHND","app","52149UvWESC","1NFFhiw","10NJZXvE","defineProperty","5521180vnwHKE","RSALc","then","accountEmail","EzRDp","apply","../../config","companyNewsStats","keys","data","4478373bnXPXY"];return(a24_0x9a7e=function(){return a})()}!function(){for(var a=a24_0x5aa5,e=a24_0x9a7e();;)try{if(413079===parseInt(a(348))/1*(-parseInt(a(331))/2)+-parseInt(a(347))/3*(parseInt(a(319))/4)+-parseInt(a(363))/5+parseInt(a(330))/6+-parseInt(a(351))/7+parseInt(a(333))/8*(-parseInt(a(361))/9)+-parseInt(a(349))/10*(-parseInt(a(317))/11))break;e.push(e.shift())}catch(a){e.push(e.shift())}}();var __awaiter=this&&this.__awaiter||function(a,e,t,r){var n={rzaJu:function(a,e){return a(e)},mfkYb:function(a,e){return a instanceof e}};return new(t||(t=Promise))(function(o,s){var i=a24_0x5aa5,c={EzRDp:function(a,e){return a(e)},hAhzh:function(a,e){return a(e)},rSTZf:function(a,e){return n[a24_0x5aa5(367)](a,e)}};function u(a){var e=a24_0x5aa5;try{n[e(334)](p,r[e(339)](a))}catch(a){n[e(334)](s,a)}}function _(a){var e=a24_0x5aa5;try{c[e(355)](p,r.throw(a))}catch(a){c[e(335)](s,a)}}function p(a){var e,r=a24_0x5aa5,n=function(a,e){return a(e)};a[r(320)]?o(a.value):(e=a.value,c[r(322)](e,t)?e:new t(function(a){n(a,e)}))[r(353)](u,_)}n.rzaJu(p,(r=r[i(356)](a,e||[])).next())})},__importDefault=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object[a24_0x2adc21(350)](exports,a24_0x2adc21(365),{value:!0}),exports[a24_0x2adc21(318)]=void 0;const mapper_1=require(a24_0x2adc21(328)),logError_1=__importDefault(require(a24_0x2adc21(337))),getBiStats_1=__importDefault(require(a24_0x2adc21(332))),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require(a24_0x2adc21(357))),getCompanyNewsStatsAsync=a=>__awaiter(void 0,void 0,void 0,function*(){var e=a24_0x2adc21,t={NeXFa:"Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyNewsStats",piEFG:"go_felix_bi_api",RSALc:e(318),PcHND:e(326)};const r={isSuccess:!1,errorMessage:"",errorCode:"",companyNewsStats:null};let n=null;try{return a[e(338)]?(a[e(329)]?a.mockCalls[e(318)]?n=a[e(343)][e(318)]():r[e(341)]=t[e(340)]:n=yield(0,fetch_1[e(342)])(getBiStats_1[e(342)],{email:a[e(354)],commandName:constants_1[e(342)][e(324)][e(358)]},constants_1[e(342)][e(327)][e(325)],{accountEmail:a[e(354)],origin:a[e(321)],apiKey:a.apiKey},t.piEFG),Object[e(359)](n[e(360)][e(325)])[e(366)](a=>{var t=e;(0,mapper_1[t(323)])(r,n[t(360)].getBiStats,a)}),Promise.resolve(r)):(r[e(341)]=e(362),Promise[e(364)](r))}catch(n){return(0,fetch_1[e(342)])(logError_1[e(342)],{errorDetails:{userName:"",email:a.accountEmail,app:constants_1.default[e(346)],env:JSON[e(336)](config_1.default),error:JSON[e(336)](n),argumentsPassedIn:JSON.stringify(a),codeLocation:t[e(352)],appCode:constants_1[e(342)].appCode}},constants_1.default[e(327)].logError,{accountEmail:a[e(354)],origin:a[e(321)],apiKey:a[e(338)]},t[e(344)]),r[e(341)]=t[e(345)],Promise[e(364)](r)}});exports[a24_0x2adc21(318)]=getCompanyNewsStatsAsync,exports.default={getCompanyNewsStatsAsync:exports[a24_0x2adc21(318)]};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";function a25_0x208e(t,e){return t-=279,a25_0x59e0()[t]}function a25_0x59e0(){var t=["done","errorMessage","graphQlCommandNames","next","Request Failed, Please make sure you have enter the licenseKey","2THxRWk","OmisU","nMrIJ","../../constants","resolve","Unable to process this request at this time, please try again later","2184mpGveU","hsIwi","../../utilities/mapper","app","appCode","defineProperty","MapToResponseObj","keys","YNGup","348UlIeOi","__esModule","value","3421pBopsq","2619305dgXqhG","activateMockCalls","12070ZTySOb","14791bhBwTa","mUHaj","origin","go_felix_bi_api","426014wkxMtb","getCompanyDiscountStatsAsync","9139Iqblfy","fzxyE","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyDiscountStats","20724VajYtm","apiKey","CrNKY","getBiStats","1189156WgnuXb","logError","../../utilities/fetch","throw","IxoOD","6219AJCNWj","default","companyDiscountStats","mockCalls","stringify","accountEmail","3RiJKSH","__importDefault","../../config","data"];return(a25_0x59e0=function(){return t})()}var a25_0x317451=a25_0x208e;!function(){for(var t=a25_0x208e,e=a25_0x59e0();;)try{if(276205===parseInt(t(301))/1*(-parseInt(t(330))/2)+parseInt(t(321))/3*(-parseInt(t(310))/4)+-parseInt(t(294))/5+parseInt(t(290))/6*(parseInt(t(297))/7)+parseInt(t(281))/8*(-parseInt(t(315))/9)+-parseInt(t(296))/10*(-parseInt(t(293))/11)+parseInt(t(306))/12*(parseInt(t(303))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var __awaiter=this&&this.__awaiter||function(t,e,a,r){var n={fzxyE:function(t,e){return t(e)},CrNKY:function(t,e){return t(e)}};return new(a||(a=Promise))(function(i,o){var s={hsIwi:function(t,e){return n[a25_0x208e(304)](t,e)},OmisU:function(t,e){return n[a25_0x208e(308)](t,e)},nMrIJ:function(t,e){return t instanceof e}};function u(t){var e=a25_0x208e;try{n.fzxyE(_,r[e(328)](t))}catch(t){n[e(304)](o,t)}}function c(t){var e=a25_0x208e;try{_(r[e(313)](t))}catch(t){n[e(304)](o,t)}}function _(t){var e,r=a25_0x208e;t[r(325)]?s[r(331)](i,t[r(292)]):(e=t[r(292)],s[r(332)](e,a)?e:new a(function(t){s[r(282)](t,e)})).then(u,c)}n[a25_0x208e(304)](_,(r=r.apply(t,e||[])).next())})},__importDefault=this&&this[a25_0x317451(322)]||function(t){return t&&t.__esModule?t:{default:t}};Object[a25_0x317451(286)](exports,a25_0x317451(291),{value:!0}),exports[a25_0x317451(302)]=void 0;const mapper_1=require(a25_0x317451(283)),logError_1=__importDefault(require("../../queries/logError")),getBiStats_1=__importDefault(require("../../queries/getBiStats")),fetch_1=__importDefault(require(a25_0x317451(312))),constants_1=__importDefault(require(a25_0x317451(333))),config_1=__importDefault(require(a25_0x317451(323))),getCompanyDiscountStatsAsync=t=>__awaiter(void 0,void 0,void 0,function*(){var e=a25_0x317451,a={IxoOD:e(329),uthJi:e(302),mUHaj:e(300),YNGup:e(280)};const r={isSuccess:!1,errorMessage:"",errorCode:"",discountStats:null};let n=null;try{return t.apiKey?(t[e(295)]?t[e(318)][e(302)]?n=t[e(318)][e(302)]():r[e(326)]=e(305):n=yield(0,fetch_1.default)(getBiStats_1[e(316)],{email:t[e(320)],commandName:constants_1[e(316)].getBiStatsCommands[e(317)]},constants_1[e(316)][e(327)][e(309)],{accountEmail:t[e(320)],origin:t.origin,apiKey:t[e(307)]},e(300)),Object[e(288)](n[e(324)][e(309)]).forEach(t=>{var a=e;(0,mapper_1[a(287)])(r,n[a(324)].getBiStats,t)}),Promise[e(279)](r)):(r[e(326)]=a[e(314)],Promise[e(279)](r))}catch(n){return(0,fetch_1[e(316)])(logError_1[e(316)],{errorDetails:{userName:"",email:t[e(320)],app:constants_1[e(316)][e(284)],env:JSON[e(319)](config_1.default),error:JSON[e(319)](n),argumentsPassedIn:JSON[e(319)](t),codeLocation:a.uthJi,appCode:constants_1.default[e(285)]}},constants_1[e(316)][e(327)][e(311)],{accountEmail:t[e(320)],origin:t[e(299)],apiKey:t[e(307)]},a[e(298)]),r[e(326)]=a[e(289)],Promise[e(279)](r)}});exports[a25_0x317451(302)]=getCompanyDiscountStatsAsync,exports[a25_0x317451(316)]={getCompanyDiscountStatsAsync:exports[a25_0x317451(302)]};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var a26_0x240fa6=a26_0x1c0c;function a26_0x1c0c(e,t){return e-=342,a26_0x5d8b()[e]}!function(){for(var e=a26_0x1c0c,t=a26_0x5d8b();;)try{if(260418===parseInt(e(345))/1+-parseInt(e(353))/2+-parseInt(e(360))/3+parseInt(e(361))/4*(parseInt(e(358))/5)+parseInt(e(374))/6*(parseInt(e(391))/7)+-parseInt(e(380))/8+parseInt(e(392))/9*(parseInt(e(384))/10))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var __awaiter=this&&this[a26_0x240fa6(379)]||function(e,t,a,r){var n={rWvfY:function(e,t){return e(t)},rrNgA:function(e,t){return e(t)}};return new(a||(a=Promise))(function(o,i){var s=a26_0x1c0c,c={sgTQg:function(e,t){return n[a26_0x1c0c(377)](e,t)},gRUiz:function(e,t){return n[a26_0x1c0c(346)](e,t)},EfRkG:function(e,t){return e instanceof t}};function u(e){var t=a26_0x1c0c;try{_(r[t(396)](e))}catch(e){c[t(376)](i,e)}}function f(e){var t=a26_0x1c0c;try{n[t(377)](_,r[t(378)](e))}catch(e){i(e)}}function _(e){var t,r=a26_0x1c0c,n={fmSBV:function(e,t){return c[a26_0x1c0c(376)](e,t)}};e[r(356)]?c[r(370)](o,e[r(372)]):(t=e[r(372)],c[r(375)](t,a)?t:new a(function(e){n[r(342)](e,t)}))[r(362)](u,f)}_((r=r[s(388)](e,t||[]))[s(396)]())})},__importDefault=this&&this[a26_0x240fa6(363)]||function(e){return e&&e[a26_0x240fa6(347)]?e:{default:e}};function a26_0x5d8b(){var e=["next","fmSBV","companyFeedbackStats","graphQlCommandNames","206359XxhKUd","rrNgA","__esModule","../../queries/getBiStats","Unable to process this request at this time, please try again later","apiKey","getBiStats","stringify","957794ljyutl","go_felix_bi_api","HxHsK","done","forEach","15095Rhmkhl","../../constants","132711TkJuoD","596yYECKg","then","__importDefault","errorMessage","app","../../queries/logError","data","origin","default","gRUiz","keys","value","WjgkC","24DOZfLz","EfRkG","sgTQg","rWvfY","throw","__awaiter","4124056oqXFTe","getCompanyFeedbackStatsAsync","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyFeedbackStats","../../config","2530SCQnYK","getCompanyFeedbackStats","../../utilities/fetch","accountEmail","apply","Request Failed, Please make sure you have enter the licenseKey","QyBVi","626927XgbJki","10125eDXGTG","mockCalls","resolve","appCode"];return(a26_0x5d8b=function(){return e})()}Object.defineProperty(exports,a26_0x240fa6(347),{value:!0}),exports[a26_0x240fa6(385)]=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require(a26_0x240fa6(366))),getBiStats_1=__importDefault(require(a26_0x240fa6(348))),fetch_1=__importDefault(require(a26_0x240fa6(386))),constants_1=__importDefault(require(a26_0x240fa6(359))),config_1=__importDefault(require(a26_0x240fa6(383))),getCompanyFeedbackStats=e=>__awaiter(void 0,void 0,void 0,function*(){var t=a26_0x240fa6,a={QyBVi:t(389),WjgkC:t(382),HxHsK:t(354),rkxya:t(349)};const r={isSuccess:!1,errorMessage:"",errorCode:"",feedbackStats:null};try{if(!e[t(350)])return r[t(364)]=a[t(390)],Promise[t(394)](r);let n=null;return e.activateMockCalls?e[t(393)][t(381)]?n=e[t(393)][t(381)]():r[t(364)]=a[t(373)]:n=yield(0,fetch_1[t(369)])(getBiStats_1[t(369)],{email:e[t(387)],commandName:constants_1.default.getBiStatsCommands[t(343)]},constants_1[t(369)][t(344)][t(351)],{accountEmail:e[t(387)],origin:e[t(368)],apiKey:e[t(350)]},a[t(355)]),Object[t(371)](n[t(367)].getBiStats)[t(357)](e=>{var a=t;(0,mapper_1.MapToResponseObj)(r,n[a(367)][a(351)],e)}),Promise[t(394)](r)}catch(n){return(0,fetch_1[t(369)])(logError_1[t(369)],{errorDetails:{userName:"",email:e[t(387)],app:constants_1.default[t(365)],env:JSON.stringify(config_1[t(369)]),error:JSON[t(352)](n),argumentsPassedIn:JSON.stringify(e),codeLocation:"getCompanyFeedbackStatsAsync",appCode:constants_1[t(369)][t(395)]}},constants_1[t(369)].graphQlCommandNames.logError,{accountEmail:e[t(387)],origin:e[t(368)],apiKey:e.apiKey},t(354)),r[t(364)]=a.rkxya,Promise.resolve(r)}});exports.getCompanyFeedbackStats=getCompanyFeedbackStats,exports.default={getCompanyFeedbackStats:exports.getCompanyFeedbackStats};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var a27_0x9562be=a27_0x4a91;!function(){for(var e=a27_0x4a91,t=a27_0x58a6();;)try{if(395381===parseInt(e(227))/1+-parseInt(e(252))/2+-parseInt(e(258))/3*(parseInt(e(246))/4)+parseInt(e(243))/5+parseInt(e(226))/6*(-parseInt(e(218))/7)+-parseInt(e(248))/8*(parseInt(e(250))/9)+parseInt(e(230))/10*(parseInt(e(223))/11))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var __awaiter=this&&this[a27_0x9562be(241)]||function(e,t,a,n){var r={vPUkB:function(e,t){return e(t)},JkvmX:function(e,t){return e(t)},qlXxc:function(e,t){return e instanceof t},AlMkh:function(e,t){return e(t)}};return new(a||(a=Promise))(function(o,s){var i=a27_0x4a91,u={fhNWP:function(e,t){return r[a27_0x4a91(245)](e,t)}};function c(e){var t=a27_0x4a91;try{p(n.next(e))}catch(e){u[t(265)](s,e)}}function l(e){var t=a27_0x4a91;try{r[t(217)](p,n[t(255)](e))}catch(e){r[t(212)](s,e)}}function p(e){var t,n=a27_0x4a91,s={CmlMV:function(e,t){return r.vPUkB(e,t)}};e[n(235)]?o(e[n(236)]):(t=e[n(236)],r.qlXxc(t,a)?t:new a(function(e){s[n(266)](e,t)}))[n(256)](c,l)}p((n=n[i(238)](e,t||[]))[i(267)]())})},__importDefault=this&&this[a27_0x9562be(233)]||function(e){return e&&e[a27_0x9562be(264)]?e:{default:e}};function a27_0x58a6(){var e=["../../queries/getBiStats","1289103QSPQYx","apiKey","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyUserExperienceStats","../../queries/logError","data","ghzPy","__esModule","fhNWP","CmlMV","next","app","defineProperty","JkvmX","activateMockCalls","../../constants","SIVYe","resolve","vPUkB","119FpbPzX","SMoQb","getAllCompanyStats","../../utilities/fetch","accountEmail","44lhMBjN","stringify","graphQlCommandNames","159174ROShAq","777041lihjTT","go_felix_bi_api","getBiStatsCommands","2578390JBwhgW","logError","getCompanyNewsStatsAsync","__importDefault","../../config","done","value","Unable to process this request at this time, please try again later","apply","zygHo","getBiStats","__awaiter","getAllCompanyStatsAsync","2092715oxVcHc","../../utilities/mapper","AlMkh","4VGPVPE","errorMessage","8zduvQI","default","5433255muEHgz","appCode","694340kLwpbU","origin","MapToResponseObj","throw","then"];return(a27_0x58a6=function(){return e})()}Object[a27_0x9562be(211)](exports,a27_0x9562be(264),{value:!0}),exports[a27_0x9562be(242)]=void 0;const mapper_1=require(a27_0x9562be(244)),logError_1=__importDefault(require(a27_0x9562be(261))),getBiStats_1=__importDefault(require(a27_0x9562be(257))),fetch_1=__importDefault(require(a27_0x9562be(221))),constants_1=__importDefault(require(a27_0x9562be(214))),config_1=__importDefault(require(a27_0x9562be(234))),getAllCompanyStatsAsync=e=>__awaiter(void 0,void 0,void 0,function*(){var t,a,n=a27_0x9562be,r={SIVYe:function(e,t){return e===t},xCSUC:"Request Failed, Please make sure you have enter the licenseKey",zygHo:"getAllCompanyStatsAsync",SMoQb:n(228),ghzPy:n(237)};const o={isSuccess:!1,errorMessage:"",errorCode:"",companyUserExperienceStats:null,feedbackStats:null,companyStats:null,companyNewsStats:null,discountStats:null};let s={};try{return e.apiKey?(e[n(213)]?(null===(t=null==e?void 0:e.mockCalls)||r.SIVYe(void 0,t)?void 0:t[n(232)])?s=r[n(215)](null,a=e.mockCalls)||void 0===a?void 0:a[n(232)]():o[n(247)]=n(260):s=yield(0,fetch_1.default)(getBiStats_1[n(249)],{email:e[n(222)],commandName:constants_1[n(249)][n(229)][n(220)]},constants_1.default[n(225)][n(240)],{accountEmail:e[n(222)],origin:e.origin,apiKey:e[n(259)]},n(228)),Object.keys(s.data[n(240)]).forEach(e=>{var t=n;(0,mapper_1[t(254)])(o,s[t(262)][t(240)],e)}),Promise[n(216)](o)):(o[n(247)]=r.xCSUC,Promise[n(216)](o))}catch(t){return(0,fetch_1[n(249)])(logError_1[n(249)],{errorDetails:{userName:"",email:e[n(222)],app:constants_1[n(249)][n(268)],env:JSON[n(224)](config_1[n(249)]),error:JSON[n(224)](t),argumentsPassedIn:JSON[n(224)](e),codeLocation:r[n(239)],appCode:constants_1.default[n(251)]}},constants_1[n(249)].graphQlCommandNames[n(231)],{accountEmail:e.accountEmail,origin:e[n(253)],apiKey:e.apiKey},r[n(219)]),o[n(247)]=r[n(263)],Promise[n(216)](o)}});function a27_0x4a91(e,t){return e-=211,a27_0x58a6()[e]}exports[a27_0x9562be(242)]=getAllCompanyStatsAsync,exports.default={getAllCompanyStatsAsync:exports.getAllCompanyStatsAsync};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var a28_0x1cbdb9=a28_0x2679;function a28_0x1d46(){var t=["forEach","throw","../../config","6185FZjYWB","accountEmail","then","Unable to process this request at this time, please try again later","stringify","kaAds","getBiStatsCommands","LSoiv","3302376btnFai","graphQlCommandNames","apiKey","../../constants","FGHKH","activateMockCalls","338592kVUHOr","origin","KASns","112WgGLrd","MapToResponseObj","default","__esModule","defineProperty","8446493YdtJav","mockCalls","data","__importDefault","keys","JLCBt","appCode","4eDBMSP","../../queries/getBiStats","go_felix_bi_api","errorMessage","next","__awaiter","5378648jZgpIj","Request Failed, Please make sure you have enter the licenseKey","bbvYx","243306sGqpKs","getCompanyOverallStatsAsync","value","480821zrlWPD","../../queries/logError","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyOverallStats","../../utilities/mapper","9yLdnms","companyStats","resolve","1732qxcljn","getBiStats","SqDcr","CVBde","10IMBwGk"];return(a28_0x1d46=function(){return t})()}!function(){for(var t=a28_0x2679,e=a28_0x1d46();;)try{if(455400===parseInt(t(469))/1+parseInt(t(457))/2*(parseInt(t(466))/3)+parseInt(t(476))/4*(parseInt(t(484))/5)+-parseInt(t(442))/6*(parseInt(t(445))/7)+-parseInt(t(463))/8*(-parseInt(t(473))/9)+-parseInt(t(480))/10*(parseInt(t(450))/11)+parseInt(t(436))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var __awaiter=this&&this[a28_0x1cbdb9(462)]||function(t,e,a,r){var n={bbvYx:function(t,e){return t(e)},LSoiv:function(t,e){return t(e)},JLCBt:function(t,e){return t(e)},SqDcr:function(t,e){return t(e)},KASns:function(t,e){return t instanceof e},xRmOT:function(t,e){return t(e)}};return new(a||(a=Promise))(function(o,s){var i=a28_0x2679,c={wtUNL:function(t,e){return n.bbvYx(t,e)},FGHKH:function(t,e){return n[a28_0x2679(444)](t,e)}};function u(t){var e=a28_0x2679;try{n[e(465)](l,r[e(461)](t))}catch(t){n[e(435)](s,t)}}function _(t){var e=a28_0x2679;try{n[e(455)](l,r[e(482)](t))}catch(t){n[e(478)](s,t)}}function l(t){var e,r=a28_0x2679;t.done?o(t.value):(e=t[r(468)],c[r(440)](e,a)?e:new a(function(t){c.wtUNL(t,e)}))[r(486)](u,_)}n.xRmOT(l,(r=r.apply(t,e||[]))[i(461)]())})},__importDefault=this&&this[a28_0x1cbdb9(453)]||function(t){return t&&t[a28_0x1cbdb9(448)]?t:{default:t}};function a28_0x2679(t,e){return t-=433,a28_0x1d46()[t]}Object[a28_0x1cbdb9(449)](exports,a28_0x1cbdb9(448),{value:!0}),exports[a28_0x1cbdb9(467)]=void 0;const mapper_1=require(a28_0x1cbdb9(472)),logError_1=__importDefault(require(a28_0x1cbdb9(470))),getBiStats_1=__importDefault(require(a28_0x1cbdb9(458))),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require(a28_0x1cbdb9(439))),config_1=__importDefault(require(a28_0x1cbdb9(483))),getCompanyOverallStatsAsync=t=>__awaiter(void 0,void 0,void 0,function*(){var e=a28_0x1cbdb9,a={kaAds:e(471),CVBde:e(459),hJddB:e(467)};const r={isSuccess:!1,errorMessage:"",errorCode:"",companyStats:null};let n=null;try{return t[e(438)]?(t[e(441)]?t[e(451)].getCompanyOverallStatsAsync?n=t[e(451)][e(467)]():r.errorMessage=a[e(433)]:n=yield(0,fetch_1[e(447)])(getBiStats_1[e(447)],{email:t[e(485)],commandName:constants_1[e(447)][e(434)][e(474)]},constants_1[e(447)][e(437)][e(477)],{accountEmail:t[e(485)],origin:t.origin,apiKey:t.apiKey},a.CVBde),Object[e(454)](n[e(452)][e(477)])[e(481)](t=>{var a=e;(0,mapper_1[a(446)])(r,n[a(452)][a(477)],t)}),Promise[e(475)](r)):(r[e(460)]=e(464),Promise[e(475)](r))}catch(n){return(0,fetch_1.default)(logError_1[e(447)],{errorDetails:{userName:"",email:t[e(485)],app:constants_1.default.app,env:JSON[e(488)](config_1[e(447)]),error:JSON[e(488)](n),argumentsPassedIn:JSON[e(488)](t),codeLocation:a.hJddB,appCode:constants_1[e(447)][e(456)]}},constants_1.default[e(437)].logError,{accountEmail:t[e(485)],origin:t[e(443)],apiKey:t[e(438)]},a[e(479)]),r[e(460)]=e(487),Promise[e(475)](r)}});exports.getCompanyOverallStatsAsync=getCompanyOverallStatsAsync,exports[a28_0x1cbdb9(447)]={getCompanyOverallStatsAsync:exports[a28_0x1cbdb9(467)]};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var a29_0x452c86=a29_0x2210;function a29_0x2210(e,t){return e-=413,a29_0x10bb()[e]}!function(){for(var e=a29_0x2210,t=a29_0x10bb();;)try{if(174522===-parseInt(e(464))/1*(-parseInt(e(424))/2)+parseInt(e(465))/3*(-parseInt(e(435))/4)+-parseInt(e(445))/5*(parseInt(e(429))/6)+parseInt(e(466))/7*(parseInt(e(460))/8)+-parseInt(e(446))/9*(parseInt(e(448))/10)+parseInt(e(423))/11*(-parseInt(e(451))/12)+parseInt(e(462))/13)break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var __awaiter=this&&this.__awaiter||function(e,t,a,r){var n={fmITz:function(e,t){return e(t)},zaVYs:function(e,t){return e(t)},btKMn:function(e,t){return e instanceof t}};return new(a||(a=Promise))(function(s,i){var o=a29_0x2210,c={uIuwS:function(e,t){return n[a29_0x2210(449)](e,t)},khQWu:function(e,t){return e(t)},QtnmF:function(e,t){return n[a29_0x2210(449)](e,t)},VwnQD:function(e,t){return n[a29_0x2210(433)](e,t)},imGll:function(e,t){return n[a29_0x2210(417)](e,t)}};function u(e){var t=a29_0x2210;try{c[t(461)](_,r[t(454)](e))}catch(e){c[t(434)](i,e)}}function p(e){try{_(r.throw(e))}catch(e){i(e)}}function _(e){var t,r=a29_0x2210,n={qdowB:function(e,t){return c[a29_0x2210(420)](e,t)}};e[r(439)]?c[r(440)](s,e[r(459)]):(t=e.value,c[r(432)](t,a)?t:new a(function(e){n[r(428)](e,t)})).then(u,p)}n.zaVYs(_,(r=r[o(418)](e,t||[]))[o(454)]())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};function a29_0x10bb(){var e=["origin","stringify","qdowB","2418leOWwE","getCompanyUserExperienceStatsAsync","forEach","imGll","zaVYs","khQWu","4HJeEAU","../../queries/getBiStats","data","default","done","VwnQD","graphQlCommandNames","getBiStats","accountEmail","apiKey","2005gshAuP","198smdyyJ","xbYtD","145810wAVBNM","fmITz","companyUserExperienceStats","662664dCzRpV","companyUserExperienceStatsAsync","app","next","../../utilities/mapper","mockCalls","MapToResponseObj","__esModule","value","1901896eHQRAh","uIuwS","6339294FQDRjQ","resolve","2GQluMS","902694OwPEvM","7uXpqsL","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyUserExperienceStats","go_felix_bi_api","activateMockCalls","Unable to process this request at this time, please try again later","getCompanyUserExperienceStats","btKMn","apply","errorMessage","QtnmF","xgudc","getBiStatsCommands","11MBuKpn","287652QEHAID","../../constants"];return(a29_0x10bb=function(){return e})()}Object.defineProperty(exports,a29_0x452c86(458),{value:!0}),exports[a29_0x452c86(430)]=void 0;const mapper_1=require(a29_0x452c86(455)),logError_1=__importDefault(require("../../queries/logError")),getBiStats_1=__importDefault(require(a29_0x452c86(436))),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require(a29_0x452c86(425))),config_1=__importDefault(require("../../config")),getCompanyUserExperienceStatsAsync=e=>__awaiter(void 0,void 0,void 0,function*(){var t=a29_0x452c86,a={Fbnvz:t(467),xgudc:t(413),xbYtD:"Request Failed, Please make sure you have enter the licenseKey",iEakh:t(415)};const r={isSuccess:!1,errorMessage:"",errorCode:"",companyUserExperienceStats:null};let n=null;try{return e.apiKey?(e[t(414)]?e.mockCalls[t(452)]?n=e[t(456)][t(452)]():r.errorMessage=a.Fbnvz:n=yield(0,fetch_1[t(438)])(getBiStats_1[t(438)],{email:e[t(443)],commandName:constants_1[t(438)][t(422)][t(450)]},constants_1.default[t(441)].getBiStats,{accountEmail:e[t(443)],origin:e.origin,apiKey:e[t(444)]},a[t(421)]),Object.keys(n[t(437)][t(442)])[t(431)](e=>{var a=t;(0,mapper_1[a(457)])(r,n[a(437)][a(442)],e)}),Promise[t(463)](r)):(r[t(419)]=a[t(447)],Promise[t(463)](r))}catch(n){return(0,fetch_1[t(438)])(logError_1[t(438)],{errorDetails:{userName:"",email:e[t(443)],app:constants_1.default[t(453)],env:JSON.stringify(config_1[t(438)]),error:JSON[t(427)](n),argumentsPassedIn:JSON[t(427)](e),codeLocation:t(416),appCode:constants_1.default.appCode}},constants_1[t(438)][t(441)].logError,{accountEmail:e[t(443)],origin:e[t(426)],apiKey:e.apiKey},t(413)),r[t(419)]=a.iEakh,Promise[t(463)](r)}});exports[a29_0x452c86(430)]=getCompanyUserExperienceStatsAsync,exports[a29_0x452c86(438)]={getCompanyUserExperienceStatsAsync:exports[a29_0x452c86(430)]};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var a30_0x189db2=a30_0x175d;function a30_0x175d(e,t){return e-=391,a30_0xe696()[e]}!function(){for(var e=a30_0x175d,t=a30_0xe696();;)try{if(655550===parseInt(e(411))/1+parseInt(e(429))/2+parseInt(e(393))/3+parseInt(e(408))/4+-parseInt(e(400))/5*(parseInt(e(402))/6)+parseInt(e(398))/7*(parseInt(e(437))/8)+parseInt(e(440))/9*(-parseInt(e(418))/10))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var __awaiter=this&&this.__awaiter||function(e,t,r,a){var o={WhFAP:function(e,t){return e(t)},uIeDj:function(e,t){return e(t)},tPSRj:function(e,t){return e(t)}};return new(r||(r=Promise))(function(n,i){var s=a30_0x175d,c={kxlsc:function(e,t){return e(t)},WdCxA:function(e,t){return o.tPSRj(e,t)}};function u(e){var t=a30_0x175d;try{o[t(395)](d,a[t(428)](e))}catch(e){o[t(395)](i,e)}}function l(e){var t=a30_0x175d;try{c[t(394)](d,a.throw(e))}catch(e){c.WdCxA(i,e)}}function d(e){var t,a=a30_0x175d,i={ZfMiv:function(e,t){return o.WhFAP(e,t)}};e[a(419)]?o[a(434)](n,e[a(404)]):(t=e[a(404)],t instanceof r?t:new r(function(e){i[a(405)](e,t)}))[a(416)](u,l)}d((a=a[s(403)](e,t||[]))[s(428)]())})},__importDefault=this&&this.__importDefault||function(e){return e&&e[a30_0x175d(407)]?e:{default:e}};function a30_0xe696(){var e=["forEach","errorMessage","origin","default","VyIPA","Request Failed, please make sure activationCode, codeVerifier and userConfig are supplied","mockCalls","next","1989192SHMimg","gofelix, service: oauthCallbackAsync","isSuccess","../../constants","Unable to process this request at this time, please try again later","uIeDj","AoNUh","../../utilities/fetch","3737416HBxcdK","BBHYQ","appCode","39681USwFpk","accountEmail","xqpGm","957207THhmhu","kxlsc","WhFAP","../../queries/logError","../../config","7GjKBRO","go_felix_user_api","826145udFrDL","keys","30tqQZNU","apply","value","ZfMiv","ZVCgs","__esModule","1382840BLdewx","graphQlCommandNames","stringify","1131970qrjWCr","NejTH","data","activateMockCalls","defineProperty","then","getUserAccessTokenFromActivationCode","4030geqdLE","done","oauthCallbackAsync"];return(a30_0xe696=function(){return e})()}Object[a30_0x189db2(415)](exports,a30_0x189db2(407),{value:!0}),exports.oauthCallbackAsync=void 0;const logError_1=__importDefault(require(a30_0x189db2(396))),fetch_1=__importDefault(require(a30_0x189db2(436))),getUserAccessTokenFromActivationCode_1=__importDefault(require("../../queries/getUserAccessTokenFromActivationCode")),constants_1=__importDefault(require(a30_0x189db2(432))),config_1=__importDefault(require(a30_0x189db2(397))),oauthCallbackAsync=e=>__awaiter(void 0,void 0,void 0,function*(){var t,r=a30_0x189db2,a={BBHYQ:function(e,t){return e&&t},kkMtx:function(e,t){return e===t},NejTH:"Request Failed, you set activateMockCalls to true, but you have not added a mock function for oauthCallbackAsync",ZVCgs:r(399),AoNUh:"Unable to retrieve access token",VyIPA:r(426),xqpGm:function(e,t){return e==t}};const o={isSuccess:!1,errorMessage:"",errorCode:"",sessionGuid:""};let n={data:{getUserAccessTokenFromActivationCode:null}};const{activationCode:i,codeVerifier:s,userConfig:c}=e;try{return a[r(438)](i,s)&&c?(c[r(414)]?(a.kkMtx(null,t=c[r(427)])||a.kkMtx(void 0,t)?void 0:t[r(420)])?n=yield c[r(427)][r(420)]():o[r(422)]=a[r(412)]:n=yield(0,fetch_1[r(424)])(getUserAccessTokenFromActivationCode_1[r(424)],{activationCode:i,codeVerifier:s},constants_1[r(424)][r(409)].getUserAccessTokenFromActivationCode,{origin:c[r(423)],accountEmail:c[r(391)]},a[r(406)]),Object[r(401)](n[r(413)][r(417)])[r(421)](e=>{var t=r;o[e]=n[t(413)][t(417)][e]}),o[r(431)]||(o[r(422)]=o.errorMessage||a[r(435)]),o):(o.errorMessage=a[r(425)],o)}catch(t){return yield(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:(a[r(392)](null,c)?void 0:c[r(391)])||"",app:constants_1[r(424)].app,env:JSON[r(410)](config_1.default),error:JSON.stringify(t),argumentsPassedIn:JSON[r(410)](e),codeLocation:r(430),appCode:constants_1[r(424)][r(439)]}},constants_1[r(424)].graphQlCommandNames.logError,{accountEmail:(null==c?void 0:c.accountEmail)||"",origin:(null==c?void 0:c[r(423)])||"",token:""},"go_felix_user_api"),o[r(422)]=r(433),o}});exports[a30_0x189db2(420)]=oauthCallbackAsync,exports[a30_0x189db2(424)]={oauthCallbackAsync:exports[a30_0x189db2(420)]};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";const a31_0x325ce5=a31_0x14aa;function a31_0x14aa(e,t){e-=288;return a31_0x1108()[e]}!function(){const e=a31_0x14aa,t=a31_0x1108();for(;;)try{if(646115===-parseInt(e(336))/1*(-parseInt(e(292))/2)+parseInt(e(298))/3*(parseInt(e(316))/4)+parseInt(e(291))/5+parseInt(e(302))/6*(parseInt(e(326))/7)+parseInt(e(293))/8+parseInt(e(300))/9+parseInt(e(313))/10*(-parseInt(e(333))/11))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var __awaiter=this&&this[a31_0x325ce5(335)]||function(e,t,a,s){const o={SgMlm:function(e,t){return e(t)},TyMCb:function(e,t){return e(t)},gPeBg:function(e,t){return e instanceof t},KmeRn:function(e,t){return e(t)}};return new(a||(a=Promise))(function(n,c){const r=a31_0x14aa,i={WFqTo:function(e,t){return e(t)},ZKdDj:function(e,t){return o[a31_0x14aa(321)](e,t)}};function u(e){const t=a31_0x14aa;try{i[t(319)](x,s[t(288)](e))}catch(e){i[t(319)](c,e)}}function _(e){const t=a31_0x14aa;try{i[t(310)](x,s[t(296)](e))}catch(e){i[t(310)](c,e)}}function x(e){const t=a31_0x14aa,s={cThGe:function(e,t){return o[a31_0x14aa(321)](e,t)}};var c;e[t(290)]?o.TyMCb(n,e[t(320)]):(c=e[t(320)],o[t(328)](c,a)?c:new a(function(e){s[t(297)](e,c)})).then(u,_)}o[r(308)](x,(s=s[r(315)](e,t||[]))[r(288)]())})};function a31_0x1108(){const e=["accessToken","cookie","cookies","559783rxODad","default","gPeBg","assign","none","UdkBH","igTgP","31168346AACwHS","OAuth callback failed","__awaiter","2774gTVrah","clearCookie","next","mSBgH","done","5849610Hlhaut","568ztyBAc","3782704NOhQdE","go_felix_user_api_token","body","throw","cThGe","3dmsDPI","Logout failed","6039315ytYHdO","isSuccess","6AUoGFQ","userConfig","json","hasLoggedOut","status","ZGMHV","KmeRn","OoZjn","ZKdDj","variables","sessionGuid","10ZQQDSy","./callback","apply","1192084jzvNuF","callbackAsync","__esModule","WFqTo","value","SgMlm","oAuth"];return(a31_0x1108=function(){return e})()}Object.defineProperty(exports,a31_0x325ce5(318),{value:!0}),exports[a31_0x325ce5(322)]=void 0;const callback_1=require(a31_0x325ce5(314)),logout_1=require("./logout");exports[a31_0x325ce5(322)]={callbackAsync:e=>(0,callback_1.oauthCallbackAsync)(Object[a31_0x325ce5(329)](Object[a31_0x325ce5(329)]({},e),{userConfig:e[a31_0x325ce5(303)]})),userApiLogoutAsync:e=>(0,logout_1.userApiLogoutAsync)({accessToken:e[a31_0x325ce5(323)],userConfig:e[a31_0x325ce5(303)]}),logoutExpressCallback:e=>(t,a)=>__awaiter(void 0,void 0,void 0,function*(){const s=a31_0x325ce5,o={OoZjn:"No active GoFelix session found",igTgP:s(294),ZGMHV:s(330),UdkBH:s(299)};try{const n=t[s(325)][s(294)];if(!n)return a.status(400)[s(304)]({isSuccess:!1,errorMessage:o[s(309)]});const c=yield exports.oAuth.userApiLogoutAsync({accessToken:n,userConfig:e});return c[s(305)]?(a[s(337)](o[s(332)],{httpOnly:!0,secure:!0,sameSite:o[s(307)],path:"/"}),a[s(304)]({isSuccess:!0,hasLoggedOut:!0,errorMessage:"",errorCode:""})):a.status(400)[s(304)](c)}catch(e){return a.status(500)[s(304)]({isSuccess:!1,errorMessage:o[s(331)]})}}),expressCallback:e=>(t,a)=>__awaiter(void 0,void 0,void 0,function*(){const s=a31_0x325ce5,o={mSBgH:"none",xMYKL:s(334)};try{const{activationCode:n,codeVerifier:c}=t[s(295)][s(311)],r=yield exports[s(322)][s(317)]({activationCode:n,codeVerifier:c,userConfig:e});return r[s(301)]?(a[s(324)]("go_felix_user_api_token",r[s(312)],{httpOnly:!0,secure:!0,sameSite:o[s(289)],path:"/",maxAge:108e5}),a[s(304)]({isSuccess:!0,errorMessage:"",errorCode:"",loggedIn:!0,sessionGuid:r.sessionGuid})):a[s(306)](400)[s(304)](r)}catch(e){return a[s(306)](500)[s(304)]({isSuccess:!1,errorMessage:o.xMYKL})}})},exports[a31_0x325ce5(327)]=exports[a31_0x325ce5(322)];
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var a32_0x5169ec=a32_0x1674;function a32_0x2c6c(){var e=["then","go_felix_user_api","14044vrpqgN","nRkGt","graphQlCommandNames","Unable to retrieve access token","GMvRa","Request Failed, please make sure activationCode, codeVerifier and userConfig are supplied","WYlwM","../../constants","userApiLogoutAsync","3227880TIUske","Unable to process this request at this time, please try again later","__esModule","NLlMN","stringify","default","fOTnT","forEach","activateMockCalls","543lNMVup","KnSbQ","done","126WgBBQH","__awaiter","KmbPi","369XfinNS","pZbsw","1575604PHjwBs","../../config","accountEmail","TzPtm","../../utilities/fetch","data","userApiLogout","23418jLxDBq","DovlJ","gofelix, service: userApiLogoutAsync","keys","sNwfA","6536yTybRG","value","errorMessage","XDjKT","mockCalls","17370970ITyAKW","next","JRgZY","isSuccess","origin","__importDefault","appCode","1154728cXoykY"];return(a32_0x2c6c=function(){return e})()}!function(){for(var e=a32_0x1674,t=a32_0x2c6c();;)try{if(832523===-parseInt(e(186))/1+parseInt(e(210))/2+-parseInt(e(231))/3*(-parseInt(e(213))/4)+-parseInt(e(222))/5+parseInt(e(193))/6*(parseInt(e(234))/7)+-parseInt(e(198))/8*(-parseInt(e(184))/9)+parseInt(e(203))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var __awaiter=this&&this[a32_0x5169ec(235)]||function(e,t,r,n){var o={TzPtm:function(e,t){return e(t)},NLlMN:function(e,t){return e(t)},WcNme:function(e,t){return e instanceof t},JRgZY:function(e,t){return e(t)}};return new(r||(r=Promise))(function(a,i){var u={KnSbQ:function(e,t){return o[a32_0x1674(189)](e,t)},sNwfA:function(e,t){return o.TzPtm(e,t)},LRJXi:function(e,t){return o[a32_0x1674(225)](e,t)},WYlwM:function(e,t){return o.WcNme(e,t)}};function s(e){var t=a32_0x1674;try{l(n[t(204)](e))}catch(e){u[t(232)](i,e)}}function c(e){var t=a32_0x1674;try{u[t(232)](l,n.throw(e))}catch(e){u[t(197)](i,e)}}function l(e){var t,n=a32_0x1674;e[n(233)]?u.LRJXi(a,e[n(199)]):(t=e.value,u[n(219)](t,r)?t:new r(function(e){u[n(197)](e,t)}))[n(211)](s,c)}o[a32_0x1674(205)](l,(n=n.apply(e,t||[])).next())})},__importDefault=this&&this[a32_0x5169ec(208)]||function(e){return e&&e[a32_0x5169ec(224)]?e:{default:e}};Object.defineProperty(exports,a32_0x5169ec(224),{value:!0}),exports[a32_0x5169ec(221)]=void 0;const logError_1=__importDefault(require("../../queries/logError")),fetch_1=__importDefault(require(a32_0x5169ec(190))),userApiLogout_1=__importDefault(require("../../queries/userApiLogout")),constants_1=__importDefault(require(a32_0x5169ec(220))),config_1=__importDefault(require(a32_0x5169ec(187))),userApiLogoutAsync=e=>__awaiter(void 0,void 0,void 0,function*(){var t,r=a32_0x5169ec,n={KmbPi:function(e,t){return e&&t},nRkGt:function(e,t){return e===t},fOTnT:"go_felix_user_api",XDjKT:r(218),pZbsw:function(e,t){return e==t},GMvRa:function(e,t){return e==t},DovlJ:r(223)};const o={isSuccess:!1,errorMessage:"",errorCode:"",hasLoggedOut:!1};let a={data:{userApiLogout:null}};const{accessToken:i,userConfig:u}=e;try{return n[r(183)](i,u)?(u[r(230)]?(null===(t=u[r(202)])||n[r(214)](void 0,t)?void 0:t.userApiLogoutAsync)?a=yield u[r(202)][r(221)]():o[r(200)]="Request Failed, you set activateMockCalls to true, but you have not added a mock function for userApiLogoutAsync":a=yield(0,fetch_1.default)(userApiLogout_1.default,{},constants_1.default[r(215)][r(192)],{origin:u[r(207)],token:e.accessToken,accountEmail:u[r(188)]},n[r(228)]),Object[r(196)](a[r(191)][r(192)])[r(229)](e=>{var t=r;o[e]=a[t(191)][t(192)][e]}),o[r(206)]||(o.errorMessage=o[r(200)]||r(216)),o):(o.errorMessage=n[r(201)],o)}catch(t){return yield(0,fetch_1[r(227)])(logError_1.default,{errorDetails:{userName:"",email:(null==u?void 0:u[r(188)])||"",app:constants_1[r(227)].app,env:JSON[r(226)](config_1[r(227)]),error:JSON.stringify(t),argumentsPassedIn:JSON[r(226)](e),codeLocation:r(195),appCode:constants_1.default[r(209)]}},constants_1[r(227)].graphQlCommandNames.logError,{accountEmail:(n[r(185)](null,u)?void 0:u.accountEmail)||"",origin:(n[r(217)](null,u)?void 0:u[r(207)])||"",token:""},r(212)),o[r(200)]=n[r(194)],o}});function a32_0x1674(e,t){return e-=183,a32_0x2c6c()[e]}exports.userApiLogoutAsync=userApiLogoutAsync,exports[a32_0x5169ec(227)]={userApiLogoutAsync:exports[a32_0x5169ec(221)]};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";function a33_0x1500(e,t){e-=129;return a33_0x119f()[e]}const a33_0x39d046=a33_0x1500;!function(){const e=a33_0x1500,t=a33_0x119f();for(;;)try{if(489288===parseInt(e(162))/1*(parseInt(e(159))/2)+-parseInt(e(152))/3*(-parseInt(e(132))/4)+-parseInt(e(173))/5*(-parseInt(e(148))/6)+-parseInt(e(137))/7+parseInt(e(161))/8*(parseInt(e(131))/9)+parseInt(e(167))/10+parseInt(e(180))/11*(-parseInt(e(151))/12))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var __awaiter=this&&this.__awaiter||function(e,t,r,o){const a={kqePe:function(e,t){return e(t)},neEDB:function(e,t){return e instanceof t},EGfzR:function(e,t){return e(t)}};return new(r||(r=Promise))(function(n,s){const i=a33_0x1500,c={hJPbn:function(e,t){return e(t)},lbUZi:function(e,t){return e(t)},CDKZy:function(e,t){return a[a33_0x1500(164)](e,t)}};function u(e){const t=a33_0x1500;try{c[t(187)](d,o[t(169)](e))}catch(e){s(e)}}function l(e){const t=a33_0x1500;try{a[t(182)](d,o[t(189)](e))}catch(e){a[t(182)](s,e)}}function d(e){const t=a33_0x1500;var o;e[t(184)]?c[t(178)](n,e[t(155)]):(o=e[t(155)],c.CDKZy(o,r)?o:new r(function(e){c[t(178)](e,o)}))[t(130)](u,l)}a[i(136)](d,(o=o.apply(e,t||[]))[i(169)]())})},__importDefault=this&&this[a33_0x39d046(154)]||function(e){return e&&e.__esModule?e:{default:e}};Object[a33_0x39d046(157)](exports,a33_0x39d046(146),{value:!0}),exports[a33_0x39d046(188)]=exports.getAllQRCodeUrlsAsync=void 0;const mapper_1=require(a33_0x39d046(129)),logError_1=__importDefault(require(a33_0x39d046(183))),fetch_1=__importDefault(require(a33_0x39d046(186))),constants_1=__importDefault(require(a33_0x39d046(170))),getAllQRCodeUrl_1=__importDefault(require("../../queries/getAllQRCodeUrl")),redeemDiscountCode_1=__importDefault(require(a33_0x39d046(185))),config_1=__importDefault(require(a33_0x39d046(153))),getAllQRCodeUrlsAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const t=a33_0x39d046,r={NbHSE:"Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getAllQRCodeUrls",bUkyi:t(165),IGqAf:t(135),eZCCT:t(149)};let o={isSuccess:!1,errorMessage:"",errorCode:"",qrUrls:[]},a={};const{onlineConfig:n,hashVariables:s}=e;try{return n[t(134)]?(n.activateMockCalls?n[t(133)][t(149)]?o=n[t(133)][t(149)]():o.errorMessage=r[t(139)]:a=yield(0,fetch_1.default)(getAllQRCodeUrl_1[t(166)],{hashVariables:s},constants_1[t(166)].graphQlCommandNames.getAllQRCodeUrls,{accountEmail:e[t(140)],origin:n[t(144)],apiKey:e.apiKey},r[t(168)]),Object[t(175)](a)[t(147)](e=>{(0,mapper_1[t(190)])(o,a,e)}),Promise[t(158)](o)):(o[t(179)]=r[t(172)],Promise[t(158)](o))}catch(a){return(0,fetch_1[t(166)])(logError_1[t(166)],{errorDetails:{userName:"",email:n[t(140)],app:constants_1.default[t(156)],env:JSON.stringify(config_1.default),error:JSON[t(143)](a),argumentsPassedIn:JSON.stringify(n),codeLocation:r[t(177)],appCode:constants_1[t(166)].appCode}},constants_1.default[t(138)][t(150)],{accountEmail:e.accountEmail,apiKey:e.apiKey,origin:n[t(144)],appName:r[t(168)]},t(165)),o[t(179)]=t(176),Promise[t(158)](o)}});exports[a33_0x39d046(149)]=getAllQRCodeUrlsAsync;const redeemDiscountCodeAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const t=a33_0x39d046,r={RwONq:t(160),KePXZ:t(174),MwRXB:t(135),uyZng:t(188),HeccJ:t(176)};let o={isSuccess:!1,errorMessage:"",errorCode:"",discountTokenHasBeenRedeemed:!1},a={};const{onlineConfig:n,hashVariables:s}=e;try{return n.apiKey?(n[t(145)]?n[t(133)].redeemDiscountCodeAsync?o=n[t(133)][t(188)]():o.errorMessage=r[t(163)]:a=yield(0,fetch_1[t(166)])(redeemDiscountCode_1[t(166)],{discountToken:"",discountCode:"",customerUserName:"",discountInputType:r[t(171)],hashVariables:s,discountedAmount:0},constants_1[t(166)][t(138)][t(181)],{accountEmail:e.accountEmail,origin:n[t(144)],apiKey:e[t(134)]},t(165)),Object.keys(a)[t(147)](e=>{(0,mapper_1[t(190)])(o,a,e)}),Promise[t(158)](o)):(o.errorMessage=r.MwRXB,Promise[t(158)](o))}catch(a){return(0,fetch_1.default)(logError_1[t(166)],{errorDetails:{userName:"",email:n[t(140)],env:JSON[t(143)](config_1[t(166)]),error:JSON[t(143)](a),argumentsPassedIn:JSON.stringify(n),codeLocation:r[t(142)],appCode:constants_1[t(166)][t(141)]}},constants_1.default[t(138)][t(150)],{accountEmail:e[t(140)],origin:n[t(144)],apiKey:e[t(134)]},t(165)),o[t(179)]=r.HeccJ,Promise[t(158)](o)}});function a33_0x119f(){const e=["bUkyi","next","../../constants","KePXZ","IGqAf","13535URSUQG","TOKEN","keys","Unable to process this request at this time, please try again later","eZCCT","lbUZi","errorMessage","9576787WkVogo","redeemDiscountCode","kqePe","../../queries/logError","done","../../queries/redeemDiscountCode","../../utilities/fetch","hJPbn","redeemDiscountCodeAsync","throw","MapToResponseObj","../../utilities/mapper","then","522DQmanQ","8wGMLaf","mockCalls","apiKey","Request Failed, Please make sure you have enter the apiKey","EGfzR","2118081xFpFxx","graphQlCommandNames","NbHSE","accountEmail","appCode","uyZng","stringify","origin","activateMockCalls","__esModule","forEach","1230CBUqik","getAllQRCodeUrlsAsync","logError","12WSCwxp","211443RYjfRs","../../config","__importDefault","value","app","defineProperty","resolve","2FFXkoE","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for redeemDiscountCode","37144lEkuYj","134363WRzadQ","RwONq","neEDB","GoFelixOnlineLibrary","default","5629340xeSiYY"];return(a33_0x119f=function(){return e})()}exports[a33_0x39d046(188)]=redeemDiscountCodeAsync,exports[a33_0x39d046(166)]={getAllQRCodeUrlsAsync:exports[a33_0x39d046(149)],redeemDiscountCodeAsync:exports[a33_0x39d046(188)]};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";function a34_0x3cd1(){const e=["../../constants","20978577OVmagH","__awaiter","qhGnP","CROSf","mockCalls","1761431bsBBjB","__importDefault","QrOmO","accessToken","then","ISoRc","Unable to process this request at this time, please try again later","../..//utilities/mapper","forEach","MapToResponseObj","generateDiscountTokenFromUserAmountAsync","value","../../utilities/fetch","resolve","../../config","next","defineProperty","../../queries/logError","vrhkq","done","10FOdJDO","generateDiscountTokenFromUserAmount","zAcaG","app","6036912HEuBip","Request Failed, Please make sure you have entered all the method arguments and accessToken","origin","throw","go_felix_user_api","../../queries/generateDiscountTokenFromUserAmount","GjmEn","apply","accountEmail","stringify","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for generateDiscountTokenFromUserAmount","4enhBTn","graphQlCommandNames","logError","__esModule","2210885GorqXS","2914912JSPWBi","default","391902TAnDVS","errorMessage","812459PAXjCG","ozuEb","2IdXDeL"];return(a34_0x3cd1=function(){return e})()}const a34_0x265b22=a34_0x1a4b;!function(){const e=a34_0x1a4b,t=a34_0x3cd1();for(;;)try{if(676466===-parseInt(e(537))/1*(-parseInt(e(539))/2)+parseInt(e(535))/3+-parseInt(e(528))/4*(-parseInt(e(532))/5)+parseInt(e(517))/6+parseInt(e(546))/7+parseInt(e(533))/8+parseInt(e(541))/9*(-parseInt(e(513))/10))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var __awaiter=this&&this[a34_0x265b22(542)]||function(e,t,n,r){const o={vrhkq:function(e,t){return e(t)},byrQS:function(e,t){return e(t)},QrOmO:function(e,t){return e(t)},GjmEn:function(e,t){return e(t)},zAcaG:function(e,t){return e instanceof t},ozuEb:function(e,t){return e(t)}};return new(n||(n=Promise))(function(a,s){const c=a34_0x1a4b;function u(e){const t=a34_0x1a4b;try{o[t(511)](m,r.next(e))}catch(e){o.byrQS(s,e)}}function i(e){const t=a34_0x1a4b;try{o[t(548)](m,r[t(520)](e))}catch(e){s(e)}}function m(e){const t=a34_0x1a4b,r={CROSf:function(e,t){return o[a34_0x1a4b(548)](e,t)}};var s;e[t(512)]?o[t(523)](a,e[t(504)]):(s=e[t(504)],o[t(515)](s,n)?s:new n(function(e){r[t(544)](e,s)}))[t(550)](u,i)}o[c(538)](m,(r=r[c(524)](e,t||[]))[c(508)]())})},__importDefault=this&&this[a34_0x265b22(547)]||function(e){return e&&e[a34_0x265b22(531)]?e:{default:e}};Object[a34_0x265b22(509)](exports,a34_0x265b22(531),{value:!0}),exports[a34_0x265b22(503)]=void 0;const mapper_1=require(a34_0x265b22(500)),logError_1=__importDefault(require(a34_0x265b22(510))),fetch_1=__importDefault(require(a34_0x265b22(505))),generateDiscountTokenFromUserAmount_1=__importDefault(require(a34_0x265b22(522))),constants_1=__importDefault(require(a34_0x265b22(540))),config_1=__importDefault(require(a34_0x265b22(507))),generateDiscountTokenFromUserAmountAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const t=a34_0x265b22,n={ISoRc:function(e,t){return e&&t},kzlmF:t(527),qhGnP:t(521),YoENK:"gofelix, service: generateDiscountTokenFromUserAmountAsync",Ycrym:t(499)},r={isSuccess:!1,errorMessage:"",errorCode:"",discountGenerated:!1,discount:null};let o={};const{adjustedAmount:a,companyName:s,userConfig:c,branchName:u}=e;try{return n[t(551)](a,c)&&s?(c.activateMockCalls?c[t(545)].generateDiscountTokenFromUserAmountAsync?o=c[t(545)].generateDiscountTokenFromUserAmountAsync():r[t(536)]=n.kzlmF:o=yield(0,fetch_1[t(534)])(generateDiscountTokenFromUserAmount_1.default,{adjustedAmount:a,companyName:s,branchName:u},constants_1[t(534)][t(529)][t(514)],{accountEmail:c[t(525)],token:e.accessToken,origin:c[t(519)]},n[t(543)]),Object.keys(o)[t(501)](e=>{(0,mapper_1[t(502)])(r,o,e)}),Promise[t(506)](r)):(r[t(536)]=t(518),Promise[t(506)](r))}catch(o){return(0,fetch_1[t(534)])(logError_1[t(534)],{errorDetails:{userName:"",email:c[t(525)],app:constants_1[t(534)][t(516)],env:JSON[t(526)](config_1.default),error:JSON[t(526)](o),argumentsPassedIn:JSON.stringify(e),codeLocation:n.YoENK,appCode:constants_1[t(534)].appCode}},constants_1[t(534)][t(529)][t(530)],{accountEmail:c.accountEmail,origin:c[t(519)],token:e[t(549)]},n[t(543)]),r[t(536)]=n.Ycrym,Promise[t(506)](r)}});function a34_0x1a4b(e,t){e-=499;return a34_0x3cd1()[e]}exports[a34_0x265b22(503)]=generateDiscountTokenFromUserAmountAsync,exports.default={generateDiscountTokenFromUserAmountAsync:exports[a34_0x265b22(503)]};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";function a35_0x1ccf(){const e=["gsjbC","resolve","defineProperty","242dUtZFI","__esModule","removePendingFeedbackLinkAsync","3693976yJImil","addPendingFeedBackForm","../../utilities/mapper","value","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for addPendingFeedBackForm","gofelix, service: addPendingFeedBackFormAsync","__awaiter","qCWGr","XeEXX","../../constants","oMrrY","addPendingFeedBackFormAsync","23378XaZVyW","default","CIzLA","forEach","next","JAXoy","errorMessage","../../config","mRZif","MapToResponseObj","1818150ZDYHbN","apply","go_felix_user_api","appCode","../../queries/addPendingFeedBackForm","activateMockCalls","keys","xoppO","154wnwgVV","Unable to process this request at this time, please try again later","accessToken","logError","6XzvnzF","Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for removePendingFeedbackLink","../../queries/removePendingFeedbackLink","6939270RzvmRv","__importDefault","Request Failed, Please make sure you have entered all the method arguments and accessToken","vLVbn","stringify","mockCalls","app","JUsgh","570456PYgeFl","ZtIGs","accountEmail","344504eRCEWx","../../utilities/fetch","987760ntkpkm","QxKwy","origin","38RIuTRc","throw","graphQlCommandNames"];return(a35_0x1ccf=function(){return e})()}const a35_0x4332f2=a35_0x4dd7;!function(){const e=a35_0x4dd7,n=a35_0x1ccf();for(;;)try{if(808274===-parseInt(e(415))/1*(parseInt(e(436))/2)+parseInt(e(407))/3+-parseInt(e(424))/4+parseInt(e(446))/5*(-parseInt(e(458))/6)+-parseInt(e(454))/7*(-parseInt(e(410))/8)+-parseInt(e(461))/9+parseInt(e(412))/10*(parseInt(e(421))/11))break;n.push(n.shift())}catch(e){n.push(n.shift())}}();var __awaiter=this&&this[a35_0x4332f2(430)]||function(e,n,a,r){const t={QxKwy:function(e,n){return e(n)},mRZif:function(e,n){return e(n)}};return new(a||(a=Promise))(function(o,s){const i=a35_0x4dd7,c={ZtIGs:function(e,n){return t[a35_0x4dd7(413)](e,n)}};function d(e){const n=a35_0x4dd7;try{c[n(408)](_,r[n(440)](e))}catch(e){c[n(408)](s,e)}}function u(e){const n=a35_0x4dd7;try{c.ZtIGs(_,r[n(416)](e))}catch(e){s(e)}}function _(e){const n=a35_0x4dd7;var r;e.done?o(e[n(427)]):(r=e[n(427)],r instanceof a?r:new a(function(e){e(r)})).then(d,u)}t[i(444)](_,(r=r[i(447)](e,n||[]))[i(440)]())})},__importDefault=this&&this[a35_0x4332f2(400)]||function(e){return e&&e[a35_0x4332f2(422)]?e:{default:e}};function a35_0x4dd7(e,n){e-=400;return a35_0x1ccf()[e]}Object[a35_0x4332f2(420)](exports,"__esModule",{value:!0}),exports[a35_0x4332f2(435)]=exports[a35_0x4332f2(423)]=void 0;const mapper_1=require(a35_0x4332f2(426)),logError_1=__importDefault(require("../../queries/logError")),fetch_1=__importDefault(require(a35_0x4332f2(411))),removePendingFeedbackLink_1=__importDefault(require(a35_0x4332f2(460))),addPendingFeedBackForm_1=__importDefault(require(a35_0x4332f2(450))),constants_1=__importDefault(require(a35_0x4332f2(433))),config_1=__importDefault(require(a35_0x4332f2(443))),removePendingFeedbackLinkAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const n=a35_0x4332f2,a={AvmcR:function(e,n){return e&&n},xoppO:n(459),vLVbn:"go_felix_user_api",XeEXX:n(401),TUuBJ:"gofelix, service: removePendingFeedbackLinkAsync",JAXoy:n(455)},r={isSuccess:!1,errorMessage:"",errorCode:"",pendingFeedbackRemoved:!1};let t={};const{advertId:o,userConfig:s,accessToken:i}=e;try{return a.AvmcR(o,s)?(s[n(451)]?s[n(404)][n(423)]?t=s.mockCalls.removePendingFeedbackLinkAsync():r[n(442)]=a[n(453)]:t=yield(0,fetch_1[n(437)])(removePendingFeedbackLink_1[n(437)],{advertId:o},constants_1[n(437)][n(417)].removePendingFeedbackLink,{accountEmail:s[n(409)],origin:s[n(414)],token:e[n(456)]},a.vLVbn),Object[n(452)](t).forEach(e=>{(0,mapper_1.MapToResponseObj)(r,t,e)}),Promise[n(419)](r)):(r.errorMessage=a[n(432)],Promise[n(419)](r))}catch(t){return(0,fetch_1[n(437)])(logError_1[n(437)],{errorDetails:{userName:"",email:s.accountEmail,app:constants_1[n(437)].app,env:JSON[n(403)](config_1.default),error:JSON[n(403)](t),argumentsPassedIn:JSON.stringify(e),codeLocation:a.TUuBJ,appCode:constants_1[n(437)][n(449)]}},constants_1[n(437)].graphQlCommandNames[n(457)],{accountEmail:s[n(409)],origin:s[n(414)],token:e.accessToken},a[n(402)]),r[n(442)]=a[n(441)],Promise.resolve(r)}});exports[a35_0x4332f2(423)]=removePendingFeedbackLinkAsync;const addPendingFeedBackFormAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const n=a35_0x4332f2,a={JUsgh:n(428),oMrrY:n(448),gsjbC:n(401),qCWGr:n(429),CIzLA:n(455)},r={isSuccess:!1,errorMessage:"",errorCode:"",pendingFeedbackAdded:!1,pendingFeedbackLink:null};let t={};const{advertId:o,companyName:s,userConfig:i,accessToken:c}=e;try{return s&&i&&o?(i[n(451)]?i[n(404)][n(435)]?t=i[n(404)].addPendingFeedBackFormAsync():r[n(442)]=a[n(406)]:t=yield(0,fetch_1[n(437)])(addPendingFeedBackForm_1[n(437)],{advertId:o,companyName:s},constants_1[n(437)].graphQlCommandNames[n(425)],{accountEmail:i[n(409)],origin:i[n(414)],token:e[n(456)]},a.oMrrY),Object.keys(t)[n(439)](e=>{(0,mapper_1[n(445)])(r,t,e)}),Promise[n(419)](r)):(r[n(442)]=a[n(418)],Promise[n(419)](r))}catch(t){return(0,fetch_1.default)(logError_1[n(437)],{errorDetails:{userName:"",email:i[n(409)],app:constants_1[n(437)][n(405)],env:JSON.stringify(config_1[n(437)]),error:JSON[n(403)](t),argumentsPassedIn:JSON[n(403)](e),codeLocation:a[n(431)],appCode:constants_1.default[n(449)]}},constants_1[n(437)][n(417)][n(457)],{accountEmail:i[n(409)],origin:i[n(414)],token:e[n(456)]},a[n(434)]),r[n(442)]=a[n(438)],Promise[n(419)](r)}});exports[a35_0x4332f2(435)]=addPendingFeedBackFormAsync,exports[a35_0x4332f2(437)]={removePendingFeedbackLinkAsync:exports[a35_0x4332f2(423)],addPendingFeedBackFormAsync:exports[a35_0x4332f2(435)]};
|