Built motion from commit (unavailable).|2.5.7
[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 _0x2bae=['connected','start','disconnect','stop','then','restart','list','describe','delete','dump','saved','pm2','bluebird','./config','connect'];(function(_0xc23bf6,_0x52f418){var _0x4ee0f5=function(_0x12dc5b){while(--_0x12dc5b){_0xc23bf6['push'](_0xc23bf6['shift']());}};_0x4ee0f5(++_0x52f418);}(_0x2bae,0x164));var _0xe2ba=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x2bae[_0x3dd15e];return _0x231fd0;};'use strict';var pm2=require(_0xe2ba('0x0'));var BPromise=require(_0xe2ba('0x1'));var config=require(_0xe2ba('0x2'));function connect(){return new BPromise(function(_0x45c8bc,_0x3c97d7){return pm2[_0xe2ba('0x3')](function(_0x5e0e85){if(_0x5e0e85){return _0x3c97d7(_0x5e0e85);}return _0x45c8bc(_0xe2ba('0x4'));});});};exports['start']=function(_0x442279){return connect()['then'](function(){return new BPromise(function(_0x15e6d5,_0x129677){return pm2[_0xe2ba('0x5')](_0x442279,function(_0x4933a0,_0x23a917){if(_0x4933a0){return _0x129677(_0x4933a0);}pm2[_0xe2ba('0x6')]();return _0x15e6d5(_0x23a917);});});});};exports[_0xe2ba('0x7')]=function(_0x3d5a86){return connect()['then'](function(){return new BPromise(function(_0x5f31b0,_0xe703bc){return pm2[_0xe2ba('0x7')](_0x3d5a86,function(_0x2fcfd1,_0x12b7af){if(_0x2fcfd1){return _0xe703bc(_0x2fcfd1);}pm2[_0xe2ba('0x6')]();return _0x5f31b0(_0x12b7af);});});});};exports['restart']=function(_0x3425f7){return connect()[_0xe2ba('0x8')](function(){return new BPromise(function(_0x1baf09,_0x3ff234){return pm2[_0xe2ba('0x9')](_0x3425f7,function(_0x42cedd,_0x2ab70c){if(_0x42cedd){return _0x3ff234(_0x42cedd);}pm2[_0xe2ba('0x6')]();return _0x1baf09(_0x2ab70c);});});});};exports[_0xe2ba('0xa')]=function(){return connect()[_0xe2ba('0x8')](function(){return new BPromise(function(_0x1cc0b8,_0x51fd63){return pm2[_0xe2ba('0xa')](function(_0x1b1dac,_0x5f48a2){if(_0x1b1dac){return _0x51fd63(_0x1b1dac);}pm2[_0xe2ba('0x6')]();return _0x1cc0b8(_0x5f48a2);});});});};exports[_0xe2ba('0xb')]=function(_0x1ecee0){return connect()[_0xe2ba('0x8')](function(){return new BPromise(function(_0x718656,_0x4a30ce){return pm2[_0xe2ba('0xb')](_0x1ecee0,function(_0x402de2,_0x3bf78c){if(_0x402de2){return _0x4a30ce(_0x402de2);}pm2['disconnect']();return _0x718656(_0x3bf78c);});});});};exports[_0xe2ba('0xc')]=function(_0xeee7a4){return connect()[_0xe2ba('0x8')](function(){return new BPromise(function(_0x21fb60,_0x10825d){return pm2[_0xe2ba('0xc')](_0xeee7a4,function(_0x6f7201,_0x96bfad){if(_0x6f7201){return _0x10825d(_0x6f7201);}pm2[_0xe2ba('0x6')]();return _0x21fb60(_0x96bfad);});});});};exports[_0xe2ba('0xd')]=function(){return connect()[_0xe2ba('0x8')](function(){return new BPromise(function(_0x5f4b75,_0x22726e){return pm2[_0xe2ba('0xd')](function(_0x482829){if(_0x482829){return _0x22726e(_0x482829);}return _0x5f4b75(_0xe2ba('0xe'));});});});};