11ee7d3b96b76c021d6e17280472f715d42d5780
[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 _0xc888=['create','post','update','delete','destroy','util','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','/:id/fields','getFields'];(function(_0x2bb5cd,_0x391b74){var _0x32c4cd=function(_0x201a29){while(--_0x201a29){_0x2bb5cd['push'](_0x2bb5cd['shift']());}};_0x32c4cd(++_0x391b74);}(_0xc888,0x9d));var _0x8c88=function(_0x4a747d,_0x3b747f){_0x4a747d=_0x4a747d-0x0;var _0x3a5b5c=_0xc888[_0x4a747d];return _0x3a5b5c;};'use strict';var multer=require('multer');var util=require(_0x8c88('0x0'));var path=require('path');var timeout=require(_0x8c88('0x1'));var express=require(_0x8c88('0x2'));var router=express['Router']();var fs_extra=require(_0x8c88('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x8c88('0x4'));var config=require(_0x8c88('0x5'));var controller=require(_0x8c88('0x6'));router[_0x8c88('0x7')]('/',auth[_0x8c88('0x8')](),controller[_0x8c88('0x9')]);router[_0x8c88('0x7')](_0x8c88('0xa'),auth[_0x8c88('0x8')](),controller['show']);router['get'](_0x8c88('0xb'),auth[_0x8c88('0x8')](),controller['getConfigurations']);router[_0x8c88('0x7')](_0x8c88('0xc'),auth['isAuthenticated'](),controller[_0x8c88('0xd')]);router['post']('/',auth[_0x8c88('0x8')](),controller[_0x8c88('0xe')]);router[_0x8c88('0xf')](_0x8c88('0xb'),auth['isAuthenticated'](),controller['addConfiguration']);router['put'](_0x8c88('0xa'),auth['isAuthenticated'](),controller[_0x8c88('0x10')]);router[_0x8c88('0x11')](_0x8c88('0xa'),auth[_0x8c88('0x8')](),controller[_0x8c88('0x12')]);module['exports']=router;