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