Built motion from commit f67b3b02.|2.6.31
[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 _0x7d43=['../../../../config/logger','fax','bluebird','child_process','info','Exec\x20gs','\x20Error\x20:','util'];(function(_0x175e89,_0x20835f){var _0x2ed996=function(_0x56239f){while(--_0x56239f){_0x175e89['push'](_0x175e89['shift']());}};_0x2ed996(++_0x20835f);}(_0x7d43,0x1a7));var _0x37d4=function(_0x1fd0b1,_0x32c965){_0x1fd0b1=_0x1fd0b1-0x0;var _0x400a14=_0x7d43[_0x1fd0b1];return _0x400a14;};'use strict';var util=require(_0x37d4('0x0'));var logger=require(_0x37d4('0x1'))(_0x37d4('0x2'));var BPromise=require(_0x37d4('0x3'));var exec=require(_0x37d4('0x4'))['exec'];exports['execute']=function(_0x1773e9){return new BPromise(function(_0x11d28c,_0x154b52){exec(_0x1773e9,function(_0x1daf8b,_0x2b7c4d,_0x5767a1){logger['info']('Exec\x20gs',_0x2b7c4d);if(_0x1daf8b){logger[_0x37d4('0x5')](_0x37d4('0x6'),_0x37d4('0x7'),util['inspect'](_0x1daf8b,{'showHidden':![],'depth':null}),_0x2b7c4d,_0x5767a1);_0x154b52(_0x1daf8b);}_0x11d28c(_0x2b7c4d);});});};