9e05f6dec6c4e12c6ef9d0fc45d5ed65fe655d55
[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 _0x22bc=['/:id','show','post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x3db662,_0x35b0f6){var _0x458a1d=function(_0x10f111){while(--_0x10f111){_0x3db662['push'](_0x3db662['shift']());}};_0x458a1d(++_0x35b0f6);}(_0x22bc,0xce));var _0xc22b=function(_0x5a0f20,_0x578b52){_0x5a0f20=_0x5a0f20-0x0;var _0x12197a=_0x22bc[_0x5a0f20];return _0x12197a;};'use strict';var multer=require(_0xc22b('0x0'));var util=require(_0xc22b('0x1'));var path=require(_0xc22b('0x2'));var timeout=require(_0xc22b('0x3'));var express=require(_0xc22b('0x4'));var router=express['Router']();var auth=require(_0xc22b('0x5'));var interaction=require(_0xc22b('0x6'));var config=require(_0xc22b('0x7'));var controller=require('./intDeskField.controller');router[_0xc22b('0x8')]('/',auth[_0xc22b('0x9')](),controller['index']);router[_0xc22b('0x8')](_0xc22b('0xa'),auth[_0xc22b('0x9')](),controller[_0xc22b('0xb')]);router[_0xc22b('0xc')]('/',auth[_0xc22b('0x9')](),controller[_0xc22b('0xd')]);router[_0xc22b('0xe')](_0xc22b('0xa'),auth['isAuthenticated'](),controller[_0xc22b('0xf')]);router[_0xc22b('0x10')](_0xc22b('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0xc22b('0x11')]=router;