8075780f019dfec9c7a6a0b840e432b63756e48f
[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 _0xba38=['/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','put','update','exports','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./intDeskConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields'];(function(_0x79c35e,_0x88fe9){var _0x39a530=function(_0x3d282b){while(--_0x3d282b){_0x79c35e['push'](_0x79c35e['shift']());}};_0x39a530(++_0x88fe9);}(_0xba38,0x190));var _0x8ba3=function(_0x5ee035,_0x34364f){_0x5ee035=_0x5ee035-0x0;var _0x537655=_0xba38[_0x5ee035];return _0x537655;};'use strict';var multer=require('multer');var util=require(_0x8ba3('0x0'));var path=require(_0x8ba3('0x1'));var timeout=require(_0x8ba3('0x2'));var express=require('express');var router=express[_0x8ba3('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x8ba3('0x4'));var config=require(_0x8ba3('0x5'));var controller=require(_0x8ba3('0x6'));router[_0x8ba3('0x7')]('/',auth[_0x8ba3('0x8')](),controller[_0x8ba3('0x9')]);router[_0x8ba3('0x7')](_0x8ba3('0xa'),auth[_0x8ba3('0x8')](),controller[_0x8ba3('0xb')]);router[_0x8ba3('0x7')](_0x8ba3('0xc'),auth['isAuthenticated'](),controller[_0x8ba3('0xd')]);router[_0x8ba3('0x7')]('/:id/subjects',auth[_0x8ba3('0x8')](),controller['getSubjects']);router[_0x8ba3('0x7')](_0x8ba3('0xe'),auth[_0x8ba3('0x8')](),controller[_0x8ba3('0xf')]);router[_0x8ba3('0x7')](_0x8ba3('0x10'),auth[_0x8ba3('0x8')](),controller[_0x8ba3('0x11')]);router[_0x8ba3('0x12')]('/',auth['isAuthenticated'](),controller[_0x8ba3('0x13')]);router[_0x8ba3('0x12')]('/:id/tags',auth[_0x8ba3('0x8')](),controller['setTags']);router[_0x8ba3('0x14')]('/:id',auth[_0x8ba3('0x8')](),controller[_0x8ba3('0x15')]);router['delete'](_0x8ba3('0xa'),auth[_0x8ba3('0x8')](),controller['destroy']);module[_0x8ba3('0x16')]=router;