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 _0x35df=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','describe','/:id','show','/:id/unread','getUnread','/:id/messages','getMessages','create','post','/:id/members','addMembers','update','delete','exports','path','connect-timeout'];(function(_0x1c6d19,_0x314ca4){var _0x31a38a=function(_0x14421b){while(--_0x14421b){_0x1c6d19['push'](_0x1c6d19['shift']());}};_0x31a38a(++_0x314ca4);}(_0x35df,0x76));var _0xf35d=function(_0x297fd3,_0x115406){_0x297fd3=_0x297fd3-0x0;var _0x2af381=_0x35df[_0x297fd3];return _0x2af381;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf35d('0x0'));var timeout=require(_0xf35d('0x1'));var express=require(_0xf35d('0x2'));var router=express[_0xf35d('0x3')]();var auth=require(_0xf35d('0x4'));var interaction=require(_0xf35d('0x5'));var config=require(_0xf35d('0x6'));var controller=require(_0xf35d('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xf35d('0x8')]('/describe',auth[_0xf35d('0x9')](),controller[_0xf35d('0xa')]);router['get'](_0xf35d('0xb'),auth[_0xf35d('0x9')](),controller[_0xf35d('0xc')]);router[_0xf35d('0x8')](_0xf35d('0xd'),auth['isAuthenticated'](),controller[_0xf35d('0xe')]);router['get']('/:id/members',auth[_0xf35d('0x9')](),controller['getMembers']);router['get'](_0xf35d('0xf'),auth[_0xf35d('0x9')](),controller[_0xf35d('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf35d('0x11')]);router[_0xf35d('0x12')](_0xf35d('0x13'),auth[_0xf35d('0x9')](),controller[_0xf35d('0x14')]);router['post']('/:id/messages',auth['isAuthenticated'](),controller['addMessage']);router['put']('/:id',auth[_0xf35d('0x9')](),controller[_0xf35d('0x15')]);router[_0xf35d('0x16')]('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0xf35d('0x16')](_0xf35d('0x13'),auth[_0xf35d('0x9')](),controller['removeMembers']);module[_0xf35d('0x17')]=router;