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 _0xa44a=['update','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','/describe','describe','get','show','create','put','/:id'];(function(_0x78f5c4,_0x415033){var _0x446634=function(_0x589a2a){while(--_0x589a2a){_0x78f5c4['push'](_0x78f5c4['shift']());}};_0x446634(++_0x415033);}(_0xa44a,0x9a));var _0xaa44=function(_0x59f800,_0x486b58){_0x59f800=_0x59f800-0x0;var _0x11b56c=_0xa44a[_0x59f800];return _0x11b56c;};'use strict';var multer=require(_0xaa44('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xaa44('0x1'));var express=require(_0xaa44('0x2'));var router=express[_0xaa44('0x3')]();var auth=require(_0xaa44('0x4'));var interaction=require(_0xaa44('0x5'));var config=require(_0xaa44('0x6'));var controller=require('./chatOfflineMessage.controller');router['get']('/',auth[_0xaa44('0x7')](),controller[_0xaa44('0x8')]);router['get'](_0xaa44('0x9'),auth['isAuthenticated'](),controller[_0xaa44('0xa')]);router[_0xaa44('0xb')]('/:id',auth[_0xaa44('0x7')](),controller[_0xaa44('0xc')]);router['post']('/',auth[_0xaa44('0x7')](),controller[_0xaa44('0xd')]);router[_0xaa44('0xe')](_0xaa44('0xf'),auth['isAuthenticated'](),controller[_0xaa44('0x10')]);router['delete'](_0xaa44('0xf'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;