9cfab94beaa5c2e8148dffb8de3f5172ab46f720
[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 _0xcc6b=['exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./contactItemType.controller','get','isAuthenticated','index','/:id','show','post','put','update'];(function(_0x18bd69,_0x5883ce){var _0x13f294=function(_0x276808){while(--_0x276808){_0x18bd69['push'](_0x18bd69['shift']());}};_0x13f294(++_0x5883ce);}(_0xcc6b,0x18d));var _0xbcc6=function(_0x3cf987,_0x527be2){_0x3cf987=_0x3cf987-0x0;var _0x48e399=_0xcc6b[_0x3cf987];return _0x48e399;};'use strict';var multer=require(_0xbcc6('0x0'));var util=require(_0xbcc6('0x1'));var path=require(_0xbcc6('0x2'));var timeout=require(_0xbcc6('0x3'));var express=require(_0xbcc6('0x4'));var router=express['Router']();var fs_extra=require(_0xbcc6('0x5'));var auth=require(_0xbcc6('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xbcc6('0x7'));var controller=require(_0xbcc6('0x8'));router[_0xbcc6('0x9')]('/',auth[_0xbcc6('0xa')](),controller[_0xbcc6('0xb')]);router[_0xbcc6('0x9')](_0xbcc6('0xc'),auth[_0xbcc6('0xa')](),controller[_0xbcc6('0xd')]);router[_0xbcc6('0xe')]('/',auth[_0xbcc6('0xa')](),controller['create']);router[_0xbcc6('0xf')](_0xbcc6('0xc'),auth[_0xbcc6('0xa')](),controller[_0xbcc6('0x10')]);router['delete']('/:id',auth[_0xbcc6('0xa')](),controller['destroy']);module[_0xbcc6('0x11')]=router;