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