46d6f2ffd8d4d65f522e6bba95ebebb77c5d7600
[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 _0x692c=['post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./contactItemType.controller','get','isAuthenticated','/:id','show'];(function(_0x32e05c,_0x175583){var _0x860538=function(_0x3d66d3){while(--_0x3d66d3){_0x32e05c['push'](_0x32e05c['shift']());}};_0x860538(++_0x175583);}(_0x692c,0x6a));var _0xc692=function(_0x1f0088,_0x18af75){_0x1f0088=_0x1f0088-0x0;var _0x3bccb5=_0x692c[_0x1f0088];return _0x3bccb5;};'use strict';var multer=require(_0xc692('0x0'));var util=require(_0xc692('0x1'));var path=require(_0xc692('0x2'));var timeout=require(_0xc692('0x3'));var express=require(_0xc692('0x4'));var router=express[_0xc692('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xc692('0x6'));var interaction=require(_0xc692('0x7'));var config=require(_0xc692('0x8'));var controller=require(_0xc692('0x9'));router[_0xc692('0xa')]('/',auth[_0xc692('0xb')](),controller['index']);router['get'](_0xc692('0xc'),auth[_0xc692('0xb')](),controller[_0xc692('0xd')]);router[_0xc692('0xe')]('/',auth[_0xc692('0xb')](),controller[_0xc692('0xf')]);router[_0xc692('0x10')]('/:id',auth[_0xc692('0xb')](),controller[_0xc692('0x11')]);router[_0xc692('0x12')](_0xc692('0xc'),auth[_0xc692('0xb')](),controller['destroy']);module[_0xc692('0x13')]=router;