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 _0x36b7=['update','delete','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','put'];(function(_0x562486,_0xcaf120){var _0x350763=function(_0x4ca53d){while(--_0x4ca53d){_0x562486['push'](_0x562486['shift']());}};_0x350763(++_0xcaf120);}(_0x36b7,0x1bb));var _0x736b=function(_0x469c04,_0x1eb194){_0x469c04=_0x469c04-0x0;var _0x1d297e=_0x36b7[_0x469c04];return _0x1d297e;};'use strict';var multer=require(_0x736b('0x0'));var util=require(_0x736b('0x1'));var path=require(_0x736b('0x2'));var timeout=require(_0x736b('0x3'));var express=require('express');var router=express[_0x736b('0x4')]();var fs_extra=require(_0x736b('0x5'));var auth=require(_0x736b('0x6'));var interaction=require(_0x736b('0x7'));var config=require(_0x736b('0x8'));var controller=require('./cmContactHasItem.controller');router[_0x736b('0x9')]('/',auth[_0x736b('0xa')](),controller[_0x736b('0xb')]);router[_0x736b('0x9')](_0x736b('0xc'),auth[_0x736b('0xa')](),controller[_0x736b('0xd')]);router[_0x736b('0xe')]('/',auth[_0x736b('0xa')](),controller[_0x736b('0xf')]);router[_0x736b('0x10')](_0x736b('0xc'),auth['isAuthenticated'](),controller[_0x736b('0x11')]);router[_0x736b('0x12')]('/:id',auth[_0x736b('0xa')](),controller['destroy']);module[_0x736b('0x13')]=router;