Built motion from commit ff78e754.|2.6.29
[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 _0x8aaf=['update','delete','destroy','multer','util','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','index','/:id','show','post','put'];(function(_0xfe9365,_0x4f9b01){var _0x419138=function(_0xf916b6){while(--_0xf916b6){_0xfe9365['push'](_0xfe9365['shift']());}};_0x419138(++_0x4f9b01);}(_0x8aaf,0x93));var _0xf8aa=function(_0x4226a7,_0x15678e){_0x4226a7=_0x4226a7-0x0;var _0x494322=_0x8aaf[_0x4226a7];return _0x494322;};'use strict';var multer=require(_0xf8aa('0x0'));var util=require(_0xf8aa('0x1'));var path=require('path');var timeout=require(_0xf8aa('0x2'));var express=require(_0xf8aa('0x3'));var router=express['Router']();var fs_extra=require(_0xf8aa('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xf8aa('0x5'));var config=require(_0xf8aa('0x6'));var controller=require(_0xf8aa('0x7'));router[_0xf8aa('0x8')]('/',auth[_0xf8aa('0x9')](),controller[_0xf8aa('0xa')]);router['get'](_0xf8aa('0xb'),auth['isAuthenticated'](),controller[_0xf8aa('0xc')]);router[_0xf8aa('0xd')]('/',auth[_0xf8aa('0x9')](),controller['create']);router[_0xf8aa('0xe')](_0xf8aa('0xb'),auth[_0xf8aa('0x9')](),controller[_0xf8aa('0xf')]);router[_0xf8aa('0x10')](_0xf8aa('0xb'),auth[_0xf8aa('0x9')](),controller[_0xf8aa('0x11')]);module['exports']=router;