Built motion from commit fe909640.|2.6.8
[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 _0xe79f=['bluebird','connect','connected','start','then','disconnect','stop','restart','list','describe','delete','dump','saved','pm2'];(function(_0x197185,_0x251145){var _0x2c8af1=function(_0x1dbcfd){while(--_0x1dbcfd){_0x197185['push'](_0x197185['shift']());}};_0x2c8af1(++_0x251145);}(_0xe79f,0x109));var _0xfe79=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xe79f[_0x321bb2];return _0x9c12ed;};'use strict';var pm2=require(_0xfe79('0x0'));var BPromise=require(_0xfe79('0x1'));var config=require('./config');function connect(){return new BPromise(function(_0x14cde5,_0x82f6cf){return pm2[_0xfe79('0x2')](function(_0xb3fa17){if(_0xb3fa17){return _0x82f6cf(_0xb3fa17);}return _0x14cde5(_0xfe79('0x3'));});});};exports[_0xfe79('0x4')]=function(_0x159206){return connect()[_0xfe79('0x5')](function(){return new BPromise(function(_0x16884d,_0x2572d2){return pm2[_0xfe79('0x4')](_0x159206,function(_0x8b2708,_0x21dff9){if(_0x8b2708){return _0x2572d2(_0x8b2708);}pm2[_0xfe79('0x6')]();return _0x16884d(_0x21dff9);});});});};exports[_0xfe79('0x7')]=function(_0x2cfbc1){return connect()[_0xfe79('0x5')](function(){return new BPromise(function(_0x287078,_0x483d76){return pm2[_0xfe79('0x7')](_0x2cfbc1,function(_0x517d61,_0x2c44fe){if(_0x517d61){return _0x483d76(_0x517d61);}pm2[_0xfe79('0x6')]();return _0x287078(_0x2c44fe);});});});};exports[_0xfe79('0x8')]=function(_0x4e6892){return connect()[_0xfe79('0x5')](function(){return new BPromise(function(_0x51467f,_0x599fa5){return pm2[_0xfe79('0x8')](_0x4e6892,function(_0x1a5a59,_0x473ee1){if(_0x1a5a59){return _0x599fa5(_0x1a5a59);}pm2[_0xfe79('0x6')]();return _0x51467f(_0x473ee1);});});});};exports[_0xfe79('0x9')]=function(){return connect()[_0xfe79('0x5')](function(){return new BPromise(function(_0x36bb48,_0x502906){return pm2[_0xfe79('0x9')](function(_0x247565,_0x428eda){if(_0x247565){return _0x502906(_0x247565);}pm2[_0xfe79('0x6')]();return _0x36bb48(_0x428eda);});});});};exports['describe']=function(_0x5c5694){return connect()[_0xfe79('0x5')](function(){return new BPromise(function(_0x33883c,_0xf4fc3b){return pm2[_0xfe79('0xa')](_0x5c5694,function(_0x2685b1,_0x1ac0a5){if(_0x2685b1){return _0xf4fc3b(_0x2685b1);}pm2[_0xfe79('0x6')]();return _0x33883c(_0x1ac0a5);});});});};exports[_0xfe79('0xb')]=function(_0x1bacc2){return connect()[_0xfe79('0x5')](function(){return new BPromise(function(_0x59069d,_0x4153f3){return pm2[_0xfe79('0xb')](_0x1bacc2,function(_0x1a6883,_0x18c8bd){if(_0x1a6883){return _0x4153f3(_0x1a6883);}pm2[_0xfe79('0x6')]();return _0x59069d(_0x18c8bd);});});});};exports['dump']=function(){return connect()[_0xfe79('0x5')](function(){return new BPromise(function(_0x1b8c40,_0x1e771c){return pm2[_0xfe79('0xc')](function(_0xd37422){if(_0xd37422){return _0x1e771c(_0xd37422);}return _0x1b8c40(_0xfe79('0xd'));});});});};