8a65a955baa3d62ba0cb371d126e8144977065df
[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 _0x91eb=['util','path','express','Router','fs-extra','../../components/interaction/service','./intZendeskAccount.controller','isAuthenticated','get','/:id','show','/:id/configurations','getConfigurations','create','post','put','delete','destroy','exports','multer'];(function(_0x157b13,_0x434870){var _0x355d5d=function(_0x20b1e2){while(--_0x20b1e2){_0x157b13['push'](_0x157b13['shift']());}};_0x355d5d(++_0x434870);}(_0x91eb,0x9f));var _0xb91e=function(_0x210562,_0x4c1b33){_0x210562=_0x210562-0x0;var _0x24b7e2=_0x91eb[_0x210562];return _0x24b7e2;};'use strict';var multer=require(_0xb91e('0x0'));var util=require(_0xb91e('0x1'));var path=require(_0xb91e('0x2'));var timeout=require('connect-timeout');var express=require(_0xb91e('0x3'));var router=express[_0xb91e('0x4')]();var fs_extra=require(_0xb91e('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xb91e('0x6'));var config=require('../../config/environment');var controller=require(_0xb91e('0x7'));router['get']('/',auth[_0xb91e('0x8')](),controller['index']);router[_0xb91e('0x9')](_0xb91e('0xa'),auth[_0xb91e('0x8')](),controller[_0xb91e('0xb')]);router[_0xb91e('0x9')](_0xb91e('0xc'),auth[_0xb91e('0x8')](),controller[_0xb91e('0xd')]);router[_0xb91e('0x9')]('/:id/fields',auth['isAuthenticated'](),controller['getFields']);router['post']('/',auth[_0xb91e('0x8')](),controller[_0xb91e('0xe')]);router[_0xb91e('0xf')](_0xb91e('0xc'),auth[_0xb91e('0x8')](),controller['addConfiguration']);router[_0xb91e('0x10')](_0xb91e('0xa'),auth['isAuthenticated'](),controller['update']);router[_0xb91e('0x11')](_0xb91e('0xa'),auth['isAuthenticated'](),controller[_0xb91e('0x12')]);module[_0xb91e('0x13')]=router;