79cc3b02aee392ecc230ce0992ff17d32c462494
[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 _0x429c=['removeMembers','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','index','/describe','getUnread','/:id/members','/:id/messages','getMessages','post','create','addMembers','addMessage','/:id','update','delete','destroy'];(function(_0x580576,_0x2f107d){var _0x3f55a0=function(_0x2e180b){while(--_0x2e180b){_0x580576['push'](_0x580576['shift']());}};_0x3f55a0(++_0x2f107d);}(_0x429c,0x1bc));var _0xc429=function(_0x176eb5,_0x5ef548){_0x176eb5=_0x176eb5-0x0;var _0xf66001=_0x429c[_0x176eb5];return _0xf66001;};'use strict';var multer=require(_0xc429('0x0'));var util=require('util');var path=require(_0xc429('0x1'));var timeout=require(_0xc429('0x2'));var express=require(_0xc429('0x3'));var router=express[_0xc429('0x4')]();var auth=require(_0xc429('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xc429('0x6'));var controller=require(_0xc429('0x7'));router[_0xc429('0x8')]('/',auth[_0xc429('0x9')](),controller[_0xc429('0xa')]);router[_0xc429('0x8')](_0xc429('0xb'),auth['isAuthenticated'](),controller['describe']);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0xc429('0x8')]('/:id/unread',auth[_0xc429('0x9')](),controller[_0xc429('0xc')]);router[_0xc429('0x8')](_0xc429('0xd'),auth[_0xc429('0x9')](),controller['getMembers']);router[_0xc429('0x8')](_0xc429('0xe'),auth[_0xc429('0x9')](),controller[_0xc429('0xf')]);router[_0xc429('0x10')]('/',auth[_0xc429('0x9')](),controller[_0xc429('0x11')]);router[_0xc429('0x10')](_0xc429('0xd'),auth['isAuthenticated'](),controller[_0xc429('0x12')]);router[_0xc429('0x10')]('/:id/messages',auth['isAuthenticated'](),controller[_0xc429('0x13')]);router['put'](_0xc429('0x14'),auth['isAuthenticated'](),controller[_0xc429('0x15')]);router[_0xc429('0x16')](_0xc429('0x14'),auth[_0xc429('0x9')](),controller[_0xc429('0x17')]);router[_0xc429('0x16')](_0xc429('0xd'),auth[_0xc429('0x9')](),controller[_0xc429('0x18')]);module[_0xc429('0x19')]=router;