94a47934c041b2d8a547ec279f77d13a2a48b872
[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 _0x773a=['express','../../components/interaction/service','./intZohoAccount.controller','isAuthenticated','index','/:id','show','get','/:id/configurations','getConfigurations','/:id/fields','getFields','create','post','addConfiguration','put','delete','destroy','exports','connect-timeout'];(function(_0x22f7a9,_0x476d66){var _0x43a151=function(_0xc5018d){while(--_0xc5018d){_0x22f7a9['push'](_0x22f7a9['shift']());}};_0x43a151(++_0x476d66);}(_0x773a,0x9f));var _0xa773=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x773a[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xa773('0x0'));var express=require(_0xa773('0x1'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xa773('0x2'));var config=require('../../config/environment');var controller=require(_0xa773('0x3'));router['get']('/',auth[_0xa773('0x4')](),controller[_0xa773('0x5')]);router['get'](_0xa773('0x6'),auth['isAuthenticated'](),controller[_0xa773('0x7')]);router[_0xa773('0x8')](_0xa773('0x9'),auth[_0xa773('0x4')](),controller[_0xa773('0xa')]);router[_0xa773('0x8')](_0xa773('0xb'),auth[_0xa773('0x4')](),controller[_0xa773('0xc')]);router['post']('/',auth[_0xa773('0x4')](),controller[_0xa773('0xd')]);router[_0xa773('0xe')](_0xa773('0x9'),auth[_0xa773('0x4')](),controller[_0xa773('0xf')]);router[_0xa773('0x10')](_0xa773('0x6'),auth[_0xa773('0x4')](),controller['update']);router[_0xa773('0x11')](_0xa773('0x6'),auth[_0xa773('0x4')](),controller[_0xa773('0x12')]);module[_0xa773('0x13')]=router;