1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x161e=['chatmessage:create','create','put','accept','/:id/reject','reject','destroy','exports','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller','get','index','describe','/:id','show','isAuthenticated','tracked','chat'];(function(_0x1b5cd6,_0x519dc4){var _0x1e62dc=function(_0x3b6756){while(--_0x3b6756){_0x1b5cd6['push'](_0x1b5cd6['shift']());}};_0x1e62dc(++_0x519dc4);}(_0x161e,0x1e8));var _0xe161=function(_0x3e2c67,_0x7e4ae8){_0x3e2c67=_0x3e2c67-0x0;var _0x37dab5=_0x161e[_0x3e2c67];return _0x37dab5;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xe161('0x0'));var timeout=require(_0xe161('0x1'));var express=require(_0xe161('0x2'));var router=express[_0xe161('0x3')]();var auth=require(_0xe161('0x4'));var interaction=require(_0xe161('0x5'));var config=require(_0xe161('0x6'));var controller=require(_0xe161('0x7'));router[_0xe161('0x8')]('/',auth['isAuthenticated'](),controller[_0xe161('0x9')]);router[_0xe161('0x8')]('/describe',auth['isAuthenticated'](),controller[_0xe161('0xa')]);router[_0xe161('0x8')](_0xe161('0xb'),auth['isAuthenticated'](),controller[_0xe161('0xc')]);router['post']('/',auth[_0xe161('0xd')](),interaction[_0xe161('0xe')](_0xe161('0xf'),_0xe161('0x10')),controller[_0xe161('0x11')]);router[_0xe161('0x12')](_0xe161('0xb'),controller['update']);router[_0xe161('0x12')]('/:id/accept',auth[_0xe161('0xd')](),controller[_0xe161('0x13')]);router[_0xe161('0x12')](_0xe161('0x14'),auth[_0xe161('0xd')](),controller[_0xe161('0x15')]);router['delete'](_0xe161('0xb'),auth[_0xe161('0xd')](),controller[_0xe161('0x16')]);module[_0xe161('0x17')]=router;