Built motion from commit 3c2ce842.|2.6.31
[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 _0xdca2=['express','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','create','put','delete','destroy','exports','multer','path'];(function(_0x68c979,_0x431cff){var _0x4f0001=function(_0xa7595d){while(--_0xa7595d){_0x68c979['push'](_0x68c979['shift']());}};_0x4f0001(++_0x431cff);}(_0xdca2,0xfd));var _0x2dca=function(_0x5f1391,_0x19c132){_0x5f1391=_0x5f1391-0x0;var _0x50ebe3=_0xdca2[_0x5f1391];return _0x50ebe3;};'use strict';var multer=require(_0x2dca('0x0'));var util=require('util');var path=require(_0x2dca('0x1'));var timeout=require('connect-timeout');var express=require(_0x2dca('0x2'));var router=express['Router']();var fs_extra=require(_0x2dca('0x3'));var auth=require(_0x2dca('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x2dca('0x5'));var controller=require('./intDeskField.controller');router[_0x2dca('0x6')]('/',auth[_0x2dca('0x7')](),controller['index']);router['get'](_0x2dca('0x8'),auth['isAuthenticated'](),controller[_0x2dca('0x9')]);router['post']('/',auth['isAuthenticated'](),controller[_0x2dca('0xa')]);router[_0x2dca('0xb')](_0x2dca('0x8'),auth[_0x2dca('0x7')](),controller['update']);router[_0x2dca('0xc')]('/:id',auth[_0x2dca('0x7')](),controller[_0x2dca('0xd')]);module[_0x2dca('0xe')]=router;