Built motion from commit (unavailable).|2.5.27
[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 _0xa976=['list','describe','delete','dump','saved','pm2','bluebird','connect','connected','start','then','disconnect','stop','restart'];(function(_0x5407b6,_0x50ad7d){var _0x28889a=function(_0x405452){while(--_0x405452){_0x5407b6['push'](_0x5407b6['shift']());}};_0x28889a(++_0x50ad7d);}(_0xa976,0xd7));var _0x6a97=function(_0x3e88c2,_0x7554a7){_0x3e88c2=_0x3e88c2-0x0;var _0x4430d0=_0xa976[_0x3e88c2];return _0x4430d0;};'use strict';var pm2=require(_0x6a97('0x0'));var BPromise=require(_0x6a97('0x1'));var config=require('./config');function connect(){return new BPromise(function(_0x28d3ba,_0x2f5457){return pm2[_0x6a97('0x2')](function(_0x15cd31){if(_0x15cd31){return _0x2f5457(_0x15cd31);}return _0x28d3ba(_0x6a97('0x3'));});});};exports[_0x6a97('0x4')]=function(_0x58caf7){return connect()[_0x6a97('0x5')](function(){return new BPromise(function(_0x5832b3,_0x46d246){return pm2[_0x6a97('0x4')](_0x58caf7,function(_0x45a705,_0x57855a){if(_0x45a705){return _0x46d246(_0x45a705);}pm2[_0x6a97('0x6')]();return _0x5832b3(_0x57855a);});});});};exports[_0x6a97('0x7')]=function(_0x3d8ceb){return connect()[_0x6a97('0x5')](function(){return new BPromise(function(_0x2a41e1,_0x340307){return pm2[_0x6a97('0x7')](_0x3d8ceb,function(_0x26712d,_0x538b68){if(_0x26712d){return _0x340307(_0x26712d);}pm2[_0x6a97('0x6')]();return _0x2a41e1(_0x538b68);});});});};exports[_0x6a97('0x8')]=function(_0x49e011){return connect()[_0x6a97('0x5')](function(){return new BPromise(function(_0x58c92a,_0x1f8bb4){return pm2['restart'](_0x49e011,function(_0x3797ed,_0x5c9212){if(_0x3797ed){return _0x1f8bb4(_0x3797ed);}pm2[_0x6a97('0x6')]();return _0x58c92a(_0x5c9212);});});});};exports[_0x6a97('0x9')]=function(){return connect()[_0x6a97('0x5')](function(){return new BPromise(function(_0x2e928c,_0x1a249c){return pm2['list'](function(_0x5f02a2,_0x5b5ce0){if(_0x5f02a2){return _0x1a249c(_0x5f02a2);}pm2[_0x6a97('0x6')]();return _0x2e928c(_0x5b5ce0);});});});};exports[_0x6a97('0xa')]=function(_0x377056){return connect()[_0x6a97('0x5')](function(){return new BPromise(function(_0x52ec46,_0x500f7a){return pm2[_0x6a97('0xa')](_0x377056,function(_0x4f82c7,_0x2694c9){if(_0x4f82c7){return _0x500f7a(_0x4f82c7);}pm2[_0x6a97('0x6')]();return _0x52ec46(_0x2694c9);});});});};exports[_0x6a97('0xb')]=function(_0x5883e9){return connect()['then'](function(){return new BPromise(function(_0x29245d,_0x5de4fa){return pm2[_0x6a97('0xb')](_0x5883e9,function(_0x19e490,_0x4fe3b0){if(_0x19e490){return _0x5de4fa(_0x19e490);}pm2[_0x6a97('0x6')]();return _0x29245d(_0x4fe3b0);});});});};exports[_0x6a97('0xc')]=function(){return connect()[_0x6a97('0x5')](function(){return new BPromise(function(_0x4c8cb1,_0x40756e){return pm2[_0x6a97('0xc')](function(_0x55c60b){if(_0x55c60b){return _0x40756e(_0x55c60b);}return _0x4c8cb1(_0x6a97('0xd'));});});});};