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