Built motion from commit 3e059bc2.|2.5.32
[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 _0x4f81=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','isAuthenticated','get','/:id','show','post','create','update','delete','destroy','exports','path','express','Router'];(function(_0x2e2681,_0x4089c1){var _0x368a64=function(_0x267262){while(--_0x267262){_0x2e2681['push'](_0x2e2681['shift']());}};_0x368a64(++_0x4089c1);}(_0x4f81,0x1e3));var _0x14f8=function(_0x561368,_0x39848d){_0x561368=_0x561368-0x0;var _0x45b1e9=_0x4f81[_0x561368];return _0x45b1e9;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x14f8('0x0'));var timeout=require('connect-timeout');var express=require(_0x14f8('0x1'));var router=express[_0x14f8('0x2')]();var fs_extra=require(_0x14f8('0x3'));var auth=require(_0x14f8('0x4'));var interaction=require(_0x14f8('0x5'));var config=require(_0x14f8('0x6'));var controller=require(_0x14f8('0x7'));router['get']('/',auth[_0x14f8('0x8')](),controller['index']);router[_0x14f8('0x9')](_0x14f8('0xa'),auth['isAuthenticated'](),controller[_0x14f8('0xb')]);router[_0x14f8('0xc')]('/',auth['isAuthenticated'](),controller[_0x14f8('0xd')]);router['put']('/:id',auth[_0x14f8('0x8')](),controller[_0x14f8('0xe')]);router[_0x14f8('0xf')](_0x14f8('0xa'),auth[_0x14f8('0x8')](),controller[_0x14f8('0x10')]);module[_0x14f8('0x11')]=router;