Built motion from commit (unavailable).|2.5.3
[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 _0xce8f=['show','/:id/unread','getUnread','/:id/members','getMembers','getMessages','post','create','addMembers','/:id/messages','addMessage','put','update','delete','removeMembers','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./chatGroup.controller','isAuthenticated','index','get','/describe','describe','/:id'];(function(_0x378b4,_0x5ca7fa){var _0x11d07b=function(_0x35d420){while(--_0x35d420){_0x378b4['push'](_0x378b4['shift']());}};_0x11d07b(++_0x5ca7fa);}(_0xce8f,0x188));var _0xfce8=function(_0x46afa4,_0x55f3e6){_0x46afa4=_0x46afa4-0x0;var _0x4430de=_0xce8f[_0x46afa4];return _0x4430de;};'use strict';var multer=require(_0xfce8('0x0'));var util=require(_0xfce8('0x1'));var path=require(_0xfce8('0x2'));var timeout=require('connect-timeout');var express=require(_0xfce8('0x3'));var router=express[_0xfce8('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xfce8('0x5'));var config=require(_0xfce8('0x6'));var controller=require(_0xfce8('0x7'));router['get']('/',auth[_0xfce8('0x8')](),controller[_0xfce8('0x9')]);router[_0xfce8('0xa')](_0xfce8('0xb'),auth[_0xfce8('0x8')](),controller[_0xfce8('0xc')]);router[_0xfce8('0xa')](_0xfce8('0xd'),auth[_0xfce8('0x8')](),controller[_0xfce8('0xe')]);router[_0xfce8('0xa')](_0xfce8('0xf'),auth[_0xfce8('0x8')](),controller[_0xfce8('0x10')]);router[_0xfce8('0xa')](_0xfce8('0x11'),auth[_0xfce8('0x8')](),controller[_0xfce8('0x12')]);router[_0xfce8('0xa')]('/:id/messages',auth[_0xfce8('0x8')](),controller[_0xfce8('0x13')]);router[_0xfce8('0x14')]('/',auth['isAuthenticated'](),controller[_0xfce8('0x15')]);router[_0xfce8('0x14')](_0xfce8('0x11'),auth[_0xfce8('0x8')](),controller[_0xfce8('0x16')]);router['post'](_0xfce8('0x17'),auth[_0xfce8('0x8')](),controller[_0xfce8('0x18')]);router[_0xfce8('0x19')](_0xfce8('0xd'),auth['isAuthenticated'](),controller[_0xfce8('0x1a')]);router[_0xfce8('0x1b')]('/:id',auth[_0xfce8('0x8')](),controller['destroy']);router[_0xfce8('0x1b')](_0xfce8('0x11'),auth['isAuthenticated'](),controller[_0xfce8('0x1c')]);module['exports']=router;