Built motion from commit (unavailable).|2.5.16
[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 _0x4e06=['describe','delete','dump','saved','pm2','bluebird','./config','connect','connected','start','disconnect','stop','then','list'];(function(_0x593752,_0xfc3827){var _0x4612be=function(_0x2d64c6){while(--_0x2d64c6){_0x593752['push'](_0x593752['shift']());}};_0x4612be(++_0xfc3827);}(_0x4e06,0x1d2));var _0x64e0=function(_0x7e6d00,_0x1660cf){_0x7e6d00=_0x7e6d00-0x0;var _0x2a81d7=_0x4e06[_0x7e6d00];return _0x2a81d7;};'use strict';var pm2=require(_0x64e0('0x0'));var BPromise=require(_0x64e0('0x1'));var config=require(_0x64e0('0x2'));function connect(){return new BPromise(function(_0x16e885,_0x47a8b1){return pm2[_0x64e0('0x3')](function(_0x330484){if(_0x330484){return _0x47a8b1(_0x330484);}return _0x16e885(_0x64e0('0x4'));});});};exports[_0x64e0('0x5')]=function(_0x1009d6){return connect()['then'](function(){return new BPromise(function(_0x3c5257,_0x43a32e){return pm2[_0x64e0('0x5')](_0x1009d6,function(_0x63dbec,_0x32b867){if(_0x63dbec){return _0x43a32e(_0x63dbec);}pm2[_0x64e0('0x6')]();return _0x3c5257(_0x32b867);});});});};exports[_0x64e0('0x7')]=function(_0x191e5d){return connect()[_0x64e0('0x8')](function(){return new BPromise(function(_0xbae7d,_0xc6ad41){return pm2[_0x64e0('0x7')](_0x191e5d,function(_0x38e1dd,_0x1357eb){if(_0x38e1dd){return _0xc6ad41(_0x38e1dd);}pm2[_0x64e0('0x6')]();return _0xbae7d(_0x1357eb);});});});};exports['restart']=function(_0xf052a7){return connect()[_0x64e0('0x8')](function(){return new BPromise(function(_0x19a579,_0x3831c5){return pm2['restart'](_0xf052a7,function(_0x4d8c1f,_0x438ea3){if(_0x4d8c1f){return _0x3831c5(_0x4d8c1f);}pm2[_0x64e0('0x6')]();return _0x19a579(_0x438ea3);});});});};exports[_0x64e0('0x9')]=function(){return connect()[_0x64e0('0x8')](function(){return new BPromise(function(_0x46b52f,_0x4b0c67){return pm2['list'](function(_0x25b854,_0x566c7e){if(_0x25b854){return _0x4b0c67(_0x25b854);}pm2[_0x64e0('0x6')]();return _0x46b52f(_0x566c7e);});});});};exports[_0x64e0('0xa')]=function(_0x3ffeb5){return connect()[_0x64e0('0x8')](function(){return new BPromise(function(_0x5bb25e,_0x528693){return pm2[_0x64e0('0xa')](_0x3ffeb5,function(_0x7a3612,_0x176693){if(_0x7a3612){return _0x528693(_0x7a3612);}pm2[_0x64e0('0x6')]();return _0x5bb25e(_0x176693);});});});};exports[_0x64e0('0xb')]=function(_0x3c41e7){return connect()[_0x64e0('0x8')](function(){return new BPromise(function(_0x1fd0d4,_0x56a743){return pm2[_0x64e0('0xb')](_0x3c41e7,function(_0x28850c,_0x7cf00a){if(_0x28850c){return _0x56a743(_0x28850c);}pm2['disconnect']();return _0x1fd0d4(_0x7cf00a);});});});};exports[_0x64e0('0xc')]=function(){return connect()['then'](function(){return new BPromise(function(_0x1401de,_0x2dd818){return pm2[_0x64e0('0xc')](function(_0x39a915){if(_0x39a915){return _0x2dd818(_0x39a915);}return _0x1401de(_0x64e0('0xd'));});});});};