6f698e24f707c4740e79313dee9df6ba2680c2b5
[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 _0xba46=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intZendeskAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','/:id/fields','post','create','addConfiguration','put','update','delete','exports','multer'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xba46,0x141));var _0x6ba4=function(_0x67242b,_0x37230c){_0x67242b=_0x67242b-0x0;var _0xa7329c=_0xba46[_0x67242b];return _0xa7329c;};'use strict';var multer=require(_0x6ba4('0x0'));var util=require(_0x6ba4('0x1'));var path=require(_0x6ba4('0x2'));var timeout=require(_0x6ba4('0x3'));var express=require(_0x6ba4('0x4'));var router=express[_0x6ba4('0x5')]();var fs_extra=require(_0x6ba4('0x6'));var auth=require(_0x6ba4('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x6ba4('0x8'));var controller=require(_0x6ba4('0x9'));router[_0x6ba4('0xa')]('/',auth[_0x6ba4('0xb')](),controller[_0x6ba4('0xc')]);router[_0x6ba4('0xa')](_0x6ba4('0xd'),auth[_0x6ba4('0xb')](),controller['show']);router[_0x6ba4('0xa')](_0x6ba4('0xe'),auth[_0x6ba4('0xb')](),controller['getConfigurations']);router[_0x6ba4('0xa')](_0x6ba4('0xf'),auth[_0x6ba4('0xb')](),controller['getFields']);router[_0x6ba4('0x10')]('/',auth[_0x6ba4('0xb')](),controller[_0x6ba4('0x11')]);router[_0x6ba4('0x10')](_0x6ba4('0xe'),auth['isAuthenticated'](),controller[_0x6ba4('0x12')]);router[_0x6ba4('0x13')]('/:id',auth[_0x6ba4('0xb')](),controller[_0x6ba4('0x14')]);router[_0x6ba4('0x15')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x6ba4('0x16')]=router;