Built motion from commit (unavailable).|2.5.22
[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 _0x420e=['show','put','update','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated'];(function(_0x33fbfd,_0x547b70){var _0x520785=function(_0x43e32a){while(--_0x43e32a){_0x33fbfd['push'](_0x33fbfd['shift']());}};_0x520785(++_0x547b70);}(_0x420e,0x125));var _0xe420=function(_0x58bd17,_0x20ad5f){_0x58bd17=_0x58bd17-0x0;var _0x3663ef=_0x420e[_0x58bd17];return _0x3663ef;};'use strict';var multer=require(_0xe420('0x0'));var util=require(_0xe420('0x1'));var path=require(_0xe420('0x2'));var timeout=require('connect-timeout');var express=require(_0xe420('0x3'));var router=express[_0xe420('0x4')]();var auth=require(_0xe420('0x5'));var interaction=require(_0xe420('0x6'));var config=require(_0xe420('0x7'));var controller=require('./intDeskField.controller');router[_0xe420('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xe420('0x8')](_0xe420('0x9'),auth[_0xe420('0xa')](),controller[_0xe420('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xe420('0xc')](_0xe420('0x9'),auth['isAuthenticated'](),controller[_0xe420('0xd')]);router['delete']('/:id',auth[_0xe420('0xa')](),controller[_0xe420('0xe')]);module[_0xe420('0xf')]=router;