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 _0x66c9=['../../components/auth/service','../../components/interaction/service','./chatOfflineMessage.controller','isAuthenticated','index','describe','get','create','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','Router'];(function(_0x296cf4,_0x31c361){var _0x18be58=function(_0x4f0f21){while(--_0x4f0f21){_0x296cf4['push'](_0x296cf4['shift']());}};_0x18be58(++_0x31c361);}(_0x66c9,0x1e1));var _0x966c=function(_0xda4f42,_0x33c926){_0xda4f42=_0xda4f42-0x0;var _0xcc93f8=_0x66c9[_0xda4f42];return _0xcc93f8;};'use strict';var multer=require(_0x966c('0x0'));var util=require(_0x966c('0x1'));var path=require('path');var timeout=require(_0x966c('0x2'));var express=require(_0x966c('0x3'));var router=express[_0x966c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x966c('0x5'));var interaction=require(_0x966c('0x6'));var config=require('../../config/environment');var controller=require(_0x966c('0x7'));router['get']('/',auth[_0x966c('0x8')](),controller[_0x966c('0x9')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x966c('0xa')]);router[_0x966c('0xb')]('/:id',auth[_0x966c('0x8')](),controller['show']);router['post']('/',auth[_0x966c('0x8')](),controller[_0x966c('0xc')]);router['put'](_0x966c('0xd'),auth[_0x966c('0x8')](),controller[_0x966c('0xe')]);router[_0x966c('0xf')](_0x966c('0xd'),auth[_0x966c('0x8')](),controller[_0x966c('0x10')]);module[_0x966c('0x11')]=router;