1e13e770e8ce095cc85a7e88a534e1e1e134c079
[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 _0xd76d=['path','connect-timeout','../../components/auth/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','delete','destroy','exports','multer','util'];(function(_0x49ca18,_0x5e6d05){var _0x145d54=function(_0x30b9be){while(--_0x30b9be){_0x49ca18['push'](_0x49ca18['shift']());}};_0x145d54(++_0x5e6d05);}(_0xd76d,0x139));var _0xdd76=function(_0x454d24,_0x749d57){_0x454d24=_0x454d24-0x0;var _0x311b2c=_0xd76d[_0x454d24];return _0x311b2c;};'use strict';var multer=require(_0xdd76('0x0'));var util=require(_0xdd76('0x1'));var path=require(_0xdd76('0x2'));var timeout=require(_0xdd76('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xdd76('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xdd76('0x5'));var controller=require('./contactItemType.controller');router[_0xdd76('0x6')]('/',auth['isAuthenticated'](),controller[_0xdd76('0x7')]);router['get'](_0xdd76('0x8'),auth[_0xdd76('0x9')](),controller[_0xdd76('0xa')]);router[_0xdd76('0xb')]('/',auth[_0xdd76('0x9')](),controller['create']);router['put'](_0xdd76('0x8'),auth[_0xdd76('0x9')](),controller['update']);router[_0xdd76('0xc')](_0xdd76('0x8'),auth['isAuthenticated'](),controller[_0xdd76('0xd')]);module[_0xdd76('0xe')]=router;