bad355d1f20253f7e7800c1ea9b8e576657d13f2
[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 _0x1be6=['exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./contactItemType.controller','isAuthenticated','index','get','show','post','put','/:id','update','delete','destroy'];(function(_0x539e95,_0x3a38d2){var _0x3a3de0=function(_0x3e7291){while(--_0x3e7291){_0x539e95['push'](_0x539e95['shift']());}};_0x3a3de0(++_0x3a38d2);}(_0x1be6,0xbe));var _0x61be=function(_0x8edae3,_0x47af99){_0x8edae3=_0x8edae3-0x0;var _0xb56602=_0x1be6[_0x8edae3];return _0xb56602;};'use strict';var multer=require(_0x61be('0x0'));var util=require('util');var path=require(_0x61be('0x1'));var timeout=require(_0x61be('0x2'));var express=require(_0x61be('0x3'));var router=express[_0x61be('0x4')]();var fs_extra=require(_0x61be('0x5'));var auth=require(_0x61be('0x6'));var interaction=require(_0x61be('0x7'));var config=require(_0x61be('0x8'));var controller=require(_0x61be('0x9'));router['get']('/',auth[_0x61be('0xa')](),controller[_0x61be('0xb')]);router[_0x61be('0xc')]('/:id',auth[_0x61be('0xa')](),controller[_0x61be('0xd')]);router[_0x61be('0xe')]('/',auth[_0x61be('0xa')](),controller['create']);router[_0x61be('0xf')](_0x61be('0x10'),auth['isAuthenticated'](),controller[_0x61be('0x11')]);router[_0x61be('0x12')](_0x61be('0x10'),auth[_0x61be('0xa')](),controller[_0x61be('0x13')]);module[_0x61be('0x14')]=router;