47d64f6737f8e50b9c79ff7e4cb755b584c36ff4
[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 _0xaec4=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','get','index','/:id','isAuthenticated','show','/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','update','delete','destroy','exports','multer','util','path','connect-timeout','Router'];(function(_0x2763f2,_0x416af8){var _0x3ef471=function(_0x288aa2){while(--_0x288aa2){_0x2763f2['push'](_0x2763f2['shift']());}};_0x3ef471(++_0x416af8);}(_0xaec4,0x1a4));var _0x4aec=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0xaec4[_0x2dafbe];return _0x58a45a;};'use strict';var multer=require(_0x4aec('0x0'));var util=require(_0x4aec('0x1'));var path=require(_0x4aec('0x2'));var timeout=require(_0x4aec('0x3'));var express=require('express');var router=express[_0x4aec('0x4')]();var fs_extra=require(_0x4aec('0x5'));var auth=require(_0x4aec('0x6'));var interaction=require(_0x4aec('0x7'));var config=require(_0x4aec('0x8'));var controller=require(_0x4aec('0x9'));router[_0x4aec('0xa')]('/',auth['isAuthenticated'](),controller[_0x4aec('0xb')]);router[_0x4aec('0xa')](_0x4aec('0xc'),auth[_0x4aec('0xd')](),controller[_0x4aec('0xe')]);router[_0x4aec('0xa')]('/:id/configurations',auth[_0x4aec('0xd')](),controller['getConfigurations']);router[_0x4aec('0xa')](_0x4aec('0xf'),auth['isAuthenticated'](),controller[_0x4aec('0x10')]);router[_0x4aec('0x11')]('/',auth['isAuthenticated'](),controller[_0x4aec('0x12')]);router[_0x4aec('0x11')](_0x4aec('0x13'),auth[_0x4aec('0xd')](),controller[_0x4aec('0x14')]);router['put']('/:id',auth[_0x4aec('0xd')](),controller[_0x4aec('0x15')]);router[_0x4aec('0x16')](_0x4aec('0xc'),auth[_0x4aec('0xd')](),controller[_0x4aec('0x17')]);module[_0x4aec('0x18')]=router;