Built motion from commit 25580385.|2.6.2
[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 _0xedb7=['../../components/interaction/service','../../config/environment','./intDeskField.controller','isAuthenticated','index','get','show','create','put','delete','destroy','util','connect-timeout','express','Router','../../components/auth/service'];(function(_0x5887f2,_0x23a73c){var _0x489c62=function(_0x54ff4d){while(--_0x54ff4d){_0x5887f2['push'](_0x5887f2['shift']());}};_0x489c62(++_0x23a73c);}(_0xedb7,0x8b));var _0x7edb=function(_0x4f46a3,_0x1bf5a8){_0x4f46a3=_0x4f46a3-0x0;var _0x3d3d5a=_0xedb7[_0x4f46a3];return _0x3d3d5a;};'use strict';var multer=require('multer');var util=require(_0x7edb('0x0'));var path=require('path');var timeout=require(_0x7edb('0x1'));var express=require(_0x7edb('0x2'));var router=express[_0x7edb('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x7edb('0x4'));var interaction=require(_0x7edb('0x5'));var config=require(_0x7edb('0x6'));var controller=require(_0x7edb('0x7'));router['get']('/',auth[_0x7edb('0x8')](),controller[_0x7edb('0x9')]);router[_0x7edb('0xa')]('/:id',auth[_0x7edb('0x8')](),controller[_0x7edb('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x7edb('0xc')]);router[_0x7edb('0xd')]('/:id',auth[_0x7edb('0x8')](),controller['update']);router[_0x7edb('0xe')]('/:id',auth[_0x7edb('0x8')](),controller[_0x7edb('0xf')]);module['exports']=router;