70b1ea77aca530afaadc31bb87a5e3671bcb3dd0
[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 _0xf5a8=['../../components/auth/service','../../components/interaction/service','../../config/environment','./contactItemType.controller','get','index','/:id','isAuthenticated','create','put','delete','destroy','exports','util','connect-timeout','express'];(function(_0x5b5eb4,_0x117c87){var _0x42af53=function(_0xdf6fcb){while(--_0xdf6fcb){_0x5b5eb4['push'](_0x5b5eb4['shift']());}};_0x42af53(++_0x117c87);}(_0xf5a8,0x17d));var _0x8f5a=function(_0x4e0eb6,_0x240784){_0x4e0eb6=_0x4e0eb6-0x0;var _0x46e432=_0xf5a8[_0x4e0eb6];return _0x46e432;};'use strict';var multer=require('multer');var util=require(_0x8f5a('0x0'));var path=require('path');var timeout=require(_0x8f5a('0x1'));var express=require(_0x8f5a('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x8f5a('0x3'));var interaction=require(_0x8f5a('0x4'));var config=require(_0x8f5a('0x5'));var controller=require(_0x8f5a('0x6'));router[_0x8f5a('0x7')]('/',auth['isAuthenticated'](),controller[_0x8f5a('0x8')]);router[_0x8f5a('0x7')](_0x8f5a('0x9'),auth[_0x8f5a('0xa')](),controller['show']);router['post']('/',auth[_0x8f5a('0xa')](),controller[_0x8f5a('0xb')]);router[_0x8f5a('0xc')](_0x8f5a('0x9'),auth[_0x8f5a('0xa')](),controller['update']);router[_0x8f5a('0xd')]('/:id',auth[_0x8f5a('0xa')](),controller[_0x8f5a('0xe')]);module[_0x8f5a('0xf')]=router;