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 _0x6bbf=['path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','show','/:id','update','destroy','exports'];(function(_0xf93678,_0x515528){var _0x20153b=function(_0x2c0a36){while(--_0x2c0a36){_0xf93678['push'](_0xf93678['shift']());}};_0x20153b(++_0x515528);}(_0x6bbf,0x11e));var _0xf6bb=function(_0x5f1391,_0x19c132){_0x5f1391=_0x5f1391-0x0;var _0x50ebe3=_0x6bbf[_0x5f1391];return _0x50ebe3;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf6bb('0x0'));var timeout=require(_0xf6bb('0x1'));var express=require(_0xf6bb('0x2'));var router=express[_0xf6bb('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xf6bb('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf6bb('0x5'));var controller=require('./chatApplication.controller');router[_0xf6bb('0x6')]('/:id',auth[_0xf6bb('0x7')](),controller[_0xf6bb('0x8')]);router['put'](_0xf6bb('0x9'),auth['isAuthenticated'](),controller[_0xf6bb('0xa')]);router['delete']('/:id',auth[_0xf6bb('0x7')](),controller[_0xf6bb('0xb')]);module[_0xf6bb('0xc')]=router;