2e2d4455cb9a6a956d5e9ac5027ad90c16ca5e21
[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 _0x5f88=['/:id/fields','post','create','addConfiguration','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','isAuthenticated','index','/:id','show','get','/:id/configurations','getConfigurations'];(function(_0x237fea,_0x2bf67e){var _0xc73d70=function(_0x3efe8a){while(--_0x3efe8a){_0x237fea['push'](_0x237fea['shift']());}};_0xc73d70(++_0x2bf67e);}(_0x5f88,0xe1));var _0x85f8=function(_0x4543fd,_0x3d84dc){_0x4543fd=_0x4543fd-0x0;var _0x35279b=_0x5f88[_0x4543fd];return _0x35279b;};'use strict';var multer=require(_0x85f8('0x0'));var util=require(_0x85f8('0x1'));var path=require('path');var timeout=require(_0x85f8('0x2'));var express=require(_0x85f8('0x3'));var router=express[_0x85f8('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x85f8('0x5'));var config=require(_0x85f8('0x6'));var controller=require(_0x85f8('0x7'));router['get']('/',auth[_0x85f8('0x8')](),controller[_0x85f8('0x9')]);router['get'](_0x85f8('0xa'),auth[_0x85f8('0x8')](),controller[_0x85f8('0xb')]);router[_0x85f8('0xc')](_0x85f8('0xd'),auth['isAuthenticated'](),controller[_0x85f8('0xe')]);router['get'](_0x85f8('0xf'),auth[_0x85f8('0x8')](),controller['getFields']);router[_0x85f8('0x10')]('/',auth[_0x85f8('0x8')](),controller[_0x85f8('0x11')]);router[_0x85f8('0x10')](_0x85f8('0xd'),auth['isAuthenticated'](),controller[_0x85f8('0x12')]);router[_0x85f8('0x13')](_0x85f8('0xa'),auth['isAuthenticated'](),controller[_0x85f8('0x14')]);router[_0x85f8('0x15')]('/:id',auth[_0x85f8('0x8')](),controller[_0x85f8('0x16')]);module[_0x85f8('0x17')]=router;