Built motion from commit 953226e6.|2.6.32
[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 _0xa812=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','index','describe','/:id','/:id/unread','getUnread','/:id/members','getMembers','/:id/messages','getMessages','post','create','put','destroy'];(function(_0x5713f3,_0x4df455){var _0x541456=function(_0x19ec8f){while(--_0x19ec8f){_0x5713f3['push'](_0x5713f3['shift']());}};_0x541456(++_0x4df455);}(_0xa812,0x180));var _0x2a81=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0xa812[_0x19950b];return _0x3c6b41;};'use strict';var multer=require('multer');var util=require(_0x2a81('0x0'));var path=require('path');var timeout=require(_0x2a81('0x1'));var express=require(_0x2a81('0x2'));var router=express[_0x2a81('0x3')]();var fs_extra=require(_0x2a81('0x4'));var auth=require(_0x2a81('0x5'));var interaction=require(_0x2a81('0x6'));var config=require(_0x2a81('0x7'));var controller=require(_0x2a81('0x8'));router[_0x2a81('0x9')]('/',auth[_0x2a81('0xa')](),controller[_0x2a81('0xb')]);router[_0x2a81('0x9')]('/describe',auth[_0x2a81('0xa')](),controller[_0x2a81('0xc')]);router[_0x2a81('0x9')](_0x2a81('0xd'),auth['isAuthenticated'](),controller['show']);router[_0x2a81('0x9')](_0x2a81('0xe'),auth[_0x2a81('0xa')](),controller[_0x2a81('0xf')]);router[_0x2a81('0x9')](_0x2a81('0x10'),auth['isAuthenticated'](),controller[_0x2a81('0x11')]);router[_0x2a81('0x9')](_0x2a81('0x12'),auth[_0x2a81('0xa')](),controller[_0x2a81('0x13')]);router[_0x2a81('0x14')]('/',auth[_0x2a81('0xa')](),controller[_0x2a81('0x15')]);router['post'](_0x2a81('0x10'),auth[_0x2a81('0xa')](),controller['addMembers']);router[_0x2a81('0x14')]('/:id/messages',auth[_0x2a81('0xa')](),controller['addMessage']);router[_0x2a81('0x16')](_0x2a81('0xd'),auth[_0x2a81('0xa')](),controller['update']);router['delete'](_0x2a81('0xd'),auth[_0x2a81('0xa')](),controller[_0x2a81('0x17')]);router['delete'](_0x2a81('0x10'),auth[_0x2a81('0xa')](),controller['removeMembers']);module['exports']=router;