Built motion from commit 449495f6.|2.6.27
[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 _0xb281=['exports','multer','util','path','fs-extra','../../config/environment','./intZohoAccount.controller','get','index','/:id','show','/:id/configurations','isAuthenticated','/:id/fields','post','create','addConfiguration','update','delete','destroy'];(function(_0x2ec461,_0x5f588a){var _0x28603d=function(_0x21114b){while(--_0x21114b){_0x2ec461['push'](_0x2ec461['shift']());}};_0x28603d(++_0x5f588a);}(_0xb281,0x65));var _0x1b28=function(_0x96783a,_0x56b31f){_0x96783a=_0x96783a-0x0;var _0x2d279=_0xb281[_0x96783a];return _0x2d279;};'use strict';var multer=require(_0x1b28('0x0'));var util=require(_0x1b28('0x1'));var path=require(_0x1b28('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x1b28('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x1b28('0x4'));var controller=require(_0x1b28('0x5'));router[_0x1b28('0x6')]('/',auth['isAuthenticated'](),controller[_0x1b28('0x7')]);router[_0x1b28('0x6')](_0x1b28('0x8'),auth['isAuthenticated'](),controller[_0x1b28('0x9')]);router[_0x1b28('0x6')](_0x1b28('0xa'),auth[_0x1b28('0xb')](),controller['getConfigurations']);router[_0x1b28('0x6')](_0x1b28('0xc'),auth['isAuthenticated'](),controller['getFields']);router[_0x1b28('0xd')]('/',auth[_0x1b28('0xb')](),controller[_0x1b28('0xe')]);router[_0x1b28('0xd')](_0x1b28('0xa'),auth[_0x1b28('0xb')](),controller[_0x1b28('0xf')]);router['put'](_0x1b28('0x8'),auth[_0x1b28('0xb')](),controller[_0x1b28('0x10')]);router[_0x1b28('0x11')](_0x1b28('0x8'),auth[_0x1b28('0xb')](),controller[_0x1b28('0x12')]);module[_0x1b28('0x13')]=router;