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 _0x45a0=['create','put','delete','exports','util','path','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','post'];(function(_0xd9c529,_0x19f8cc){var _0x146760=function(_0x1aa5e8){while(--_0x1aa5e8){_0xd9c529['push'](_0xd9c529['shift']());}};_0x146760(++_0x19f8cc);}(_0x45a0,0xc8));var _0x045a=function(_0x1f67c6,_0x507914){_0x1f67c6=_0x1f67c6-0x0;var _0x39a04c=_0x45a0[_0x1f67c6];return _0x39a04c;};'use strict';var multer=require('multer');var util=require(_0x045a('0x0'));var path=require(_0x045a('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x045a('0x2'));var interaction=require(_0x045a('0x3'));var config=require(_0x045a('0x4'));var controller=require('./disposition.controller');router[_0x045a('0x5')]('/',auth[_0x045a('0x6')](),controller['index']);router['get'](_0x045a('0x7'),auth[_0x045a('0x6')](),controller[_0x045a('0x8')]);router[_0x045a('0x9')]('/',auth['isAuthenticated'](),controller[_0x045a('0xa')]);router[_0x045a('0xb')](_0x045a('0x7'),auth[_0x045a('0x6')](),controller['update']);router[_0x045a('0xc')](_0x045a('0x7'),auth[_0x045a('0x6')](),controller['destroy']);module[_0x045a('0xd')]=router;