54a7cf519b4c8dc2314e51f54bf47c2b78a4f46a
[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 _0xcea3=['multer','path','Router','../../components/auth/service','../../config/environment','./intDeskField.controller','isAuthenticated','get','/:id','post','delete','destroy','exports'];(function(_0xc9f951,_0x4278b2){var _0x313ca6=function(_0x3af57b){while(--_0x3af57b){_0xc9f951['push'](_0xc9f951['shift']());}};_0x313ca6(++_0x4278b2);}(_0xcea3,0x1e1));var _0x3cea=function(_0x573d59,_0x415a03){_0x573d59=_0x573d59-0x0;var _0x46e43a=_0xcea3[_0x573d59];return _0x46e43a;};'use strict';var multer=require(_0x3cea('0x0'));var util=require('util');var path=require(_0x3cea('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3cea('0x2')]();var auth=require(_0x3cea('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x3cea('0x4'));var controller=require(_0x3cea('0x5'));router['get']('/',auth[_0x3cea('0x6')](),controller['index']);router[_0x3cea('0x7')](_0x3cea('0x8'),auth[_0x3cea('0x6')](),controller['show']);router[_0x3cea('0x9')]('/',auth[_0x3cea('0x6')](),controller['create']);router['put'](_0x3cea('0x8'),auth[_0x3cea('0x6')](),controller['update']);router[_0x3cea('0xa')](_0x3cea('0x8'),auth[_0x3cea('0x6')](),controller[_0x3cea('0xb')]);module[_0x3cea('0xc')]=router;