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 _0xf0d3=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./disposition.controller','isAuthenticated','index','get','/:id','show','post','create','put','update','exports','multer','util'];(function(_0x3480a3,_0x190a84){var _0x27e339=function(_0x418f58){while(--_0x418f58){_0x3480a3['push'](_0x3480a3['shift']());}};_0x27e339(++_0x190a84);}(_0xf0d3,0x10c));var _0x3f0d=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xf0d3[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0x3f0d('0x0'));var util=require(_0x3f0d('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x3f0d('0x2'));var router=express[_0x3f0d('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x3f0d('0x4'));var interaction=require(_0x3f0d('0x5'));var config=require(_0x3f0d('0x6'));var controller=require(_0x3f0d('0x7'));router['get']('/',auth[_0x3f0d('0x8')](),controller[_0x3f0d('0x9')]);router[_0x3f0d('0xa')](_0x3f0d('0xb'),auth[_0x3f0d('0x8')](),controller[_0x3f0d('0xc')]);router[_0x3f0d('0xd')]('/',auth[_0x3f0d('0x8')](),controller[_0x3f0d('0xe')]);router[_0x3f0d('0xf')](_0x3f0d('0xb'),auth['isAuthenticated'](),controller[_0x3f0d('0x10')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x3f0d('0x11')]=router;