Built motion from commit (unavailable).|2.5.27
[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 _0x6e1d=['path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskConfiguration.controller','get','isAuthenticated','show','getFields','getSubjects','/:id/descriptions','/:id/tags','getTags','post','create','setTags','put','/:id','update','delete','destroy','multer','util'];(function(_0x4243a3,_0x447337){var _0x1b2a33=function(_0x6a8200){while(--_0x6a8200){_0x4243a3['push'](_0x4243a3['shift']());}};_0x1b2a33(++_0x447337);}(_0x6e1d,0xa6));var _0xd6e1=function(_0x22f8ab,_0x15d8ff){_0x22f8ab=_0x22f8ab-0x0;var _0x2a70e5=_0x6e1d[_0x22f8ab];return _0x2a70e5;};'use strict';var multer=require(_0xd6e1('0x0'));var util=require(_0xd6e1('0x1'));var path=require(_0xd6e1('0x2'));var timeout=require(_0xd6e1('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xd6e1('0x4'));var interaction=require(_0xd6e1('0x5'));var config=require(_0xd6e1('0x6'));var controller=require(_0xd6e1('0x7'));router[_0xd6e1('0x8')]('/',auth[_0xd6e1('0x9')](),controller['index']);router[_0xd6e1('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xd6e1('0xa')]);router[_0xd6e1('0x8')]('/:id/fields',auth[_0xd6e1('0x9')](),controller[_0xd6e1('0xb')]);router[_0xd6e1('0x8')]('/:id/subjects',auth[_0xd6e1('0x9')](),controller[_0xd6e1('0xc')]);router['get'](_0xd6e1('0xd'),auth[_0xd6e1('0x9')](),controller['getDescriptions']);router['get'](_0xd6e1('0xe'),auth[_0xd6e1('0x9')](),controller[_0xd6e1('0xf')]);router[_0xd6e1('0x10')]('/',auth['isAuthenticated'](),controller[_0xd6e1('0x11')]);router[_0xd6e1('0x10')]('/:id/tags',auth[_0xd6e1('0x9')](),controller[_0xd6e1('0x12')]);router[_0xd6e1('0x13')](_0xd6e1('0x14'),auth['isAuthenticated'](),controller[_0xd6e1('0x15')]);router[_0xd6e1('0x16')](_0xd6e1('0x14'),auth[_0xd6e1('0x9')](),controller[_0xd6e1('0x17')]);module['exports']=router;