Built motion from commit (unavailable).|2.4.19
[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 _0x38ec=['./config','connect','connected','start','then','disconnect','stop','list','describe','delete','dump','saved','pm2','bluebird'];(function(_0x4d1fdd,_0x5865ba){var _0x2362a1=function(_0x2ad746){while(--_0x2ad746){_0x4d1fdd['push'](_0x4d1fdd['shift']());}};_0x2362a1(++_0x5865ba);}(_0x38ec,0xfa));var _0xc38e=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x38ec[_0xa464c9];return _0x3d73c4;};'use strict';var pm2=require(_0xc38e('0x0'));var BPromise=require(_0xc38e('0x1'));var config=require(_0xc38e('0x2'));function connect(){return new BPromise(function(_0x427553,_0x3cc294){return pm2[_0xc38e('0x3')](function(_0x1a9bd5){if(_0x1a9bd5){return _0x3cc294(_0x1a9bd5);}return _0x427553(_0xc38e('0x4'));});});};exports[_0xc38e('0x5')]=function(_0x586e1e){return connect()[_0xc38e('0x6')](function(){return new BPromise(function(_0xf9306d,_0x1e9de4){return pm2[_0xc38e('0x5')](_0x586e1e,function(_0x3513e5,_0x41d765){if(_0x3513e5){return _0x1e9de4(_0x3513e5);}pm2[_0xc38e('0x7')]();return _0xf9306d(_0x41d765);});});});};exports[_0xc38e('0x8')]=function(_0xd35c03){return connect()[_0xc38e('0x6')](function(){return new BPromise(function(_0x4959c8,_0x5b769d){return pm2[_0xc38e('0x8')](_0xd35c03,function(_0x1daeb9,_0x46a6b4){if(_0x1daeb9){return _0x5b769d(_0x1daeb9);}pm2[_0xc38e('0x7')]();return _0x4959c8(_0x46a6b4);});});});};exports['restart']=function(_0x2f4a6f){return connect()[_0xc38e('0x6')](function(){return new BPromise(function(_0x521629,_0xa84c29){return pm2['restart'](_0x2f4a6f,function(_0x4dd6a1,_0x259a4d){if(_0x4dd6a1){return _0xa84c29(_0x4dd6a1);}pm2[_0xc38e('0x7')]();return _0x521629(_0x259a4d);});});});};exports[_0xc38e('0x9')]=function(){return connect()[_0xc38e('0x6')](function(){return new BPromise(function(_0xf77e47,_0xab5ac3){return pm2[_0xc38e('0x9')](function(_0x33e11a,_0x4f6f89){if(_0x33e11a){return _0xab5ac3(_0x33e11a);}pm2[_0xc38e('0x7')]();return _0xf77e47(_0x4f6f89);});});});};exports[_0xc38e('0xa')]=function(_0x5cb21f){return connect()[_0xc38e('0x6')](function(){return new BPromise(function(_0x13c707,_0x1d189f){return pm2[_0xc38e('0xa')](_0x5cb21f,function(_0x5e8f64,_0xff5d13){if(_0x5e8f64){return _0x1d189f(_0x5e8f64);}pm2[_0xc38e('0x7')]();return _0x13c707(_0xff5d13);});});});};exports[_0xc38e('0xb')]=function(_0x3a8cd0){return connect()[_0xc38e('0x6')](function(){return new BPromise(function(_0x33db1f,_0x14d09f){return pm2[_0xc38e('0xb')](_0x3a8cd0,function(_0x2d8023,_0x3bb06f){if(_0x2d8023){return _0x14d09f(_0x2d8023);}pm2[_0xc38e('0x7')]();return _0x33db1f(_0x3bb06f);});});});};exports[_0xc38e('0xc')]=function(){return connect()['then'](function(){return new BPromise(function(_0xdb9ff,_0xb61fb9){return pm2[_0xc38e('0xc')](function(_0x48e7d4){if(_0x48e7d4){return _0xb61fb9(_0x48e7d4);}return _0xdb9ff(_0xc38e('0xd'));});});});};