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