313abaee0802daf134d5aea2c60e4e2caced678b
[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 _0x82f9=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','index','/:id','isAuthenticated','show','post','create','put','update','delete','destroy','exports','multer','util','connect-timeout','express'];(function(_0x3bf83f,_0x181cac){var _0x22c4a9=function(_0xb3ff0d){while(--_0xb3ff0d){_0x3bf83f['push'](_0x3bf83f['shift']());}};_0x22c4a9(++_0x181cac);}(_0x82f9,0xf8));var _0x982f=function(_0x237da8,_0x37b77a){_0x237da8=_0x237da8-0x0;var _0x558825=_0x82f9[_0x237da8];return _0x558825;};'use strict';var multer=require(_0x982f('0x0'));var util=require(_0x982f('0x1'));var path=require('path');var timeout=require(_0x982f('0x2'));var express=require(_0x982f('0x3'));var router=express[_0x982f('0x4')]();var auth=require(_0x982f('0x5'));var interaction=require(_0x982f('0x6'));var config=require(_0x982f('0x7'));var controller=require(_0x982f('0x8'));router[_0x982f('0x9')]('/',auth['isAuthenticated'](),controller[_0x982f('0xa')]);router[_0x982f('0x9')](_0x982f('0xb'),auth[_0x982f('0xc')](),controller[_0x982f('0xd')]);router[_0x982f('0xe')]('/',auth['isAuthenticated'](),controller[_0x982f('0xf')]);router[_0x982f('0x10')](_0x982f('0xb'),auth['isAuthenticated'](),controller[_0x982f('0x11')]);router[_0x982f('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x982f('0x13')]);module[_0x982f('0x14')]=router;