1f2b2b1b6a076ef14b88370da658b37a5eb21f25
[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 _0xa4b8=['destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','isAuthenticated','index','get','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','put','/:id','update','delete'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa4b8,0xd9));var _0x8a4b=function(_0x4d05f8,_0x3efc70){_0x4d05f8=_0x4d05f8-0x0;var _0x220513=_0xa4b8[_0x4d05f8];return _0x220513;};'use strict';var multer=require(_0x8a4b('0x0'));var util=require(_0x8a4b('0x1'));var path=require(_0x8a4b('0x2'));var timeout=require(_0x8a4b('0x3'));var express=require(_0x8a4b('0x4'));var router=express[_0x8a4b('0x5')]();var auth=require(_0x8a4b('0x6'));var interaction=require(_0x8a4b('0x7'));var config=require(_0x8a4b('0x8'));var controller=require(_0x8a4b('0x9'));router['get']('/',auth[_0x8a4b('0xa')](),controller[_0x8a4b('0xb')]);router[_0x8a4b('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x8a4b('0xd')]);router[_0x8a4b('0xc')](_0x8a4b('0xe'),auth['isAuthenticated'](),controller[_0x8a4b('0xf')]);router[_0x8a4b('0xc')](_0x8a4b('0x10'),auth[_0x8a4b('0xa')](),controller[_0x8a4b('0x11')]);router[_0x8a4b('0x12')]('/',auth['isAuthenticated'](),controller['create']);router[_0x8a4b('0x12')](_0x8a4b('0xe'),auth[_0x8a4b('0xa')](),controller['addConfiguration']);router[_0x8a4b('0x13')](_0x8a4b('0x14'),auth['isAuthenticated'](),controller[_0x8a4b('0x15')]);router[_0x8a4b('0x16')]('/:id',auth[_0x8a4b('0xa')](),controller[_0x8a4b('0x17')]);module['exports']=router;