9a238c289352c67c64a4fd06e8d33fff1f77f636
[motion2.git] / server / api / intZendeskAccount / 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 _0x276c=['../../config/environment','./intZendeskAccount.controller','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','get','/:id/fields','getFields','post','addConfiguration','delete','destroy','exports','path','connect-timeout','express','../../components/interaction/service'];(function(_0x25d8fd,_0x5475e0){var _0x316278=function(_0x3aaf47){while(--_0x3aaf47){_0x25d8fd['push'](_0x25d8fd['shift']());}};_0x316278(++_0x5475e0);}(_0x276c,0x106));var _0xc276=function(_0xebff2e,_0x1bd9f7){_0xebff2e=_0xebff2e-0x0;var _0x5b9090=_0x276c[_0xebff2e];return _0x5b9090;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xc276('0x0'));var timeout=require(_0xc276('0x1'));var express=require(_0xc276('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xc276('0x3'));var config=require(_0xc276('0x4'));var controller=require(_0xc276('0x5'));router['get']('/',auth[_0xc276('0x6')](),controller[_0xc276('0x7')]);router['get'](_0xc276('0x8'),auth['isAuthenticated'](),controller['show']);router['get'](_0xc276('0x9'),auth[_0xc276('0x6')](),controller[_0xc276('0xa')]);router[_0xc276('0xb')](_0xc276('0xc'),auth['isAuthenticated'](),controller[_0xc276('0xd')]);router[_0xc276('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0xc276('0x9'),auth['isAuthenticated'](),controller[_0xc276('0xf')]);router['put'](_0xc276('0x8'),auth[_0xc276('0x6')](),controller['update']);router[_0xc276('0x10')](_0xc276('0x8'),auth['isAuthenticated'](),controller[_0xc276('0x11')]);module[_0xc276('0x12')]=router;