Built motion from commit 19a84241.|2.5.34
[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 _0x1740=['Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','/:id','show','post','create','update','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x1c0748,_0x9a1cb4){var _0x59f2e4=function(_0xf67b96){while(--_0xf67b96){_0x1c0748['push'](_0x1c0748['shift']());}};_0x59f2e4(++_0x9a1cb4);}(_0x1740,0x1c6));var _0x0174=function(_0x5ae5b0,_0x11a420){_0x5ae5b0=_0x5ae5b0-0x0;var _0x3ebc44=_0x1740[_0x5ae5b0];return _0x3ebc44;};'use strict';var multer=require(_0x0174('0x0'));var util=require(_0x0174('0x1'));var path=require(_0x0174('0x2'));var timeout=require(_0x0174('0x3'));var express=require(_0x0174('0x4'));var router=express[_0x0174('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x0174('0x6'));var interaction=require(_0x0174('0x7'));var config=require('../../config/environment');var controller=require('./intDeskField.controller');router[_0x0174('0x8')]('/',auth[_0x0174('0x9')](),controller['index']);router[_0x0174('0x8')](_0x0174('0xa'),auth['isAuthenticated'](),controller[_0x0174('0xb')]);router[_0x0174('0xc')]('/',auth[_0x0174('0x9')](),controller[_0x0174('0xd')]);router['put'](_0x0174('0xa'),auth['isAuthenticated'](),controller[_0x0174('0xe')]);router[_0x0174('0xf')](_0x0174('0xa'),auth[_0x0174('0x9')](),controller[_0x0174('0x10')]);module['exports']=router;