Built motion from commit (unavailable).|2.2.0
[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 _0x8f91=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','isAuthenticated','index','get','show','post','create','put','delete','/:id','destroy','exports','util','path','express'];(function(_0x4dc054,_0x45f2ac){var _0x2b6aac=function(_0x2f2f1a){while(--_0x2f2f1a){_0x4dc054['push'](_0x4dc054['shift']());}};_0x2b6aac(++_0x45f2ac);}(_0x8f91,0x166));var _0x18f9=function(_0xd878d,_0x235a8b){_0xd878d=_0xd878d-0x0;var _0x5c6d48=_0x8f91[_0xd878d];return _0x5c6d48;};'use strict';var multer=require('multer');var util=require(_0x18f9('0x0'));var path=require(_0x18f9('0x1'));var timeout=require('connect-timeout');var express=require(_0x18f9('0x2'));var router=express[_0x18f9('0x3')]();var auth=require(_0x18f9('0x4'));var interaction=require(_0x18f9('0x5'));var config=require(_0x18f9('0x6'));var controller=require(_0x18f9('0x7'));router['get']('/',auth[_0x18f9('0x8')](),controller[_0x18f9('0x9')]);router[_0x18f9('0xa')]('/:id',auth[_0x18f9('0x8')](),controller[_0x18f9('0xb')]);router[_0x18f9('0xc')]('/',auth[_0x18f9('0x8')](),controller[_0x18f9('0xd')]);router[_0x18f9('0xe')]('/:id',auth[_0x18f9('0x8')](),controller['update']);router[_0x18f9('0xf')](_0x18f9('0x10'),auth[_0x18f9('0x8')](),controller[_0x18f9('0x11')]);module[_0x18f9('0x12')]=router;