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 _0xd275=['isAuthenticated','show','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./disposition.controller'];(function(_0x2dbff1,_0x4699b0){var _0x5445d9=function(_0x229c53){while(--_0x229c53){_0x2dbff1['push'](_0x2dbff1['shift']());}};_0x5445d9(++_0x4699b0);}(_0xd275,0x1ba));var _0x5d27=function(_0x5e6a59,_0x2bdf2a){_0x5e6a59=_0x5e6a59-0x0;var _0x288583=_0xd275[_0x5e6a59];return _0x288583;};'use strict';var multer=require(_0x5d27('0x0'));var util=require(_0x5d27('0x1'));var path=require(_0x5d27('0x2'));var timeout=require(_0x5d27('0x3'));var express=require('express');var router=express[_0x5d27('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x5d27('0x5'));var config=require(_0x5d27('0x6'));var controller=require(_0x5d27('0x7'));router['get']('/',auth[_0x5d27('0x8')](),controller['index']);router['get']('/:id',auth[_0x5d27('0x8')](),controller[_0x5d27('0x9')]);router['post']('/',auth[_0x5d27('0x8')](),controller['create']);router['put'](_0x5d27('0xa'),auth[_0x5d27('0x8')](),controller[_0x5d27('0xb')]);router[_0x5d27('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x5d27('0xd')]);module[_0x5d27('0xe')]=router;