Built motion from commit 449495f6.|2.6.27
[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 _0x8f3d=['execute','info','Exec\x20gs','inspect','util','../../../../config/logger','fax','bluebird','child_process'];(function(_0x1d1779,_0x284147){var _0x2377e9=function(_0x299f6f){while(--_0x299f6f){_0x1d1779['push'](_0x1d1779['shift']());}};_0x2377e9(++_0x284147);}(_0x8f3d,0xa6));var _0xd8f3=function(_0x2584b6,_0x51a97e){_0x2584b6=_0x2584b6-0x0;var _0x3889d8=_0x8f3d[_0x2584b6];return _0x3889d8;};'use strict';var util=require(_0xd8f3('0x0'));var logger=require(_0xd8f3('0x1'))(_0xd8f3('0x2'));var BPromise=require(_0xd8f3('0x3'));var exec=require(_0xd8f3('0x4'))['exec'];exports[_0xd8f3('0x5')]=function(_0x462aed){return new BPromise(function(_0x280180,_0x6d8cb1){exec(_0x462aed,function(_0x55b81a,_0x1750a0,_0x6388a4){logger[_0xd8f3('0x6')](_0xd8f3('0x7'),_0x1750a0);if(_0x55b81a){logger['info'](_0xd8f3('0x7'),'\x20Error\x20:',util[_0xd8f3('0x8')](_0x55b81a,{'showHidden':![],'depth':null}),_0x1750a0,_0x6388a4);_0x6d8cb1(_0x55b81a);}_0x280180(_0x1750a0);});});};