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 _0xfe29=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmContactHasItem.controller','get','index','/:id','isAuthenticated','show','create','delete','destroy','exports','multer'];(function(_0x540c20,_0x196525){var _0x304213=function(_0x172b5e){while(--_0x172b5e){_0x540c20['push'](_0x540c20['shift']());}};_0x304213(++_0x196525);}(_0xfe29,0x1ed));var _0x9fe2=function(_0x145555,_0x12efae){_0x145555=_0x145555-0x0;var _0x2b9e60=_0xfe29[_0x145555];return _0x2b9e60;};'use strict';var multer=require(_0x9fe2('0x0'));var util=require(_0x9fe2('0x1'));var path=require(_0x9fe2('0x2'));var timeout=require(_0x9fe2('0x3'));var express=require(_0x9fe2('0x4'));var router=express[_0x9fe2('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x9fe2('0x6'));var interaction=require(_0x9fe2('0x7'));var config=require(_0x9fe2('0x8'));var controller=require(_0x9fe2('0x9'));router[_0x9fe2('0xa')]('/',auth['isAuthenticated'](),controller[_0x9fe2('0xb')]);router[_0x9fe2('0xa')](_0x9fe2('0xc'),auth[_0x9fe2('0xd')](),controller[_0x9fe2('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x9fe2('0xf')]);router['put'](_0x9fe2('0xc'),auth[_0x9fe2('0xd')](),controller['update']);router[_0x9fe2('0x10')](_0x9fe2('0xc'),auth['isAuthenticated'](),controller[_0x9fe2('0x11')]);module[_0x9fe2('0x12')]=router;