Built motion from commit 0900f080.|2.5.45
[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 _0xa0e9=['/:id','show','create','put','update','delete','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','index'];(function(_0xf277f0,_0x5857f3){var _0xb0ca14=function(_0x33de9b){while(--_0x33de9b){_0xf277f0['push'](_0xf277f0['shift']());}};_0xb0ca14(++_0x5857f3);}(_0xa0e9,0x147));var _0x9a0e=function(_0x204092,_0x2f11c2){_0x204092=_0x204092-0x0;var _0x36f879=_0xa0e9[_0x204092];return _0x36f879;};'use strict';var multer=require(_0x9a0e('0x0'));var util=require('util');var path=require(_0x9a0e('0x1'));var timeout=require(_0x9a0e('0x2'));var express=require(_0x9a0e('0x3'));var router=express[_0x9a0e('0x4')]();var fs_extra=require(_0x9a0e('0x5'));var auth=require(_0x9a0e('0x6'));var interaction=require(_0x9a0e('0x7'));var config=require(_0x9a0e('0x8'));var controller=require(_0x9a0e('0x9'));router[_0x9a0e('0xa')]('/',auth[_0x9a0e('0xb')](),controller[_0x9a0e('0xc')]);router[_0x9a0e('0xa')](_0x9a0e('0xd'),auth[_0x9a0e('0xb')](),controller[_0x9a0e('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x9a0e('0xf')]);router[_0x9a0e('0x10')](_0x9a0e('0xd'),auth[_0x9a0e('0xb')](),controller[_0x9a0e('0x11')]);router[_0x9a0e('0x12')](_0x9a0e('0xd'),auth[_0x9a0e('0xb')](),controller['destroy']);module[_0x9a0e('0x13')]=router;