9055bbf84f5b29bd132c59527d40b5f331ce6eb9
[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 _0x0699=['/:id','create','put','update','delete','destroy','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','index'];(function(_0x44bcb0,_0x235aa9){var _0xfaf881=function(_0x25d81d){while(--_0x25d81d){_0x44bcb0['push'](_0x44bcb0['shift']());}};_0xfaf881(++_0x235aa9);}(_0x0699,0x1db));var _0x9069=function(_0x2f5000,_0x8c6730){_0x2f5000=_0x2f5000-0x0;var _0x1dacc6=_0x0699[_0x2f5000];return _0x1dacc6;};'use strict';var multer=require(_0x9069('0x0'));var util=require('util');var path=require(_0x9069('0x1'));var timeout=require('connect-timeout');var express=require(_0x9069('0x2'));var router=express[_0x9069('0x3')]();var fs_extra=require(_0x9069('0x4'));var auth=require(_0x9069('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x9069('0x6'));var controller=require(_0x9069('0x7'));router[_0x9069('0x8')]('/',auth[_0x9069('0x9')](),controller[_0x9069('0xa')]);router[_0x9069('0x8')](_0x9069('0xb'),auth[_0x9069('0x9')](),controller['show']);router['post']('/',auth[_0x9069('0x9')](),controller[_0x9069('0xc')]);router[_0x9069('0xd')](_0x9069('0xb'),auth['isAuthenticated'](),controller[_0x9069('0xe')]);router[_0x9069('0xf')](_0x9069('0xb'),auth[_0x9069('0x9')](),controller[_0x9069('0x10')]);module[_0x9069('0x11')]=router;