Built motion from commit 19a84241.|2.5.34
[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 _0x4b16=['getUnread','getMembers','/:id/messages','getMessages','post','create','/:id/members','addMembers','addMessage','put','update','delete','/:id','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id/unread'];(function(_0x2ae489,_0x9f8183){var _0x144cd2=function(_0x3a62b7){while(--_0x3a62b7){_0x2ae489['push'](_0x2ae489['shift']());}};_0x144cd2(++_0x9f8183);}(_0x4b16,0xd3));var _0x64b1=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x4b16[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0x64b1('0x0'));var util=require(_0x64b1('0x1'));var path=require('path');var timeout=require(_0x64b1('0x2'));var express=require(_0x64b1('0x3'));var router=express[_0x64b1('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x64b1('0x5'));var config=require(_0x64b1('0x6'));var controller=require('./chatGroup.controller');router[_0x64b1('0x7')]('/',auth[_0x64b1('0x8')](),controller[_0x64b1('0x9')]);router[_0x64b1('0x7')](_0x64b1('0xa'),auth[_0x64b1('0x8')](),controller[_0x64b1('0xb')]);router[_0x64b1('0x7')]('/:id',auth[_0x64b1('0x8')](),controller['show']);router['get'](_0x64b1('0xc'),auth[_0x64b1('0x8')](),controller[_0x64b1('0xd')]);router[_0x64b1('0x7')]('/:id/members',auth['isAuthenticated'](),controller[_0x64b1('0xe')]);router[_0x64b1('0x7')](_0x64b1('0xf'),auth['isAuthenticated'](),controller[_0x64b1('0x10')]);router[_0x64b1('0x11')]('/',auth['isAuthenticated'](),controller[_0x64b1('0x12')]);router[_0x64b1('0x11')](_0x64b1('0x13'),auth[_0x64b1('0x8')](),controller[_0x64b1('0x14')]);router[_0x64b1('0x11')](_0x64b1('0xf'),auth[_0x64b1('0x8')](),controller[_0x64b1('0x15')]);router[_0x64b1('0x16')]('/:id',auth[_0x64b1('0x8')](),controller[_0x64b1('0x17')]);router[_0x64b1('0x18')](_0x64b1('0x19'),auth[_0x64b1('0x8')](),controller[_0x64b1('0x1a')]);router[_0x64b1('0x18')](_0x64b1('0x13'),auth[_0x64b1('0x8')](),controller['removeMembers']);module[_0x64b1('0x1b')]=router;