ae7e110c6e036faad909feec0a315f1bbde24c7b
[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 _0x274a=['/:id/unread','getUnread','/:id/members','getMembers','/:id/messages','getMessages','post','create','addMessage','put','update','delete','destroy','removeMembers','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','/:id'];(function(_0x4e2196,_0x29775b){var _0x414919=function(_0x4ec2c6){while(--_0x4ec2c6){_0x4e2196['push'](_0x4e2196['shift']());}};_0x414919(++_0x29775b);}(_0x274a,0x15f));var _0xa274=function(_0x48999d,_0x1e02cb){_0x48999d=_0x48999d-0x0;var _0x1ad0d1=_0x274a[_0x48999d];return _0x1ad0d1;};'use strict';var multer=require(_0xa274('0x0'));var util=require('util');var path=require(_0xa274('0x1'));var timeout=require('connect-timeout');var express=require(_0xa274('0x2'));var router=express[_0xa274('0x3')]();var fs_extra=require(_0xa274('0x4'));var auth=require(_0xa274('0x5'));var interaction=require(_0xa274('0x6'));var config=require(_0xa274('0x7'));var controller=require('./chatGroup.controller');router['get']('/',auth[_0xa274('0x8')](),controller[_0xa274('0x9')]);router[_0xa274('0xa')](_0xa274('0xb'),auth[_0xa274('0x8')](),controller['describe']);router[_0xa274('0xa')](_0xa274('0xc'),auth[_0xa274('0x8')](),controller['show']);router[_0xa274('0xa')](_0xa274('0xd'),auth[_0xa274('0x8')](),controller[_0xa274('0xe')]);router[_0xa274('0xa')](_0xa274('0xf'),auth[_0xa274('0x8')](),controller[_0xa274('0x10')]);router[_0xa274('0xa')](_0xa274('0x11'),auth['isAuthenticated'](),controller[_0xa274('0x12')]);router[_0xa274('0x13')]('/',auth['isAuthenticated'](),controller[_0xa274('0x14')]);router[_0xa274('0x13')](_0xa274('0xf'),auth[_0xa274('0x8')](),controller['addMembers']);router['post'](_0xa274('0x11'),auth[_0xa274('0x8')](),controller[_0xa274('0x15')]);router[_0xa274('0x16')](_0xa274('0xc'),auth[_0xa274('0x8')](),controller[_0xa274('0x17')]);router[_0xa274('0x18')]('/:id',auth[_0xa274('0x8')](),controller[_0xa274('0x19')]);router[_0xa274('0x18')](_0xa274('0xf'),auth[_0xa274('0x8')](),controller[_0xa274('0x1a')]);module[_0xa274('0x1b')]=router;