009623510faaf94d5b9df8f48cf017fd161d5091
[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 _0x789c=['dump','saved','pm2','bluebird','./config','connect','connected','start','then','disconnect','stop','restart','list','describe','delete'];(function(_0x4698c8,_0x348019){var _0x20b25b=function(_0x7a9d61){while(--_0x7a9d61){_0x4698c8['push'](_0x4698c8['shift']());}};_0x20b25b(++_0x348019);}(_0x789c,0xc5));var _0xc789=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x789c[_0x3dd15e];return _0x231fd0;};'use strict';var pm2=require(_0xc789('0x0'));var BPromise=require(_0xc789('0x1'));var config=require(_0xc789('0x2'));function connect(){return new BPromise(function(_0x3d3c3c,_0xc6ae8b){return pm2[_0xc789('0x3')](function(_0x1b9d9c){if(_0x1b9d9c){return _0xc6ae8b(_0x1b9d9c);}return _0x3d3c3c(_0xc789('0x4'));});});};exports[_0xc789('0x5')]=function(_0x47c864){return connect()[_0xc789('0x6')](function(){return new BPromise(function(_0x44a021,_0x4ea3b8){return pm2[_0xc789('0x5')](_0x47c864,function(_0x402149,_0x2e7de4){if(_0x402149){return _0x4ea3b8(_0x402149);}pm2[_0xc789('0x7')]();return _0x44a021(_0x2e7de4);});});});};exports[_0xc789('0x8')]=function(_0x215f69){return connect()[_0xc789('0x6')](function(){return new BPromise(function(_0x2f0e21,_0x3f5aaa){return pm2[_0xc789('0x8')](_0x215f69,function(_0x1add2e,_0x4a9a7b){if(_0x1add2e){return _0x3f5aaa(_0x1add2e);}pm2[_0xc789('0x7')]();return _0x2f0e21(_0x4a9a7b);});});});};exports[_0xc789('0x9')]=function(_0x2f15e5){return connect()[_0xc789('0x6')](function(){return new BPromise(function(_0x31fc1c,_0x15be14){return pm2[_0xc789('0x9')](_0x2f15e5,function(_0x1202cc,_0x9de09f){if(_0x1202cc){return _0x15be14(_0x1202cc);}pm2[_0xc789('0x7')]();return _0x31fc1c(_0x9de09f);});});});};exports[_0xc789('0xa')]=function(){return connect()[_0xc789('0x6')](function(){return new BPromise(function(_0x35d1ae,_0x47b01f){return pm2[_0xc789('0xa')](function(_0x7b253,_0x4674b1){if(_0x7b253){return _0x47b01f(_0x7b253);}pm2[_0xc789('0x7')]();return _0x35d1ae(_0x4674b1);});});});};exports['describe']=function(_0x418f29){return connect()[_0xc789('0x6')](function(){return new BPromise(function(_0x180f41,_0x4acbf8){return pm2[_0xc789('0xb')](_0x418f29,function(_0x55db8e,_0x188ec2){if(_0x55db8e){return _0x4acbf8(_0x55db8e);}pm2[_0xc789('0x7')]();return _0x180f41(_0x188ec2);});});});};exports['delete']=function(_0x4e767c){return connect()[_0xc789('0x6')](function(){return new BPromise(function(_0x4c7042,_0x5713ed){return pm2[_0xc789('0xc')](_0x4e767c,function(_0xd367c6,_0x58ddac){if(_0xd367c6){return _0x5713ed(_0xd367c6);}pm2[_0xc789('0x7')]();return _0x4c7042(_0x58ddac);});});});};exports[_0xc789('0xd')]=function(){return connect()[_0xc789('0x6')](function(){return new BPromise(function(_0x514b08,_0x14ae91){return pm2['dump'](function(_0x3d1ae7){if(_0x3d1ae7){return _0x14ae91(_0x3d1ae7);}return _0x514b08(_0xc789('0xe'));});});});};