5d10a98c54342c7a858c86db0cd4196cec5534df
[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 _0xb2a6=['Router','fs-extra','../../components/auth/service','../../config/environment','./intDeskField.controller','isAuthenticated','get','/:id','show','post','put','update','delete','destroy','exports','util','path','connect-timeout','express'];(function(_0x2c2e9f,_0x1f6a4e){var _0xb7fefd=function(_0x5e9687){while(--_0x5e9687){_0x2c2e9f['push'](_0x2c2e9f['shift']());}};_0xb7fefd(++_0x1f6a4e);}(_0xb2a6,0x12c));var _0x6b2a=function(_0x56ca3e,_0x2524a6){_0x56ca3e=_0x56ca3e-0x0;var _0x7e126d=_0xb2a6[_0x56ca3e];return _0x7e126d;};'use strict';var multer=require('multer');var util=require(_0x6b2a('0x0'));var path=require(_0x6b2a('0x1'));var timeout=require(_0x6b2a('0x2'));var express=require(_0x6b2a('0x3'));var router=express[_0x6b2a('0x4')]();var fs_extra=require(_0x6b2a('0x5'));var auth=require(_0x6b2a('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x6b2a('0x7'));var controller=require(_0x6b2a('0x8'));router['get']('/',auth[_0x6b2a('0x9')](),controller['index']);router[_0x6b2a('0xa')](_0x6b2a('0xb'),auth[_0x6b2a('0x9')](),controller[_0x6b2a('0xc')]);router[_0x6b2a('0xd')]('/',auth[_0x6b2a('0x9')](),controller['create']);router[_0x6b2a('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x6b2a('0xf')]);router[_0x6b2a('0x10')](_0x6b2a('0xb'),auth[_0x6b2a('0x9')](),controller[_0x6b2a('0x11')]);module[_0x6b2a('0x12')]=router;