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