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