6f7f842407ab2d759ec8bf9cf0f2f2e3b8309248
[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 _0xbb93=['../../config/environment','./contactItemType.controller','get','isAuthenticated','index','show','post','put','/:id','update','destroy','util','path','express','Router','../../components/auth/service'];(function(_0x186abc,_0x4010a2){var _0x4e8456=function(_0x5d3f93){while(--_0x5d3f93){_0x186abc['push'](_0x186abc['shift']());}};_0x4e8456(++_0x4010a2);}(_0xbb93,0x1ab));var _0x3bb9=function(_0x3158fa,_0x3de97f){_0x3158fa=_0x3158fa-0x0;var _0x2cd043=_0xbb93[_0x3158fa];return _0x2cd043;};'use strict';var multer=require('multer');var util=require(_0x3bb9('0x0'));var path=require(_0x3bb9('0x1'));var timeout=require('connect-timeout');var express=require(_0x3bb9('0x2'));var router=express[_0x3bb9('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x3bb9('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3bb9('0x5'));var controller=require(_0x3bb9('0x6'));router[_0x3bb9('0x7')]('/',auth[_0x3bb9('0x8')](),controller[_0x3bb9('0x9')]);router[_0x3bb9('0x7')]('/:id',auth[_0x3bb9('0x8')](),controller[_0x3bb9('0xa')]);router[_0x3bb9('0xb')]('/',auth[_0x3bb9('0x8')](),controller['create']);router[_0x3bb9('0xc')](_0x3bb9('0xd'),auth['isAuthenticated'](),controller[_0x3bb9('0xe')]);router['delete'](_0x3bb9('0xd'),auth[_0x3bb9('0x8')](),controller[_0x3bb9('0xf')]);module['exports']=router;