Built motion from commit ffdca78c.|2.6.24
[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 _0xa4fc=['express','Router','fs-extra','../../config/environment','./intDeskField.controller','get','isAuthenticated','index','/:id','put','update','delete','exports','multer','path'];(function(_0x1a0568,_0x1846d5){var _0xd76866=function(_0x48947e){while(--_0x48947e){_0x1a0568['push'](_0x1a0568['shift']());}};_0xd76866(++_0x1846d5);}(_0xa4fc,0x12a));var _0xca4f=function(_0x3d830e,_0x45886a){_0x3d830e=_0x3d830e-0x0;var _0xb7c7c9=_0xa4fc[_0x3d830e];return _0xb7c7c9;};'use strict';var multer=require(_0xca4f('0x0'));var util=require('util');var path=require(_0xca4f('0x1'));var timeout=require('connect-timeout');var express=require(_0xca4f('0x2'));var router=express[_0xca4f('0x3')]();var fs_extra=require(_0xca4f('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xca4f('0x5'));var controller=require(_0xca4f('0x6'));router[_0xca4f('0x7')]('/',auth[_0xca4f('0x8')](),controller[_0xca4f('0x9')]);router[_0xca4f('0x7')](_0xca4f('0xa'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xca4f('0x8')](),controller['create']);router[_0xca4f('0xb')](_0xca4f('0xa'),auth[_0xca4f('0x8')](),controller[_0xca4f('0xc')]);router[_0xca4f('0xd')](_0xca4f('0xa'),auth[_0xca4f('0x8')](),controller['destroy']);module[_0xca4f('0xe')]=router;