Built motion from commit (unavailable).|2.5.25
[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 _0xb138=['start','then','disconnect','stop','restart','describe','delete','dump','saved','pm2','bluebird','./config','connect'];(function(_0x434704,_0x46735a){var _0x39774c=function(_0x23731e){while(--_0x23731e){_0x434704['push'](_0x434704['shift']());}};_0x39774c(++_0x46735a);}(_0xb138,0x1dd));var _0x8b13=function(_0x28b701,_0x17ecf3){_0x28b701=_0x28b701-0x0;var _0x5efe9f=_0xb138[_0x28b701];return _0x5efe9f;};'use strict';var pm2=require(_0x8b13('0x0'));var BPromise=require(_0x8b13('0x1'));var config=require(_0x8b13('0x2'));function connect(){return new BPromise(function(_0x33f214,_0xadad70){return pm2[_0x8b13('0x3')](function(_0x20c65c){if(_0x20c65c){return _0xadad70(_0x20c65c);}return _0x33f214('connected');});});};exports[_0x8b13('0x4')]=function(_0x241acb){return connect()[_0x8b13('0x5')](function(){return new BPromise(function(_0x5ae5b2,_0xd19a0f){return pm2[_0x8b13('0x4')](_0x241acb,function(_0x5d51b1,_0x3fdf4d){if(_0x5d51b1){return _0xd19a0f(_0x5d51b1);}pm2[_0x8b13('0x6')]();return _0x5ae5b2(_0x3fdf4d);});});});};exports[_0x8b13('0x7')]=function(_0x498832){return connect()[_0x8b13('0x5')](function(){return new BPromise(function(_0x1aed6f,_0x58683a){return pm2['stop'](_0x498832,function(_0x1f2528,_0x21fcd9){if(_0x1f2528){return _0x58683a(_0x1f2528);}pm2[_0x8b13('0x6')]();return _0x1aed6f(_0x21fcd9);});});});};exports[_0x8b13('0x8')]=function(_0x3e8eca){return connect()['then'](function(){return new BPromise(function(_0x11bc89,_0xeee2cc){return pm2[_0x8b13('0x8')](_0x3e8eca,function(_0x3f79d5,_0xb227e0){if(_0x3f79d5){return _0xeee2cc(_0x3f79d5);}pm2[_0x8b13('0x6')]();return _0x11bc89(_0xb227e0);});});});};exports['list']=function(){return connect()['then'](function(){return new BPromise(function(_0x3dcde6,_0x130a6f){return pm2['list'](function(_0x51a935,_0x479773){if(_0x51a935){return _0x130a6f(_0x51a935);}pm2[_0x8b13('0x6')]();return _0x3dcde6(_0x479773);});});});};exports[_0x8b13('0x9')]=function(_0xf29086){return connect()[_0x8b13('0x5')](function(){return new BPromise(function(_0x13f956,_0x542357){return pm2[_0x8b13('0x9')](_0xf29086,function(_0xea7881,_0x393bc1){if(_0xea7881){return _0x542357(_0xea7881);}pm2[_0x8b13('0x6')]();return _0x13f956(_0x393bc1);});});});};exports[_0x8b13('0xa')]=function(_0x1fcfe6){return connect()[_0x8b13('0x5')](function(){return new BPromise(function(_0x441ddc,_0x4989d3){return pm2['delete'](_0x1fcfe6,function(_0xae4966,_0x335709){if(_0xae4966){return _0x4989d3(_0xae4966);}pm2[_0x8b13('0x6')]();return _0x441ddc(_0x335709);});});});};exports[_0x8b13('0xb')]=function(){return connect()[_0x8b13('0x5')](function(){return new BPromise(function(_0x3cc9a0,_0x559442){return pm2[_0x8b13('0xb')](function(_0x3c4d4f){if(_0x3c4d4f){return _0x559442(_0x3c4d4f);}return _0x3cc9a0(_0x8b13('0xc'));});});});};