Built motion from commit 67e5df37.|2.0.66
[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 _0xf281=['isAuthenticated','index','/:id','show','post','create','update','delete','destroy','exports','util','path','../../components/auth/service','../../config/environment'];(function(_0x344a08,_0x16e95b){var _0x522cd7=function(_0x32f450){while(--_0x32f450){_0x344a08['push'](_0x344a08['shift']());}};_0x522cd7(++_0x16e95b);}(_0xf281,0xdc));var _0x1f28=function(_0x2a1004,_0x101bb9){_0x2a1004=_0x2a1004-0x0;var _0x22856d=_0xf281[_0x2a1004];return _0x22856d;};'use strict';var multer=require('multer');var util=require(_0x1f28('0x0'));var path=require(_0x1f28('0x1'));var express=require('express');var router=express['Router']();var auth=require(_0x1f28('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x1f28('0x3'));var controller=require('./intDeskField.controller');router['get']('/',auth[_0x1f28('0x4')](),controller[_0x1f28('0x5')]);router['get'](_0x1f28('0x6'),auth[_0x1f28('0x4')](),controller[_0x1f28('0x7')]);router[_0x1f28('0x8')]('/',auth[_0x1f28('0x4')](),controller[_0x1f28('0x9')]);router['put'](_0x1f28('0x6'),auth['isAuthenticated'](),controller[_0x1f28('0xa')]);router[_0x1f28('0xb')]('/:id',auth[_0x1f28('0x4')](),controller[_0x1f28('0xc')]);module[_0x1f28('0xd')]=router;