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 _0xaf41=['/describe','show','create','/:id','update','delete','destroy','multer','util','path','express','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated'];(function(_0x25bcaa,_0x2e6eda){var _0x2f276b=function(_0x24caba){while(--_0x24caba){_0x25bcaa['push'](_0x25bcaa['shift']());}};_0x2f276b(++_0x2e6eda);}(_0xaf41,0x157));var _0x1af4=function(_0x8213ca,_0x528d2e){_0x8213ca=_0x8213ca-0x0;var _0x34ca12=_0xaf41[_0x8213ca];return _0x34ca12;};'use strict';var multer=require(_0x1af4('0x0'));var util=require(_0x1af4('0x1'));var path=require(_0x1af4('0x2'));var timeout=require('connect-timeout');var express=require(_0x1af4('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x1af4('0x4'));var config=require(_0x1af4('0x5'));var controller=require(_0x1af4('0x6'));router[_0x1af4('0x7')]('/',auth[_0x1af4('0x8')](),controller['index']);router[_0x1af4('0x7')](_0x1af4('0x9'),auth[_0x1af4('0x8')](),controller['describe']);router['get']('/:id',auth['isAuthenticated'](),controller[_0x1af4('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x1af4('0xb')]);router['put'](_0x1af4('0xc'),auth[_0x1af4('0x8')](),controller[_0x1af4('0xd')]);router[_0x1af4('0xe')](_0x1af4('0xc'),auth[_0x1af4('0x8')](),controller[_0x1af4('0xf')]);module['exports']=router;