e22736e1a7f399b454add33182e42d605654250d
[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 _0xecb2=['put','update','delete','destroy','multer','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZendeskAccount.controller','get','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration'];(function(_0x11e756,_0x17c475){var _0x21af3f=function(_0x3b7ff6){while(--_0x3b7ff6){_0x11e756['push'](_0x11e756['shift']());}};_0x21af3f(++_0x17c475);}(_0xecb2,0xf6));var _0x2ecb=function(_0x38e663,_0x194b47){_0x38e663=_0x38e663-0x0;var _0x5d5ef2=_0xecb2[_0x38e663];return _0x5d5ef2;};'use strict';var multer=require(_0x2ecb('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x2ecb('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x2ecb('0x2'));var auth=require(_0x2ecb('0x3'));var interaction=require(_0x2ecb('0x4'));var config=require(_0x2ecb('0x5'));var controller=require(_0x2ecb('0x6'));router[_0x2ecb('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x2ecb('0x8'),auth[_0x2ecb('0x9')](),controller[_0x2ecb('0xa')]);router[_0x2ecb('0x7')](_0x2ecb('0xb'),auth['isAuthenticated'](),controller[_0x2ecb('0xc')]);router[_0x2ecb('0x7')](_0x2ecb('0xd'),auth['isAuthenticated'](),controller[_0x2ecb('0xe')]);router[_0x2ecb('0xf')]('/',auth[_0x2ecb('0x9')](),controller[_0x2ecb('0x10')]);router[_0x2ecb('0xf')]('/:id/configurations',auth[_0x2ecb('0x9')](),controller[_0x2ecb('0x11')]);router[_0x2ecb('0x12')](_0x2ecb('0x8'),auth[_0x2ecb('0x9')](),controller[_0x2ecb('0x13')]);router[_0x2ecb('0x14')]('/:id',auth[_0x2ecb('0x9')](),controller[_0x2ecb('0x15')]);module['exports']=router;