5562d93cebc399d0c626ec67b4126705ab626bb3
[motion2.git] / server / api / cmContactHasItem / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x1c35=['destroy','exports','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','post','create','put','/:id','update','delete'];(function(_0x442cac,_0x5748b3){var _0xd96f05=function(_0x34a4c8){while(--_0x34a4c8){_0x442cac['push'](_0x442cac['shift']());}};_0xd96f05(++_0x5748b3);}(_0x1c35,0x6e));var _0x51c3=function(_0x3cb3b3,_0x3b5d9e){_0x3cb3b3=_0x3cb3b3-0x0;var _0xa0733c=_0x1c35[_0x3cb3b3];return _0xa0733c;};'use strict';var multer=require('multer');var util=require(_0x51c3('0x0'));var path=require(_0x51c3('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x51c3('0x2')]();var fs_extra=require(_0x51c3('0x3'));var auth=require(_0x51c3('0x4'));var interaction=require(_0x51c3('0x5'));var config=require(_0x51c3('0x6'));var controller=require('./cmContactHasItem.controller');router[_0x51c3('0x7')]('/',auth['isAuthenticated'](),controller[_0x51c3('0x8')]);router[_0x51c3('0x7')]('/:id',auth[_0x51c3('0x9')](),controller['show']);router[_0x51c3('0xa')]('/',auth[_0x51c3('0x9')](),controller[_0x51c3('0xb')]);router[_0x51c3('0xc')](_0x51c3('0xd'),auth[_0x51c3('0x9')](),controller[_0x51c3('0xe')]);router[_0x51c3('0xf')](_0x51c3('0xd'),auth[_0x51c3('0x9')](),controller[_0x51c3('0x10')]);module[_0x51c3('0x11')]=router;