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 _0x3cf4=['get','isAuthenticated','index','/:id','show','post','create','update','delete','destroy','exports','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x293b7d,_0xe44902){var _0x31c609=function(_0x317b53){while(--_0x317b53){_0x293b7d['push'](_0x293b7d['shift']());}};_0x31c609(++_0xe44902);}(_0x3cf4,0x1bb));var _0x43cf=function(_0x117e50,_0x144d10){_0x117e50=_0x117e50-0x0;var _0x3c90fb=_0x3cf4[_0x117e50];return _0x3c90fb;};'use strict';var multer=require('multer');var util=require(_0x43cf('0x0'));var path=require(_0x43cf('0x1'));var timeout=require(_0x43cf('0x2'));var express=require('express');var router=express[_0x43cf('0x3')]();var fs_extra=require(_0x43cf('0x4'));var auth=require(_0x43cf('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x43cf('0x6'));var controller=require('./contactItemType.controller');router[_0x43cf('0x7')]('/',auth[_0x43cf('0x8')](),controller[_0x43cf('0x9')]);router['get'](_0x43cf('0xa'),auth[_0x43cf('0x8')](),controller[_0x43cf('0xb')]);router[_0x43cf('0xc')]('/',auth[_0x43cf('0x8')](),controller[_0x43cf('0xd')]);router['put']('/:id',auth[_0x43cf('0x8')](),controller[_0x43cf('0xe')]);router[_0x43cf('0xf')]('/:id',auth[_0x43cf('0x8')](),controller[_0x43cf('0x10')]);module[_0x43cf('0x11')]=router;