1fa60ad32d9e2b4e9fdc35fe68c0c20992189f0f
[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 _0x54a4=['/:id/fields','getFields','post','create','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','isAuthenticated','/:id','show','/:id/configurations','get'];(function(_0x6c993a,_0x5ea3ab){var _0x27f547=function(_0x22df20){while(--_0x22df20){_0x6c993a['push'](_0x6c993a['shift']());}};_0x27f547(++_0x5ea3ab);}(_0x54a4,0x81));var _0x454a=function(_0x502bc9,_0x50db25){_0x502bc9=_0x502bc9-0x0;var _0x427567=_0x54a4[_0x502bc9];return _0x427567;};'use strict';var multer=require(_0x454a('0x0'));var util=require('util');var path=require(_0x454a('0x1'));var timeout=require(_0x454a('0x2'));var express=require(_0x454a('0x3'));var router=express[_0x454a('0x4')]();var fs_extra=require(_0x454a('0x5'));var auth=require(_0x454a('0x6'));var interaction=require(_0x454a('0x7'));var config=require(_0x454a('0x8'));var controller=require(_0x454a('0x9'));router['get']('/',auth[_0x454a('0xa')](),controller['index']);router['get'](_0x454a('0xb'),auth[_0x454a('0xa')](),controller[_0x454a('0xc')]);router['get'](_0x454a('0xd'),auth[_0x454a('0xa')](),controller['getConfigurations']);router[_0x454a('0xe')](_0x454a('0xf'),auth[_0x454a('0xa')](),controller[_0x454a('0x10')]);router[_0x454a('0x11')]('/',auth[_0x454a('0xa')](),controller[_0x454a('0x12')]);router[_0x454a('0x11')](_0x454a('0xd'),auth['isAuthenticated'](),controller['addConfiguration']);router[_0x454a('0x13')]('/:id',auth[_0x454a('0xa')](),controller[_0x454a('0x14')]);router[_0x454a('0x15')](_0x454a('0xb'),auth[_0x454a('0xa')](),controller[_0x454a('0x16')]);module[_0x454a('0x17')]=router;