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