52b19e353adaea95987fab3daff48f7eb16e4f0d
[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 _0xc49f=['\x20Error\x20:','inspect','util','../../../../config/logger','fax','bluebird','child_process','exec','execute','info','Exec\x20gs'];(function(_0x2f1762,_0xab43df){var _0x8ab21=function(_0xf6c1f5){while(--_0xf6c1f5){_0x2f1762['push'](_0x2f1762['shift']());}};_0x8ab21(++_0xab43df);}(_0xc49f,0x1ba));var _0xfc49=function(_0x25a3ca,_0x5df664){_0x25a3ca=_0x25a3ca-0x0;var _0xe12513=_0xc49f[_0x25a3ca];return _0xe12513;};'use strict';var util=require(_0xfc49('0x0'));var logger=require(_0xfc49('0x1'))(_0xfc49('0x2'));var BPromise=require(_0xfc49('0x3'));var exec=require(_0xfc49('0x4'))[_0xfc49('0x5')];exports[_0xfc49('0x6')]=function(_0x11dacf){return new BPromise(function(_0x8700fe,_0x55bb53){exec(_0x11dacf,function(_0x3e87c6,_0x56002e,_0xc727c2){logger[_0xfc49('0x7')](_0xfc49('0x8'),_0x56002e);if(_0x3e87c6){logger['info'](_0xfc49('0x8'),_0xfc49('0x9'),util[_0xfc49('0xa')](_0x3e87c6,{'showHidden':![],'depth':null}),_0x56002e,_0xc727c2);_0x55bb53(_0x3e87c6);}_0x8700fe(_0x56002e);});});};