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 _0x828a=['exports','util','path','express','../../components/auth/service','isAuthenticated','index','get','/:id','show','delete','destroy'];(function(_0xb4e991,_0x250b29){var _0x40aaeb=function(_0x58d585){while(--_0x58d585){_0xb4e991['push'](_0xb4e991['shift']());}};_0x40aaeb(++_0x250b29);}(_0x828a,0xcd));var _0xa828=function(_0x452f04,_0x3706fd){_0x452f04=_0x452f04-0x0;var _0x2d135f=_0x828a[_0x452f04];return _0x2d135f;};'use strict';var multer=require('multer');var util=require(_0xa828('0x0'));var path=require(_0xa828('0x1'));var timeout=require('connect-timeout');var express=require(_0xa828('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xa828('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./disposition.controller');router['get']('/',auth[_0xa828('0x4')](),controller[_0xa828('0x5')]);router[_0xa828('0x6')](_0xa828('0x7'),auth[_0xa828('0x4')](),controller[_0xa828('0x8')]);router['post']('/',auth[_0xa828('0x4')](),controller['create']);router['put'](_0xa828('0x7'),auth[_0xa828('0x4')](),controller['update']);router[_0xa828('0x9')](_0xa828('0x7'),auth['isAuthenticated'](),controller[_0xa828('0xa')]);module[_0xa828('0xb')]=router;