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