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 _0x0bbb=['destroy','exports','multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','/:id','show','put','update','delete'];(function(_0x618414,_0x1a7a60){var _0x21c19a=function(_0x507b17){while(--_0x507b17){_0x618414['push'](_0x618414['shift']());}};_0x21c19a(++_0x1a7a60);}(_0x0bbb,0xd3));var _0xb0bb=function(_0x71821,_0x2f2405){_0x71821=_0x71821-0x0;var _0x523fb4=_0x0bbb[_0x71821];return _0x523fb4;};'use strict';var multer=require(_0xb0bb('0x0'));var util=require(_0xb0bb('0x1'));var path=require(_0xb0bb('0x2'));var timeout=require('connect-timeout');var express=require(_0xb0bb('0x3'));var router=express[_0xb0bb('0x4')]();var fs_extra=require(_0xb0bb('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xb0bb('0x6'));var config=require(_0xb0bb('0x7'));var controller=require('./chatInternalMessage.controller');router[_0xb0bb('0x8')]('/',auth[_0xb0bb('0x9')](),controller[_0xb0bb('0xa')]);router[_0xb0bb('0x8')](_0xb0bb('0xb'),auth[_0xb0bb('0x9')](),controller['describe']);router[_0xb0bb('0x8')]('/users',auth[_0xb0bb('0x9')](),controller['getUsers']);router[_0xb0bb('0x8')](_0xb0bb('0xc'),auth['isAuthenticated'](),controller[_0xb0bb('0xd')]);router['post']('/',auth[_0xb0bb('0x9')](),controller['create']);router[_0xb0bb('0xe')](_0xb0bb('0xc'),controller[_0xb0bb('0xf')]);router[_0xb0bb('0x10')]('/:id',auth[_0xb0bb('0x9')](),controller[_0xb0bb('0x11')]);module[_0xb0bb('0x12')]=router;