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 _0x477e=['isAuthenticated','show','put','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','/:id'];(function(_0x180ace,_0x33aba2){var _0x4bf2c2=function(_0x43aa40){while(--_0x43aa40){_0x180ace['push'](_0x180ace['shift']());}};_0x4bf2c2(++_0x33aba2);}(_0x477e,0xf5));var _0xe477=function(_0x13b392,_0x3481f2){_0x13b392=_0x13b392-0x0;var _0x39db24=_0x477e[_0x13b392];return _0x39db24;};'use strict';var multer=require(_0xe477('0x0'));var util=require(_0xe477('0x1'));var path=require(_0xe477('0x2'));var timeout=require(_0xe477('0x3'));var express=require(_0xe477('0x4'));var router=express[_0xe477('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xe477('0x6'));var config=require(_0xe477('0x7'));var controller=require('./chatApplication.controller');router[_0xe477('0x8')](_0xe477('0x9'),auth[_0xe477('0xa')](),controller[_0xe477('0xb')]);router[_0xe477('0xc')]('/:id',auth[_0xe477('0xa')](),controller[_0xe477('0xd')]);router['delete']('/:id',auth[_0xe477('0xa')](),controller[_0xe477('0xe')]);module['exports']=router;