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