Built motion from commit f623a78c.|2.6.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 _0xd71f=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','post','create','delete','exports','multer','util','path','connect-timeout','express'];(function(_0x25b61c,_0xff1c80){var _0x23e80e=function(_0x25f818){while(--_0x25f818){_0x25b61c['push'](_0x25b61c['shift']());}};_0x23e80e(++_0xff1c80);}(_0xd71f,0x14f));var _0xfd71=function(_0x16f774,_0x480162){_0x16f774=_0x16f774-0x0;var _0x3bae1b=_0xd71f[_0x16f774];return _0x3bae1b;};'use strict';var multer=require(_0xfd71('0x0'));var util=require(_0xfd71('0x1'));var path=require(_0xfd71('0x2'));var timeout=require(_0xfd71('0x3'));var express=require(_0xfd71('0x4'));var router=express[_0xfd71('0x5')]();var fs_extra=require(_0xfd71('0x6'));var auth=require(_0xfd71('0x7'));var interaction=require(_0xfd71('0x8'));var config=require(_0xfd71('0x9'));var controller=require('./contactItemType.controller');router[_0xfd71('0xa')]('/',auth[_0xfd71('0xb')](),controller['index']);router[_0xfd71('0xa')](_0xfd71('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xfd71('0xd')]('/',auth[_0xfd71('0xb')](),controller[_0xfd71('0xe')]);router['put']('/:id',auth[_0xfd71('0xb')](),controller['update']);router[_0xfd71('0xf')](_0xfd71('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xfd71('0x10')]=router;