Built motion from commit bab6f49e.|2.6.17
[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 _0x963f=['getFields','post','create','addConfiguration','update','/:id','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','get','isAuthenticated','index','show','/:id/configurations'];(function(_0x1b129f,_0x6d1483){var _0x117f95=function(_0x445ad7){while(--_0x445ad7){_0x1b129f['push'](_0x1b129f['shift']());}};_0x117f95(++_0x6d1483);}(_0x963f,0x92));var _0xf963=function(_0x4362ec,_0xcb74a5){_0x4362ec=_0x4362ec-0x0;var _0x41a6d9=_0x963f[_0x4362ec];return _0x41a6d9;};'use strict';var multer=require(_0xf963('0x0'));var util=require(_0xf963('0x1'));var path=require(_0xf963('0x2'));var timeout=require(_0xf963('0x3'));var express=require('express');var router=express[_0xf963('0x4')]();var fs_extra=require(_0xf963('0x5'));var auth=require(_0xf963('0x6'));var interaction=require(_0xf963('0x7'));var config=require(_0xf963('0x8'));var controller=require(_0xf963('0x9'));router[_0xf963('0xa')]('/',auth[_0xf963('0xb')](),controller[_0xf963('0xc')]);router[_0xf963('0xa')]('/:id',auth[_0xf963('0xb')](),controller[_0xf963('0xd')]);router[_0xf963('0xa')](_0xf963('0xe'),auth[_0xf963('0xb')](),controller['getConfigurations']);router[_0xf963('0xa')]('/:id/fields',auth[_0xf963('0xb')](),controller[_0xf963('0xf')]);router[_0xf963('0x10')]('/',auth[_0xf963('0xb')](),controller[_0xf963('0x11')]);router[_0xf963('0x10')](_0xf963('0xe'),auth[_0xf963('0xb')](),controller[_0xf963('0x12')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xf963('0x13')]);router['delete'](_0xf963('0x14'),auth[_0xf963('0xb')](),controller[_0xf963('0x15')]);module[_0xf963('0x16')]=router;