dfb4668bdea18499f33224b4b18c5f1160c48614
[motion2.git] / server / api / intZohoAccount / 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 _0xaf55=['/:id/configurations','put','delete','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','./intZohoAccount.controller','get','isAuthenticated','index','/:id','/:id/fields','getFields','create','post'];(function(_0x1a72f3,_0x217011){var _0x57ef47=function(_0x20123d){while(--_0x20123d){_0x1a72f3['push'](_0x1a72f3['shift']());}};_0x57ef47(++_0x217011);}(_0xaf55,0xd5));var _0x5af5=function(_0x556bb1,_0x34830d){_0x556bb1=_0x556bb1-0x0;var _0x45455f=_0xaf55[_0x556bb1];return _0x45455f;};'use strict';var multer=require(_0x5af5('0x0'));var util=require(_0x5af5('0x1'));var path=require(_0x5af5('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x5af5('0x3')]();var auth=require(_0x5af5('0x4'));var interaction=require(_0x5af5('0x5'));var config=require('../../config/environment');var controller=require(_0x5af5('0x6'));router[_0x5af5('0x7')]('/',auth[_0x5af5('0x8')](),controller[_0x5af5('0x9')]);router[_0x5af5('0x7')](_0x5af5('0xa'),auth[_0x5af5('0x8')](),controller['show']);router[_0x5af5('0x7')]('/:id/configurations',auth[_0x5af5('0x8')](),controller['getConfigurations']);router['get'](_0x5af5('0xb'),auth[_0x5af5('0x8')](),controller[_0x5af5('0xc')]);router['post']('/',auth[_0x5af5('0x8')](),controller[_0x5af5('0xd')]);router[_0x5af5('0xe')](_0x5af5('0xf'),auth[_0x5af5('0x8')](),controller['addConfiguration']);router[_0x5af5('0x10')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x5af5('0x11')](_0x5af5('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0x5af5('0x12')]=router;