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 _0xaf3a=['create','put','/:id','update','delete','multer','util','path','express','../../components/auth/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','/describe','describe','show'];(function(_0x333767,_0x3e6f9c){var _0x51661b=function(_0x46e5d6){while(--_0x46e5d6){_0x333767['push'](_0x333767['shift']());}};_0x51661b(++_0x3e6f9c);}(_0xaf3a,0x19d));var _0xaaf3=function(_0x45c61e,_0x59694d){_0x45c61e=_0x45c61e-0x0;var _0x19033c=_0xaf3a[_0x45c61e];return _0x19033c;};'use strict';var multer=require(_0xaaf3('0x0'));var util=require(_0xaaf3('0x1'));var path=require(_0xaaf3('0x2'));var timeout=require('connect-timeout');var express=require(_0xaaf3('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xaaf3('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xaaf3('0x5'));var controller=require(_0xaaf3('0x6'));router[_0xaaf3('0x7')]('/',auth[_0xaaf3('0x8')](),controller['index']);router[_0xaaf3('0x7')](_0xaaf3('0x9'),auth['isAuthenticated'](),controller[_0xaaf3('0xa')]);router[_0xaaf3('0x7')]('/:id',auth[_0xaaf3('0x8')](),controller[_0xaaf3('0xb')]);router['post']('/',auth[_0xaaf3('0x8')](),controller[_0xaaf3('0xc')]);router[_0xaaf3('0xd')](_0xaaf3('0xe'),auth['isAuthenticated'](),controller[_0xaaf3('0xf')]);router[_0xaaf3('0x10')](_0xaaf3('0xe'),auth[_0xaaf3('0x8')](),controller['destroy']);module['exports']=router;