Built motion from commit 351e7f9c.|2.6.31
[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 _0x06bc=['Router','fs-extra','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','index','/:id','isAuthenticated','post','create','put','update','delete','destroy','util'];(function(_0x38309e,_0x4e677f){var _0x5c9399=function(_0x59075e){while(--_0x59075e){_0x38309e['push'](_0x38309e['shift']());}};_0x5c9399(++_0x4e677f);}(_0x06bc,0x6f));var _0xc06b=function(_0x25182a,_0x47867b){_0x25182a=_0x25182a-0x0;var _0x59ee1c=_0x06bc[_0x25182a];return _0x59ee1c;};'use strict';var multer=require('multer');var util=require(_0xc06b('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xc06b('0x1')]();var fs_extra=require(_0xc06b('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0xc06b('0x3'));var config=require(_0xc06b('0x4'));var controller=require(_0xc06b('0x5'));router[_0xc06b('0x6')]('/',auth['isAuthenticated'](),controller[_0xc06b('0x7')]);router['get'](_0xc06b('0x8'),auth[_0xc06b('0x9')](),controller['show']);router[_0xc06b('0xa')]('/',auth['isAuthenticated'](),controller[_0xc06b('0xb')]);router[_0xc06b('0xc')](_0xc06b('0x8'),auth[_0xc06b('0x9')](),controller[_0xc06b('0xd')]);router[_0xc06b('0xe')]('/:id',auth[_0xc06b('0x9')](),controller[_0xc06b('0xf')]);module['exports']=router;