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 _0x9546=['../../components/interaction/service','../../config/environment','get','/describe','isAuthenticated','describe','getUsers','/:id','show','post','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x9546,0x1c4));var _0x6954=function(_0x44031f,_0xbdfac2){_0x44031f=_0x44031f-0x0;var _0x40f39b=_0x9546[_0x44031f];return _0x40f39b;};'use strict';var multer=require(_0x6954('0x0'));var util=require(_0x6954('0x1'));var path=require(_0x6954('0x2'));var timeout=require(_0x6954('0x3'));var express=require(_0x6954('0x4'));var router=express[_0x6954('0x5')]();var fs_extra=require(_0x6954('0x6'));var auth=require(_0x6954('0x7'));var interaction=require(_0x6954('0x8'));var config=require(_0x6954('0x9'));var controller=require('./chatInternalMessage.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x6954('0xa')](_0x6954('0xb'),auth[_0x6954('0xc')](),controller[_0x6954('0xd')]);router[_0x6954('0xa')]('/users',auth[_0x6954('0xc')](),controller[_0x6954('0xe')]);router[_0x6954('0xa')](_0x6954('0xf'),auth[_0x6954('0xc')](),controller[_0x6954('0x10')]);router[_0x6954('0x11')]('/',auth[_0x6954('0xc')](),controller[_0x6954('0x12')]);router[_0x6954('0x13')]('/:id',controller['update']);router[_0x6954('0x14')]('/:id',auth[_0x6954('0xc')](),controller[_0x6954('0x15')]);module[_0x6954('0x16')]=router;