Built motion from commit (unavailable).|2.5.4
[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 _0xa141=['path','express','Router','../../config/environment','./chatGroup.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/unread','getUnread','/:id/members','getMembers','/:id/messages','create','addMembers','post','addMessage','put','delete','removeMembers','exports','multer','util'];(function(_0x50d5b1,_0x3716b4){var _0x96ec42=function(_0x46b16e){while(--_0x46b16e){_0x50d5b1['push'](_0x50d5b1['shift']());}};_0x96ec42(++_0x3716b4);}(_0xa141,0xa0));var _0x1a14=function(_0x168951,_0x3f909a){_0x168951=_0x168951-0x0;var _0x1526a9=_0xa141[_0x168951];return _0x1526a9;};'use strict';var multer=require(_0x1a14('0x0'));var util=require(_0x1a14('0x1'));var path=require(_0x1a14('0x2'));var timeout=require('connect-timeout');var express=require(_0x1a14('0x3'));var router=express[_0x1a14('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1a14('0x5'));var controller=require(_0x1a14('0x6'));router[_0x1a14('0x7')]('/',auth[_0x1a14('0x8')](),controller[_0x1a14('0x9')]);router[_0x1a14('0x7')](_0x1a14('0xa'),auth[_0x1a14('0x8')](),controller[_0x1a14('0xb')]);router[_0x1a14('0x7')](_0x1a14('0xc'),auth[_0x1a14('0x8')](),controller[_0x1a14('0xd')]);router[_0x1a14('0x7')](_0x1a14('0xe'),auth[_0x1a14('0x8')](),controller[_0x1a14('0xf')]);router['get'](_0x1a14('0x10'),auth[_0x1a14('0x8')](),controller[_0x1a14('0x11')]);router[_0x1a14('0x7')](_0x1a14('0x12'),auth[_0x1a14('0x8')](),controller['getMessages']);router['post']('/',auth[_0x1a14('0x8')](),controller[_0x1a14('0x13')]);router['post']('/:id/members',auth[_0x1a14('0x8')](),controller[_0x1a14('0x14')]);router[_0x1a14('0x15')](_0x1a14('0x12'),auth[_0x1a14('0x8')](),controller[_0x1a14('0x16')]);router[_0x1a14('0x17')](_0x1a14('0xc'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0x1a14('0x8')](),controller['destroy']);router[_0x1a14('0x18')]('/:id/members',auth[_0x1a14('0x8')](),controller[_0x1a14('0x19')]);module[_0x1a14('0x1a')]=router;