a1163edd2a1fc250d02f0785cfdf27d982f66130
[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 _0x9bc8=['show','/:id/configurations','getConfigurations','post','create','addConfiguration','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../config/environment','./intZohoAccount.controller','get','isAuthenticated','index','/:id'];(function(_0x5c38cd,_0x5a6b4e){var _0xc985ef=function(_0x4aa1df){while(--_0x4aa1df){_0x5c38cd['push'](_0x5c38cd['shift']());}};_0xc985ef(++_0x5a6b4e);}(_0x9bc8,0x81));var _0x89bc=function(_0x4e6e89,_0x1d8e3d){_0x4e6e89=_0x4e6e89-0x0;var _0x23e4ce=_0x9bc8[_0x4e6e89];return _0x23e4ce;};'use strict';var multer=require(_0x89bc('0x0'));var util=require(_0x89bc('0x1'));var path=require('path');var timeout=require(_0x89bc('0x2'));var express=require('express');var router=express[_0x89bc('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x89bc('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x89bc('0x5'));var controller=require(_0x89bc('0x6'));router[_0x89bc('0x7')]('/',auth[_0x89bc('0x8')](),controller[_0x89bc('0x9')]);router[_0x89bc('0x7')](_0x89bc('0xa'),auth[_0x89bc('0x8')](),controller[_0x89bc('0xb')]);router[_0x89bc('0x7')](_0x89bc('0xc'),auth[_0x89bc('0x8')](),controller[_0x89bc('0xd')]);router[_0x89bc('0x7')]('/:id/fields',auth[_0x89bc('0x8')](),controller['getFields']);router[_0x89bc('0xe')]('/',auth['isAuthenticated'](),controller[_0x89bc('0xf')]);router[_0x89bc('0xe')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x89bc('0x10')]);router['put'](_0x89bc('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x89bc('0x11')](_0x89bc('0xa'),auth[_0x89bc('0x8')](),controller[_0x89bc('0x12')]);module[_0x89bc('0x13')]=router;