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 _0xacf6=['/describe','describe','/:id','show','post','create','put','update','destroy','multer','util','path','express','Router','../../components/auth/service','./chatOfflineMessage.controller','get','isAuthenticated'];(function(_0x522ae8,_0x3b637e){var _0x3189b9=function(_0x3115d4){while(--_0x3115d4){_0x522ae8['push'](_0x522ae8['shift']());}};_0x3189b9(++_0x3b637e);}(_0xacf6,0x1cb));var _0x6acf=function(_0x57ef79,_0xc76530){_0x57ef79=_0x57ef79-0x0;var _0x4667dd=_0xacf6[_0x57ef79];return _0x4667dd;};'use strict';var multer=require(_0x6acf('0x0'));var util=require(_0x6acf('0x1'));var path=require(_0x6acf('0x2'));var express=require(_0x6acf('0x3'));var router=express[_0x6acf('0x4')]();var auth=require(_0x6acf('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x6acf('0x6'));router[_0x6acf('0x7')]('/',auth[_0x6acf('0x8')](),controller['index']);router[_0x6acf('0x7')](_0x6acf('0x9'),auth['isAuthenticated'](),controller[_0x6acf('0xa')]);router['get'](_0x6acf('0xb'),auth['isAuthenticated'](),controller[_0x6acf('0xc')]);router[_0x6acf('0xd')]('/',auth[_0x6acf('0x8')](),controller[_0x6acf('0xe')]);router[_0x6acf('0xf')](_0x6acf('0xb'),auth[_0x6acf('0x8')](),controller[_0x6acf('0x10')]);router['delete']('/:id',auth[_0x6acf('0x8')](),controller[_0x6acf('0x11')]);module['exports']=router;