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