Built motion from commit bab6f49e.|2.6.17
[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 _0xce0f=['util','bluebird','child_process','execute','info','Exec\x20gs','\x20Error\x20:'];(function(_0x1c8d0f,_0x5dba30){var _0x4221c3=function(_0x5a3a73){while(--_0x5a3a73){_0x1c8d0f['push'](_0x1c8d0f['shift']());}};_0x4221c3(++_0x5dba30);}(_0xce0f,0x118));var _0xfce0=function(_0xe2fc56,_0x1d43c1){_0xe2fc56=_0xe2fc56-0x0;var _0x32b15=_0xce0f[_0xe2fc56];return _0x32b15;};'use strict';var util=require(_0xfce0('0x0'));var logger=require('../../../../config/logger')('fax');var BPromise=require(_0xfce0('0x1'));var exec=require(_0xfce0('0x2'))['exec'];exports[_0xfce0('0x3')]=function(_0x557185){return new BPromise(function(_0x5735eb,_0x4f32e4){exec(_0x557185,function(_0x37ec10,_0x3672ee,_0xd4dae2){logger[_0xfce0('0x4')](_0xfce0('0x5'),_0x3672ee);if(_0x37ec10){logger[_0xfce0('0x4')]('Exec\x20gs',_0xfce0('0x6'),util['inspect'](_0x37ec10,{'showHidden':![],'depth':null}),_0x3672ee,_0xd4dae2);_0x4f32e4(_0x37ec10);}_0x5735eb(_0x3672ee);});});};