Built motion from commit fe909640.|2.6.8
[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 _0x0b03=['/:id/fields','getFields','post','create','/:id/configurations','addConfiguration','put','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','get','/:id','isAuthenticated','show','getConfigurations'];(function(_0x4bf5f6,_0x44e324){var _0x21c97e=function(_0x4485a9){while(--_0x4485a9){_0x4bf5f6['push'](_0x4bf5f6['shift']());}};_0x21c97e(++_0x44e324);}(_0x0b03,0x87));var _0x30b0=function(_0x3cf0e7,_0x511712){_0x3cf0e7=_0x3cf0e7-0x0;var _0x24a215=_0x0b03[_0x3cf0e7];return _0x24a215;};'use strict';var multer=require(_0x30b0('0x0'));var util=require(_0x30b0('0x1'));var path=require('path');var timeout=require(_0x30b0('0x2'));var express=require(_0x30b0('0x3'));var router=express[_0x30b0('0x4')]();var fs_extra=require(_0x30b0('0x5'));var auth=require(_0x30b0('0x6'));var interaction=require(_0x30b0('0x7'));var config=require(_0x30b0('0x8'));var controller=require(_0x30b0('0x9'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x30b0('0xa')](_0x30b0('0xb'),auth[_0x30b0('0xc')](),controller[_0x30b0('0xd')]);router[_0x30b0('0xa')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x30b0('0xe')]);router['get'](_0x30b0('0xf'),auth[_0x30b0('0xc')](),controller[_0x30b0('0x10')]);router[_0x30b0('0x11')]('/',auth[_0x30b0('0xc')](),controller[_0x30b0('0x12')]);router['post'](_0x30b0('0x13'),auth[_0x30b0('0xc')](),controller[_0x30b0('0x14')]);router[_0x30b0('0x15')](_0x30b0('0xb'),auth[_0x30b0('0xc')](),controller['update']);router[_0x30b0('0x16')]('/:id',auth['isAuthenticated'](),controller[_0x30b0('0x17')]);module[_0x30b0('0x18')]=router;