6420938dee3019ca92e999ebd0249b58b11508b6
[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 _0x4e89=['fs-extra','../../components/interaction/service','../../config/environment','./contactItemType.controller','get','index','isAuthenticated','show','put','/:id','destroy','exports','util','connect-timeout','express'];(function(_0x456fc1,_0x5e289d){var _0x35587a=function(_0x753883){while(--_0x753883){_0x456fc1['push'](_0x456fc1['shift']());}};_0x35587a(++_0x5e289d);}(_0x4e89,0xed));var _0x94e8=function(_0x397cc2,_0xf5a34e){_0x397cc2=_0x397cc2-0x0;var _0x544d87=_0x4e89[_0x397cc2];return _0x544d87;};'use strict';var multer=require('multer');var util=require(_0x94e8('0x0'));var path=require('path');var timeout=require(_0x94e8('0x1'));var express=require(_0x94e8('0x2'));var router=express['Router']();var fs_extra=require(_0x94e8('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x94e8('0x4'));var config=require(_0x94e8('0x5'));var controller=require(_0x94e8('0x6'));router[_0x94e8('0x7')]('/',auth['isAuthenticated'](),controller[_0x94e8('0x8')]);router[_0x94e8('0x7')]('/:id',auth[_0x94e8('0x9')](),controller[_0x94e8('0xa')]);router['post']('/',auth[_0x94e8('0x9')](),controller['create']);router[_0x94e8('0xb')](_0x94e8('0xc'),auth[_0x94e8('0x9')](),controller['update']);router['delete'](_0x94e8('0xc'),auth[_0x94e8('0x9')](),controller[_0x94e8('0xd')]);module[_0x94e8('0xe')]=router;