731cb342dff84c06d8e291d9c87467a11a97dd4d
[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 _0x6f53=['./intZohoAccount.controller','get','index','/:id','show','/:id/configurations','isAuthenticated','/:id/fields','getFields','create','post','addConfiguration','put','update','destroy','exports','multer','util','connect-timeout','express','../../components/interaction/service','../../config/environment'];(function(_0x3d0d77,_0xf83fb4){var _0x5492f0=function(_0x5a7243){while(--_0x5a7243){_0x3d0d77['push'](_0x3d0d77['shift']());}};_0x5492f0(++_0xf83fb4);}(_0x6f53,0x15a));var _0x36f5=function(_0x46211f,_0x3bdc2b){_0x46211f=_0x46211f-0x0;var _0x3829cd=_0x6f53[_0x46211f];return _0x3829cd;};'use strict';var multer=require(_0x36f5('0x0'));var util=require(_0x36f5('0x1'));var path=require('path');var timeout=require(_0x36f5('0x2'));var express=require(_0x36f5('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x36f5('0x4'));var config=require(_0x36f5('0x5'));var controller=require(_0x36f5('0x6'));router[_0x36f5('0x7')]('/',auth['isAuthenticated'](),controller[_0x36f5('0x8')]);router[_0x36f5('0x7')](_0x36f5('0x9'),auth['isAuthenticated'](),controller[_0x36f5('0xa')]);router[_0x36f5('0x7')](_0x36f5('0xb'),auth[_0x36f5('0xc')](),controller['getConfigurations']);router[_0x36f5('0x7')](_0x36f5('0xd'),auth['isAuthenticated'](),controller[_0x36f5('0xe')]);router['post']('/',auth[_0x36f5('0xc')](),controller[_0x36f5('0xf')]);router[_0x36f5('0x10')]('/:id/configurations',auth[_0x36f5('0xc')](),controller[_0x36f5('0x11')]);router[_0x36f5('0x12')](_0x36f5('0x9'),auth[_0x36f5('0xc')](),controller[_0x36f5('0x13')]);router['delete'](_0x36f5('0x9'),auth[_0x36f5('0xc')](),controller[_0x36f5('0x14')]);module[_0x36f5('0x15')]=router;