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 _0x17e3=['/:id/reject','reject','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../config/environment','./chatMessage.controller','isAuthenticated','index','get','/describe','describe','/:id','show','chat','create','put','update','/:id/accept','accept'];(function(_0x4e3ffc,_0x570704){var _0x543119=function(_0x396abb){while(--_0x396abb){_0x4e3ffc['push'](_0x4e3ffc['shift']());}};_0x543119(++_0x570704);}(_0x17e3,0x1ae));var _0x317e=function(_0x520246,_0x110cc1){_0x520246=_0x520246-0x0;var _0x5a1d4c=_0x17e3[_0x520246];return _0x5a1d4c;};'use strict';var multer=require(_0x317e('0x0'));var util=require(_0x317e('0x1'));var path=require('path');var timeout=require(_0x317e('0x2'));var express=require(_0x317e('0x3'));var router=express[_0x317e('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x317e('0x5'));var controller=require(_0x317e('0x6'));router['get']('/',auth[_0x317e('0x7')](),controller[_0x317e('0x8')]);router[_0x317e('0x9')](_0x317e('0xa'),auth['isAuthenticated'](),controller[_0x317e('0xb')]);router[_0x317e('0x9')](_0x317e('0xc'),auth[_0x317e('0x7')](),controller[_0x317e('0xd')]);router['post']('/',auth[_0x317e('0x7')](),interaction['tracked'](_0x317e('0xe'),'chatmessage:create'),controller[_0x317e('0xf')]);router[_0x317e('0x10')](_0x317e('0xc'),controller[_0x317e('0x11')]);router[_0x317e('0x10')](_0x317e('0x12'),auth['isAuthenticated'](),controller[_0x317e('0x13')]);router[_0x317e('0x10')](_0x317e('0x14'),auth[_0x317e('0x7')](),controller[_0x317e('0x15')]);router[_0x317e('0x16')](_0x317e('0xc'),auth[_0x317e('0x7')](),controller[_0x317e('0x17')]);module[_0x317e('0x18')]=router;