505aee2dbd1a02f07b91c27a5e67ffc0a88172f4
[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 _0x17e2=['post','create','addConfiguration','put','destroy','exports','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intZohoAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','/:id/fields','getFields'];(function(_0x19fab3,_0x2379c7){var _0x3ed5f7=function(_0x1e2b75){while(--_0x1e2b75){_0x19fab3['push'](_0x19fab3['shift']());}};_0x3ed5f7(++_0x2379c7);}(_0x17e2,0x99));var _0x217e=function(_0x34d921,_0xd1dfba){_0x34d921=_0x34d921-0x0;var _0x8591f1=_0x17e2[_0x34d921];return _0x8591f1;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x217e('0x0'));var timeout=require('connect-timeout');var express=require(_0x217e('0x1'));var router=express[_0x217e('0x2')]();var fs_extra=require(_0x217e('0x3'));var auth=require(_0x217e('0x4'));var interaction=require(_0x217e('0x5'));var config=require('../../config/environment');var controller=require(_0x217e('0x6'));router[_0x217e('0x7')]('/',auth[_0x217e('0x8')](),controller[_0x217e('0x9')]);router[_0x217e('0x7')](_0x217e('0xa'),auth[_0x217e('0x8')](),controller[_0x217e('0xb')]);router[_0x217e('0x7')](_0x217e('0xc'),auth[_0x217e('0x8')](),controller['getConfigurations']);router[_0x217e('0x7')](_0x217e('0xd'),auth[_0x217e('0x8')](),controller[_0x217e('0xe')]);router[_0x217e('0xf')]('/',auth[_0x217e('0x8')](),controller[_0x217e('0x10')]);router[_0x217e('0xf')]('/:id/configurations',auth[_0x217e('0x8')](),controller[_0x217e('0x11')]);router[_0x217e('0x12')](_0x217e('0xa'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x217e('0xa'),auth[_0x217e('0x8')](),controller[_0x217e('0x13')]);module[_0x217e('0x14')]=router;