Built motion from commit a61a4a20.|2.5.46
[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 _0x5ba9=['util','path','express','Router','../../components/auth/service','../../config/environment','./intZohoAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','addConfiguration','put','delete','destroy','exports','multer'];(function(_0x449573,_0x2a733e){var _0x39aa52=function(_0x5e3b23){while(--_0x5e3b23){_0x449573['push'](_0x449573['shift']());}};_0x39aa52(++_0x2a733e);}(_0x5ba9,0x77));var _0x95ba=function(_0xec5ee6,_0x30548b){_0xec5ee6=_0xec5ee6-0x0;var _0x363d4b=_0x5ba9[_0xec5ee6];return _0x363d4b;};'use strict';var multer=require(_0x95ba('0x0'));var util=require(_0x95ba('0x1'));var path=require(_0x95ba('0x2'));var timeout=require('connect-timeout');var express=require(_0x95ba('0x3'));var router=express[_0x95ba('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x95ba('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x95ba('0x6'));var controller=require(_0x95ba('0x7'));router[_0x95ba('0x8')]('/',auth[_0x95ba('0x9')](),controller[_0x95ba('0xa')]);router['get'](_0x95ba('0xb'),auth[_0x95ba('0x9')](),controller[_0x95ba('0xc')]);router[_0x95ba('0x8')](_0x95ba('0xd'),auth[_0x95ba('0x9')](),controller[_0x95ba('0xe')]);router[_0x95ba('0x8')](_0x95ba('0xf'),auth[_0x95ba('0x9')](),controller[_0x95ba('0x10')]);router[_0x95ba('0x11')]('/',auth[_0x95ba('0x9')](),controller[_0x95ba('0x12')]);router[_0x95ba('0x11')]('/:id/configurations',auth[_0x95ba('0x9')](),controller[_0x95ba('0x13')]);router[_0x95ba('0x14')](_0x95ba('0xb'),auth[_0x95ba('0x9')](),controller['update']);router[_0x95ba('0x15')](_0x95ba('0xb'),auth[_0x95ba('0x9')](),controller[_0x95ba('0x16')]);module[_0x95ba('0x17')]=router;