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