722cbd5938e8d7bf2c9b5963f70d24006ce5348a
[motion2.git] / server / api / chatGroup / index.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 _0x5661=['getMembers','/:id/messages','getMessages','post','create','addMembers','put','update','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','./chatGroup.controller','get','isAuthenticated','/describe','/:id','show','/:id/unread','getUnread'];(function(_0x2d5b97,_0xc14697){var _0x26576a=function(_0x30c6a1){while(--_0x30c6a1){_0x2d5b97['push'](_0x2d5b97['shift']());}};_0x26576a(++_0xc14697);}(_0x5661,0xc1));var _0x1566=function(_0x52023e,_0x3d2d03){_0x52023e=_0x52023e-0x0;var _0x4ab315=_0x5661[_0x52023e];return _0x4ab315;};'use strict';var multer=require(_0x1566('0x0'));var util=require(_0x1566('0x1'));var path=require(_0x1566('0x2'));var timeout=require('connect-timeout');var express=require(_0x1566('0x3'));var router=express[_0x1566('0x4')]();var auth=require(_0x1566('0x5'));var interaction=require(_0x1566('0x6'));var config=require('../../config/environment');var controller=require(_0x1566('0x7'));router[_0x1566('0x8')]('/',auth[_0x1566('0x9')](),controller['index']);router[_0x1566('0x8')](_0x1566('0xa'),auth['isAuthenticated'](),controller['describe']);router[_0x1566('0x8')](_0x1566('0xb'),auth[_0x1566('0x9')](),controller[_0x1566('0xc')]);router['get'](_0x1566('0xd'),auth[_0x1566('0x9')](),controller[_0x1566('0xe')]);router['get']('/:id/members',auth[_0x1566('0x9')](),controller[_0x1566('0xf')]);router[_0x1566('0x8')](_0x1566('0x10'),auth[_0x1566('0x9')](),controller[_0x1566('0x11')]);router[_0x1566('0x12')]('/',auth[_0x1566('0x9')](),controller[_0x1566('0x13')]);router[_0x1566('0x12')]('/:id/members',auth[_0x1566('0x9')](),controller[_0x1566('0x14')]);router[_0x1566('0x12')](_0x1566('0x10'),auth[_0x1566('0x9')](),controller['addMessage']);router[_0x1566('0x15')](_0x1566('0xb'),auth[_0x1566('0x9')](),controller[_0x1566('0x16')]);router[_0x1566('0x17')](_0x1566('0xb'),auth['isAuthenticated'](),controller[_0x1566('0x18')]);router[_0x1566('0x17')]('/:id/members',auth[_0x1566('0x9')](),controller['removeMembers']);module[_0x1566('0x19')]=router;