9d02af94177fa305128324ae9d468cf71b68a2af
[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 _0x0b5c=['create','addConfiguration','put','/:id','update','multer','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','get','index','isAuthenticated','show','/:id/configurations','/:id/fields','getFields','post'];(function(_0xf1d988,_0x341f87){var _0x264fa0=function(_0x37f308){while(--_0x37f308){_0xf1d988['push'](_0xf1d988['shift']());}};_0x264fa0(++_0x341f87);}(_0x0b5c,0x83));var _0xc0b5=function(_0x13a7a2,_0x28589a){_0x13a7a2=_0x13a7a2-0x0;var _0x3e6e0a=_0x0b5c[_0x13a7a2];return _0x3e6e0a;};'use strict';var multer=require(_0xc0b5('0x0'));var util=require('util');var path=require(_0xc0b5('0x1'));var timeout=require(_0xc0b5('0x2'));var express=require(_0xc0b5('0x3'));var router=express['Router']();var fs_extra=require(_0xc0b5('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xc0b5('0x5'));var config=require(_0xc0b5('0x6'));var controller=require(_0xc0b5('0x7'));router[_0xc0b5('0x8')]('/',auth['isAuthenticated'](),controller[_0xc0b5('0x9')]);router[_0xc0b5('0x8')]('/:id',auth[_0xc0b5('0xa')](),controller[_0xc0b5('0xb')]);router[_0xc0b5('0x8')](_0xc0b5('0xc'),auth[_0xc0b5('0xa')](),controller['getConfigurations']);router[_0xc0b5('0x8')](_0xc0b5('0xd'),auth['isAuthenticated'](),controller[_0xc0b5('0xe')]);router[_0xc0b5('0xf')]('/',auth[_0xc0b5('0xa')](),controller[_0xc0b5('0x10')]);router[_0xc0b5('0xf')]('/:id/configurations',auth[_0xc0b5('0xa')](),controller[_0xc0b5('0x11')]);router[_0xc0b5('0x12')](_0xc0b5('0x13'),auth['isAuthenticated'](),controller[_0xc0b5('0x14')]);router['delete'](_0xc0b5('0x13'),auth[_0xc0b5('0xa')](),controller['destroy']);module['exports']=router;