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 _0x46a1=['get','isAuthenticated','index','/:id','show','update','delete','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x453282,_0x3acebb){var _0x387e74=function(_0x23b54f){while(--_0x23b54f){_0x453282['push'](_0x453282['shift']());}};_0x387e74(++_0x3acebb);}(_0x46a1,0x177));var _0x146a=function(_0x496071,_0xa515e9){_0x496071=_0x496071-0x0;var _0x299733=_0x46a1[_0x496071];return _0x299733;};'use strict';var multer=require(_0x146a('0x0'));var util=require(_0x146a('0x1'));var path=require('path');var timeout=require(_0x146a('0x2'));var express=require(_0x146a('0x3'));var router=express[_0x146a('0x4')]();var fs_extra=require(_0x146a('0x5'));var auth=require(_0x146a('0x6'));var interaction=require(_0x146a('0x7'));var config=require(_0x146a('0x8'));var controller=require('./contactItemType.controller');router[_0x146a('0x9')]('/',auth[_0x146a('0xa')](),controller[_0x146a('0xb')]);router[_0x146a('0x9')](_0x146a('0xc'),auth['isAuthenticated'](),controller[_0x146a('0xd')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x146a('0xc'),auth[_0x146a('0xa')](),controller[_0x146a('0xe')]);router[_0x146a('0xf')](_0x146a('0xc'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;