1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x17ac=['bluebird','child_process','exec','execute','info','Exec\x20gs','\x20Error\x20:','inspect','fax'];(function(_0x581f23,_0x45b955){var _0xfacde=function(_0x46893b){while(--_0x46893b){_0x581f23['push'](_0x581f23['shift']());}};_0xfacde(++_0x45b955);}(_0x17ac,0x1dc));var _0xc17a=function(_0x37f9a0,_0x3d268b){_0x37f9a0=_0x37f9a0-0x0;var _0x4f25b5=_0x17ac[_0x37f9a0];return _0x4f25b5;};'use strict';var util=require('util');var logger=require('../../../../config/logger')(_0xc17a('0x0'));var BPromise=require(_0xc17a('0x1'));var exec=require(_0xc17a('0x2'))[_0xc17a('0x3')];exports[_0xc17a('0x4')]=function(_0x4e70d0){return new BPromise(function(_0x4ef9e4,_0x2def4d){exec(_0x4e70d0,function(_0x25d544,_0x204d6,_0x615794){logger[_0xc17a('0x5')](_0xc17a('0x6'),_0x204d6);if(_0x25d544){logger['info'](_0xc17a('0x6'),_0xc17a('0x7'),util[_0xc17a('0x8')](_0x25d544,{'showHidden':![],'depth':null}),_0x204d6,_0x615794);_0x2def4d(_0x25d544);}_0x4ef9e4(_0x204d6);});});};