c01096172979fa65fcd01b58bbfa23c2650af8ce
[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 _0x6a13=['./chatGroup.controller','get','isAuthenticated','/describe','describe','/:id','show','/:id/unread','getUnread','/:id/members','getMembers','/:id/messages','getMessages','post','addMembers','addMessage','put','update','delete','destroy','removeMembers','exports','multer','util','connect-timeout','express','../../config/environment'];(function(_0x59ab49,_0x1c7ee0){var _0x29126e=function(_0x23e486){while(--_0x23e486){_0x59ab49['push'](_0x59ab49['shift']());}};_0x29126e(++_0x1c7ee0);}(_0x6a13,0x9d));var _0x36a1=function(_0x14b50e,_0x3699dc){_0x14b50e=_0x14b50e-0x0;var _0x46f7b5=_0x6a13[_0x14b50e];return _0x46f7b5;};'use strict';var multer=require(_0x36a1('0x0'));var util=require(_0x36a1('0x1'));var path=require('path');var timeout=require(_0x36a1('0x2'));var express=require(_0x36a1('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x36a1('0x4'));var controller=require(_0x36a1('0x5'));router[_0x36a1('0x6')]('/',auth[_0x36a1('0x7')](),controller['index']);router['get'](_0x36a1('0x8'),auth[_0x36a1('0x7')](),controller[_0x36a1('0x9')]);router[_0x36a1('0x6')](_0x36a1('0xa'),auth[_0x36a1('0x7')](),controller[_0x36a1('0xb')]);router[_0x36a1('0x6')](_0x36a1('0xc'),auth[_0x36a1('0x7')](),controller[_0x36a1('0xd')]);router[_0x36a1('0x6')](_0x36a1('0xe'),auth['isAuthenticated'](),controller[_0x36a1('0xf')]);router[_0x36a1('0x6')](_0x36a1('0x10'),auth[_0x36a1('0x7')](),controller[_0x36a1('0x11')]);router[_0x36a1('0x12')]('/',auth[_0x36a1('0x7')](),controller['create']);router[_0x36a1('0x12')](_0x36a1('0xe'),auth[_0x36a1('0x7')](),controller[_0x36a1('0x13')]);router[_0x36a1('0x12')](_0x36a1('0x10'),auth[_0x36a1('0x7')](),controller[_0x36a1('0x14')]);router[_0x36a1('0x15')](_0x36a1('0xa'),auth[_0x36a1('0x7')](),controller[_0x36a1('0x16')]);router[_0x36a1('0x17')](_0x36a1('0xa'),auth[_0x36a1('0x7')](),controller[_0x36a1('0x18')]);router[_0x36a1('0x17')](_0x36a1('0xe'),auth[_0x36a1('0x7')](),controller[_0x36a1('0x19')]);module[_0x36a1('0x1a')]=router;