d3ebd20f133558bb0becdde58a0b4224c9888d0d
[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 _0xbdc4=['update','delete','exports','multer','util','path','connect-timeout','fs-extra','../../components/interaction/service','../../config/environment','./intZendeskAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','getFields','post','create','addConfiguration','put'];(function(_0x1d119b,_0x3cd4b0){var _0x2531c5=function(_0xe00c03){while(--_0xe00c03){_0x1d119b['push'](_0x1d119b['shift']());}};_0x2531c5(++_0x3cd4b0);}(_0xbdc4,0x81));var _0x4bdc=function(_0x1969a7,_0x5a133a){_0x1969a7=_0x1969a7-0x0;var _0x3d665f=_0xbdc4[_0x1969a7];return _0x3d665f;};'use strict';var multer=require(_0x4bdc('0x0'));var util=require(_0x4bdc('0x1'));var path=require(_0x4bdc('0x2'));var timeout=require(_0x4bdc('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x4bdc('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x4bdc('0x5'));var config=require(_0x4bdc('0x6'));var controller=require(_0x4bdc('0x7'));router[_0x4bdc('0x8')]('/',auth[_0x4bdc('0x9')](),controller[_0x4bdc('0xa')]);router[_0x4bdc('0x8')](_0x4bdc('0xb'),auth[_0x4bdc('0x9')](),controller['show']);router[_0x4bdc('0x8')](_0x4bdc('0xc'),auth[_0x4bdc('0x9')](),controller['getConfigurations']);router[_0x4bdc('0x8')]('/:id/fields',auth['isAuthenticated'](),controller[_0x4bdc('0xd')]);router[_0x4bdc('0xe')]('/',auth[_0x4bdc('0x9')](),controller[_0x4bdc('0xf')]);router[_0x4bdc('0xe')](_0x4bdc('0xc'),auth[_0x4bdc('0x9')](),controller[_0x4bdc('0x10')]);router[_0x4bdc('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x4bdc('0x12')]);router[_0x4bdc('0x13')](_0x4bdc('0xb'),auth[_0x4bdc('0x9')](),controller['destroy']);module[_0x4bdc('0x14')]=router;