Built motion from commit (unavailable).|2.5.30
[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 _0x3ffb=['then','disconnect','stop','restart','list','delete','dump','pm2','bluebird','./config','connected','start'];(function(_0x5471ec,_0x1ce81a){var _0x121d4c=function(_0xefb655){while(--_0xefb655){_0x5471ec['push'](_0x5471ec['shift']());}};_0x121d4c(++_0x1ce81a);}(_0x3ffb,0x13f));var _0xb3ff=function(_0xd242ac,_0x56a837){_0xd242ac=_0xd242ac-0x0;var _0x33bcb5=_0x3ffb[_0xd242ac];return _0x33bcb5;};'use strict';var pm2=require(_0xb3ff('0x0'));var BPromise=require(_0xb3ff('0x1'));var config=require(_0xb3ff('0x2'));function connect(){return new BPromise(function(_0x30e6b5,_0x29e19e){return pm2['connect'](function(_0x940654){if(_0x940654){return _0x29e19e(_0x940654);}return _0x30e6b5(_0xb3ff('0x3'));});});};exports[_0xb3ff('0x4')]=function(_0x10de1f){return connect()[_0xb3ff('0x5')](function(){return new BPromise(function(_0x3b5b56,_0x45d514){return pm2['start'](_0x10de1f,function(_0x301d72,_0x99d772){if(_0x301d72){return _0x45d514(_0x301d72);}pm2[_0xb3ff('0x6')]();return _0x3b5b56(_0x99d772);});});});};exports[_0xb3ff('0x7')]=function(_0x4e3533){return connect()['then'](function(){return new BPromise(function(_0x1d1411,_0x36c3af){return pm2[_0xb3ff('0x7')](_0x4e3533,function(_0x59d890,_0x4ced35){if(_0x59d890){return _0x36c3af(_0x59d890);}pm2[_0xb3ff('0x6')]();return _0x1d1411(_0x4ced35);});});});};exports[_0xb3ff('0x8')]=function(_0x522efa){return connect()[_0xb3ff('0x5')](function(){return new BPromise(function(_0x2b6ecb,_0x8e9050){return pm2[_0xb3ff('0x8')](_0x522efa,function(_0x290f80,_0x2a7527){if(_0x290f80){return _0x8e9050(_0x290f80);}pm2[_0xb3ff('0x6')]();return _0x2b6ecb(_0x2a7527);});});});};exports[_0xb3ff('0x9')]=function(){return connect()['then'](function(){return new BPromise(function(_0x2f548b,_0x2f8f65){return pm2[_0xb3ff('0x9')](function(_0xb7cfa0,_0xb0c045){if(_0xb7cfa0){return _0x2f8f65(_0xb7cfa0);}pm2[_0xb3ff('0x6')]();return _0x2f548b(_0xb0c045);});});});};exports['describe']=function(_0x16ade0){return connect()['then'](function(){return new BPromise(function(_0x3347c4,_0xc62f03){return pm2['describe'](_0x16ade0,function(_0xe716fb,_0x3713f7){if(_0xe716fb){return _0xc62f03(_0xe716fb);}pm2[_0xb3ff('0x6')]();return _0x3347c4(_0x3713f7);});});});};exports[_0xb3ff('0xa')]=function(_0x4d8ea6){return connect()[_0xb3ff('0x5')](function(){return new BPromise(function(_0x3e85c7,_0x2fe7ca){return pm2['delete'](_0x4d8ea6,function(_0x16c06b,_0x502e40){if(_0x16c06b){return _0x2fe7ca(_0x16c06b);}pm2[_0xb3ff('0x6')]();return _0x3e85c7(_0x502e40);});});});};exports['dump']=function(){return connect()[_0xb3ff('0x5')](function(){return new BPromise(function(_0x3003a2,_0x5c4a7e){return pm2[_0xb3ff('0xb')](function(_0x1cfaea){if(_0x1cfaea){return _0x5c4a7e(_0x1cfaea);}return _0x3003a2('saved');});});});};