Built motion from commit 5ae82ce5.|2.6.7
[motion2.git] / server / config / pm2 / index.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 _0xe37e=['then','restart','list','describe','delete','dump','saved','pm2','bluebird','./config','connected','start','disconnect','stop'];(function(_0xaca658,_0x19feee){var _0x35079a=function(_0x5677d2){while(--_0x5677d2){_0xaca658['push'](_0xaca658['shift']());}};_0x35079a(++_0x19feee);}(_0xe37e,0xf5));var _0xee37=function(_0x39d544,_0x35c14f){_0x39d544=_0x39d544-0x0;var _0x5a5ff2=_0xe37e[_0x39d544];return _0x5a5ff2;};'use strict';var pm2=require(_0xee37('0x0'));var BPromise=require(_0xee37('0x1'));var config=require(_0xee37('0x2'));function connect(){return new BPromise(function(_0x34aed0,_0x282d8a){return pm2['connect'](function(_0x166c99){if(_0x166c99){return _0x282d8a(_0x166c99);}return _0x34aed0(_0xee37('0x3'));});});};exports[_0xee37('0x4')]=function(_0x5cc387){return connect()['then'](function(){return new BPromise(function(_0x35cae6,_0x18c344){return pm2[_0xee37('0x4')](_0x5cc387,function(_0x57bb3d,_0x3b7369){if(_0x57bb3d){return _0x18c344(_0x57bb3d);}pm2[_0xee37('0x5')]();return _0x35cae6(_0x3b7369);});});});};exports[_0xee37('0x6')]=function(_0x42deb1){return connect()[_0xee37('0x7')](function(){return new BPromise(function(_0x1bf500,_0x2135ae){return pm2[_0xee37('0x6')](_0x42deb1,function(_0x5d5593,_0x1848ad){if(_0x5d5593){return _0x2135ae(_0x5d5593);}pm2[_0xee37('0x5')]();return _0x1bf500(_0x1848ad);});});});};exports[_0xee37('0x8')]=function(_0x12b331){return connect()['then'](function(){return new BPromise(function(_0x339df0,_0xe3a1bc){return pm2['restart'](_0x12b331,function(_0x29ba10,_0x47783f){if(_0x29ba10){return _0xe3a1bc(_0x29ba10);}pm2[_0xee37('0x5')]();return _0x339df0(_0x47783f);});});});};exports['list']=function(){return connect()[_0xee37('0x7')](function(){return new BPromise(function(_0x2a4c5d,_0x3bd4d6){return pm2[_0xee37('0x9')](function(_0x38b3ef,_0x1a7f3e){if(_0x38b3ef){return _0x3bd4d6(_0x38b3ef);}pm2[_0xee37('0x5')]();return _0x2a4c5d(_0x1a7f3e);});});});};exports[_0xee37('0xa')]=function(_0x169846){return connect()[_0xee37('0x7')](function(){return new BPromise(function(_0xf16d48,_0x57fa41){return pm2[_0xee37('0xa')](_0x169846,function(_0x9a88fc,_0x323555){if(_0x9a88fc){return _0x57fa41(_0x9a88fc);}pm2[_0xee37('0x5')]();return _0xf16d48(_0x323555);});});});};exports[_0xee37('0xb')]=function(_0x10639e){return connect()[_0xee37('0x7')](function(){return new BPromise(function(_0x142460,_0x2bc8d1){return pm2[_0xee37('0xb')](_0x10639e,function(_0x18b53d,_0x3bd3ed){if(_0x18b53d){return _0x2bc8d1(_0x18b53d);}pm2['disconnect']();return _0x142460(_0x3bd3ed);});});});};exports['dump']=function(){return connect()[_0xee37('0x7')](function(){return new BPromise(function(_0x1ce9c5,_0x471644){return pm2[_0xee37('0xc')](function(_0x3791b4){if(_0x3791b4){return _0x471644(_0x3791b4);}return _0x1ce9c5(_0xee37('0xd'));});});});};