f65807dfb589874168b613e8c4251d7fa90b1e26
[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 _0x2f5a=['../../components/auth/service','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','describe','/:id','show','/:id/members','getMembers','/:id/messages','post','create','addMembers','addMessage','put','destroy','removeMembers','exports','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x109ecc,_0x2ab1d8){var _0x2dd2e9=function(_0x2f6c57){while(--_0x2f6c57){_0x109ecc['push'](_0x109ecc['shift']());}};_0x2dd2e9(++_0x2ab1d8);}(_0x2f5a,0x18e));var _0xa2f5=function(_0x54b749,_0x45913f){_0x54b749=_0x54b749-0x0;var _0x5a1b77=_0x2f5a[_0x54b749];return _0x5a1b77;};'use strict';var multer=require(_0xa2f5('0x0'));var util=require(_0xa2f5('0x1'));var path=require(_0xa2f5('0x2'));var timeout=require(_0xa2f5('0x3'));var express=require(_0xa2f5('0x4'));var router=express[_0xa2f5('0x5')]();var fs_extra=require(_0xa2f5('0x6'));var auth=require(_0xa2f5('0x7'));var interaction=require(_0xa2f5('0x8'));var config=require(_0xa2f5('0x9'));var controller=require(_0xa2f5('0xa'));router[_0xa2f5('0xb')]('/',auth[_0xa2f5('0xc')](),controller['index']);router[_0xa2f5('0xb')]('/describe',auth[_0xa2f5('0xc')](),controller[_0xa2f5('0xd')]);router[_0xa2f5('0xb')](_0xa2f5('0xe'),auth[_0xa2f5('0xc')](),controller[_0xa2f5('0xf')]);router[_0xa2f5('0xb')]('/:id/unread',auth['isAuthenticated'](),controller['getUnread']);router['get'](_0xa2f5('0x10'),auth[_0xa2f5('0xc')](),controller[_0xa2f5('0x11')]);router[_0xa2f5('0xb')](_0xa2f5('0x12'),auth['isAuthenticated'](),controller['getMessages']);router[_0xa2f5('0x13')]('/',auth[_0xa2f5('0xc')](),controller[_0xa2f5('0x14')]);router[_0xa2f5('0x13')](_0xa2f5('0x10'),auth[_0xa2f5('0xc')](),controller[_0xa2f5('0x15')]);router[_0xa2f5('0x13')](_0xa2f5('0x12'),auth[_0xa2f5('0xc')](),controller[_0xa2f5('0x16')]);router[_0xa2f5('0x17')](_0xa2f5('0xe'),auth[_0xa2f5('0xc')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xa2f5('0x18')]);router['delete'](_0xa2f5('0x10'),auth[_0xa2f5('0xc')](),controller[_0xa2f5('0x19')]);module[_0xa2f5('0x1a')]=router;