32ebc19bb79ec40bde2bf186654f51e676517f34
[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 _0x41b1=['addConfiguration','put','update','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','get','/:id','isAuthenticated','show','/:id/configurations','/:id/fields','post','create'];(function(_0x57381e,_0x3bd145){var _0x46ea7d=function(_0x58658a){while(--_0x58658a){_0x57381e['push'](_0x57381e['shift']());}};_0x46ea7d(++_0x3bd145);}(_0x41b1,0xe1));var _0x141b=function(_0x1ac6ec,_0x1f81fc){_0x1ac6ec=_0x1ac6ec-0x0;var _0x48a489=_0x41b1[_0x1ac6ec];return _0x48a489;};'use strict';var multer=require(_0x141b('0x0'));var util=require(_0x141b('0x1'));var path=require('path');var timeout=require(_0x141b('0x2'));var express=require(_0x141b('0x3'));var router=express[_0x141b('0x4')]();var fs_extra=require(_0x141b('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x141b('0x6'));var config=require('../../config/environment');var controller=require('./intZohoAccount.controller');router[_0x141b('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x141b('0x8'),auth[_0x141b('0x9')](),controller[_0x141b('0xa')]);router[_0x141b('0x7')](_0x141b('0xb'),auth[_0x141b('0x9')](),controller['getConfigurations']);router[_0x141b('0x7')](_0x141b('0xc'),auth[_0x141b('0x9')](),controller['getFields']);router[_0x141b('0xd')]('/',auth[_0x141b('0x9')](),controller[_0x141b('0xe')]);router['post'](_0x141b('0xb'),auth[_0x141b('0x9')](),controller[_0x141b('0xf')]);router[_0x141b('0x10')](_0x141b('0x8'),auth['isAuthenticated'](),controller[_0x141b('0x11')]);router[_0x141b('0x12')]('/:id',auth[_0x141b('0x9')](),controller['destroy']);module[_0x141b('0x13')]=router;