f8dd1791a3ef82e51f56bfb30bd222a2625b9535
[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 _0x1a57=['path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./cmContactHasItem.controller','get','isAuthenticated','show','post','create','put','update','delete','/:id','destroy','multer','util'];(function(_0x2a8375,_0x372351){var _0x1b9d44=function(_0x3b8065){while(--_0x3b8065){_0x2a8375['push'](_0x2a8375['shift']());}};_0x1b9d44(++_0x372351);}(_0x1a57,0xf5));var _0x71a5=function(_0x56bdbf,_0x2e9ace){_0x56bdbf=_0x56bdbf-0x0;var _0x2dae26=_0x1a57[_0x56bdbf];return _0x2dae26;};'use strict';var multer=require(_0x71a5('0x0'));var util=require(_0x71a5('0x1'));var path=require(_0x71a5('0x2'));var timeout=require(_0x71a5('0x3'));var express=require('express');var router=express[_0x71a5('0x4')]();var fs_extra=require(_0x71a5('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x71a5('0x6'));var config=require(_0x71a5('0x7'));var controller=require(_0x71a5('0x8'));router[_0x71a5('0x9')]('/',auth[_0x71a5('0xa')](),controller['index']);router[_0x71a5('0x9')]('/:id',auth[_0x71a5('0xa')](),controller[_0x71a5('0xb')]);router[_0x71a5('0xc')]('/',auth['isAuthenticated'](),controller[_0x71a5('0xd')]);router[_0x71a5('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x71a5('0xf')]);router[_0x71a5('0x10')](_0x71a5('0x11'),auth[_0x71a5('0xa')](),controller[_0x71a5('0x12')]);module['exports']=router;