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 _0x42b6=['fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','put','update','delete','/:id','exports','util','path','connect-timeout','express','Router'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x42b6,0xd8));var _0x642b=function(_0xfe4b44,_0x5544fe){_0xfe4b44=_0xfe4b44-0x0;var _0x1b76e7=_0x42b6[_0xfe4b44];return _0x1b76e7;};'use strict';var multer=require('multer');var util=require(_0x642b('0x0'));var path=require(_0x642b('0x1'));var timeout=require(_0x642b('0x2'));var express=require(_0x642b('0x3'));var router=express[_0x642b('0x4')]();var fs_extra=require(_0x642b('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x642b('0x6'));var config=require(_0x642b('0x7'));var controller=require('./disposition.controller');router[_0x642b('0x8')]('/',auth[_0x642b('0x9')](),controller[_0x642b('0xa')]);router['get']('/:id',auth[_0x642b('0x9')](),controller[_0x642b('0xb')]);router['post']('/',auth[_0x642b('0x9')](),controller['create']);router[_0x642b('0xc')]('/:id',auth[_0x642b('0x9')](),controller[_0x642b('0xd')]);router[_0x642b('0xe')](_0x642b('0xf'),auth[_0x642b('0x9')](),controller['destroy']);module[_0x642b('0x10')]=router;