c972df4a0410f7ae54b076f3623e74f72918f2d5
[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 _0xd64b=['tracked','chatmessage:create','create','put','accept','/:id/reject','reject','delete','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','index','get','/describe','isAuthenticated','describe','/:id','post'];(function(_0x1dcd91,_0x4a5fa3){var _0xb71e10=function(_0x46d437){while(--_0x46d437){_0x1dcd91['push'](_0x1dcd91['shift']());}};_0xb71e10(++_0x4a5fa3);}(_0xd64b,0xc1));var _0xbd64=function(_0x14f5a3,_0x268d64){_0x14f5a3=_0x14f5a3-0x0;var _0xc84d0e=_0xd64b[_0x14f5a3];return _0xc84d0e;};'use strict';var multer=require(_0xbd64('0x0'));var util=require('util');var path=require(_0xbd64('0x1'));var timeout=require('connect-timeout');var express=require(_0xbd64('0x2'));var router=express[_0xbd64('0x3')]();var fs_extra=require(_0xbd64('0x4'));var auth=require(_0xbd64('0x5'));var interaction=require(_0xbd64('0x6'));var config=require('../../config/environment');var controller=require('./chatMessage.controller');router['get']('/',auth['isAuthenticated'](),controller[_0xbd64('0x7')]);router[_0xbd64('0x8')](_0xbd64('0x9'),auth[_0xbd64('0xa')](),controller[_0xbd64('0xb')]);router[_0xbd64('0x8')](_0xbd64('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xbd64('0xd')]('/',auth[_0xbd64('0xa')](),interaction[_0xbd64('0xe')]('chat',_0xbd64('0xf')),controller[_0xbd64('0x10')]);router[_0xbd64('0x11')](_0xbd64('0xc'),controller['update']);router[_0xbd64('0x11')]('/:id/accept',auth[_0xbd64('0xa')](),controller[_0xbd64('0x12')]);router[_0xbd64('0x11')](_0xbd64('0x13'),auth[_0xbd64('0xa')](),controller[_0xbd64('0x14')]);router[_0xbd64('0x15')](_0xbd64('0xc'),auth[_0xbd64('0xa')](),controller['destroy']);module[_0xbd64('0x16')]=router;