Built motion from commit (unavailable).|2.5.4
[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 _0x4ccb=['isAuthenticated','index','get','show','getFields','/:id/subjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','create','/:id','update','destroy','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./intDeskConfiguration.controller'];(function(_0x5bc57b,_0x7698b4){var _0x56333f=function(_0x336303){while(--_0x336303){_0x5bc57b['push'](_0x5bc57b['shift']());}};_0x56333f(++_0x7698b4);}(_0x4ccb,0x196));var _0xb4cc=function(_0x5eb2d2,_0x1d0d80){_0x5eb2d2=_0x5eb2d2-0x0;var _0x566859=_0x4ccb[_0x5eb2d2];return _0x566859;};'use strict';var multer=require(_0xb4cc('0x0'));var util=require(_0xb4cc('0x1'));var path=require(_0xb4cc('0x2'));var timeout=require('connect-timeout');var express=require(_0xb4cc('0x3'));var router=express[_0xb4cc('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xb4cc('0x5'));var config=require(_0xb4cc('0x6'));var controller=require(_0xb4cc('0x7'));router['get']('/',auth[_0xb4cc('0x8')](),controller[_0xb4cc('0x9')]);router[_0xb4cc('0xa')]('/:id',auth[_0xb4cc('0x8')](),controller[_0xb4cc('0xb')]);router[_0xb4cc('0xa')]('/:id/fields',auth[_0xb4cc('0x8')](),controller[_0xb4cc('0xc')]);router[_0xb4cc('0xa')](_0xb4cc('0xd'),auth[_0xb4cc('0x8')](),controller['getSubjects']);router[_0xb4cc('0xa')](_0xb4cc('0xe'),auth['isAuthenticated'](),controller[_0xb4cc('0xf')]);router['get'](_0xb4cc('0x10'),auth[_0xb4cc('0x8')](),controller[_0xb4cc('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb4cc('0x12')]);router['post']('/:id/tags',auth[_0xb4cc('0x8')](),controller['setTags']);router['put'](_0xb4cc('0x13'),auth[_0xb4cc('0x8')](),controller[_0xb4cc('0x14')]);router['delete'](_0xb4cc('0x13'),auth[_0xb4cc('0x8')](),controller[_0xb4cc('0x15')]);module[_0xb4cc('0x16')]=router;