cac176eb7d0057a4ecd8708443957d176a41c900
[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 _0x1e2b=['./intDeskField.controller','get','isAuthenticated','/:id','show','create','put','update','delete','destroy','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x255197,_0xb9eb46){var _0xe1a530=function(_0x46be5e){while(--_0x46be5e){_0x255197['push'](_0x255197['shift']());}};_0xe1a530(++_0xb9eb46);}(_0x1e2b,0x1aa));var _0xb1e2=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x1e2b[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb1e2('0x0'));var timeout=require(_0xb1e2('0x1'));var express=require(_0xb1e2('0x2'));var router=express['Router']();var auth=require(_0xb1e2('0x3'));var interaction=require(_0xb1e2('0x4'));var config=require(_0xb1e2('0x5'));var controller=require(_0xb1e2('0x6'));router[_0xb1e2('0x7')]('/',auth[_0xb1e2('0x8')](),controller['index']);router[_0xb1e2('0x7')](_0xb1e2('0x9'),auth['isAuthenticated'](),controller[_0xb1e2('0xa')]);router['post']('/',auth[_0xb1e2('0x8')](),controller[_0xb1e2('0xb')]);router[_0xb1e2('0xc')](_0xb1e2('0x9'),auth['isAuthenticated'](),controller[_0xb1e2('0xd')]);router[_0xb1e2('0xe')](_0xb1e2('0x9'),auth[_0xb1e2('0x8')](),controller[_0xb1e2('0xf')]);module['exports']=router;