Built motion from commit (unavailable).|2.3.1
[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 _0xf60b=['getConfigurations','/:id/fields','post','create','addConfiguration','put','/:id','update','destroy','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show'];(function(_0xe1ec97,_0xb385e2){var _0x1a8924=function(_0x543fea){while(--_0x543fea){_0xe1ec97['push'](_0xe1ec97['shift']());}};_0x1a8924(++_0xb385e2);}(_0xf60b,0x19a));var _0xbf60=function(_0x173441,_0x26b0d9){_0x173441=_0x173441-0x0;var _0x2423a8=_0xf60b[_0x173441];return _0x2423a8;};'use strict';var multer=require(_0xbf60('0x0'));var util=require('util');var path=require(_0xbf60('0x1'));var timeout=require('connect-timeout');var express=require(_0xbf60('0x2'));var router=express[_0xbf60('0x3')]();var auth=require(_0xbf60('0x4'));var interaction=require(_0xbf60('0x5'));var config=require('../../config/environment');var controller=require('./intZendeskAccount.controller');router[_0xbf60('0x6')]('/',auth[_0xbf60('0x7')](),controller[_0xbf60('0x8')]);router[_0xbf60('0x6')]('/:id',auth[_0xbf60('0x7')](),controller[_0xbf60('0x9')]);router[_0xbf60('0x6')]('/:id/configurations',auth['isAuthenticated'](),controller[_0xbf60('0xa')]);router['get'](_0xbf60('0xb'),auth[_0xbf60('0x7')](),controller['getFields']);router[_0xbf60('0xc')]('/',auth[_0xbf60('0x7')](),controller[_0xbf60('0xd')]);router['post']('/:id/configurations',auth[_0xbf60('0x7')](),controller[_0xbf60('0xe')]);router[_0xbf60('0xf')](_0xbf60('0x10'),auth['isAuthenticated'](),controller[_0xbf60('0x11')]);router['delete'](_0xbf60('0x10'),auth[_0xbf60('0x7')](),controller[_0xbf60('0x12')]);module[_0xbf60('0x13')]=router;