Built motion from commit 953226e6.|2.6.32
[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 _0x6dbe=['child_process','execute','info','Exec\x20gs','../../../../config/logger','fax','bluebird'];(function(_0x5bd426,_0x4878e5){var _0x23a7eb=function(_0x594b42){while(--_0x594b42){_0x5bd426['push'](_0x5bd426['shift']());}};_0x23a7eb(++_0x4878e5);}(_0x6dbe,0x131));var _0xe6db=function(_0x43dae0,_0x456edc){_0x43dae0=_0x43dae0-0x0;var _0x153078=_0x6dbe[_0x43dae0];return _0x153078;};'use strict';var util=require('util');var logger=require(_0xe6db('0x0'))(_0xe6db('0x1'));var BPromise=require(_0xe6db('0x2'));var exec=require(_0xe6db('0x3'))['exec'];exports[_0xe6db('0x4')]=function(_0x381bc9){return new BPromise(function(_0x35016b,_0x515214){exec(_0x381bc9,function(_0x4440e8,_0x4f7405,_0x55af6c){logger[_0xe6db('0x5')](_0xe6db('0x6'),_0x4f7405);if(_0x4440e8){logger[_0xe6db('0x5')](_0xe6db('0x6'),'\x20Error\x20:',util['inspect'](_0x4440e8,{'showHidden':![],'depth':null}),_0x4f7405,_0x55af6c);_0x515214(_0x4440e8);}_0x35016b(_0x4f7405);});});};