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U,EAAgB,GACzC,IAAI,EAAU,CACV,IAAK,KAAK,QAAU,cACpB,QAAS,KAAK,QACd,KAAM,WAAa,KAAK,YAAY,QAAU,UAAY,KAAK,YAAY,MAAQ,YAAc,KAAK,YAAY,QAA5G,yBAAsJ,EAAe,GAAK,UAAY,EAAe,MAAQ,UAAY,EAAe,MAAQ,WAAa,EAAe,OAAS,yBAA2B,EAAe,eAEzU,QAAQ,KAAK,GAAS,CAAC,EAAO,EAAU,KACpC,EAAS,KAAK,MAAM,GAAQ,KAAK,MAAM,GAAM,GAErD,EAEA,KAAK,OAAS,SAAU,EAAgB,GACpC,IAAI,EAAU,CACV,IAAK,KAAK,QAAU,UACpB,QAAS,KAAK,QACd,KAAM,WAAa,KAAK,YAAY,QAAU,UAAY,KAAK,YAAY,MAAQ,YAAc,KAAK,YAAY,QAA5G,qBAAkJ,EAAe,GAAK,UAAY,EAAe,MAAQ,UAAY,EAAe,MAAQ,WAAa,EAAe,OAAS,yBAA2B,EAAe,eAErU,QAAQ,KAAK,GAAS,CAAC,EAAO,EAAU,KACpC,EAAS,KAAK,MAAM,GAAQ,KAAK,MAAM,GAAM,GAErD,EAEA,KAAK,cAAgB,SAAU,EAAI,EAAU,GACzC,OAAO,mBAAkB,CAAC,EAAK,KAC3B,EAAS,EAAK,EAAK,KAAK,GAAI,gBAAgB,GAAW,EAAK,KAAK,GAAI,wBAAyB,EAAK,KAAK,GAAI,QAAQ,GAAW,EAAK,KAAK,GAAI,QAAQ,GAAU,GAEvK,CACJ,CAEA,OAAO,QAAU,CACb,OAAQ","file":"/npm/node-payeer-api@1.0.12/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/node-payeer-api@1.0.12/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var request = require('request');\r\n\r\nfunction Payeer(accountData) {\r\n    this.accountData = accountData;\r\n    this.postURI = 'https://payeer.com/ajax/api/api.php';\r\n    this.headers = {\r\n        'content-type': 'application/x-www-form-urlencoded',\r\n    }\r\n    this.paymentSystems = {\r\n        'Яндекс.Деньги': '57378077',\r\n        'QIWI': '26808',\r\n        'Payeer': '1136053',\r\n        'VISARUB': '117146509',\r\n        'VISAEURUSD': '244385496',\r\n        'MasterCardRUB': '57644634',\r\n        'MasterCardEURUSD': '244773909',\r\n        \r\n    };\r\n    this.authCheck = function (callback) {\r\n        var options = {\r\n            url: this.postURI,\r\n            headers: this.headers,\r\n            body: 'account=' + this.accountData.account + '&apiId=' + this.accountData.apiId + '&apiPass=' + this.accountData.apiPass\r\n        }\r\n        request.post(options, (error, response, body) => {\r\n            callback(JSON.parse(error), JSON.parse(body));\r\n        });\r\n    }\r\n\r\n    this.transfer = function (requestOptions, callback) {\r\n        var options = {\r\n            url: this.postURI + '?transfer',\r\n            headers: this.headers,\r\n            body: 'account=' + this.accountData.account + '&apiId=' + this.accountData.apiId + '&apiPass=' + this.accountData.apiPass + '&action=transfer' + \r\n            '&comment=' + requestOptions.comment + '&sum=' + requestOptions.sum + '&curIn=' + requestOptions.curIn + \r\n            '&curOut=' + requestOptions.curOut + '&to=' + requestOptions.to,\r\n        }\r\n        request.post(options, (error, response, body) => {\r\n            callback(JSON.parse(error), JSON.parse(body));\r\n        });\r\n    }\r\n\r\n    this.getPaymentSystems = function (callback) {\r\n        var options = {\r\n            url: this.postURI + '?getPaySystems',\r\n            headers: this.headers,\r\n            body: 'account=' + this.accountData.account + '&apiId=' + this.accountData.apiId + '&apiPass=' + this.accountData.apiPass + '&action=getPaySystems'\r\n        }\r\n        request.post(options, (error, response, body) => {\r\n            callback(JSON.parse(error), JSON.parse(body));\r\n        });\r\n    }\r\n\r\n    this.payoutCheck = function (requestOptions, callback) {\r\n        var options = {\r\n            url: this.postURI + '?initOutput',\r\n            headers: this.headers,\r\n            body: 'account=' + this.accountData.account + '&apiId=' + this.accountData.apiId + '&apiPass=' + this.accountData.apiPass + '&action=initOutput' + '&ps=' + requestOptions.ps + '&sumIn=' + requestOptions.sumIn + '&curIn=' + requestOptions.curIn + '&curOut=' + requestOptions.curOut + '&param_ACCOUNT_NUMBER=' + requestOptions.accountNumber\r\n        }\r\n        request.post(options, (error, response, body) => {\r\n            callback(JSON.parse(error), JSON.parse(body));\r\n        });\r\n    }\r\n\r\n    this.payout = function (requestOptions, callback) {\r\n        var options = {\r\n            url: this.postURI + '?output',\r\n            headers: this.headers,\r\n            body: 'account=' + this.accountData.account + '&apiId=' + this.accountData.apiId + '&apiPass=' + this.accountData.apiPass + '&action=output' + '&ps=' + requestOptions.ps + '&sumIn=' + requestOptions.sumIn + '&curIn=' + requestOptions.curIn + '&curOut=' + requestOptions.curOut + '&param_ACCOUNT_NUMBER=' + requestOptions.accountNumber\r\n        }\r\n        request.post(options, (error, response, body) => {\r\n            callback(JSON.parse(error), JSON.parse(body));\r\n        });\r\n    }\r\n\r\n    this.getCommission = function (ps, currency, callback) {\r\n        Client.getPaymentSystems((err, data) => {\r\n            callback(err, data.list[ps].gate_commission[currency], data.list[ps].commission_site_percent, data.list[ps].sum_min[currency], data.list[ps].sum_max[currency]);\r\n        });\r\n    }\r\n}\r\n\r\nmodule.exports = {\r\n    Payeer: Payeer\r\n}"]}