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