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