f4e0fa3bd59be28bc0a20f6d970eb13c3a1e8f10
[motion2.git] / server / api / intZohoConfiguration / 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 _0x99a9=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','index','isAuthenticated','/:id/fields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','post','create','put','/:id','update','destroy','exports','multer','util'];(function(_0xbc2a71,_0x36aaac){var _0x43f2ee=function(_0x32f3ff){while(--_0x32f3ff){_0xbc2a71['push'](_0xbc2a71['shift']());}};_0x43f2ee(++_0x36aaac);}(_0x99a9,0x136));var _0x999a=function(_0x13f8ce,_0x2cf439){_0x13f8ce=_0x13f8ce-0x0;var _0x1f077b=_0x99a9[_0x13f8ce];return _0x1f077b;};'use strict';var multer=require(_0x999a('0x0'));var util=require(_0x999a('0x1'));var path=require(_0x999a('0x2'));var timeout=require(_0x999a('0x3'));var express=require(_0x999a('0x4'));var router=express[_0x999a('0x5')]();var fs_extra=require(_0x999a('0x6'));var auth=require(_0x999a('0x7'));var interaction=require(_0x999a('0x8'));var config=require(_0x999a('0x9'));var controller=require(_0x999a('0xa'));router[_0x999a('0xb')]('/',auth['isAuthenticated'](),controller[_0x999a('0xc')]);router[_0x999a('0xb')]('/:id',auth[_0x999a('0xd')](),controller['show']);router[_0x999a('0xb')](_0x999a('0xe'),auth['isAuthenticated'](),controller['getFields']);router['get'](_0x999a('0xf'),auth[_0x999a('0xd')](),controller[_0x999a('0x10')]);router[_0x999a('0xb')](_0x999a('0x11'),auth['isAuthenticated'](),controller[_0x999a('0x12')]);router[_0x999a('0x13')]('/',auth[_0x999a('0xd')](),controller[_0x999a('0x14')]);router[_0x999a('0x15')](_0x999a('0x16'),auth[_0x999a('0xd')](),controller[_0x999a('0x17')]);router['delete'](_0x999a('0x16'),auth[_0x999a('0xd')](),controller[_0x999a('0x18')]);module[_0x999a('0x19')]=router;