Built motion from commit da617fac.|2.6.6
[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 _0x83f2=['util','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','create','put','delete','destroy'];(function(_0x56642d,_0x3a04ef){var _0x46c6d7=function(_0x170450){while(--_0x170450){_0x56642d['push'](_0x56642d['shift']());}};_0x46c6d7(++_0x3a04ef);}(_0x83f2,0x87));var _0x283f=function(_0x1a6e4c,_0x560c48){_0x1a6e4c=_0x1a6e4c-0x0;var _0x4bc49e=_0x83f2[_0x1a6e4c];return _0x4bc49e;};'use strict';var multer=require('multer');var util=require(_0x283f('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x283f('0x1')]();var fs_extra=require(_0x283f('0x2'));var auth=require(_0x283f('0x3'));var interaction=require(_0x283f('0x4'));var config=require('../../config/environment');var controller=require('./intDeskField.controller');router[_0x283f('0x5')]('/',auth[_0x283f('0x6')](),controller[_0x283f('0x7')]);router['get'](_0x283f('0x8'),auth[_0x283f('0x6')](),controller[_0x283f('0x9')]);router[_0x283f('0xa')]('/',auth[_0x283f('0x6')](),controller[_0x283f('0xb')]);router[_0x283f('0xc')](_0x283f('0x8'),auth['isAuthenticated'](),controller['update']);router[_0x283f('0xd')]('/:id',auth[_0x283f('0x6')](),controller[_0x283f('0xe')]);module['exports']=router;