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