Built motion from commit (unavailable).|2.5.4
[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 _0x6688=['pm2','bluebird','./config','connect','connected','start','then','disconnect','stop','restart','list','describe','delete','dump','saved'];(function(_0x377231,_0x44a2b7){var _0x4dd94b=function(_0x44062f){while(--_0x44062f){_0x377231['push'](_0x377231['shift']());}};_0x4dd94b(++_0x44a2b7);}(_0x6688,0x10e));var _0x8668=function(_0x1db418,_0x559073){_0x1db418=_0x1db418-0x0;var _0x8c6f6c=_0x6688[_0x1db418];return _0x8c6f6c;};'use strict';var pm2=require(_0x8668('0x0'));var BPromise=require(_0x8668('0x1'));var config=require(_0x8668('0x2'));function connect(){return new BPromise(function(_0x50da57,_0x41afbf){return pm2[_0x8668('0x3')](function(_0x1932de){if(_0x1932de){return _0x41afbf(_0x1932de);}return _0x50da57(_0x8668('0x4'));});});};exports[_0x8668('0x5')]=function(_0x21922f){return connect()[_0x8668('0x6')](function(){return new BPromise(function(_0x513305,_0x2a6329){return pm2[_0x8668('0x5')](_0x21922f,function(_0x51c691,_0x1b9518){if(_0x51c691){return _0x2a6329(_0x51c691);}pm2[_0x8668('0x7')]();return _0x513305(_0x1b9518);});});});};exports[_0x8668('0x8')]=function(_0x15e42d){return connect()[_0x8668('0x6')](function(){return new BPromise(function(_0x2c15a6,_0x21315c){return pm2[_0x8668('0x8')](_0x15e42d,function(_0x51a0ff,_0x570b45){if(_0x51a0ff){return _0x21315c(_0x51a0ff);}pm2['disconnect']();return _0x2c15a6(_0x570b45);});});});};exports['restart']=function(_0x402c26){return connect()[_0x8668('0x6')](function(){return new BPromise(function(_0x395095,_0x2c0b26){return pm2[_0x8668('0x9')](_0x402c26,function(_0x59dfbc,_0x526199){if(_0x59dfbc){return _0x2c0b26(_0x59dfbc);}pm2[_0x8668('0x7')]();return _0x395095(_0x526199);});});});};exports[_0x8668('0xa')]=function(){return connect()[_0x8668('0x6')](function(){return new BPromise(function(_0x48311a,_0x3c8de8){return pm2[_0x8668('0xa')](function(_0x3626e7,_0x588c09){if(_0x3626e7){return _0x3c8de8(_0x3626e7);}pm2['disconnect']();return _0x48311a(_0x588c09);});});});};exports[_0x8668('0xb')]=function(_0x16fe4b){return connect()[_0x8668('0x6')](function(){return new BPromise(function(_0x20dd0a,_0x5a68f6){return pm2['describe'](_0x16fe4b,function(_0x246506,_0x191220){if(_0x246506){return _0x5a68f6(_0x246506);}pm2[_0x8668('0x7')]();return _0x20dd0a(_0x191220);});});});};exports[_0x8668('0xc')]=function(_0x1ab443){return connect()[_0x8668('0x6')](function(){return new BPromise(function(_0x5ad3a2,_0x455102){return pm2['delete'](_0x1ab443,function(_0x482176,_0x4fb5a2){if(_0x482176){return _0x455102(_0x482176);}pm2['disconnect']();return _0x5ad3a2(_0x4fb5a2);});});});};exports[_0x8668('0xd')]=function(){return connect()[_0x8668('0x6')](function(){return new BPromise(function(_0x2d6a6c,_0x50aea2){return pm2[_0x8668('0xd')](function(_0x585220){if(_0x585220){return _0x50aea2(_0x585220);}return _0x2d6a6c(_0x8668('0xe'));});});});};