3f90e97212762f49f0a1852af2c1f9d2bfcaa3b0
[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 _0x37ca=['bluebird','execute','info','Exec\x20gs','inspect','util','../../../../config/logger','fax'];(function(_0x21bf68,_0x267674){var _0x5d6bb2=function(_0x2bed76){while(--_0x2bed76){_0x21bf68['push'](_0x21bf68['shift']());}};_0x5d6bb2(++_0x267674);}(_0x37ca,0x185));var _0xa37c=function(_0xeb2efc,_0x26190c){_0xeb2efc=_0xeb2efc-0x0;var _0x4eb76a=_0x37ca[_0xeb2efc];return _0x4eb76a;};'use strict';var util=require(_0xa37c('0x0'));var logger=require(_0xa37c('0x1'))(_0xa37c('0x2'));var BPromise=require(_0xa37c('0x3'));var exec=require('child_process')['exec'];exports[_0xa37c('0x4')]=function(_0x4c8bbd){return new BPromise(function(_0x314886,_0x36d4b4){exec(_0x4c8bbd,function(_0x28554e,_0x4e0313,_0x407b4c){logger[_0xa37c('0x5')](_0xa37c('0x6'),_0x4e0313);if(_0x28554e){logger[_0xa37c('0x5')](_0xa37c('0x6'),'\x20Error\x20:',util[_0xa37c('0x7')](_0x28554e,{'showHidden':![],'depth':null}),_0x4e0313,_0x407b4c);_0x36d4b4(_0x28554e);}_0x314886(_0x4e0313);});});};