Built motion from commit (unavailable).|2.3.6
[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 _0x3490=['execute','info','Exec\x20gs','fax'];(function(_0x1ea384,_0x3847ca){var _0x49c296=function(_0x545e94){while(--_0x545e94){_0x1ea384['push'](_0x1ea384['shift']());}};_0x49c296(++_0x3847ca);}(_0x3490,0x15f));var _0x0349=function(_0x2ebcaa,_0x2d336f){_0x2ebcaa=_0x2ebcaa-0x0;var _0x20939b=_0x3490[_0x2ebcaa];return _0x20939b;};'use strict';var util=require('util');var logger=require('../../../../config/logger')(_0x0349('0x0'));var BPromise=require('bluebird');var exec=require('child_process')['exec'];exports[_0x0349('0x1')]=function(_0xc5c1a7){return new BPromise(function(_0x5cce78,_0x3c244f){exec(_0xc5c1a7,function(_0x516a84,_0x5c5719,_0x318fb2){logger[_0x0349('0x2')](_0x0349('0x3'),_0x5c5719);if(_0x516a84){logger['info'](_0x0349('0x3'),'\x20Error\x20:',util['inspect'](_0x516a84,{'showHidden':![],'depth':null}),_0x5c5719,_0x318fb2);_0x3c244f(_0x516a84);}_0x5cce78(_0x5c5719);});});};