Built motion from commit 9d0783e6.|2.6.13
[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 _0xfd70=['delete','dump','bluebird','./config','connect','connected','start','then','disconnect','stop','restart','list','describe'];(function(_0xc99b00,_0x16f60f){var _0x31369d=function(_0x46c31d){while(--_0x46c31d){_0xc99b00['push'](_0xc99b00['shift']());}};_0x31369d(++_0x16f60f);}(_0xfd70,0x154));var _0x0fd7=function(_0x4ec520,_0x15fee2){_0x4ec520=_0x4ec520-0x0;var _0xed49d7=_0xfd70[_0x4ec520];return _0xed49d7;};'use strict';var pm2=require('pm2');var BPromise=require(_0x0fd7('0x0'));var config=require(_0x0fd7('0x1'));function connect(){return new BPromise(function(_0x43e686,_0x581da6){return pm2[_0x0fd7('0x2')](function(_0x2f5478){if(_0x2f5478){return _0x581da6(_0x2f5478);}return _0x43e686(_0x0fd7('0x3'));});});};exports[_0x0fd7('0x4')]=function(_0x317b14){return connect()[_0x0fd7('0x5')](function(){return new BPromise(function(_0x1d95bf,_0x4726c7){return pm2[_0x0fd7('0x4')](_0x317b14,function(_0x3934c6,_0x22747e){if(_0x3934c6){return _0x4726c7(_0x3934c6);}pm2[_0x0fd7('0x6')]();return _0x1d95bf(_0x22747e);});});});};exports[_0x0fd7('0x7')]=function(_0x4f71ac){return connect()[_0x0fd7('0x5')](function(){return new BPromise(function(_0x2cba3c,_0x468f3a){return pm2[_0x0fd7('0x7')](_0x4f71ac,function(_0x186612,_0x3792fd){if(_0x186612){return _0x468f3a(_0x186612);}pm2[_0x0fd7('0x6')]();return _0x2cba3c(_0x3792fd);});});});};exports[_0x0fd7('0x8')]=function(_0xe2a59f){return connect()[_0x0fd7('0x5')](function(){return new BPromise(function(_0x4afb9a,_0x257d3e){return pm2[_0x0fd7('0x8')](_0xe2a59f,function(_0x54156e,_0x4f919c){if(_0x54156e){return _0x257d3e(_0x54156e);}pm2[_0x0fd7('0x6')]();return _0x4afb9a(_0x4f919c);});});});};exports[_0x0fd7('0x9')]=function(){return connect()[_0x0fd7('0x5')](function(){return new BPromise(function(_0x5cc6a4,_0x5247a9){return pm2[_0x0fd7('0x9')](function(_0x31ba4f,_0x16b709){if(_0x31ba4f){return _0x5247a9(_0x31ba4f);}pm2[_0x0fd7('0x6')]();return _0x5cc6a4(_0x16b709);});});});};exports[_0x0fd7('0xa')]=function(_0xff44cd){return connect()[_0x0fd7('0x5')](function(){return new BPromise(function(_0x13b9f5,_0x314f8b){return pm2[_0x0fd7('0xa')](_0xff44cd,function(_0x35a79b,_0x23fa85){if(_0x35a79b){return _0x314f8b(_0x35a79b);}pm2[_0x0fd7('0x6')]();return _0x13b9f5(_0x23fa85);});});});};exports['delete']=function(_0xb9bd1e){return connect()[_0x0fd7('0x5')](function(){return new BPromise(function(_0x1b8704,_0x2cf2d3){return pm2[_0x0fd7('0xb')](_0xb9bd1e,function(_0x427c57,_0x1546e4){if(_0x427c57){return _0x2cf2d3(_0x427c57);}pm2[_0x0fd7('0x6')]();return _0x1b8704(_0x1546e4);});});});};exports[_0x0fd7('0xc')]=function(){return connect()[_0x0fd7('0x5')](function(){return new BPromise(function(_0xe327eb,_0x37341f){return pm2[_0x0fd7('0xc')](function(_0x597b12){if(_0x597b12){return _0x37341f(_0x597b12);}return _0xe327eb('saved');});});});};