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 _0x556d=['exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','put','update','delete','destroy'];(function(_0x413feb,_0x10477f){var _0x40ee88=function(_0x32a3f6){while(--_0x32a3f6){_0x413feb['push'](_0x413feb['shift']());}};_0x40ee88(++_0x10477f);}(_0x556d,0x144));var _0xd556=function(_0x32f9d4,_0x1ba40e){_0x32f9d4=_0x32f9d4-0x0;var _0x4dac41=_0x556d[_0x32f9d4];return _0x4dac41;};'use strict';var multer=require(_0xd556('0x0'));var util=require('util');var path=require(_0xd556('0x1'));var timeout=require('connect-timeout');var express=require(_0xd556('0x2'));var router=express[_0xd556('0x3')]();var auth=require(_0xd556('0x4'));var interaction=require(_0xd556('0x5'));var config=require(_0xd556('0x6'));var controller=require(_0xd556('0x7'));router[_0xd556('0x8')]('/',auth[_0xd556('0x9')](),controller[_0xd556('0xa')]);router['get'](_0xd556('0xb'),auth[_0xd556('0x9')](),controller[_0xd556('0xc')]);router[_0xd556('0x8')](_0xd556('0xd'),auth[_0xd556('0x9')](),controller['show']);router['post']('/',auth[_0xd556('0x9')](),controller['create']);router[_0xd556('0xe')](_0xd556('0xd'),auth[_0xd556('0x9')](),controller[_0xd556('0xf')]);router[_0xd556('0x10')](_0xd556('0xd'),auth['isAuthenticated'](),controller[_0xd556('0x11')]);module[_0xd556('0x12')]=router;