4a8158be14ce7cc895823f2d931bc3d25006edbc
[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 _0xc793=['delete','destroy','removeMembers','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','index','/describe','describe','/:id','show','getUnread','/:id/members','getMembers','/:id/messages','getMessages','post','create','addMembers','addMessage','update'];(function(_0x5c230a,_0xf87ca1){var _0xb74e8e=function(_0x257083){while(--_0x257083){_0x5c230a['push'](_0x5c230a['shift']());}};_0xb74e8e(++_0xf87ca1);}(_0xc793,0x1a4));var _0x3c79=function(_0x92365c,_0x3bf098){_0x92365c=_0x92365c-0x0;var _0x55d973=_0xc793[_0x92365c];return _0x55d973;};'use strict';var multer=require(_0x3c79('0x0'));var util=require(_0x3c79('0x1'));var path=require(_0x3c79('0x2'));var timeout=require(_0x3c79('0x3'));var express=require(_0x3c79('0x4'));var router=express[_0x3c79('0x5')]();var fs_extra=require(_0x3c79('0x6'));var auth=require(_0x3c79('0x7'));var interaction=require(_0x3c79('0x8'));var config=require(_0x3c79('0x9'));var controller=require(_0x3c79('0xa'));router[_0x3c79('0xb')]('/',auth[_0x3c79('0xc')](),controller[_0x3c79('0xd')]);router['get'](_0x3c79('0xe'),auth['isAuthenticated'](),controller[_0x3c79('0xf')]);router[_0x3c79('0xb')](_0x3c79('0x10'),auth[_0x3c79('0xc')](),controller[_0x3c79('0x11')]);router[_0x3c79('0xb')]('/:id/unread',auth[_0x3c79('0xc')](),controller[_0x3c79('0x12')]);router[_0x3c79('0xb')](_0x3c79('0x13'),auth['isAuthenticated'](),controller[_0x3c79('0x14')]);router['get'](_0x3c79('0x15'),auth[_0x3c79('0xc')](),controller[_0x3c79('0x16')]);router[_0x3c79('0x17')]('/',auth[_0x3c79('0xc')](),controller[_0x3c79('0x18')]);router[_0x3c79('0x17')]('/:id/members',auth[_0x3c79('0xc')](),controller[_0x3c79('0x19')]);router['post'](_0x3c79('0x15'),auth['isAuthenticated'](),controller[_0x3c79('0x1a')]);router['put'](_0x3c79('0x10'),auth[_0x3c79('0xc')](),controller[_0x3c79('0x1b')]);router[_0x3c79('0x1c')](_0x3c79('0x10'),auth['isAuthenticated'](),controller[_0x3c79('0x1d')]);router[_0x3c79('0x1c')]('/:id/members',auth[_0x3c79('0xc')](),controller[_0x3c79('0x1e')]);module[_0x3c79('0x1f')]=router;