Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / contactItemType / 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 _0x3c8a=['destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./contactItemType.controller','isAuthenticated','index','get','show','post','update','/:id'];(function(_0x53d58f,_0x1a7e05){var _0x1ab6a0=function(_0x1d0e46){while(--_0x1d0e46){_0x53d58f['push'](_0x53d58f['shift']());}};_0x1ab6a0(++_0x1a7e05);}(_0x3c8a,0x11f));var _0xa3c8=function(_0xbb0ce8,_0xb63549){_0xbb0ce8=_0xbb0ce8-0x0;var _0x1a1b17=_0x3c8a[_0xbb0ce8];return _0x1a1b17;};'use strict';var multer=require(_0xa3c8('0x0'));var util=require(_0xa3c8('0x1'));var path=require(_0xa3c8('0x2'));var timeout=require('connect-timeout');var express=require(_0xa3c8('0x3'));var router=express[_0xa3c8('0x4')]();var fs_extra=require(_0xa3c8('0x5'));var auth=require(_0xa3c8('0x6'));var interaction=require(_0xa3c8('0x7'));var config=require(_0xa3c8('0x8'));var controller=require(_0xa3c8('0x9'));router['get']('/',auth[_0xa3c8('0xa')](),controller[_0xa3c8('0xb')]);router[_0xa3c8('0xc')]('/:id',auth[_0xa3c8('0xa')](),controller[_0xa3c8('0xd')]);router[_0xa3c8('0xe')]('/',auth[_0xa3c8('0xa')](),controller['create']);router['put']('/:id',auth['isAuthenticated'](),controller[_0xa3c8('0xf')]);router['delete'](_0xa3c8('0x10'),auth[_0xa3c8('0xa')](),controller[_0xa3c8('0x11')]);module[_0xa3c8('0x12')]=router;