5fed86eee8ff5f4a696f29bb8e21990f8093c0e0
[motion2.git] / server / api / chatMessage / 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 _0x0fbb=['post','tracked','chatmessage:create','create','put','update','accept','reject','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller','index','get','/describe','isAuthenticated','describe','/:id','show'];(function(_0x542da8,_0x509c26){var _0x533d7e=function(_0x2a3d04){while(--_0x2a3d04){_0x542da8['push'](_0x542da8['shift']());}};_0x533d7e(++_0x509c26);}(_0x0fbb,0x14e));var _0xb0fb=function(_0x21f636,_0x302d5f){_0x21f636=_0x21f636-0x0;var _0x1e4b98=_0x0fbb[_0x21f636];return _0x1e4b98;};'use strict';var multer=require(_0xb0fb('0x0'));var util=require(_0xb0fb('0x1'));var path=require(_0xb0fb('0x2'));var timeout=require('connect-timeout');var express=require(_0xb0fb('0x3'));var router=express[_0xb0fb('0x4')]();var fs_extra=require(_0xb0fb('0x5'));var auth=require(_0xb0fb('0x6'));var interaction=require(_0xb0fb('0x7'));var config=require(_0xb0fb('0x8'));var controller=require(_0xb0fb('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0xb0fb('0xa')]);router[_0xb0fb('0xb')](_0xb0fb('0xc'),auth[_0xb0fb('0xd')](),controller[_0xb0fb('0xe')]);router[_0xb0fb('0xb')](_0xb0fb('0xf'),auth[_0xb0fb('0xd')](),controller[_0xb0fb('0x10')]);router[_0xb0fb('0x11')]('/',auth[_0xb0fb('0xd')](),interaction[_0xb0fb('0x12')]('chat',_0xb0fb('0x13')),controller[_0xb0fb('0x14')]);router[_0xb0fb('0x15')]('/:id',controller[_0xb0fb('0x16')]);router['put']('/:id/accept',auth[_0xb0fb('0xd')](),controller[_0xb0fb('0x17')]);router['put']('/:id/reject',auth['isAuthenticated'](),controller[_0xb0fb('0x18')]);router['delete'](_0xb0fb('0xf'),auth[_0xb0fb('0xd')](),controller[_0xb0fb('0x19')]);module[_0xb0fb('0x1a')]=router;