Built motion from commit (unavailable).|2.5.22
[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 _0xc438=['util','connect-timeout','express','../../components/auth/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','/describe','describe','show','/:id/unread','getUnread','getMembers','/:id/messages','getMessages','post','/:id/members','addMembers','addMessage','/:id','update','delete','destroy'];(function(_0x517ed2,_0x4f17bb){var _0x1ab5b9=function(_0x39a18c){while(--_0x39a18c){_0x517ed2['push'](_0x517ed2['shift']());}};_0x1ab5b9(++_0x4f17bb);}(_0xc438,0x1c8));var _0x8c43=function(_0x894798,_0x1e1e12){_0x894798=_0x894798-0x0;var _0x4f561e=_0xc438[_0x894798];return _0x4f561e;};'use strict';var multer=require('multer');var util=require(_0x8c43('0x0'));var path=require('path');var timeout=require(_0x8c43('0x1'));var express=require(_0x8c43('0x2'));var router=express['Router']();var auth=require(_0x8c43('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x8c43('0x4'));var controller=require(_0x8c43('0x5'));router[_0x8c43('0x6')]('/',auth[_0x8c43('0x7')](),controller['index']);router['get'](_0x8c43('0x8'),auth[_0x8c43('0x7')](),controller[_0x8c43('0x9')]);router[_0x8c43('0x6')]('/:id',auth[_0x8c43('0x7')](),controller[_0x8c43('0xa')]);router[_0x8c43('0x6')](_0x8c43('0xb'),auth[_0x8c43('0x7')](),controller[_0x8c43('0xc')]);router[_0x8c43('0x6')]('/:id/members',auth[_0x8c43('0x7')](),controller[_0x8c43('0xd')]);router[_0x8c43('0x6')](_0x8c43('0xe'),auth['isAuthenticated'](),controller[_0x8c43('0xf')]);router[_0x8c43('0x10')]('/',auth[_0x8c43('0x7')](),controller['create']);router[_0x8c43('0x10')](_0x8c43('0x11'),auth[_0x8c43('0x7')](),controller[_0x8c43('0x12')]);router[_0x8c43('0x10')](_0x8c43('0xe'),auth['isAuthenticated'](),controller[_0x8c43('0x13')]);router['put'](_0x8c43('0x14'),auth[_0x8c43('0x7')](),controller[_0x8c43('0x15')]);router[_0x8c43('0x16')](_0x8c43('0x14'),auth[_0x8c43('0x7')](),controller[_0x8c43('0x17')]);router['delete']('/:id/members',auth[_0x8c43('0x7')](),controller['removeMembers']);module['exports']=router;