Built motion from commit (unavailable).|2.5.2
[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 _0x9865=['disconnect','restart','list','describe','delete','dump','saved','pm2','bluebird','./config','connect','connected','start','stop','then'];(function(_0xe1b5f6,_0x210c09){var _0x44636e=function(_0x3a3212){while(--_0x3a3212){_0xe1b5f6['push'](_0xe1b5f6['shift']());}};_0x44636e(++_0x210c09);}(_0x9865,0x1ba));var _0x5986=function(_0xba70ff,_0x2a67a8){_0xba70ff=_0xba70ff-0x0;var _0x281d99=_0x9865[_0xba70ff];return _0x281d99;};'use strict';var pm2=require(_0x5986('0x0'));var BPromise=require(_0x5986('0x1'));var config=require(_0x5986('0x2'));function connect(){return new BPromise(function(_0xac68cf,_0x61e2c2){return pm2[_0x5986('0x3')](function(_0xa3e29d){if(_0xa3e29d){return _0x61e2c2(_0xa3e29d);}return _0xac68cf(_0x5986('0x4'));});});};exports[_0x5986('0x5')]=function(_0xef2d15){return connect()['then'](function(){return new BPromise(function(_0x197711,_0x35e6f8){return pm2[_0x5986('0x5')](_0xef2d15,function(_0x120c57,_0x520fb9){if(_0x120c57){return _0x35e6f8(_0x120c57);}pm2['disconnect']();return _0x197711(_0x520fb9);});});});};exports[_0x5986('0x6')]=function(_0x50f507){return connect()[_0x5986('0x7')](function(){return new BPromise(function(_0x1777ba,_0xe489c2){return pm2[_0x5986('0x6')](_0x50f507,function(_0x128930,_0x557355){if(_0x128930){return _0xe489c2(_0x128930);}pm2[_0x5986('0x8')]();return _0x1777ba(_0x557355);});});});};exports[_0x5986('0x9')]=function(_0x24d294){return connect()['then'](function(){return new BPromise(function(_0x4cc196,_0x410117){return pm2[_0x5986('0x9')](_0x24d294,function(_0x315d92,_0x196bc9){if(_0x315d92){return _0x410117(_0x315d92);}pm2[_0x5986('0x8')]();return _0x4cc196(_0x196bc9);});});});};exports['list']=function(){return connect()['then'](function(){return new BPromise(function(_0xfa5d59,_0x57884a){return pm2[_0x5986('0xa')](function(_0x2e5091,_0x19356e){if(_0x2e5091){return _0x57884a(_0x2e5091);}pm2[_0x5986('0x8')]();return _0xfa5d59(_0x19356e);});});});};exports[_0x5986('0xb')]=function(_0x4f7fe1){return connect()['then'](function(){return new BPromise(function(_0x2b6cc5,_0x498ecb){return pm2[_0x5986('0xb')](_0x4f7fe1,function(_0x2fbb8a,_0x1bf7a5){if(_0x2fbb8a){return _0x498ecb(_0x2fbb8a);}pm2[_0x5986('0x8')]();return _0x2b6cc5(_0x1bf7a5);});});});};exports[_0x5986('0xc')]=function(_0x119042){return connect()[_0x5986('0x7')](function(){return new BPromise(function(_0x366046,_0x3c2a39){return pm2[_0x5986('0xc')](_0x119042,function(_0x4be330,_0x4e6320){if(_0x4be330){return _0x3c2a39(_0x4be330);}pm2[_0x5986('0x8')]();return _0x366046(_0x4e6320);});});});};exports[_0x5986('0xd')]=function(){return connect()['then'](function(){return new BPromise(function(_0x2dadf9,_0xb75f57){return pm2[_0x5986('0xd')](function(_0x4420ae){if(_0x4420ae){return _0xb75f57(_0x4420ae);}return _0x2dadf9(_0x5986('0xe'));});});});};