Built motion from commit 497d3d92.|2.5.43
[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 _0x3b50=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','index','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','/:id','update','destroy','exports','multer','util','connect-timeout'];(function(_0x7f14eb,_0x293155){var _0x554bff=function(_0x43ed25){while(--_0x43ed25){_0x7f14eb['push'](_0x7f14eb['shift']());}};_0x554bff(++_0x293155);}(_0x3b50,0x1c9));var _0x03b5=function(_0x179e11,_0xf65436){_0x179e11=_0x179e11-0x0;var _0x549f04=_0x3b50[_0x179e11];return _0x549f04;};'use strict';var multer=require(_0x03b5('0x0'));var util=require(_0x03b5('0x1'));var path=require('path');var timeout=require(_0x03b5('0x2'));var express=require('express');var router=express[_0x03b5('0x3')]();var fs_extra=require(_0x03b5('0x4'));var auth=require(_0x03b5('0x5'));var interaction=require(_0x03b5('0x6'));var config=require('../../config/environment');var controller=require('./intZohoAccount.controller');router[_0x03b5('0x7')]('/',auth['isAuthenticated'](),controller[_0x03b5('0x8')]);router['get']('/:id',auth[_0x03b5('0x9')](),controller[_0x03b5('0xa')]);router[_0x03b5('0x7')](_0x03b5('0xb'),auth[_0x03b5('0x9')](),controller[_0x03b5('0xc')]);router[_0x03b5('0x7')](_0x03b5('0xd'),auth[_0x03b5('0x9')](),controller[_0x03b5('0xe')]);router[_0x03b5('0xf')]('/',auth[_0x03b5('0x9')](),controller[_0x03b5('0x10')]);router[_0x03b5('0xf')](_0x03b5('0xb'),auth[_0x03b5('0x9')](),controller[_0x03b5('0x11')]);router[_0x03b5('0x12')](_0x03b5('0x13'),auth[_0x03b5('0x9')](),controller[_0x03b5('0x14')]);router['delete'](_0x03b5('0x13'),auth[_0x03b5('0x9')](),controller[_0x03b5('0x15')]);module[_0x03b5('0x16')]=router;