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 _0x3d4b=['put','delete','destroy','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./contactItemType.controller','get','/:id','isAuthenticated','show','post','create'];(function(_0x5a3298,_0x3ed269){var _0x5b3583=function(_0x221152){while(--_0x221152){_0x5a3298['push'](_0x5a3298['shift']());}};_0x5b3583(++_0x3ed269);}(_0x3d4b,0xf1));var _0xb3d4=function(_0x23c89d,_0x1a8b99){_0x23c89d=_0x23c89d-0x0;var _0x4db932=_0x3d4b[_0x23c89d];return _0x4db932;};'use strict';var multer=require('multer');var util=require(_0xb3d4('0x0'));var path=require('path');var timeout=require(_0xb3d4('0x1'));var express=require(_0xb3d4('0x2'));var router=express[_0xb3d4('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xb3d4('0x4'));var interaction=require(_0xb3d4('0x5'));var config=require(_0xb3d4('0x6'));var controller=require(_0xb3d4('0x7'));router[_0xb3d4('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xb3d4('0x8')](_0xb3d4('0x9'),auth[_0xb3d4('0xa')](),controller[_0xb3d4('0xb')]);router[_0xb3d4('0xc')]('/',auth[_0xb3d4('0xa')](),controller[_0xb3d4('0xd')]);router[_0xb3d4('0xe')](_0xb3d4('0x9'),auth[_0xb3d4('0xa')](),controller['update']);router[_0xb3d4('0xf')](_0xb3d4('0x9'),auth['isAuthenticated'](),controller[_0xb3d4('0x10')]);module['exports']=router;