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 _0xd862=['exports','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','put','update','delete'];(function(_0x52684f,_0xff73fc){var _0x4a55f0=function(_0x8ce37c){while(--_0x8ce37c){_0x52684f['push'](_0x52684f['shift']());}};_0x4a55f0(++_0xff73fc);}(_0xd862,0xc4));var _0x2d86=function(_0x819464,_0x46fc91){_0x819464=_0x819464-0x0;var _0x49dcc0=_0xd862[_0x819464];return _0x49dcc0;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2d86('0x0'));var timeout=require(_0x2d86('0x1'));var express=require(_0x2d86('0x2'));var router=express[_0x2d86('0x3')]();var fs_extra=require(_0x2d86('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x2d86('0x5'));var config=require(_0x2d86('0x6'));var controller=require('./chatApplication.controller');router[_0x2d86('0x7')](_0x2d86('0x8'),auth[_0x2d86('0x9')](),controller[_0x2d86('0xa')]);router[_0x2d86('0xb')](_0x2d86('0x8'),auth['isAuthenticated'](),controller[_0x2d86('0xc')]);router[_0x2d86('0xd')]('/:id',auth[_0x2d86('0x9')](),controller['destroy']);module[_0x2d86('0xe')]=router;