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