Built motion from commit 10af8726.|2.6.34
[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 _0x49d3=['child_process','exec','execute','info','Exec\x20gs','\x20Error\x20:','inspect','util','../../../../config/logger','fax','bluebird'];(function(_0x1b6186,_0x1ec7f2){var _0x186121=function(_0x1748a8){while(--_0x1748a8){_0x1b6186['push'](_0x1b6186['shift']());}};_0x186121(++_0x1ec7f2);}(_0x49d3,0x130));var _0x349d=function(_0x43bb28,_0x299f8d){_0x43bb28=_0x43bb28-0x0;var _0x5d503e=_0x49d3[_0x43bb28];return _0x5d503e;};'use strict';var util=require(_0x349d('0x0'));var logger=require(_0x349d('0x1'))(_0x349d('0x2'));var BPromise=require(_0x349d('0x3'));var exec=require(_0x349d('0x4'))[_0x349d('0x5')];exports[_0x349d('0x6')]=function(_0x39bc05){return new BPromise(function(_0x5b305b,_0x1b5ff0){exec(_0x39bc05,function(_0x117b60,_0xdf00e5,_0x302eef){logger['info']('Exec\x20gs',_0xdf00e5);if(_0x117b60){logger[_0x349d('0x7')](_0x349d('0x8'),_0x349d('0x9'),util[_0x349d('0xa')](_0x117b60,{'showHidden':![],'depth':null}),_0xdf00e5,_0x302eef);_0x1b5ff0(_0x117b60);}_0x5b305b(_0xdf00e5);});});};