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