1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xccf8=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./chatGroup.controller','get','isAuthenticated','index','/describe','describe','/:id','show','getMembers','/:id/messages','post','create','/:id/members','addMembers','addMessage','put','delete','destroy','removeMembers','exports','multer','util'];(function(_0x45804b,_0x38905e){var _0x538282=function(_0xdfa594){while(--_0xdfa594){_0x45804b['push'](_0x45804b['shift']());}};_0x538282(++_0x38905e);}(_0xccf8,0x1a2));var _0x8ccf=function(_0x385685,_0x488287){_0x385685=_0x385685-0x0;var _0x41320f=_0xccf8[_0x385685];return _0x41320f;};'use strict';var multer=require(_0x8ccf('0x0'));var util=require(_0x8ccf('0x1'));var path=require(_0x8ccf('0x2'));var timeout=require(_0x8ccf('0x3'));var express=require(_0x8ccf('0x4'));var router=express[_0x8ccf('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x8ccf('0x6'));var interaction=require(_0x8ccf('0x7'));var config=require('../../config/environment');var controller=require(_0x8ccf('0x8'));router[_0x8ccf('0x9')]('/',auth[_0x8ccf('0xa')](),controller[_0x8ccf('0xb')]);router[_0x8ccf('0x9')](_0x8ccf('0xc'),auth[_0x8ccf('0xa')](),controller[_0x8ccf('0xd')]);router[_0x8ccf('0x9')](_0x8ccf('0xe'),auth[_0x8ccf('0xa')](),controller[_0x8ccf('0xf')]);router['get']('/:id/unread',auth[_0x8ccf('0xa')](),controller['getUnread']);router[_0x8ccf('0x9')]('/:id/members',auth[_0x8ccf('0xa')](),controller[_0x8ccf('0x10')]);router['get'](_0x8ccf('0x11'),auth[_0x8ccf('0xa')](),controller['getMessages']);router[_0x8ccf('0x12')]('/',auth[_0x8ccf('0xa')](),controller[_0x8ccf('0x13')]);router[_0x8ccf('0x12')](_0x8ccf('0x14'),auth[_0x8ccf('0xa')](),controller[_0x8ccf('0x15')]);router[_0x8ccf('0x12')](_0x8ccf('0x11'),auth[_0x8ccf('0xa')](),controller[_0x8ccf('0x16')]);router[_0x8ccf('0x17')](_0x8ccf('0xe'),auth[_0x8ccf('0xa')](),controller['update']);router[_0x8ccf('0x18')]('/:id',auth['isAuthenticated'](),controller[_0x8ccf('0x19')]);router[_0x8ccf('0x18')]('/:id/members',auth[_0x8ccf('0xa')](),controller[_0x8ccf('0x1a')]);module[_0x8ccf('0x1b')]=router;