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