876c3219606f1d09f4d9c0aaa44c44726b041756
[motion2.git] / server / api / intZendeskConfiguration / 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 _0x54f5=['/:id/tags','post','setTags','put','update','delete','exports','multer','util','path','express','Router','../../components/auth/service','../../config/environment','./intZendeskConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/fields','getFields','/:id/descriptions','getDescriptions'];(function(_0x2023e1,_0xeca985){var _0x1fe133=function(_0x526d5f){while(--_0x526d5f){_0x2023e1['push'](_0x2023e1['shift']());}};_0x1fe133(++_0xeca985);}(_0x54f5,0x67));var _0x554f=function(_0x43941d,_0x45fd0d){_0x43941d=_0x43941d-0x0;var _0x27b82a=_0x54f5[_0x43941d];return _0x27b82a;};'use strict';var multer=require(_0x554f('0x0'));var util=require(_0x554f('0x1'));var path=require(_0x554f('0x2'));var timeout=require('connect-timeout');var express=require(_0x554f('0x3'));var router=express[_0x554f('0x4')]();var auth=require(_0x554f('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x554f('0x6'));var controller=require(_0x554f('0x7'));router[_0x554f('0x8')]('/',auth[_0x554f('0x9')](),controller[_0x554f('0xa')]);router[_0x554f('0x8')](_0x554f('0xb'),auth[_0x554f('0x9')](),controller[_0x554f('0xc')]);router[_0x554f('0x8')](_0x554f('0xd'),auth[_0x554f('0x9')](),controller[_0x554f('0xe')]);router['get']('/:id/subjects',auth['isAuthenticated'](),controller['getSubjects']);router[_0x554f('0x8')](_0x554f('0xf'),auth['isAuthenticated'](),controller[_0x554f('0x10')]);router[_0x554f('0x8')](_0x554f('0x11'),auth['isAuthenticated'](),controller['getTags']);router[_0x554f('0x12')]('/',auth[_0x554f('0x9')](),controller['create']);router[_0x554f('0x12')](_0x554f('0x11'),auth[_0x554f('0x9')](),controller[_0x554f('0x13')]);router[_0x554f('0x14')](_0x554f('0xb'),auth[_0x554f('0x9')](),controller[_0x554f('0x15')]);router[_0x554f('0x16')]('/:id',auth[_0x554f('0x9')](),controller['destroy']);module[_0x554f('0x17')]=router;