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