Built motion from commit f16df95f.|2.5.40
[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 _0x0043=['multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','update','destroy','exports'];(function(_0x197d2a,_0x159eb4){var _0x52191e=function(_0x435bdc){while(--_0x435bdc){_0x197d2a['push'](_0x197d2a['shift']());}};_0x52191e(++_0x159eb4);}(_0x0043,0xe7));var _0x3004=function(_0x1992f1,_0x5c61f0){_0x1992f1=_0x1992f1-0x0;var _0x413dfe=_0x0043[_0x1992f1];return _0x413dfe;};'use strict';var multer=require(_0x3004('0x0'));var util=require(_0x3004('0x1'));var path=require(_0x3004('0x2'));var timeout=require(_0x3004('0x3'));var express=require('express');var router=express[_0x3004('0x4')]();var fs_extra=require(_0x3004('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x3004('0x6'));var config=require(_0x3004('0x7'));var controller=require('./intZohoAccount.controller');router[_0x3004('0x8')]('/',auth[_0x3004('0x9')](),controller[_0x3004('0xa')]);router[_0x3004('0x8')]('/:id',auth[_0x3004('0x9')](),controller[_0x3004('0xb')]);router[_0x3004('0x8')](_0x3004('0xc'),auth['isAuthenticated'](),controller[_0x3004('0xd')]);router[_0x3004('0x8')](_0x3004('0xe'),auth[_0x3004('0x9')](),controller[_0x3004('0xf')]);router[_0x3004('0x10')]('/',auth['isAuthenticated'](),controller[_0x3004('0x11')]);router[_0x3004('0x10')]('/:id/configurations',auth['isAuthenticated'](),controller['addConfiguration']);router['put']('/:id',auth['isAuthenticated'](),controller[_0x3004('0x12')]);router['delete']('/:id',auth[_0x3004('0x9')](),controller[_0x3004('0x13')]);module[_0x3004('0x14')]=router;