Built motion from commit 1ea47bf4.|2.6.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 _0x311a=['destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','show','post','create','put','/:id','update','delete'];(function(_0x5a32c4,_0x432245){var _0x4b24a8=function(_0x4d1d0a){while(--_0x4d1d0a){_0x5a32c4['push'](_0x5a32c4['shift']());}};_0x4b24a8(++_0x432245);}(_0x311a,0xf9));var _0xa311=function(_0x5e7f1d,_0x3f0936){_0x5e7f1d=_0x5e7f1d-0x0;var _0x5cd101=_0x311a[_0x5e7f1d];return _0x5cd101;};'use strict';var multer=require(_0xa311('0x0'));var util=require(_0xa311('0x1'));var path=require('path');var timeout=require(_0xa311('0x2'));var express=require(_0xa311('0x3'));var router=express['Router']();var fs_extra=require(_0xa311('0x4'));var auth=require(_0xa311('0x5'));var interaction=require(_0xa311('0x6'));var config=require(_0xa311('0x7'));var controller=require('./intDeskField.controller');router['get']('/',auth[_0xa311('0x8')](),controller['index']);router[_0xa311('0x9')]('/:id',auth[_0xa311('0x8')](),controller[_0xa311('0xa')]);router[_0xa311('0xb')]('/',auth[_0xa311('0x8')](),controller[_0xa311('0xc')]);router[_0xa311('0xd')](_0xa311('0xe'),auth[_0xa311('0x8')](),controller[_0xa311('0xf')]);router[_0xa311('0x10')](_0xa311('0xe'),auth[_0xa311('0x8')](),controller[_0xa311('0x11')]);module[_0xa311('0x12')]=router;