Built motion from commit (unavailable).|2.5.21
[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 _0x13bb=['../../components/auth/service','../../components/interaction/service','isAuthenticated','get','/:id','show','/:id/configurations','post','addConfiguration','put','delete','util','path','connect-timeout','express','Router'];(function(_0x2a5d18,_0x165ef1){var _0x53aae1=function(_0x26640d){while(--_0x26640d){_0x2a5d18['push'](_0x2a5d18['shift']());}};_0x53aae1(++_0x165ef1);}(_0x13bb,0x19b));var _0xb13b=function(_0x47fe1d,_0x4a1635){_0x47fe1d=_0x47fe1d-0x0;var _0x172bc5=_0x13bb[_0x47fe1d];return _0x172bc5;};'use strict';var multer=require('multer');var util=require(_0xb13b('0x0'));var path=require(_0xb13b('0x1'));var timeout=require(_0xb13b('0x2'));var express=require(_0xb13b('0x3'));var router=express[_0xb13b('0x4')]();var auth=require(_0xb13b('0x5'));var interaction=require(_0xb13b('0x6'));var config=require('../../config/environment');var controller=require('./intZendeskAccount.controller');router['get']('/',auth[_0xb13b('0x7')](),controller['index']);router[_0xb13b('0x8')](_0xb13b('0x9'),auth[_0xb13b('0x7')](),controller[_0xb13b('0xa')]);router[_0xb13b('0x8')](_0xb13b('0xb'),auth[_0xb13b('0x7')](),controller['getConfigurations']);router[_0xb13b('0x8')]('/:id/fields',auth[_0xb13b('0x7')](),controller['getFields']);router['post']('/',auth[_0xb13b('0x7')](),controller['create']);router[_0xb13b('0xc')](_0xb13b('0xb'),auth[_0xb13b('0x7')](),controller[_0xb13b('0xd')]);router[_0xb13b('0xe')]('/:id',auth[_0xb13b('0x7')](),controller['update']);router[_0xb13b('0xf')]('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;