Built motion from commit 994c64e1.|2.6.1
[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 _0xaf3d=['/:id','/:id/unread','getUnread','/:id/members','getMembers','/:id/messages','getMessages','post','create','addMembers','addMessage','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatGroup.controller','isAuthenticated','index','/describe','describe','get'];(function(_0x2579e3,_0x489cb8){var _0x3510f9=function(_0x430b72){while(--_0x430b72){_0x2579e3['push'](_0x2579e3['shift']());}};_0x3510f9(++_0x489cb8);}(_0xaf3d,0xb0));var _0xdaf3=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xaf3d[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xdaf3('0x0'));var util=require(_0xdaf3('0x1'));var path=require(_0xdaf3('0x2'));var timeout=require(_0xdaf3('0x3'));var express=require(_0xdaf3('0x4'));var router=express[_0xdaf3('0x5')]();var fs_extra=require(_0xdaf3('0x6'));var auth=require(_0xdaf3('0x7'));var interaction=require(_0xdaf3('0x8'));var config=require(_0xdaf3('0x9'));var controller=require(_0xdaf3('0xa'));router['get']('/',auth[_0xdaf3('0xb')](),controller[_0xdaf3('0xc')]);router['get'](_0xdaf3('0xd'),auth[_0xdaf3('0xb')](),controller[_0xdaf3('0xe')]);router[_0xdaf3('0xf')](_0xdaf3('0x10'),auth[_0xdaf3('0xb')](),controller['show']);router[_0xdaf3('0xf')](_0xdaf3('0x11'),auth[_0xdaf3('0xb')](),controller[_0xdaf3('0x12')]);router[_0xdaf3('0xf')](_0xdaf3('0x13'),auth[_0xdaf3('0xb')](),controller[_0xdaf3('0x14')]);router[_0xdaf3('0xf')](_0xdaf3('0x15'),auth[_0xdaf3('0xb')](),controller[_0xdaf3('0x16')]);router[_0xdaf3('0x17')]('/',auth['isAuthenticated'](),controller[_0xdaf3('0x18')]);router[_0xdaf3('0x17')](_0xdaf3('0x13'),auth[_0xdaf3('0xb')](),controller[_0xdaf3('0x19')]);router['post']('/:id/messages',auth[_0xdaf3('0xb')](),controller[_0xdaf3('0x1a')]);router[_0xdaf3('0x1b')](_0xdaf3('0x10'),auth['isAuthenticated'](),controller[_0xdaf3('0x1c')]);router[_0xdaf3('0x1d')](_0xdaf3('0x10'),auth[_0xdaf3('0xb')](),controller[_0xdaf3('0x1e')]);router[_0xdaf3('0x1d')](_0xdaf3('0x13'),auth[_0xdaf3('0xb')](),controller['removeMembers']);module[_0xdaf3('0x1f')]=router;