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 _0x874c=['post','create','put','update','delete','exports','multer','path','express','Router','fs-extra','../../config/environment','./cmContactHasItem.controller','get','/:id','isAuthenticated','show'];(function(_0x3a723e,_0x59d99a){var _0x3e9c03=function(_0x4a6947){while(--_0x4a6947){_0x3a723e['push'](_0x3a723e['shift']());}};_0x3e9c03(++_0x59d99a);}(_0x874c,0x15a));var _0xc874=function(_0x1717cb,_0x301a62){_0x1717cb=_0x1717cb-0x0;var _0x4f7cd5=_0x874c[_0x1717cb];return _0x4f7cd5;};'use strict';var multer=require(_0xc874('0x0'));var util=require('util');var path=require(_0xc874('0x1'));var timeout=require('connect-timeout');var express=require(_0xc874('0x2'));var router=express[_0xc874('0x3')]();var fs_extra=require(_0xc874('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xc874('0x5'));var controller=require(_0xc874('0x6'));router[_0xc874('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xc874('0x8'),auth[_0xc874('0x9')](),controller[_0xc874('0xa')]);router[_0xc874('0xb')]('/',auth[_0xc874('0x9')](),controller[_0xc874('0xc')]);router[_0xc874('0xd')](_0xc874('0x8'),auth[_0xc874('0x9')](),controller[_0xc874('0xe')]);router[_0xc874('0xf')](_0xc874('0x8'),auth[_0xc874('0x9')](),controller['destroy']);module[_0xc874('0x10')]=router;