Built motion from commit (unavailable).|2.5.25
[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 _0xb8f5=['exports','util','Router','../../components/auth/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/members','getMembers','/:id/messages','getMessages','post','create','addMessage','put','update','delete','removeMembers'];(function(_0xaadc70,_0x2c050d){var _0x3ac647=function(_0x57f7d8){while(--_0x57f7d8){_0xaadc70['push'](_0xaadc70['shift']());}};_0x3ac647(++_0x2c050d);}(_0xb8f5,0x171));var _0x5b8f=function(_0xe5b4a1,_0x1225b2){_0xe5b4a1=_0xe5b4a1-0x0;var _0x31d338=_0xb8f5[_0xe5b4a1];return _0x31d338;};'use strict';var multer=require('multer');var util=require(_0x5b8f('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x5b8f('0x1')]();var auth=require(_0x5b8f('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x5b8f('0x3'));var controller=require(_0x5b8f('0x4'));router[_0x5b8f('0x5')]('/',auth[_0x5b8f('0x6')](),controller['index']);router[_0x5b8f('0x5')](_0x5b8f('0x7'),auth[_0x5b8f('0x6')](),controller[_0x5b8f('0x8')]);router[_0x5b8f('0x5')](_0x5b8f('0x9'),auth[_0x5b8f('0x6')](),controller[_0x5b8f('0xa')]);router[_0x5b8f('0x5')]('/:id/unread',auth[_0x5b8f('0x6')](),controller['getUnread']);router['get'](_0x5b8f('0xb'),auth[_0x5b8f('0x6')](),controller[_0x5b8f('0xc')]);router[_0x5b8f('0x5')](_0x5b8f('0xd'),auth[_0x5b8f('0x6')](),controller[_0x5b8f('0xe')]);router[_0x5b8f('0xf')]('/',auth[_0x5b8f('0x6')](),controller[_0x5b8f('0x10')]);router[_0x5b8f('0xf')](_0x5b8f('0xb'),auth['isAuthenticated'](),controller['addMembers']);router[_0x5b8f('0xf')](_0x5b8f('0xd'),auth[_0x5b8f('0x6')](),controller[_0x5b8f('0x11')]);router[_0x5b8f('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x5b8f('0x13')]);router[_0x5b8f('0x14')](_0x5b8f('0x9'),auth[_0x5b8f('0x6')](),controller['destroy']);router['delete']('/:id/members',auth[_0x5b8f('0x6')](),controller[_0x5b8f('0x15')]);module[_0x5b8f('0x16')]=router;