309e3aeb5eb1447a27ad9b9912651949e31beb6d
[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 _0x0f15=['/:id','show','getUnread','/:id/members','getMembers','getMessages','post','create','addMembers','/:id/messages','addMessage','put','update','delete','destroy','removeMembers','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','index','/describe','describe'];(function(_0x4f05b4,_0x571783){var _0xb965e9=function(_0x5cc78e){while(--_0x5cc78e){_0x4f05b4['push'](_0x4f05b4['shift']());}};_0xb965e9(++_0x571783);}(_0x0f15,0xe8));var _0x50f1=function(_0x44d40e,_0x385d76){_0x44d40e=_0x44d40e-0x0;var _0x49fa79=_0x0f15[_0x44d40e];return _0x49fa79;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x50f1('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x50f1('0x1')]();var auth=require(_0x50f1('0x2'));var interaction=require(_0x50f1('0x3'));var config=require(_0x50f1('0x4'));var controller=require(_0x50f1('0x5'));router[_0x50f1('0x6')]('/',auth[_0x50f1('0x7')](),controller[_0x50f1('0x8')]);router['get'](_0x50f1('0x9'),auth[_0x50f1('0x7')](),controller[_0x50f1('0xa')]);router['get'](_0x50f1('0xb'),auth[_0x50f1('0x7')](),controller[_0x50f1('0xc')]);router[_0x50f1('0x6')]('/:id/unread',auth[_0x50f1('0x7')](),controller[_0x50f1('0xd')]);router[_0x50f1('0x6')](_0x50f1('0xe'),auth[_0x50f1('0x7')](),controller[_0x50f1('0xf')]);router[_0x50f1('0x6')]('/:id/messages',auth[_0x50f1('0x7')](),controller[_0x50f1('0x10')]);router[_0x50f1('0x11')]('/',auth[_0x50f1('0x7')](),controller[_0x50f1('0x12')]);router[_0x50f1('0x11')](_0x50f1('0xe'),auth[_0x50f1('0x7')](),controller[_0x50f1('0x13')]);router['post'](_0x50f1('0x14'),auth[_0x50f1('0x7')](),controller[_0x50f1('0x15')]);router[_0x50f1('0x16')](_0x50f1('0xb'),auth['isAuthenticated'](),controller[_0x50f1('0x17')]);router[_0x50f1('0x18')](_0x50f1('0xb'),auth[_0x50f1('0x7')](),controller[_0x50f1('0x19')]);router[_0x50f1('0x18')]('/:id/members',auth[_0x50f1('0x7')](),controller[_0x50f1('0x1a')]);module['exports']=router;