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 _0xd946=['util','express','Router','fs-extra','../../components/auth/service','./disposition.controller','get','isAuthenticated','/:id','create','put','update','destroy'];(function(_0x470302,_0x54d2fd){var _0x42164f=function(_0x15db54){while(--_0x15db54){_0x470302['push'](_0x470302['shift']());}};_0x42164f(++_0x54d2fd);}(_0xd946,0x16c));var _0x6d94=function(_0x4efedd,_0x4b2260){_0x4efedd=_0x4efedd-0x0;var _0x31062c=_0xd946[_0x4efedd];return _0x31062c;};'use strict';var multer=require('multer');var util=require(_0x6d94('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6d94('0x1'));var router=express[_0x6d94('0x2')]();var fs_extra=require(_0x6d94('0x3'));var auth=require(_0x6d94('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x6d94('0x5'));router[_0x6d94('0x6')]('/',auth[_0x6d94('0x7')](),controller['index']);router['get'](_0x6d94('0x8'),auth[_0x6d94('0x7')](),controller['show']);router['post']('/',auth[_0x6d94('0x7')](),controller[_0x6d94('0x9')]);router[_0x6d94('0xa')](_0x6d94('0x8'),auth['isAuthenticated'](),controller[_0x6d94('0xb')]);router['delete'](_0x6d94('0x8'),auth[_0x6d94('0x7')](),controller[_0x6d94('0xc')]);module['exports']=router;