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 _0x7896=['/describe','describe','/:id','isAuthenticated','getMembers','/:id/messages','getMessages','post','create','addMembers','addMessage','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','index'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x7896,0x127));var _0x6789=function(_0x1bd224,_0x4ff3cd){_0x1bd224=_0x1bd224-0x0;var _0x12f4e6=_0x7896[_0x1bd224];return _0x12f4e6;};'use strict';var multer=require(_0x6789('0x0'));var util=require(_0x6789('0x1'));var path=require(_0x6789('0x2'));var timeout=require(_0x6789('0x3'));var express=require(_0x6789('0x4'));var router=express[_0x6789('0x5')]();var fs_extra=require(_0x6789('0x6'));var auth=require(_0x6789('0x7'));var interaction=require(_0x6789('0x8'));var config=require(_0x6789('0x9'));var controller=require(_0x6789('0xa'));router[_0x6789('0xb')]('/',auth['isAuthenticated'](),controller[_0x6789('0xc')]);router[_0x6789('0xb')](_0x6789('0xd'),auth['isAuthenticated'](),controller[_0x6789('0xe')]);router['get'](_0x6789('0xf'),auth[_0x6789('0x10')](),controller['show']);router[_0x6789('0xb')]('/:id/unread',auth[_0x6789('0x10')](),controller['getUnread']);router[_0x6789('0xb')]('/:id/members',auth[_0x6789('0x10')](),controller[_0x6789('0x11')]);router[_0x6789('0xb')](_0x6789('0x12'),auth[_0x6789('0x10')](),controller[_0x6789('0x13')]);router[_0x6789('0x14')]('/',auth[_0x6789('0x10')](),controller[_0x6789('0x15')]);router[_0x6789('0x14')]('/:id/members',auth[_0x6789('0x10')](),controller[_0x6789('0x16')]);router[_0x6789('0x14')](_0x6789('0x12'),auth[_0x6789('0x10')](),controller[_0x6789('0x17')]);router['put']('/:id',auth[_0x6789('0x10')](),controller[_0x6789('0x18')]);router[_0x6789('0x19')](_0x6789('0xf'),auth[_0x6789('0x10')](),controller[_0x6789('0x1a')]);router[_0x6789('0x19')]('/:id/members',auth[_0x6789('0x10')](),controller['removeMembers']);module[_0x6789('0x1b')]=router;