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