db28c12d700e71cf924b4315cbef3a4df7c419e2
[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 _0x7a18=['../../components/interaction/service','../../config/environment','./chatGroup.controller','get','/describe','isAuthenticated','describe','/:id','show','/:id/unread','getUnread','getMembers','/:id/messages','getMessages','post','create','/:id/members','addMessage','put','update','delete','destroy','removeMembers','multer','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x7a18,0x1bb));var _0x87a1=function(_0x264545,_0x214037){_0x264545=_0x264545-0x0;var _0x114d10=_0x7a18[_0x264545];return _0x114d10;};'use strict';var multer=require(_0x87a1('0x0'));var util=require(_0x87a1('0x1'));var path=require(_0x87a1('0x2'));var timeout=require(_0x87a1('0x3'));var express=require(_0x87a1('0x4'));var router=express[_0x87a1('0x5')]();var auth=require(_0x87a1('0x6'));var interaction=require(_0x87a1('0x7'));var config=require(_0x87a1('0x8'));var controller=require(_0x87a1('0x9'));router[_0x87a1('0xa')]('/',auth['isAuthenticated'](),controller['index']);router[_0x87a1('0xa')](_0x87a1('0xb'),auth[_0x87a1('0xc')](),controller[_0x87a1('0xd')]);router['get'](_0x87a1('0xe'),auth[_0x87a1('0xc')](),controller[_0x87a1('0xf')]);router[_0x87a1('0xa')](_0x87a1('0x10'),auth[_0x87a1('0xc')](),controller[_0x87a1('0x11')]);router['get']('/:id/members',auth[_0x87a1('0xc')](),controller[_0x87a1('0x12')]);router[_0x87a1('0xa')](_0x87a1('0x13'),auth['isAuthenticated'](),controller[_0x87a1('0x14')]);router[_0x87a1('0x15')]('/',auth[_0x87a1('0xc')](),controller[_0x87a1('0x16')]);router['post'](_0x87a1('0x17'),auth[_0x87a1('0xc')](),controller['addMembers']);router['post']('/:id/messages',auth[_0x87a1('0xc')](),controller[_0x87a1('0x18')]);router[_0x87a1('0x19')](_0x87a1('0xe'),auth[_0x87a1('0xc')](),controller[_0x87a1('0x1a')]);router[_0x87a1('0x1b')](_0x87a1('0xe'),auth[_0x87a1('0xc')](),controller[_0x87a1('0x1c')]);router['delete'](_0x87a1('0x17'),auth[_0x87a1('0xc')](),controller[_0x87a1('0x1d')]);module['exports']=router;