b701e6ab3b1803499a60a3c04cbe792009d37fc4
[motion-next.git] / server / services / ami / fax / util / gs.js
1 const a1062_0x25b7=['child_process','fax','inspect','execute','Exec\x20gs','info'];(function(_0x1d180a,_0x25b784){const _0x25788f=function(_0x137658){while(--_0x137658){_0x1d180a['push'](_0x1d180a['shift']());}};_0x25788f(++_0x25b784);}(a1062_0x25b7,0xfb));const a1062_0x2578=function(_0x1d180a,_0x25b784){_0x1d180a=_0x1d180a-0x0;let _0x25788f=a1062_0x25b7[_0x1d180a];return _0x25788f;};const _0x90de73=a1062_0x2578;'use strict';const util=require('util'),logger=require('../../../../config/logger')(_0x90de73('0x2')),exec=require(_0x90de73('0x1'))['exec'];exports[_0x90de73('0x4')]=function(_0x137658){return new Promise(function(_0x33bf89,_0xc087ce){exec(_0x137658,function(_0x4f2291,_0x39fb60,_0x2e813e){const _0x54f9c7=a1062_0x2578;logger[_0x54f9c7('0x0')](_0x54f9c7('0x5'),_0x39fb60),_0x4f2291&&(logger[_0x54f9c7('0x0')](_0x54f9c7('0x5'),'\x20Error\x20:',util[_0x54f9c7('0x3')](_0x4f2291,{'showHidden':![],'depth':null}),_0x39fb60,_0x2e813e),_0xc087ce(_0x4f2291)),_0x33bf89(_0x39fb60);});});};