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 _0xd8f1=['../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','show','post','create','put','update','delete','destroy','multer','util','connect-timeout','express','Router'];(function(_0x2f9549,_0x16dcfa){var _0x1548f2=function(_0x40b09e){while(--_0x40b09e){_0x2f9549['push'](_0x2f9549['shift']());}};_0x1548f2(++_0x16dcfa);}(_0xd8f1,0xeb));var _0x1d8f=function(_0x9d11c0,_0x31e40d){_0x9d11c0=_0x9d11c0-0x0;var _0xfd4b77=_0xd8f1[_0x9d11c0];return _0xfd4b77;};'use strict';var multer=require(_0x1d8f('0x0'));var util=require(_0x1d8f('0x1'));var path=require('path');var timeout=require(_0x1d8f('0x2'));var express=require(_0x1d8f('0x3'));var router=express[_0x1d8f('0x4')]();var auth=require(_0x1d8f('0x5'));var interaction=require(_0x1d8f('0x6'));var config=require('../../config/environment');var controller=require('./chatOfflineMessage.controller');router[_0x1d8f('0x7')]('/',auth[_0x1d8f('0x8')](),controller[_0x1d8f('0x9')]);router[_0x1d8f('0x7')](_0x1d8f('0xa'),auth[_0x1d8f('0x8')](),controller[_0x1d8f('0xb')]);router[_0x1d8f('0x7')](_0x1d8f('0xc'),auth[_0x1d8f('0x8')](),controller[_0x1d8f('0xd')]);router[_0x1d8f('0xe')]('/',auth['isAuthenticated'](),controller[_0x1d8f('0xf')]);router[_0x1d8f('0x10')]('/:id',auth[_0x1d8f('0x8')](),controller[_0x1d8f('0x11')]);router[_0x1d8f('0x12')](_0x1d8f('0xc'),auth[_0x1d8f('0x8')](),controller[_0x1d8f('0x13')]);module['exports']=router;