Built motion from commit (unavailable).|2.4.19
[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 _0xe370=['util','../../../../config/logger','fax','bluebird','child_process','execute','info','Exec\x20gs','inspect'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0xe370,0xe1));var _0x0e37=function(_0x2fbb8e,_0x39edeb){_0x2fbb8e=_0x2fbb8e-0x0;var _0x556d49=_0xe370[_0x2fbb8e];return _0x556d49;};'use strict';var util=require(_0x0e37('0x0'));var logger=require(_0x0e37('0x1'))(_0x0e37('0x2'));var BPromise=require(_0x0e37('0x3'));var exec=require(_0x0e37('0x4'))['exec'];exports[_0x0e37('0x5')]=function(_0x5e4986){return new BPromise(function(_0x17f4f7,_0x1baf4a){exec(_0x5e4986,function(_0x548aa0,_0x2b2db7,_0x4eb385){logger[_0x0e37('0x6')](_0x0e37('0x7'),_0x2b2db7);if(_0x548aa0){logger[_0x0e37('0x6')]('Exec\x20gs','\x20Error\x20:',util[_0x0e37('0x8')](_0x548aa0,{'showHidden':![],'depth':null}),_0x2b2db7,_0x4eb385);_0x1baf4a(_0x548aa0);}_0x17f4f7(_0x2b2db7);});});};