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 _0xc80a=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./disposition.controller','get','isAuthenticated','index','/:id','show','update','delete','destroy','exports','path','Router'];(function(_0x5962b4,_0x84be73){var _0xe6443c=function(_0x2b37d4){while(--_0x2b37d4){_0x5962b4['push'](_0x5962b4['shift']());}};_0xe6443c(++_0x84be73);}(_0xc80a,0x8e));var _0xac80=function(_0x77b027,_0x5a935a){_0x77b027=_0x77b027-0x0;var _0x2f1e0b=_0xc80a[_0x77b027];return _0x2f1e0b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xac80('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xac80('0x1')]();var fs_extra=require(_0xac80('0x2'));var auth=require(_0xac80('0x3'));var interaction=require(_0xac80('0x4'));var config=require(_0xac80('0x5'));var controller=require(_0xac80('0x6'));router[_0xac80('0x7')]('/',auth[_0xac80('0x8')](),controller[_0xac80('0x9')]);router['get'](_0xac80('0xa'),auth[_0xac80('0x8')](),controller[_0xac80('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xac80('0xa'),auth['isAuthenticated'](),controller[_0xac80('0xc')]);router[_0xac80('0xd')]('/:id',auth[_0xac80('0x8')](),controller[_0xac80('0xe')]);module[_0xac80('0xf')]=router;