6fe2311332abf4e0d56fe77056412dd977e5e211
[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 _0x95b3=['exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','/:id','post','put'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x95b3,0xc1));var _0x395b=function(_0x323d0c,_0x59ddbe){_0x323d0c=_0x323d0c-0x0;var _0x560dcd=_0x95b3[_0x323d0c];return _0x560dcd;};'use strict';var multer=require(_0x395b('0x0'));var util=require(_0x395b('0x1'));var path=require(_0x395b('0x2'));var timeout=require(_0x395b('0x3'));var express=require(_0x395b('0x4'));var router=express[_0x395b('0x5')]();var auth=require(_0x395b('0x6'));var interaction=require(_0x395b('0x7'));var config=require(_0x395b('0x8'));var controller=require(_0x395b('0x9'));router[_0x395b('0xa')]('/',auth[_0x395b('0xb')](),controller['index']);router[_0x395b('0xa')](_0x395b('0xc'),auth[_0x395b('0xb')](),controller['show']);router[_0x395b('0xd')]('/',auth[_0x395b('0xb')](),controller['create']);router[_0x395b('0xe')](_0x395b('0xc'),auth[_0x395b('0xb')](),controller['update']);router['delete'](_0x395b('0xc'),auth[_0x395b('0xb')](),controller['destroy']);module[_0x395b('0xf')]=router;