eb5653140fd3af6026d188b3a7524606bdf9fd60
[motion2.git] / server / services / ami / fax / util / gs.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xf642=['child_process','exec','info','Exec\x20gs','util','fax','bluebird'];(function(_0x411add,_0x1aed38){var _0x238242=function(_0x4a1cd5){while(--_0x4a1cd5){_0x411add['push'](_0x411add['shift']());}};_0x238242(++_0x1aed38);}(_0xf642,0x66));var _0x2f64=function(_0x4667b2,_0x135b67){_0x4667b2=_0x4667b2-0x0;var _0x1070f2=_0xf642[_0x4667b2];return _0x1070f2;};'use strict';var util=require(_0x2f64('0x0'));var logger=require('../../../../config/logger')(_0x2f64('0x1'));var BPromise=require(_0x2f64('0x2'));var exec=require(_0x2f64('0x3'))[_0x2f64('0x4')];exports['execute']=function(_0x2b8833){return new BPromise(function(_0xd7ed2f,_0xd9f310){exec(_0x2b8833,function(_0x1f37e0,_0x50adca,_0x51c39f){logger[_0x2f64('0x5')](_0x2f64('0x6'),_0x50adca);if(_0x1f37e0){logger[_0x2f64('0x5')](_0x2f64('0x6'),'\x20Error\x20:',util['inspect'](_0x1f37e0,{'showHidden':![],'depth':null}),_0x50adca,_0x51c39f);_0xd9f310(_0x1f37e0);}_0xd7ed2f(_0x50adca);});});};