6e27cc51737313884d83434d23a41799c87cae3a
[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 _0x420f=['delete','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','isAuthenticated','show','get','/:id/configurations','getConfigurations','getFields','create','post','addConfiguration','put','/:id','update'];(function(_0x5f49a2,_0x54b7ed){var _0x2e49ac=function(_0x5d3c59){while(--_0x5d3c59){_0x5f49a2['push'](_0x5f49a2['shift']());}};_0x2e49ac(++_0x54b7ed);}(_0x420f,0x1ce));var _0xf420=function(_0x467861,_0x3bdb59){_0x467861=_0x467861-0x0;var _0x302991=_0x420f[_0x467861];return _0x302991;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf420('0x0'));var timeout=require(_0xf420('0x1'));var express=require(_0xf420('0x2'));var router=express[_0xf420('0x3')]();var fs_extra=require(_0xf420('0x4'));var auth=require(_0xf420('0x5'));var interaction=require(_0xf420('0x6'));var config=require(_0xf420('0x7'));var controller=require(_0xf420('0x8'));router['get']('/',auth[_0xf420('0x9')](),controller['index']);router['get']('/:id',auth[_0xf420('0x9')](),controller[_0xf420('0xa')]);router[_0xf420('0xb')](_0xf420('0xc'),auth[_0xf420('0x9')](),controller[_0xf420('0xd')]);router['get']('/:id/fields',auth[_0xf420('0x9')](),controller[_0xf420('0xe')]);router['post']('/',auth[_0xf420('0x9')](),controller[_0xf420('0xf')]);router[_0xf420('0x10')](_0xf420('0xc'),auth[_0xf420('0x9')](),controller[_0xf420('0x11')]);router[_0xf420('0x12')](_0xf420('0x13'),auth[_0xf420('0x9')](),controller[_0xf420('0x14')]);router[_0xf420('0x15')](_0xf420('0x13'),auth[_0xf420('0x9')](),controller['destroy']);module[_0xf420('0x16')]=router;