Built motion from commit 1fa89557.|2.6.10
[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 _0x847f=['Router','../../components/auth/service','../../components/interaction/service','./contactItemType.controller','get','isAuthenticated','index','/:id','show','create','put','destroy','multer','util','path','connect-timeout','express'];(function(_0x34947e,_0x45c404){var _0x87404f=function(_0x5e5027){while(--_0x5e5027){_0x34947e['push'](_0x34947e['shift']());}};_0x87404f(++_0x45c404);}(_0x847f,0x1b5));var _0xf847=function(_0x71a70,_0x4e1cdd){_0x71a70=_0x71a70-0x0;var _0x3a2b22=_0x847f[_0x71a70];return _0x3a2b22;};'use strict';var multer=require(_0xf847('0x0'));var util=require(_0xf847('0x1'));var path=require(_0xf847('0x2'));var timeout=require(_0xf847('0x3'));var express=require(_0xf847('0x4'));var router=express[_0xf847('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xf847('0x6'));var interaction=require(_0xf847('0x7'));var config=require('../../config/environment');var controller=require(_0xf847('0x8'));router[_0xf847('0x9')]('/',auth[_0xf847('0xa')](),controller[_0xf847('0xb')]);router[_0xf847('0x9')](_0xf847('0xc'),auth['isAuthenticated'](),controller[_0xf847('0xd')]);router['post']('/',auth[_0xf847('0xa')](),controller[_0xf847('0xe')]);router[_0xf847('0xf')](_0xf847('0xc'),auth[_0xf847('0xa')](),controller['update']);router['delete'](_0xf847('0xc'),auth[_0xf847('0xa')](),controller[_0xf847('0x10')]);module['exports']=router;