Built motion from commit a61a4a20.|2.5.46
[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 _0xaaf9=['../../../../config/logger','bluebird','exec','execute','info','Exec\x20gs','\x20Error\x20:','inspect','util'];(function(_0x417383,_0x1d8a41){var _0x3ed230=function(_0x1d2383){while(--_0x1d2383){_0x417383['push'](_0x417383['shift']());}};_0x3ed230(++_0x1d8a41);}(_0xaaf9,0x116));var _0x9aaf=function(_0x55d2ed,_0x4c35ed){_0x55d2ed=_0x55d2ed-0x0;var _0xc42e98=_0xaaf9[_0x55d2ed];return _0xc42e98;};'use strict';var util=require(_0x9aaf('0x0'));var logger=require(_0x9aaf('0x1'))('fax');var BPromise=require(_0x9aaf('0x2'));var exec=require('child_process')[_0x9aaf('0x3')];exports[_0x9aaf('0x4')]=function(_0x9808f3){return new BPromise(function(_0x3fa39c,_0x8cb2b2){exec(_0x9808f3,function(_0x9b125d,_0x10e631,_0x337ecd){logger[_0x9aaf('0x5')](_0x9aaf('0x6'),_0x10e631);if(_0x9b125d){logger[_0x9aaf('0x5')](_0x9aaf('0x6'),_0x9aaf('0x7'),util[_0x9aaf('0x8')](_0x9b125d,{'showHidden':![],'depth':null}),_0x10e631,_0x337ecd);_0x8cb2b2(_0x9b125d);}_0x3fa39c(_0x10e631);});});};