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 _0xbe2e=['update','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./chatOfflineMessage.controller','get','isAuthenticated','describe','/:id','show','put'];(function(_0x9c8b4a,_0x2387ff){var _0x198bef=function(_0x2eb4e8){while(--_0x2eb4e8){_0x9c8b4a['push'](_0x9c8b4a['shift']());}};_0x198bef(++_0x2387ff);}(_0xbe2e,0x112));var _0xebe2=function(_0x1c4b30,_0x21d23b){_0x1c4b30=_0x1c4b30-0x0;var _0x536864=_0xbe2e[_0x1c4b30];return _0x536864;};'use strict';var multer=require(_0xebe2('0x0'));var util=require(_0xebe2('0x1'));var path=require(_0xebe2('0x2'));var timeout=require(_0xebe2('0x3'));var express=require(_0xebe2('0x4'));var router=express[_0xebe2('0x5')]();var auth=require(_0xebe2('0x6'));var interaction=require(_0xebe2('0x7'));var config=require('../../config/environment');var controller=require(_0xebe2('0x8'));router[_0xebe2('0x9')]('/',auth[_0xebe2('0xa')](),controller['index']);router[_0xebe2('0x9')]('/describe',auth[_0xebe2('0xa')](),controller[_0xebe2('0xb')]);router[_0xebe2('0x9')](_0xebe2('0xc'),auth[_0xebe2('0xa')](),controller[_0xebe2('0xd')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xebe2('0xe')](_0xebe2('0xc'),auth[_0xebe2('0xa')](),controller[_0xebe2('0xf')]);router['delete'](_0xebe2('0xc'),auth[_0xebe2('0xa')](),controller[_0xebe2('0x10')]);module['exports']=router;