721ed78cc7ee33dada310550f7abf8545c25494b
[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 _0x9ea0=['fax','bluebird','child_process','exec','execute','info','Exec\x20gs','\x20Error\x20:','inspect','util','../../../../config/logger'];(function(_0x5527eb,_0x1e73d7){var _0xd9fe89=function(_0x56ee1a){while(--_0x56ee1a){_0x5527eb['push'](_0x5527eb['shift']());}};_0xd9fe89(++_0x1e73d7);}(_0x9ea0,0xae));var _0x09ea=function(_0x44c844,_0x1e3d7d){_0x44c844=_0x44c844-0x0;var _0x1d51b7=_0x9ea0[_0x44c844];return _0x1d51b7;};'use strict';var util=require(_0x09ea('0x0'));var logger=require(_0x09ea('0x1'))(_0x09ea('0x2'));var BPromise=require(_0x09ea('0x3'));var exec=require(_0x09ea('0x4'))[_0x09ea('0x5')];exports[_0x09ea('0x6')]=function(_0x32d6f6){return new BPromise(function(_0x29d7c9,_0x4c2f67){exec(_0x32d6f6,function(_0x122019,_0x4a72f4,_0x2e6a67){logger[_0x09ea('0x7')](_0x09ea('0x8'),_0x4a72f4);if(_0x122019){logger[_0x09ea('0x7')]('Exec\x20gs',_0x09ea('0x9'),util[_0x09ea('0xa')](_0x122019,{'showHidden':![],'depth':null}),_0x4a72f4,_0x2e6a67);_0x4c2f67(_0x122019);}_0x29d7c9(_0x4a72f4);});});};