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 _0xf197=['/:id','update','isAuthenticated','multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./action.controller'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0xf197,0x183));var _0x7f19=function(_0x669f15,_0x31ef72){_0x669f15=_0x669f15-0x0;var _0x520c6a=_0xf197[_0x669f15];return _0x520c6a;};'use strict';var multer=require(_0x7f19('0x0'));var util=require(_0x7f19('0x1'));var path=require(_0x7f19('0x2'));var timeout=require('connect-timeout');var express=require(_0x7f19('0x3'));var router=express[_0x7f19('0x4')]();var fs_extra=require(_0x7f19('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x7f19('0x6'));var config=require(_0x7f19('0x7'));var controller=require(_0x7f19('0x8'));router['put'](_0x7f19('0x9'),auth['isAuthenticated'](),controller[_0x7f19('0xa')]);router['delete']('/:id',auth[_0x7f19('0xb')](),controller['destroy']);module['exports']=router;