4ff18f6efa25954880d97a49256ecf36b6f404a6
[motion2.git] / server / api / intZendeskAccount / 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 _0xafe5=['getFields','post','create','addConfiguration','update','destroy','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intZendeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','/:id/fields'];(function(_0x41c19d,_0x4b0d99){var _0x4da0b5=function(_0x3af2c8){while(--_0x3af2c8){_0x41c19d['push'](_0x41c19d['shift']());}};_0x4da0b5(++_0x4b0d99);}(_0xafe5,0x124));var _0x5afe=function(_0x557605,_0x4d1457){_0x557605=_0x557605-0x0;var _0x49e350=_0xafe5[_0x557605];return _0x49e350;};'use strict';var multer=require('multer');var util=require(_0x5afe('0x0'));var path=require(_0x5afe('0x1'));var timeout=require(_0x5afe('0x2'));var express=require(_0x5afe('0x3'));var router=express[_0x5afe('0x4')]();var auth=require(_0x5afe('0x5'));var interaction=require(_0x5afe('0x6'));var config=require('../../config/environment');var controller=require(_0x5afe('0x7'));router[_0x5afe('0x8')]('/',auth[_0x5afe('0x9')](),controller[_0x5afe('0xa')]);router[_0x5afe('0x8')](_0x5afe('0xb'),auth[_0x5afe('0x9')](),controller[_0x5afe('0xc')]);router[_0x5afe('0x8')](_0x5afe('0xd'),auth[_0x5afe('0x9')](),controller[_0x5afe('0xe')]);router[_0x5afe('0x8')](_0x5afe('0xf'),auth[_0x5afe('0x9')](),controller[_0x5afe('0x10')]);router[_0x5afe('0x11')]('/',auth[_0x5afe('0x9')](),controller[_0x5afe('0x12')]);router[_0x5afe('0x11')](_0x5afe('0xd'),auth['isAuthenticated'](),controller[_0x5afe('0x13')]);router['put'](_0x5afe('0xb'),auth[_0x5afe('0x9')](),controller[_0x5afe('0x14')]);router['delete'](_0x5afe('0xb'),auth[_0x5afe('0x9')](),controller[_0x5afe('0x15')]);module['exports']=router;