Built motion from commit fd055180.|2.6.30
[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 _0x7573=['isAuthenticated','show','post','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','index','/:id'];(function(_0x263261,_0x41e607){var _0x2fdbca=function(_0x208b12){while(--_0x208b12){_0x263261['push'](_0x263261['shift']());}};_0x2fdbca(++_0x41e607);}(_0x7573,0x72));var _0x3757=function(_0x210d0c,_0x298e92){_0x210d0c=_0x210d0c-0x0;var _0x2023a2=_0x7573[_0x210d0c];return _0x2023a2;};'use strict';var multer=require(_0x3757('0x0'));var util=require(_0x3757('0x1'));var path=require(_0x3757('0x2'));var timeout=require(_0x3757('0x3'));var express=require(_0x3757('0x4'));var router=express[_0x3757('0x5')]();var fs_extra=require(_0x3757('0x6'));var auth=require(_0x3757('0x7'));var interaction=require(_0x3757('0x8'));var config=require('../../config/environment');var controller=require('./contactItemType.controller');router[_0x3757('0x9')]('/',auth['isAuthenticated'](),controller[_0x3757('0xa')]);router['get'](_0x3757('0xb'),auth[_0x3757('0xc')](),controller[_0x3757('0xd')]);router[_0x3757('0xe')]('/',auth[_0x3757('0xc')](),controller[_0x3757('0xf')]);router[_0x3757('0x10')](_0x3757('0xb'),auth[_0x3757('0xc')](),controller[_0x3757('0x11')]);router[_0x3757('0x12')](_0x3757('0xb'),auth[_0x3757('0xc')](),controller[_0x3757('0x13')]);module[_0x3757('0x14')]=router;