fdb70b6932c9561751cfafc88ea9f3360a1a27d0
[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 _0x57e4=['util','path','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','post','create','put','/:id','delete','destroy','exports','multer'];(function(_0x3696e3,_0x599d05){var _0x286959=function(_0x252d89){while(--_0x252d89){_0x3696e3['push'](_0x3696e3['shift']());}};_0x286959(++_0x599d05);}(_0x57e4,0xe0));var _0x457e=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x57e4[_0xa464c9];return _0x3d73c4;};'use strict';var multer=require(_0x457e('0x0'));var util=require(_0x457e('0x1'));var path=require(_0x457e('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x457e('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x457e('0x4'));var config=require(_0x457e('0x5'));var controller=require('./intDeskField.controller');router[_0x457e('0x6')]('/',auth['isAuthenticated'](),controller['index']);router[_0x457e('0x6')]('/:id',auth[_0x457e('0x7')](),controller['show']);router[_0x457e('0x8')]('/',auth[_0x457e('0x7')](),controller[_0x457e('0x9')]);router[_0x457e('0xa')](_0x457e('0xb'),auth[_0x457e('0x7')](),controller['update']);router[_0x457e('0xc')](_0x457e('0xb'),auth[_0x457e('0x7')](),controller[_0x457e('0xd')]);module[_0x457e('0xe')]=router;