d7f246be503a05efbb760909ff6aa787168d336d
[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 _0xd719=['get','index','post','isAuthenticated','create','put','update','delete','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./intDeskField.controller'];(function(_0x84144f,_0x427a7a){var _0x221cff=function(_0x22766c){while(--_0x22766c){_0x84144f['push'](_0x84144f['shift']());}};_0x221cff(++_0x427a7a);}(_0xd719,0xb8));var _0x9d71=function(_0xf8da14,_0x49b2f2){_0xf8da14=_0xf8da14-0x0;var _0x61d88c=_0xd719[_0xf8da14];return _0x61d88c;};'use strict';var multer=require(_0x9d71('0x0'));var util=require(_0x9d71('0x1'));var path=require('path');var timeout=require(_0x9d71('0x2'));var express=require('express');var router=express[_0x9d71('0x3')]();var fs_extra=require(_0x9d71('0x4'));var auth=require(_0x9d71('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x9d71('0x6'));var controller=require(_0x9d71('0x7'));router[_0x9d71('0x8')]('/',auth['isAuthenticated'](),controller[_0x9d71('0x9')]);router[_0x9d71('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x9d71('0xa')]('/',auth[_0x9d71('0xb')](),controller[_0x9d71('0xc')]);router[_0x9d71('0xd')]('/:id',auth[_0x9d71('0xb')](),controller[_0x9d71('0xe')]);router[_0x9d71('0xf')]('/:id',auth[_0x9d71('0xb')](),controller['destroy']);module['exports']=router;