Built motion from commit 1fd437e9.|2.6.19
[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 _0x76a3=['/:id/members','getMembers','/:id/messages','getMessages','post','create','addMessage','update','delete','destroy','removeMembers','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/describe','describe','/:id','show','/:id/unread','getUnread'];(function(_0x13ae91,_0x42ec71){var _0x5084c1=function(_0x492fd4){while(--_0x492fd4){_0x13ae91['push'](_0x13ae91['shift']());}};_0x5084c1(++_0x42ec71);}(_0x76a3,0x191));var _0x376a=function(_0x4191af,_0x5783da){_0x4191af=_0x4191af-0x0;var _0x27bebf=_0x76a3[_0x4191af];return _0x27bebf;};'use strict';var multer=require(_0x376a('0x0'));var util=require(_0x376a('0x1'));var path=require(_0x376a('0x2'));var timeout=require(_0x376a('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x376a('0x4'));var auth=require(_0x376a('0x5'));var interaction=require(_0x376a('0x6'));var config=require('../../config/environment');var controller=require('./chatGroup.controller');router[_0x376a('0x7')]('/',auth[_0x376a('0x8')](),controller['index']);router['get'](_0x376a('0x9'),auth[_0x376a('0x8')](),controller[_0x376a('0xa')]);router['get'](_0x376a('0xb'),auth[_0x376a('0x8')](),controller[_0x376a('0xc')]);router['get'](_0x376a('0xd'),auth[_0x376a('0x8')](),controller[_0x376a('0xe')]);router[_0x376a('0x7')](_0x376a('0xf'),auth[_0x376a('0x8')](),controller[_0x376a('0x10')]);router[_0x376a('0x7')](_0x376a('0x11'),auth[_0x376a('0x8')](),controller[_0x376a('0x12')]);router[_0x376a('0x13')]('/',auth['isAuthenticated'](),controller[_0x376a('0x14')]);router[_0x376a('0x13')]('/:id/members',auth['isAuthenticated'](),controller['addMembers']);router[_0x376a('0x13')]('/:id/messages',auth[_0x376a('0x8')](),controller[_0x376a('0x15')]);router['put'](_0x376a('0xb'),auth[_0x376a('0x8')](),controller[_0x376a('0x16')]);router[_0x376a('0x17')]('/:id',auth[_0x376a('0x8')](),controller[_0x376a('0x18')]);router['delete'](_0x376a('0xf'),auth[_0x376a('0x8')](),controller[_0x376a('0x19')]);module['exports']=router;