Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / intDeskField / 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 _0x9ebb=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','post','create','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra'];(function(_0x551ba0,_0x454c1e){var _0x3d9a7f=function(_0x2ca088){while(--_0x2ca088){_0x551ba0['push'](_0x551ba0['shift']());}};_0x3d9a7f(++_0x454c1e);}(_0x9ebb,0x11a));var _0xb9eb=function(_0x39e7bb,_0xac04b2){_0x39e7bb=_0x39e7bb-0x0;var _0xe02f0a=_0x9ebb[_0x39e7bb];return _0xe02f0a;};'use strict';var multer=require(_0xb9eb('0x0'));var util=require('util');var path=require(_0xb9eb('0x1'));var timeout=require(_0xb9eb('0x2'));var express=require(_0xb9eb('0x3'));var router=express[_0xb9eb('0x4')]();var fs_extra=require(_0xb9eb('0x5'));var auth=require(_0xb9eb('0x6'));var interaction=require(_0xb9eb('0x7'));var config=require(_0xb9eb('0x8'));var controller=require('./intDeskField.controller');router[_0xb9eb('0x9')]('/',auth[_0xb9eb('0xa')](),controller[_0xb9eb('0xb')]);router['get'](_0xb9eb('0xc'),auth[_0xb9eb('0xa')](),controller['show']);router[_0xb9eb('0xd')]('/',auth[_0xb9eb('0xa')](),controller[_0xb9eb('0xe')]);router['put'](_0xb9eb('0xc'),auth[_0xb9eb('0xa')](),controller['update']);router[_0xb9eb('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xb9eb('0x10')]);module[_0xb9eb('0x11')]=router;