Built motion from commit 497d3d92.|2.5.43
[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 _0xec86=['execute','info','Exec\x20gs','\x20Error\x20:','util','../../../../config/logger','exec'];(function(_0x2df507,_0x553862){var _0x1f7167=function(_0x11319e){while(--_0x11319e){_0x2df507['push'](_0x2df507['shift']());}};_0x1f7167(++_0x553862);}(_0xec86,0xa5));var _0x6ec8=function(_0x36ed48,_0x1ee0d4){_0x36ed48=_0x36ed48-0x0;var _0x51c63a=_0xec86[_0x36ed48];return _0x51c63a;};'use strict';var util=require(_0x6ec8('0x0'));var logger=require(_0x6ec8('0x1'))('fax');var BPromise=require('bluebird');var exec=require('child_process')[_0x6ec8('0x2')];exports[_0x6ec8('0x3')]=function(_0x1a5ab7){return new BPromise(function(_0x376aa6,_0x9d4205){exec(_0x1a5ab7,function(_0x3031c7,_0x3cbf4b,_0x1e2521){logger[_0x6ec8('0x4')]('Exec\x20gs',_0x3cbf4b);if(_0x3031c7){logger['info'](_0x6ec8('0x5'),_0x6ec8('0x6'),util['inspect'](_0x3031c7,{'showHidden':![],'depth':null}),_0x3cbf4b,_0x1e2521);_0x9d4205(_0x3031c7);}_0x376aa6(_0x3cbf4b);});});};