4b2937d81541ce97f195ddd60b6671a3a078662f
[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 _0x524f=['delete','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./intZohoAccount.controller','get','index','/:id','show','/:id/configurations','isAuthenticated','getConfigurations','getFields','post','create','addConfiguration','update'];(function(_0x19f9e6,_0x4f59a6){var _0x45c862=function(_0x3447fb){while(--_0x3447fb){_0x19f9e6['push'](_0x19f9e6['shift']());}};_0x45c862(++_0x4f59a6);}(_0x524f,0x172));var _0xf524=function(_0x34aec4,_0x3801da){_0x34aec4=_0x34aec4-0x0;var _0x51e1a7=_0x524f[_0x34aec4];return _0x51e1a7;};'use strict';var multer=require(_0xf524('0x0'));var util=require(_0xf524('0x1'));var path=require(_0xf524('0x2'));var timeout=require(_0xf524('0x3'));var express=require(_0xf524('0x4'));var router=express[_0xf524('0x5')]();var auth=require(_0xf524('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xf524('0x7'));var controller=require(_0xf524('0x8'));router[_0xf524('0x9')]('/',auth['isAuthenticated'](),controller[_0xf524('0xa')]);router[_0xf524('0x9')](_0xf524('0xb'),auth['isAuthenticated'](),controller[_0xf524('0xc')]);router[_0xf524('0x9')](_0xf524('0xd'),auth[_0xf524('0xe')](),controller[_0xf524('0xf')]);router[_0xf524('0x9')]('/:id/fields',auth[_0xf524('0xe')](),controller[_0xf524('0x10')]);router[_0xf524('0x11')]('/',auth[_0xf524('0xe')](),controller[_0xf524('0x12')]);router[_0xf524('0x11')](_0xf524('0xd'),auth[_0xf524('0xe')](),controller[_0xf524('0x13')]);router['put']('/:id',auth[_0xf524('0xe')](),controller[_0xf524('0x14')]);router[_0xf524('0x15')](_0xf524('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0xf524('0x16')]=router;