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 _0x0735=['create','put','delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','isAuthenticated','index','/:id','show','post'];(function(_0x158afd,_0x357b9b){var _0x25a00b=function(_0x3671d4){while(--_0x3671d4){_0x158afd['push'](_0x158afd['shift']());}};_0x25a00b(++_0x357b9b);}(_0x0735,0x7d));var _0x5073=function(_0x411add,_0x1aed38){_0x411add=_0x411add-0x0;var _0x238242=_0x0735[_0x411add];return _0x238242;};'use strict';var multer=require(_0x5073('0x0'));var util=require(_0x5073('0x1'));var path=require(_0x5073('0x2'));var timeout=require(_0x5073('0x3'));var express=require('express');var router=express[_0x5073('0x4')]();var fs_extra=require(_0x5073('0x5'));var auth=require(_0x5073('0x6'));var interaction=require(_0x5073('0x7'));var config=require(_0x5073('0x8'));var controller=require(_0x5073('0x9'));router['get']('/',auth[_0x5073('0xa')](),controller[_0x5073('0xb')]);router['get'](_0x5073('0xc'),auth[_0x5073('0xa')](),controller[_0x5073('0xd')]);router[_0x5073('0xe')]('/',auth[_0x5073('0xa')](),controller[_0x5073('0xf')]);router[_0x5073('0x10')](_0x5073('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x5073('0x11')](_0x5073('0xc'),auth[_0x5073('0xa')](),controller[_0x5073('0x12')]);module[_0x5073('0x13')]=router;