4d87e8be02230d624bc6e19df38ba7b78aaa2250
[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 _0xc711=['./chatGroup.controller','get','isAuthenticated','index','describe','/:id','/:id/unread','/:id/members','getMembers','getMessages','post','create','addMembers','/:id/messages','put','update','destroy','delete','exports','util','express','Router','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x50007c,_0x1cbf11){var _0x5c1ec7=function(_0x52d038){while(--_0x52d038){_0x50007c['push'](_0x50007c['shift']());}};_0x5c1ec7(++_0x1cbf11);}(_0xc711,0xf4));var _0x1c71=function(_0x5d3903,_0x3d6c3e){_0x5d3903=_0x5d3903-0x0;var _0x4b8bc9=_0xc711[_0x5d3903];return _0x4b8bc9;};'use strict';var multer=require('multer');var util=require(_0x1c71('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x1c71('0x1'));var router=express[_0x1c71('0x2')]();var fs_extra=require(_0x1c71('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x1c71('0x4'));var config=require(_0x1c71('0x5'));var controller=require(_0x1c71('0x6'));router[_0x1c71('0x7')]('/',auth[_0x1c71('0x8')](),controller[_0x1c71('0x9')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x1c71('0xa')]);router[_0x1c71('0x7')](_0x1c71('0xb'),auth[_0x1c71('0x8')](),controller['show']);router[_0x1c71('0x7')](_0x1c71('0xc'),auth[_0x1c71('0x8')](),controller['getUnread']);router['get'](_0x1c71('0xd'),auth[_0x1c71('0x8')](),controller[_0x1c71('0xe')]);router[_0x1c71('0x7')]('/:id/messages',auth[_0x1c71('0x8')](),controller[_0x1c71('0xf')]);router[_0x1c71('0x10')]('/',auth[_0x1c71('0x8')](),controller[_0x1c71('0x11')]);router[_0x1c71('0x10')]('/:id/members',auth[_0x1c71('0x8')](),controller[_0x1c71('0x12')]);router[_0x1c71('0x10')](_0x1c71('0x13'),auth['isAuthenticated'](),controller['addMessage']);router[_0x1c71('0x14')](_0x1c71('0xb'),auth[_0x1c71('0x8')](),controller[_0x1c71('0x15')]);router['delete'](_0x1c71('0xb'),auth[_0x1c71('0x8')](),controller[_0x1c71('0x16')]);router[_0x1c71('0x17')](_0x1c71('0xd'),auth['isAuthenticated'](),controller['removeMembers']);module[_0x1c71('0x18')]=router;