a45052ed92d68040f0d9c28bb61ffef7fa23f1c4
[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 _0x288f=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmContactHasItem.controller','get','isAuthenticated','index','show','post','create','put','/:id','update','destroy','util','path'];(function(_0x403190,_0x627556){var _0x27ef47=function(_0x300295){while(--_0x300295){_0x403190['push'](_0x403190['shift']());}};_0x27ef47(++_0x627556);}(_0x288f,0x96));var _0xf288=function(_0x4fde0b,_0x4b4289){_0x4fde0b=_0x4fde0b-0x0;var _0x3f3b38=_0x288f[_0x4fde0b];return _0x3f3b38;};'use strict';var multer=require('multer');var util=require(_0xf288('0x0'));var path=require(_0xf288('0x1'));var timeout=require(_0xf288('0x2'));var express=require(_0xf288('0x3'));var router=express[_0xf288('0x4')]();var auth=require(_0xf288('0x5'));var interaction=require(_0xf288('0x6'));var config=require(_0xf288('0x7'));var controller=require(_0xf288('0x8'));router[_0xf288('0x9')]('/',auth[_0xf288('0xa')](),controller[_0xf288('0xb')]);router['get']('/:id',auth[_0xf288('0xa')](),controller[_0xf288('0xc')]);router[_0xf288('0xd')]('/',auth['isAuthenticated'](),controller[_0xf288('0xe')]);router[_0xf288('0xf')](_0xf288('0x10'),auth['isAuthenticated'](),controller[_0xf288('0x11')]);router['delete'](_0xf288('0x10'),auth[_0xf288('0xa')](),controller[_0xf288('0x12')]);module['exports']=router;