4c279e22d27fc38282cdd08d0c9a1ce643b6773b
[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 _0x6ab6=['../../config/environment','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','post','put','update','delete','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x4b969c,_0x561dd4){var _0x5c1e18=function(_0x30c9de){while(--_0x30c9de){_0x4b969c['push'](_0x4b969c['shift']());}};_0x5c1e18(++_0x561dd4);}(_0x6ab6,0xfd));var _0x66ab=function(_0x432d38,_0x201399){_0x432d38=_0x432d38-0x0;var _0x39c577=_0x6ab6[_0x432d38];return _0x39c577;};'use strict';var multer=require(_0x66ab('0x0'));var util=require(_0x66ab('0x1'));var path=require('path');var timeout=require(_0x66ab('0x2'));var express=require(_0x66ab('0x3'));var router=express[_0x66ab('0x4')]();var auth=require(_0x66ab('0x5'));var interaction=require(_0x66ab('0x6'));var config=require(_0x66ab('0x7'));var controller=require('./intZendeskAccount.controller');router[_0x66ab('0x8')]('/',auth[_0x66ab('0x9')](),controller[_0x66ab('0xa')]);router[_0x66ab('0x8')](_0x66ab('0xb'),auth[_0x66ab('0x9')](),controller[_0x66ab('0xc')]);router[_0x66ab('0x8')](_0x66ab('0xd'),auth[_0x66ab('0x9')](),controller[_0x66ab('0xe')]);router[_0x66ab('0x8')]('/:id/fields',auth[_0x66ab('0x9')](),controller['getFields']);router[_0x66ab('0xf')]('/',auth[_0x66ab('0x9')](),controller['create']);router[_0x66ab('0xf')](_0x66ab('0xd'),auth[_0x66ab('0x9')](),controller['addConfiguration']);router[_0x66ab('0x10')](_0x66ab('0xb'),auth[_0x66ab('0x9')](),controller[_0x66ab('0x11')]);router[_0x66ab('0x12')](_0x66ab('0xb'),auth[_0x66ab('0x9')](),controller['destroy']);module[_0x66ab('0x13')]=router;