3a3e6e6a6194f8bbdb5b90694d84e5178263696b
[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 _0xfab5=['addConfiguration','update','destroy','multer','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intZendeskAccount.controller','isAuthenticated','index','get','/:id','show','getConfigurations','/:id/fields','getFields','post','/:id/configurations'];(function(_0x5c24f2,_0x4fe2fe){var _0x412557=function(_0x321247){while(--_0x321247){_0x5c24f2['push'](_0x5c24f2['shift']());}};_0x412557(++_0x4fe2fe);}(_0xfab5,0x1a7));var _0x5fab=function(_0x4d12bf,_0x3d32a3){_0x4d12bf=_0x4d12bf-0x0;var _0x28e482=_0xfab5[_0x4d12bf];return _0x28e482;};'use strict';var multer=require(_0x5fab('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x5fab('0x1'));var express=require(_0x5fab('0x2'));var router=express[_0x5fab('0x3')]();var fs_extra=require(_0x5fab('0x4'));var auth=require(_0x5fab('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x5fab('0x6'));var controller=require(_0x5fab('0x7'));router['get']('/',auth[_0x5fab('0x8')](),controller[_0x5fab('0x9')]);router[_0x5fab('0xa')](_0x5fab('0xb'),auth[_0x5fab('0x8')](),controller[_0x5fab('0xc')]);router[_0x5fab('0xa')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x5fab('0xd')]);router[_0x5fab('0xa')](_0x5fab('0xe'),auth[_0x5fab('0x8')](),controller[_0x5fab('0xf')]);router['post']('/',auth[_0x5fab('0x8')](),controller['create']);router[_0x5fab('0x10')](_0x5fab('0x11'),auth[_0x5fab('0x8')](),controller[_0x5fab('0x12')]);router['put'](_0x5fab('0xb'),auth['isAuthenticated'](),controller[_0x5fab('0x13')]);router['delete'](_0x5fab('0xb'),auth[_0x5fab('0x8')](),controller[_0x5fab('0x14')]);module['exports']=router;