Built motion from commit 753c950e.|2.5.42
[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 _0x11c3=['put','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','index','/:id','show'];(function(_0x1bc750,_0x23f442){var _0xcd51da=function(_0x323854){while(--_0x323854){_0x1bc750['push'](_0x1bc750['shift']());}};_0xcd51da(++_0x23f442);}(_0x11c3,0xee));var _0x311c=function(_0x39bc25,_0x2e5838){_0x39bc25=_0x39bc25-0x0;var _0x1f1f82=_0x11c3[_0x39bc25];return _0x1f1f82;};'use strict';var multer=require(_0x311c('0x0'));var util=require(_0x311c('0x1'));var path=require(_0x311c('0x2'));var timeout=require(_0x311c('0x3'));var express=require('express');var router=express[_0x311c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x311c('0x5'));var interaction=require(_0x311c('0x6'));var config=require(_0x311c('0x7'));var controller=require(_0x311c('0x8'));router[_0x311c('0x9')]('/',auth[_0x311c('0xa')](),controller[_0x311c('0xb')]);router[_0x311c('0x9')](_0x311c('0xc'),auth['isAuthenticated'](),controller[_0x311c('0xd')]);router['post']('/',auth[_0x311c('0xa')](),controller['create']);router[_0x311c('0xe')]('/:id',auth[_0x311c('0xa')](),controller['update']);router[_0x311c('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x311c('0x10')]);module[_0x311c('0x11')]=router;