24c12afcb13425abd96eb35bd54255f79e6f43f2
[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 _0x7e79=['connect-timeout','express','Router','../../components/auth/service','./intZohoAccount.controller','get','index','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','create','post','addConfiguration','put','/:id','update','exports','multer','util','path'];(function(_0x2cb1b0,_0x910893){var _0x29a218=function(_0x7ca899){while(--_0x7ca899){_0x2cb1b0['push'](_0x2cb1b0['shift']());}};_0x29a218(++_0x910893);}(_0x7e79,0x128));var _0x97e7=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x7e79[_0x57b54c];return _0x59cc19;};'use strict';var multer=require(_0x97e7('0x0'));var util=require(_0x97e7('0x1'));var path=require(_0x97e7('0x2'));var timeout=require(_0x97e7('0x3'));var express=require(_0x97e7('0x4'));var router=express[_0x97e7('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x97e7('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x97e7('0x7'));router[_0x97e7('0x8')]('/',auth['isAuthenticated'](),controller[_0x97e7('0x9')]);router[_0x97e7('0x8')]('/:id',auth[_0x97e7('0xa')](),controller[_0x97e7('0xb')]);router[_0x97e7('0x8')](_0x97e7('0xc'),auth[_0x97e7('0xa')](),controller[_0x97e7('0xd')]);router[_0x97e7('0x8')](_0x97e7('0xe'),auth[_0x97e7('0xa')](),controller[_0x97e7('0xf')]);router['post']('/',auth['isAuthenticated'](),controller[_0x97e7('0x10')]);router[_0x97e7('0x11')](_0x97e7('0xc'),auth[_0x97e7('0xa')](),controller[_0x97e7('0x12')]);router[_0x97e7('0x13')](_0x97e7('0x14'),auth[_0x97e7('0xa')](),controller[_0x97e7('0x15')]);router['delete'](_0x97e7('0x14'),auth[_0x97e7('0xa')](),controller['destroy']);module[_0x97e7('0x16')]=router;