df08f36e5155070c95d0e539a215f6ae0d1f6e0a
[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 _0xb440=['start','then','stop','disconnect','list','describe','delete','dump','saved','pm2','bluebird','./config','connect','connected'];(function(_0x3b2f28,_0xef1370){var _0x192dd4=function(_0x2641fb){while(--_0x2641fb){_0x3b2f28['push'](_0x3b2f28['shift']());}};_0x192dd4(++_0xef1370);}(_0xb440,0x1d7));var _0x0b44=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb440[_0x3dd15e];return _0x231fd0;};'use strict';var pm2=require(_0x0b44('0x0'));var BPromise=require(_0x0b44('0x1'));var config=require(_0x0b44('0x2'));function connect(){return new BPromise(function(_0x1d0fe0,_0x3b290e){return pm2[_0x0b44('0x3')](function(_0x524f1e){if(_0x524f1e){return _0x3b290e(_0x524f1e);}return _0x1d0fe0(_0x0b44('0x4'));});});};exports[_0x0b44('0x5')]=function(_0x5a8bfd){return connect()[_0x0b44('0x6')](function(){return new BPromise(function(_0x444dbe,_0x5824f9){return pm2[_0x0b44('0x5')](_0x5a8bfd,function(_0x2636bc,_0x24d6c5){if(_0x2636bc){return _0x5824f9(_0x2636bc);}pm2['disconnect']();return _0x444dbe(_0x24d6c5);});});});};exports[_0x0b44('0x7')]=function(_0x113f16){return connect()[_0x0b44('0x6')](function(){return new BPromise(function(_0x183938,_0x13137e){return pm2[_0x0b44('0x7')](_0x113f16,function(_0x47f9e8,_0x5967e1){if(_0x47f9e8){return _0x13137e(_0x47f9e8);}pm2[_0x0b44('0x8')]();return _0x183938(_0x5967e1);});});});};exports['restart']=function(_0xc53f36){return connect()[_0x0b44('0x6')](function(){return new BPromise(function(_0x2eed56,_0x379e9a){return pm2['restart'](_0xc53f36,function(_0x466716,_0x3e5486){if(_0x466716){return _0x379e9a(_0x466716);}pm2[_0x0b44('0x8')]();return _0x2eed56(_0x3e5486);});});});};exports[_0x0b44('0x9')]=function(){return connect()['then'](function(){return new BPromise(function(_0x531ce7,_0x5499b2){return pm2[_0x0b44('0x9')](function(_0x17c8ce,_0x12ba8b){if(_0x17c8ce){return _0x5499b2(_0x17c8ce);}pm2[_0x0b44('0x8')]();return _0x531ce7(_0x12ba8b);});});});};exports[_0x0b44('0xa')]=function(_0x179025){return connect()[_0x0b44('0x6')](function(){return new BPromise(function(_0x52471d,_0xe3fd35){return pm2[_0x0b44('0xa')](_0x179025,function(_0x48afad,_0x5f1a60){if(_0x48afad){return _0xe3fd35(_0x48afad);}pm2[_0x0b44('0x8')]();return _0x52471d(_0x5f1a60);});});});};exports[_0x0b44('0xb')]=function(_0xdac7ed){return connect()[_0x0b44('0x6')](function(){return new BPromise(function(_0x134d5e,_0x34c4a6){return pm2[_0x0b44('0xb')](_0xdac7ed,function(_0x1711ec,_0xcdbc42){if(_0x1711ec){return _0x34c4a6(_0x1711ec);}pm2[_0x0b44('0x8')]();return _0x134d5e(_0xcdbc42);});});});};exports[_0x0b44('0xc')]=function(){return connect()[_0x0b44('0x6')](function(){return new BPromise(function(_0x5a18bc,_0x41d284){return pm2[_0x0b44('0xc')](function(_0x186ea2){if(_0x186ea2){return _0x41d284(_0x186ea2);}return _0x5a18bc(_0x0b44('0xd'));});});});};