b2c71fecd99471f65ab29474ced55ecb2ffe27cb
[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 _0x713e=['then','disconnect','stop','restart','list','describe','delete','dump','saved','pm2','bluebird','connect','connected','start'];(function(_0x3a6c58,_0xf360e2){var _0x3c9853=function(_0x4ad1cf){while(--_0x4ad1cf){_0x3a6c58['push'](_0x3a6c58['shift']());}};_0x3c9853(++_0xf360e2);}(_0x713e,0x12f));var _0xe713=function(_0x5c0979,_0x287854){_0x5c0979=_0x5c0979-0x0;var _0x309972=_0x713e[_0x5c0979];return _0x309972;};'use strict';var pm2=require(_0xe713('0x0'));var BPromise=require(_0xe713('0x1'));var config=require('./config');function connect(){return new BPromise(function(_0x2238c6,_0x55884e){return pm2[_0xe713('0x2')](function(_0xdca46e){if(_0xdca46e){return _0x55884e(_0xdca46e);}return _0x2238c6(_0xe713('0x3'));});});};exports[_0xe713('0x4')]=function(_0x350ab4){return connect()[_0xe713('0x5')](function(){return new BPromise(function(_0x3cac03,_0x4529c2){return pm2[_0xe713('0x4')](_0x350ab4,function(_0x54f60a,_0x30a069){if(_0x54f60a){return _0x4529c2(_0x54f60a);}pm2[_0xe713('0x6')]();return _0x3cac03(_0x30a069);});});});};exports['stop']=function(_0x547bde){return connect()[_0xe713('0x5')](function(){return new BPromise(function(_0x2274c2,_0x1d07bf){return pm2[_0xe713('0x7')](_0x547bde,function(_0x19d796,_0x594d6d){if(_0x19d796){return _0x1d07bf(_0x19d796);}pm2[_0xe713('0x6')]();return _0x2274c2(_0x594d6d);});});});};exports['restart']=function(_0x427f27){return connect()['then'](function(){return new BPromise(function(_0xb4e92,_0xc593a1){return pm2[_0xe713('0x8')](_0x427f27,function(_0x13ed1b,_0x5164ef){if(_0x13ed1b){return _0xc593a1(_0x13ed1b);}pm2[_0xe713('0x6')]();return _0xb4e92(_0x5164ef);});});});};exports[_0xe713('0x9')]=function(){return connect()[_0xe713('0x5')](function(){return new BPromise(function(_0x440164,_0x2c1edf){return pm2[_0xe713('0x9')](function(_0x36cc8f,_0x5520c2){if(_0x36cc8f){return _0x2c1edf(_0x36cc8f);}pm2['disconnect']();return _0x440164(_0x5520c2);});});});};exports[_0xe713('0xa')]=function(_0x38509f){return connect()['then'](function(){return new BPromise(function(_0x453832,_0x2bf702){return pm2[_0xe713('0xa')](_0x38509f,function(_0x55317a,_0x1ef055){if(_0x55317a){return _0x2bf702(_0x55317a);}pm2[_0xe713('0x6')]();return _0x453832(_0x1ef055);});});});};exports[_0xe713('0xb')]=function(_0x224b8e){return connect()[_0xe713('0x5')](function(){return new BPromise(function(_0x300659,_0x1178e6){return pm2[_0xe713('0xb')](_0x224b8e,function(_0x35daee,_0x5318bb){if(_0x35daee){return _0x1178e6(_0x35daee);}pm2['disconnect']();return _0x300659(_0x5318bb);});});});};exports[_0xe713('0xc')]=function(){return connect()['then'](function(){return new BPromise(function(_0x4eaf15,_0x30777c){return pm2[_0xe713('0xc')](function(_0x8c79a2){if(_0x8c79a2){return _0x30777c(_0x8c79a2);}return _0x4eaf15(_0xe713('0xd'));});});});};