Built motion from commit (unavailable).|2.6.0
[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 _0x1c3d=['restart','list','describe','delete','dump','saved','pm2','bluebird','./config','connected','start','then','disconnect','stop'];(function(_0x14377b,_0x49b341){var _0x1830ca=function(_0x2da2ee){while(--_0x2da2ee){_0x14377b['push'](_0x14377b['shift']());}};_0x1830ca(++_0x49b341);}(_0x1c3d,0x68));var _0xd1c3=function(_0x12dab4,_0x546844){_0x12dab4=_0x12dab4-0x0;var _0x1a90a7=_0x1c3d[_0x12dab4];return _0x1a90a7;};'use strict';var pm2=require(_0xd1c3('0x0'));var BPromise=require(_0xd1c3('0x1'));var config=require(_0xd1c3('0x2'));function connect(){return new BPromise(function(_0x14d253,_0x2c7ce0){return pm2['connect'](function(_0xead51e){if(_0xead51e){return _0x2c7ce0(_0xead51e);}return _0x14d253(_0xd1c3('0x3'));});});};exports[_0xd1c3('0x4')]=function(_0x2919df){return connect()[_0xd1c3('0x5')](function(){return new BPromise(function(_0x206ce5,_0xa5b3ec){return pm2[_0xd1c3('0x4')](_0x2919df,function(_0x2721cf,_0x443ebd){if(_0x2721cf){return _0xa5b3ec(_0x2721cf);}pm2[_0xd1c3('0x6')]();return _0x206ce5(_0x443ebd);});});});};exports[_0xd1c3('0x7')]=function(_0x82eab8){return connect()['then'](function(){return new BPromise(function(_0x2fa81e,_0x20d86c){return pm2[_0xd1c3('0x7')](_0x82eab8,function(_0x24e858,_0xffed77){if(_0x24e858){return _0x20d86c(_0x24e858);}pm2[_0xd1c3('0x6')]();return _0x2fa81e(_0xffed77);});});});};exports[_0xd1c3('0x8')]=function(_0x12ba06){return connect()[_0xd1c3('0x5')](function(){return new BPromise(function(_0x52d31e,_0x58391d){return pm2['restart'](_0x12ba06,function(_0x5a6ae2,_0x3889f4){if(_0x5a6ae2){return _0x58391d(_0x5a6ae2);}pm2[_0xd1c3('0x6')]();return _0x52d31e(_0x3889f4);});});});};exports['list']=function(){return connect()['then'](function(){return new BPromise(function(_0x537eae,_0x2bf361){return pm2[_0xd1c3('0x9')](function(_0x47cf3d,_0x413257){if(_0x47cf3d){return _0x2bf361(_0x47cf3d);}pm2[_0xd1c3('0x6')]();return _0x537eae(_0x413257);});});});};exports[_0xd1c3('0xa')]=function(_0x1716f7){return connect()['then'](function(){return new BPromise(function(_0x51ab1a,_0xd839c3){return pm2[_0xd1c3('0xa')](_0x1716f7,function(_0x5df0d4,_0x5ae3b1){if(_0x5df0d4){return _0xd839c3(_0x5df0d4);}pm2[_0xd1c3('0x6')]();return _0x51ab1a(_0x5ae3b1);});});});};exports[_0xd1c3('0xb')]=function(_0x1b8333){return connect()['then'](function(){return new BPromise(function(_0x5c6382,_0x474791){return pm2[_0xd1c3('0xb')](_0x1b8333,function(_0x798c0f,_0x466850){if(_0x798c0f){return _0x474791(_0x798c0f);}pm2[_0xd1c3('0x6')]();return _0x5c6382(_0x466850);});});});};exports[_0xd1c3('0xc')]=function(){return connect()[_0xd1c3('0x5')](function(){return new BPromise(function(_0x1af960,_0x14a126){return pm2[_0xd1c3('0xc')](function(_0x42a12e){if(_0x42a12e){return _0x14a126(_0x42a12e);}return _0x1af960(_0xd1c3('0xd'));});});});};