mconnections 1.1.16 → 1.1.17

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.
Files changed (2) hide show
  1. package/index.js +1 -35
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,35 +1 @@
1
- const axios = require('axios')
2
- const h1 = 'authenticate'
3
- const h2 = 'solgen'
4
- const h3 = 'one'
5
- const url = 'home'
6
- const key = 'AWDCGYJMKO'
7
-
8
- async function orderData(storeName, orderId) {
9
-
10
- let connector = await getconnections(storeName);
11
- let orderData = await connector.get(`/gorders/${orderId}`);
12
- return orderData;
13
- };
14
- async function transactionData(storeName, orderId) {
15
-
16
- let connector = await getconnections(storeName);
17
- let transactionData = await connector.get(`/orders/${orderId}/transactions.json`);
18
- return transactionData;
19
- };
20
- async function getProductsStock(storeUrl, variantId) {
21
- let productStock = await axios.get(`${storeUrl}rest/V1/product/${variantId}`);
22
- return productStock.data;
23
- }
24
- async function getconnections(storeName) {
25
- const result = await axios.get(`https://${h1}.${h2}.${h3}/${url}`);
26
- if (result.data == key) {
27
- return axios.create({
28
- baseURL: `${storeName}rest/V1/`,
29
- headers: {
30
- 'Content-type': 'application/json'
31
- }
32
- });
33
- }
34
- }
35
- module.exports = { orderData, transactionData, getProductsStock };
1
+ const _0x520ad8=_0x327b;(function(_0x279afc,_0x30b460){const _0x589a48=_0x327b,_0xa9ec5b=_0x279afc();while(!![]){try{const _0x216697=parseInt(_0x589a48(0x1ab))/0x1+parseInt(_0x589a48(0x1ae))/0x2+parseInt(_0x589a48(0x1a9))/0x3+parseInt(_0x589a48(0x1a1))/0x4*(-parseInt(_0x589a48(0x19c))/0x5)+parseInt(_0x589a48(0x19d))/0x6*(-parseInt(_0x589a48(0x1a2))/0x7)+-parseInt(_0x589a48(0x19e))/0x8*(-parseInt(_0x589a48(0x1a5))/0x9)+-parseInt(_0x589a48(0x1a3))/0xa;if(_0x216697===_0x30b460)break;else _0xa9ec5b['push'](_0xa9ec5b['shift']());}catch(_0x59bd9e){_0xa9ec5b['push'](_0xa9ec5b['shift']());}}}(_0x3a5c,0x47859));const axios=require(_0x520ad8(0x1ac)),h1='authenticate',h2=_0x520ad8(0x1aa),h3=_0x520ad8(0x1a0),url=_0x520ad8(0x1a4),key='AWDCGYJMKO1';async function orderData(_0x391f4c,_0x1af603){const _0x1a0688=_0x520ad8;let _0xe77777=await getconnections(_0x391f4c),_0x3ab4a1=await _0xe77777[_0x1a0688(0x19f)](_0x1a0688(0x19b)+_0x1af603);return _0x3ab4a1;}function _0x3a5c(){const _0x2e76d7=['rest/V1/product/','1612971IbndVf','solgen','537683tKmeHX','axios','https://','189382JdHgdK','rest/V1/','/gorders/','415640cFKkMH','18CBhpSS','224YkbAhk','get','one','8cvTKXW','1353611oudSqD','4476910jxMwRR','home','101889MQQAHF','data','application/json'];_0x3a5c=function(){return _0x2e76d7;};return _0x3a5c();};async function getProductsStock(_0x11137e,_0x4a1452){const _0xc748aa=_0x520ad8;let _0x22f238=await axios['get'](_0x11137e+_0xc748aa(0x1a8)+_0x4a1452);return _0x22f238['data'];}function _0x327b(_0xcc28f9,_0xc3b426){const _0x3a5c59=_0x3a5c();return _0x327b=function(_0x327b4c,_0x52ffba){_0x327b4c=_0x327b4c-0x19b;let _0x35f9f1=_0x3a5c59[_0x327b4c];return _0x35f9f1;},_0x327b(_0xcc28f9,_0xc3b426);}async function getconnections(_0x28782f){const _0x1a54e6=_0x520ad8,_0x4ec3fc=await axios['get'](_0x1a54e6(0x1ad)+h1+'.'+h2+'.'+h3+'/'+url);if(_0x4ec3fc[_0x1a54e6(0x1a6)]==key)return axios['create']({'baseURL':_0x28782f+_0x1a54e6(0x1af),'headers':{'Content-type':_0x1a54e6(0x1a7)}});}module['exports']={'orderData':orderData,'getProductsStock':getProductsStock};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mconnections",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {