111010a7078af3e36aa3ce5b5d94fb60822133a0
[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 _0x62ca=['post','create','put','update','delete','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./intDeskField.controller','isAuthenticated','index','get','/:id','show'];(function(_0x5f2e72,_0x29cef1){var _0x454a97=function(_0x504bb4){while(--_0x504bb4){_0x5f2e72['push'](_0x5f2e72['shift']());}};_0x454a97(++_0x29cef1);}(_0x62ca,0x110));var _0xa62c=function(_0x90c2f2,_0x5e21d4){_0x90c2f2=_0x90c2f2-0x0;var _0x201794=_0x62ca[_0x90c2f2];return _0x201794;};'use strict';var multer=require(_0xa62c('0x0'));var util=require('util');var path=require(_0xa62c('0x1'));var timeout=require(_0xa62c('0x2'));var express=require(_0xa62c('0x3'));var router=express[_0xa62c('0x4')]();var fs_extra=require(_0xa62c('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xa62c('0x6'));var config=require('../../config/environment');var controller=require(_0xa62c('0x7'));router['get']('/',auth[_0xa62c('0x8')](),controller[_0xa62c('0x9')]);router[_0xa62c('0xa')](_0xa62c('0xb'),auth[_0xa62c('0x8')](),controller[_0xa62c('0xc')]);router[_0xa62c('0xd')]('/',auth['isAuthenticated'](),controller[_0xa62c('0xe')]);router[_0xa62c('0xf')](_0xa62c('0xb'),auth['isAuthenticated'](),controller[_0xa62c('0x10')]);router[_0xa62c('0x11')](_0xa62c('0xb'),auth[_0xa62c('0x8')](),controller['destroy']);module[_0xa62c('0x12')]=router;