Built motion from commit (unavailable).|2.4.6
[motion2.git] / server / api / intDeskConfiguration / 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 _0xd6f9=['delete','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','./intDeskConfiguration.controller','get','isAuthenticated','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','setTags','put','/:id'];(function(_0x5c351c,_0x2046d8){var _0x26f3b3=function(_0x47ac18){while(--_0x47ac18){_0x5c351c['push'](_0x5c351c['shift']());}};_0x26f3b3(++_0x2046d8);}(_0xd6f9,0x1ca));var _0x9d6f=function(_0x3054be,_0x1bdc8b){_0x3054be=_0x3054be-0x0;var _0x3df150=_0xd6f9[_0x3054be];return _0x3df150;};'use strict';var multer=require(_0x9d6f('0x0'));var util=require(_0x9d6f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9d6f('0x2'));var router=express[_0x9d6f('0x3')]();var auth=require(_0x9d6f('0x4'));var interaction=require(_0x9d6f('0x5'));var config=require('../../config/environment');var controller=require(_0x9d6f('0x6'));router[_0x9d6f('0x7')]('/',auth[_0x9d6f('0x8')](),controller['index']);router[_0x9d6f('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x9d6f('0x9')]);router['get'](_0x9d6f('0xa'),auth[_0x9d6f('0x8')](),controller[_0x9d6f('0xb')]);router[_0x9d6f('0x7')](_0x9d6f('0xc'),auth['isAuthenticated'](),controller['getSubjects']);router['get'](_0x9d6f('0xd'),auth[_0x9d6f('0x8')](),controller[_0x9d6f('0xe')]);router[_0x9d6f('0x7')](_0x9d6f('0xf'),auth['isAuthenticated'](),controller[_0x9d6f('0x10')]);router[_0x9d6f('0x11')]('/',auth[_0x9d6f('0x8')](),controller[_0x9d6f('0x12')]);router[_0x9d6f('0x11')]('/:id/tags',auth[_0x9d6f('0x8')](),controller[_0x9d6f('0x13')]);router[_0x9d6f('0x14')](_0x9d6f('0x15'),auth[_0x9d6f('0x8')](),controller['update']);router[_0x9d6f('0x16')](_0x9d6f('0x15'),auth[_0x9d6f('0x8')](),controller[_0x9d6f('0x17')]);module['exports']=router;