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