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 _0x35a5=['get','index','/describe','isAuthenticated','describe','/:id','show','create','put','update','destroy','exports','multer','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x3b3dba,_0x4492f5){var _0x29d728=function(_0x4d6172){while(--_0x4d6172){_0x3b3dba['push'](_0x3b3dba['shift']());}};_0x29d728(++_0x4492f5);}(_0x35a5,0xdd));var _0x535a=function(_0x552733,_0x24a3a4){_0x552733=_0x552733-0x0;var _0x489c2c=_0x35a5[_0x552733];return _0x489c2c;};'use strict';var multer=require(_0x535a('0x0'));var util=require('util');var path=require(_0x535a('0x1'));var timeout=require(_0x535a('0x2'));var express=require(_0x535a('0x3'));var router=express['Router']();var fs_extra=require(_0x535a('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x535a('0x5'));var config=require(_0x535a('0x6'));var controller=require('./chatOfflineMessage.controller');router[_0x535a('0x7')]('/',auth['isAuthenticated'](),controller[_0x535a('0x8')]);router[_0x535a('0x7')](_0x535a('0x9'),auth[_0x535a('0xa')](),controller[_0x535a('0xb')]);router['get'](_0x535a('0xc'),auth['isAuthenticated'](),controller[_0x535a('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0x535a('0xe')]);router[_0x535a('0xf')]('/:id',auth[_0x535a('0xa')](),controller[_0x535a('0x10')]);router['delete']('/:id',auth[_0x535a('0xa')](),controller[_0x535a('0x11')]);module[_0x535a('0x12')]=router;