Built motion from commit 14588770.|2.5.38
[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 _0xfc37=['execute','Exec\x20gs','info','fax','child_process','exec'];(function(_0x42ab91,_0x2a0179){var _0x259d35=function(_0x2d48bf){while(--_0x2d48bf){_0x42ab91['push'](_0x42ab91['shift']());}};_0x259d35(++_0x2a0179);}(_0xfc37,0xc3));var _0x7fc3=function(_0x5b0f92,_0x178113){_0x5b0f92=_0x5b0f92-0x0;var _0x40abbc=_0xfc37[_0x5b0f92];return _0x40abbc;};'use strict';var util=require('util');var logger=require('../../../../config/logger')(_0x7fc3('0x0'));var BPromise=require('bluebird');var exec=require(_0x7fc3('0x1'))[_0x7fc3('0x2')];exports[_0x7fc3('0x3')]=function(_0x43761d){return new BPromise(function(_0x16eedb,_0x555a14){exec(_0x43761d,function(_0x530028,_0x2b1a5f,_0x42ee7b){logger['info'](_0x7fc3('0x4'),_0x2b1a5f);if(_0x530028){logger[_0x7fc3('0x5')](_0x7fc3('0x4'),'\x20Error\x20:',util['inspect'](_0x530028,{'showHidden':![],'depth':null}),_0x2b1a5f,_0x42ee7b);_0x555a14(_0x530028);}_0x16eedb(_0x2b1a5f);});});};