65ec994110b15faea8188f3da7ee2fe2e7340e23
[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 _0x6cde=['Exec\x20gs','../../../../config/logger','fax','bluebird','exec','execute','info'];(function(_0x35dbc3,_0x3a8178){var _0x7967d4=function(_0x574e66){while(--_0x574e66){_0x35dbc3['push'](_0x35dbc3['shift']());}};_0x7967d4(++_0x3a8178);}(_0x6cde,0x190));var _0xe6cd=function(_0x2cf646,_0x1c2463){_0x2cf646=_0x2cf646-0x0;var _0x27f8d9=_0x6cde[_0x2cf646];return _0x27f8d9;};'use strict';var util=require('util');var logger=require(_0xe6cd('0x0'))(_0xe6cd('0x1'));var BPromise=require(_0xe6cd('0x2'));var exec=require('child_process')[_0xe6cd('0x3')];exports[_0xe6cd('0x4')]=function(_0x2365b5){return new BPromise(function(_0x652064,_0x2b6a6c){exec(_0x2365b5,function(_0x380ea2,_0x3f764b,_0x37ee66){logger[_0xe6cd('0x5')](_0xe6cd('0x6'),_0x3f764b);if(_0x380ea2){logger[_0xe6cd('0x5')]('Exec\x20gs','\x20Error\x20:',util['inspect'](_0x380ea2,{'showHidden':![],'depth':null}),_0x3f764b,_0x37ee66);_0x2b6a6c(_0x380ea2);}_0x652064(_0x3f764b);});});};