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