Built motion from commit d5e4af8c.|2.6.23
[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 _0xde66=['restart','list','describe','delete','dump','saved','pm2','bluebird','./config','connected','start','then','disconnect','stop'];(function(_0x4f4e10,_0x287d21){var _0x4085e2=function(_0x16cdb0){while(--_0x16cdb0){_0x4f4e10['push'](_0x4f4e10['shift']());}};_0x4085e2(++_0x287d21);}(_0xde66,0x1e2));var _0x6de6=function(_0x1551bc,_0x334b59){_0x1551bc=_0x1551bc-0x0;var _0x228deb=_0xde66[_0x1551bc];return _0x228deb;};'use strict';var pm2=require(_0x6de6('0x0'));var BPromise=require(_0x6de6('0x1'));var config=require(_0x6de6('0x2'));function connect(){return new BPromise(function(_0x5c4804,_0x566f53){return pm2['connect'](function(_0x5cb70e){if(_0x5cb70e){return _0x566f53(_0x5cb70e);}return _0x5c4804(_0x6de6('0x3'));});});};exports[_0x6de6('0x4')]=function(_0x34dcdc){return connect()[_0x6de6('0x5')](function(){return new BPromise(function(_0x56c57b,_0x2a4431){return pm2[_0x6de6('0x4')](_0x34dcdc,function(_0x20c7d5,_0x140f0e){if(_0x20c7d5){return _0x2a4431(_0x20c7d5);}pm2[_0x6de6('0x6')]();return _0x56c57b(_0x140f0e);});});});};exports[_0x6de6('0x7')]=function(_0x1e62f7){return connect()[_0x6de6('0x5')](function(){return new BPromise(function(_0x10e1ae,_0x3943a4){return pm2[_0x6de6('0x7')](_0x1e62f7,function(_0x5ded9d,_0x5b934d){if(_0x5ded9d){return _0x3943a4(_0x5ded9d);}pm2[_0x6de6('0x6')]();return _0x10e1ae(_0x5b934d);});});});};exports[_0x6de6('0x8')]=function(_0x21ae83){return connect()[_0x6de6('0x5')](function(){return new BPromise(function(_0x566e8e,_0x598da6){return pm2[_0x6de6('0x8')](_0x21ae83,function(_0x2b7527,_0x164d60){if(_0x2b7527){return _0x598da6(_0x2b7527);}pm2[_0x6de6('0x6')]();return _0x566e8e(_0x164d60);});});});};exports[_0x6de6('0x9')]=function(){return connect()[_0x6de6('0x5')](function(){return new BPromise(function(_0xc3dd67,_0xa26e24){return pm2[_0x6de6('0x9')](function(_0x299a8e,_0x27966c){if(_0x299a8e){return _0xa26e24(_0x299a8e);}pm2[_0x6de6('0x6')]();return _0xc3dd67(_0x27966c);});});});};exports['describe']=function(_0xb3b87b){return connect()['then'](function(){return new BPromise(function(_0x40742f,_0x59e129){return pm2[_0x6de6('0xa')](_0xb3b87b,function(_0x694b8c,_0xf77d04){if(_0x694b8c){return _0x59e129(_0x694b8c);}pm2[_0x6de6('0x6')]();return _0x40742f(_0xf77d04);});});});};exports[_0x6de6('0xb')]=function(_0x5134db){return connect()['then'](function(){return new BPromise(function(_0x3edda0,_0x304725){return pm2[_0x6de6('0xb')](_0x5134db,function(_0xd21ef5,_0x29419d){if(_0xd21ef5){return _0x304725(_0xd21ef5);}pm2['disconnect']();return _0x3edda0(_0x29419d);});});});};exports[_0x6de6('0xc')]=function(){return connect()[_0x6de6('0x5')](function(){return new BPromise(function(_0x28c055,_0x6ef7b7){return pm2[_0x6de6('0xc')](function(_0xdbfa41){if(_0xdbfa41){return _0x6ef7b7(_0xdbfa41);}return _0x28c055(_0x6de6('0xd'));});});});};