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