Built motion from commit (unavailable).|2.5.15
[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 _0x9fd4=['describe','delete','dump','saved','pm2','bluebird','./config','connect','connected','start','disconnect','stop','then','restart','list'];(function(_0x5b43db,_0x3f8d77){var _0x5f1618=function(_0x18f348){while(--_0x18f348){_0x5b43db['push'](_0x5b43db['shift']());}};_0x5f1618(++_0x3f8d77);}(_0x9fd4,0x16c));var _0x49fd=function(_0x3c13b1,_0x1c975a){_0x3c13b1=_0x3c13b1-0x0;var _0x48c4b5=_0x9fd4[_0x3c13b1];return _0x48c4b5;};'use strict';var pm2=require(_0x49fd('0x0'));var BPromise=require(_0x49fd('0x1'));var config=require(_0x49fd('0x2'));function connect(){return new BPromise(function(_0x30771e,_0x1f329d){return pm2[_0x49fd('0x3')](function(_0x32d855){if(_0x32d855){return _0x1f329d(_0x32d855);}return _0x30771e(_0x49fd('0x4'));});});};exports[_0x49fd('0x5')]=function(_0x55dda5){return connect()['then'](function(){return new BPromise(function(_0x3b4b46,_0x42fdc7){return pm2[_0x49fd('0x5')](_0x55dda5,function(_0x9353cd,_0x48b999){if(_0x9353cd){return _0x42fdc7(_0x9353cd);}pm2[_0x49fd('0x6')]();return _0x3b4b46(_0x48b999);});});});};exports[_0x49fd('0x7')]=function(_0x36f605){return connect()[_0x49fd('0x8')](function(){return new BPromise(function(_0x190807,_0x4a1c47){return pm2[_0x49fd('0x7')](_0x36f605,function(_0x130c9b,_0x3e1c71){if(_0x130c9b){return _0x4a1c47(_0x130c9b);}pm2[_0x49fd('0x6')]();return _0x190807(_0x3e1c71);});});});};exports[_0x49fd('0x9')]=function(_0x2c6d77){return connect()[_0x49fd('0x8')](function(){return new BPromise(function(_0x53a44e,_0x70933e){return pm2[_0x49fd('0x9')](_0x2c6d77,function(_0x426109,_0x40d1b0){if(_0x426109){return _0x70933e(_0x426109);}pm2[_0x49fd('0x6')]();return _0x53a44e(_0x40d1b0);});});});};exports[_0x49fd('0xa')]=function(){return connect()[_0x49fd('0x8')](function(){return new BPromise(function(_0x3fa518,_0x1d900b){return pm2[_0x49fd('0xa')](function(_0x157b09,_0x44c18c){if(_0x157b09){return _0x1d900b(_0x157b09);}pm2[_0x49fd('0x6')]();return _0x3fa518(_0x44c18c);});});});};exports[_0x49fd('0xb')]=function(_0x264ab1){return connect()[_0x49fd('0x8')](function(){return new BPromise(function(_0x2859f2,_0x3ca675){return pm2[_0x49fd('0xb')](_0x264ab1,function(_0x12ae8f,_0x14c34f){if(_0x12ae8f){return _0x3ca675(_0x12ae8f);}pm2[_0x49fd('0x6')]();return _0x2859f2(_0x14c34f);});});});};exports[_0x49fd('0xc')]=function(_0x475eee){return connect()[_0x49fd('0x8')](function(){return new BPromise(function(_0x5d568d,_0x598793){return pm2[_0x49fd('0xc')](_0x475eee,function(_0x3fd46b,_0x59a407){if(_0x3fd46b){return _0x598793(_0x3fd46b);}pm2['disconnect']();return _0x5d568d(_0x59a407);});});});};exports[_0x49fd('0xd')]=function(){return connect()['then'](function(){return new BPromise(function(_0x316e7c,_0xbb113b){return pm2['dump'](function(_0xf7efcf){if(_0xf7efcf){return _0xbb113b(_0xf7efcf);}return _0x316e7c(_0x49fd('0xe'));});});});};