e44d0c20206867013e0b0a72c03d786c2e66fb95
[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 _0xd01c=['util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./intDeskField.controller','get','isAuthenticated','index','/:id','show','post','put','delete','exports','multer'];(function(_0x1e003b,_0x3e4ded){var _0x268789=function(_0x559062){while(--_0x559062){_0x1e003b['push'](_0x1e003b['shift']());}};_0x268789(++_0x3e4ded);}(_0xd01c,0xfb));var _0xcd01=function(_0x164186,_0x1be237){_0x164186=_0x164186-0x0;var _0x407234=_0xd01c[_0x164186];return _0x407234;};'use strict';var multer=require(_0xcd01('0x0'));var util=require(_0xcd01('0x1'));var path=require(_0xcd01('0x2'));var timeout=require(_0xcd01('0x3'));var express=require(_0xcd01('0x4'));var router=express['Router']();var fs_extra=require(_0xcd01('0x5'));var auth=require(_0xcd01('0x6'));var interaction=require(_0xcd01('0x7'));var config=require('../../config/environment');var controller=require(_0xcd01('0x8'));router[_0xcd01('0x9')]('/',auth[_0xcd01('0xa')](),controller[_0xcd01('0xb')]);router['get'](_0xcd01('0xc'),auth[_0xcd01('0xa')](),controller[_0xcd01('0xd')]);router[_0xcd01('0xe')]('/',auth[_0xcd01('0xa')](),controller['create']);router[_0xcd01('0xf')](_0xcd01('0xc'),auth['isAuthenticated'](),controller['update']);router[_0xcd01('0x10')](_0xcd01('0xc'),auth[_0xcd01('0xa')](),controller['destroy']);module[_0xcd01('0x11')]=router;