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