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 _0x4fd1=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','put','update','/:id','destroy','multer','util'];(function(_0x2be8c2,_0x14a4b5){var _0x97f531=function(_0xcee58d){while(--_0xcee58d){_0x2be8c2['push'](_0x2be8c2['shift']());}};_0x97f531(++_0x14a4b5);}(_0x4fd1,0xa8));var _0x14fd=function(_0x3b773f,_0x5797f8){_0x3b773f=_0x3b773f-0x0;var _0x2c2cd5=_0x4fd1[_0x3b773f];return _0x2c2cd5;};'use strict';var multer=require(_0x14fd('0x0'));var util=require(_0x14fd('0x1'));var path=require(_0x14fd('0x2'));var timeout=require(_0x14fd('0x3'));var express=require(_0x14fd('0x4'));var router=express[_0x14fd('0x5')]();var fs_extra=require(_0x14fd('0x6'));var auth=require(_0x14fd('0x7'));var interaction=require(_0x14fd('0x8'));var config=require(_0x14fd('0x9'));var controller=require('./chatApplication.controller');router[_0x14fd('0xa')]('/:id',auth[_0x14fd('0xb')](),controller[_0x14fd('0xc')]);router[_0x14fd('0xd')]('/:id',auth[_0x14fd('0xb')](),controller[_0x14fd('0xe')]);router['delete'](_0x14fd('0xf'),auth[_0x14fd('0xb')](),controller[_0x14fd('0x10')]);module['exports']=router;