274a05a8eab30102b990d2e69ba5eab9943d7a6b
[motion2.git] / server / config / pm2 / config.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 _0x015f=['join','root','legacy-libs','express','ami','../../services/ami/index.js','../../services/agi/index.js','email','../../services/routing/index.js','xdr','../../services/xdr/index.js','path','../../config/environment'];(function(_0xfae23b,_0x2be4ba){var _0x200640=function(_0x4ae258){while(--_0x4ae258){_0xfae23b['push'](_0xfae23b['shift']());}};_0x200640(++_0x2be4ba);}(_0x015f,0x9a));var _0xf015=function(_0x2b47ad,_0x55c7cc){_0x2b47ad=_0x2b47ad-0x0;var _0x1a2426=_0x015f[_0x2b47ad];return _0x1a2426;};'use strict';var path=require(_0xf015('0x0'));var cfg=require(_0xf015('0x1'));var env={'NODE_PATH':path['resolve'](path[_0xf015('0x2')](cfg[_0xf015('0x3')],_0xf015('0x4')))};var pm2config={'apps':[{'name':_0xf015('0x5'),'script':path[_0xf015('0x2')](__dirname,'../../services/express/index.js'),'env':env},{'name':_0xf015('0x6'),'script':path[_0xf015('0x2')](__dirname,_0xf015('0x7')),'env':env},{'name':'agi','script':path[_0xf015('0x2')](__dirname,_0xf015('0x8')),'env':env},{'name':_0xf015('0x9'),'script':path['join'](__dirname,'../../services/email/index.js'),'env':env},{'name':'routing','script':path['join'](__dirname,_0xf015('0xa')),'env':env},{'name':_0xf015('0xb'),'script':path[_0xf015('0x2')](__dirname,_0xf015('0xc')),'env':env}]};module['exports']=pm2config;