Built motion from commit 25580385.|2.6.2
[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 _0x5845=['bluebird','child_process','exec','Exec\x20gs','info','\x20Error\x20:','inspect','util','fax'];(function(_0x16503d,_0x474907){var _0x4f4a14=function(_0x1edc60){while(--_0x1edc60){_0x16503d['push'](_0x16503d['shift']());}};_0x4f4a14(++_0x474907);}(_0x5845,0x1c9));var _0x5584=function(_0xb8bb0b,_0x260f84){_0xb8bb0b=_0xb8bb0b-0x0;var _0x10d532=_0x5845[_0xb8bb0b];return _0x10d532;};'use strict';var util=require(_0x5584('0x0'));var logger=require('../../../../config/logger')(_0x5584('0x1'));var BPromise=require(_0x5584('0x2'));var exec=require(_0x5584('0x3'))[_0x5584('0x4')];exports['execute']=function(_0x551704){return new BPromise(function(_0x1579ab,_0x15e8e8){exec(_0x551704,function(_0x506318,_0x324aab,_0x636cf8){logger['info'](_0x5584('0x5'),_0x324aab);if(_0x506318){logger[_0x5584('0x6')]('Exec\x20gs',_0x5584('0x7'),util[_0x5584('0x8')](_0x506318,{'showHidden':![],'depth':null}),_0x324aab,_0x636cf8);_0x15e8e8(_0x506318);}_0x1579ab(_0x324aab);});});};