128bad2fabfe5701f4b7e88082c3e60546f05dec
[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 _0x545b=['/:id/subjects','/:id/tags','getTags','create','post','setTags','put','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZendeskConfiguration.controller','get','isAuthenticated','index','/:id','show'];(function(_0x5f0225,_0x52631a){var _0x2cef4b=function(_0x5a29c6){while(--_0x5a29c6){_0x5f0225['push'](_0x5f0225['shift']());}};_0x2cef4b(++_0x52631a);}(_0x545b,0xec));var _0xb545=function(_0x43e1e6,_0x399da){_0x43e1e6=_0x43e1e6-0x0;var _0x58753d=_0x545b[_0x43e1e6];return _0x58753d;};'use strict';var multer=require('multer');var util=require(_0xb545('0x0'));var path=require(_0xb545('0x1'));var timeout=require(_0xb545('0x2'));var express=require(_0xb545('0x3'));var router=express[_0xb545('0x4')]();var auth=require(_0xb545('0x5'));var interaction=require(_0xb545('0x6'));var config=require(_0xb545('0x7'));var controller=require(_0xb545('0x8'));router[_0xb545('0x9')]('/',auth[_0xb545('0xa')](),controller[_0xb545('0xb')]);router['get'](_0xb545('0xc'),auth[_0xb545('0xa')](),controller[_0xb545('0xd')]);router['get']('/:id/fields',auth[_0xb545('0xa')](),controller['getFields']);router[_0xb545('0x9')](_0xb545('0xe'),auth[_0xb545('0xa')](),controller['getSubjects']);router['get']('/:id/descriptions',auth['isAuthenticated'](),controller['getDescriptions']);router[_0xb545('0x9')](_0xb545('0xf'),auth[_0xb545('0xa')](),controller[_0xb545('0x10')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb545('0x11')]);router[_0xb545('0x12')](_0xb545('0xf'),auth['isAuthenticated'](),controller[_0xb545('0x13')]);router[_0xb545('0x14')]('/:id',auth[_0xb545('0xa')](),controller[_0xb545('0x15')]);router[_0xb545('0x16')](_0xb545('0xc'),auth[_0xb545('0xa')](),controller[_0xb545('0x17')]);module[_0xb545('0x18')]=router;