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