3be69c54e73e9f75b9695abc8ea246dd59655940
[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 _0xa5c9=['../../components/auth/service','../../config/environment','get','/describe','describe','/:id','isAuthenticated','show','/:id/unread','getUnread','/:id/members','/:id/messages','post','create','addMessage','put','update','delete','destroy','removeMembers','path','connect-timeout','Router','fs-extra'];(function(_0x54ef77,_0x2f78da){var _0x489951=function(_0x4d0f70){while(--_0x4d0f70){_0x54ef77['push'](_0x54ef77['shift']());}};_0x489951(++_0x2f78da);}(_0xa5c9,0x104));var _0x9a5c=function(_0x5e6ea3,_0x9addd2){_0x5e6ea3=_0x5e6ea3-0x0;var _0x4048b5=_0xa5c9[_0x5e6ea3];return _0x4048b5;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x9a5c('0x0'));var timeout=require(_0x9a5c('0x1'));var express=require('express');var router=express[_0x9a5c('0x2')]();var fs_extra=require(_0x9a5c('0x3'));var auth=require(_0x9a5c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x9a5c('0x5'));var controller=require('./chatGroup.controller');router[_0x9a5c('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x9a5c('0x6')](_0x9a5c('0x7'),auth['isAuthenticated'](),controller[_0x9a5c('0x8')]);router[_0x9a5c('0x6')](_0x9a5c('0x9'),auth[_0x9a5c('0xa')](),controller[_0x9a5c('0xb')]);router['get'](_0x9a5c('0xc'),auth[_0x9a5c('0xa')](),controller[_0x9a5c('0xd')]);router[_0x9a5c('0x6')](_0x9a5c('0xe'),auth['isAuthenticated'](),controller['getMembers']);router[_0x9a5c('0x6')](_0x9a5c('0xf'),auth['isAuthenticated'](),controller['getMessages']);router[_0x9a5c('0x10')]('/',auth[_0x9a5c('0xa')](),controller[_0x9a5c('0x11')]);router[_0x9a5c('0x10')]('/:id/members',auth[_0x9a5c('0xa')](),controller['addMembers']);router['post'](_0x9a5c('0xf'),auth[_0x9a5c('0xa')](),controller[_0x9a5c('0x12')]);router[_0x9a5c('0x13')](_0x9a5c('0x9'),auth[_0x9a5c('0xa')](),controller[_0x9a5c('0x14')]);router[_0x9a5c('0x15')](_0x9a5c('0x9'),auth['isAuthenticated'](),controller[_0x9a5c('0x16')]);router['delete'](_0x9a5c('0xe'),auth['isAuthenticated'](),controller[_0x9a5c('0x17')]);module['exports']=router;