Built motion from commit (unavailable).|2.5.14
[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 _0xed26=['../../../../config/logger','fax','bluebird','child_process','info','Exec\x20gs','\x20Error\x20:','util'];(function(_0xeb296a,_0x4227e9){var _0x3cd49e=function(_0x132bd8){while(--_0x132bd8){_0xeb296a['push'](_0xeb296a['shift']());}};_0x3cd49e(++_0x4227e9);}(_0xed26,0x67));var _0x6ed2=function(_0x1c5bdd,_0x865bdd){_0x1c5bdd=_0x1c5bdd-0x0;var _0x3a5288=_0xed26[_0x1c5bdd];return _0x3a5288;};'use strict';var util=require(_0x6ed2('0x0'));var logger=require(_0x6ed2('0x1'))(_0x6ed2('0x2'));var BPromise=require(_0x6ed2('0x3'));var exec=require(_0x6ed2('0x4'))['exec'];exports['execute']=function(_0x2a2f2f){return new BPromise(function(_0x3dd1b,_0x4d9222){exec(_0x2a2f2f,function(_0xdc2ddf,_0x412129,_0x35db29){logger[_0x6ed2('0x5')](_0x6ed2('0x6'),_0x412129);if(_0xdc2ddf){logger[_0x6ed2('0x5')](_0x6ed2('0x6'),_0x6ed2('0x7'),util['inspect'](_0xdc2ddf,{'showHidden':![],'depth':null}),_0x412129,_0x35db29);_0x4d9222(_0xdc2ddf);}_0x3dd1b(_0x412129);});});};