Built motion from commit (unavailable).|2.5.31
[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 _0x262e=['get','isAuthenticated','/:id','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x13fd74,_0x37cf1f){var _0x2f6a5d=function(_0xe1cc40){while(--_0xe1cc40){_0x13fd74['push'](_0x13fd74['shift']());}};_0x2f6a5d(++_0x37cf1f);}(_0x262e,0x1ef));var _0xe262=function(_0x278e3c,_0x1c9cfd){_0x278e3c=_0x278e3c-0x0;var _0x3e2d9b=_0x262e[_0x278e3c];return _0x3e2d9b;};'use strict';var multer=require(_0xe262('0x0'));var util=require(_0xe262('0x1'));var path=require(_0xe262('0x2'));var timeout=require(_0xe262('0x3'));var express=require(_0xe262('0x4'));var router=express[_0xe262('0x5')]();var fs_extra=require(_0xe262('0x6'));var auth=require(_0xe262('0x7'));var interaction=require(_0xe262('0x8'));var config=require('../../config/environment');var controller=require('./contactItemType.controller');router[_0xe262('0x9')]('/',auth[_0xe262('0xa')](),controller['index']);router[_0xe262('0x9')](_0xe262('0xb'),auth[_0xe262('0xa')](),controller['show']);router[_0xe262('0xc')]('/',auth[_0xe262('0xa')](),controller[_0xe262('0xd')]);router[_0xe262('0xe')](_0xe262('0xb'),auth[_0xe262('0xa')](),controller[_0xe262('0xf')]);router[_0xe262('0x10')](_0xe262('0xb'),auth['isAuthenticated'](),controller[_0xe262('0x11')]);module['exports']=router;