Built motion from commit (unavailable).|2.5.14
[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 _0xebc5=['put','/:id','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intZendeskAccount.controller','get','isAuthenticated','index','show','getConfigurations','getFields','post','create','/:id/configurations','addConfiguration'];(function(_0x44950a,_0x21feaa){var _0x475c21=function(_0x387128){while(--_0x387128){_0x44950a['push'](_0x44950a['shift']());}};_0x475c21(++_0x21feaa);}(_0xebc5,0x11a));var _0x5ebc=function(_0x1e7b16,_0x4607a1){_0x1e7b16=_0x1e7b16-0x0;var _0x37fadc=_0xebc5[_0x1e7b16];return _0x37fadc;};'use strict';var multer=require(_0x5ebc('0x0'));var util=require('util');var path=require(_0x5ebc('0x1'));var timeout=require(_0x5ebc('0x2'));var express=require(_0x5ebc('0x3'));var router=express[_0x5ebc('0x4')]();var auth=require(_0x5ebc('0x5'));var interaction=require(_0x5ebc('0x6'));var config=require('../../config/environment');var controller=require(_0x5ebc('0x7'));router[_0x5ebc('0x8')]('/',auth[_0x5ebc('0x9')](),controller[_0x5ebc('0xa')]);router[_0x5ebc('0x8')]('/:id',auth[_0x5ebc('0x9')](),controller[_0x5ebc('0xb')]);router[_0x5ebc('0x8')]('/:id/configurations',auth[_0x5ebc('0x9')](),controller[_0x5ebc('0xc')]);router[_0x5ebc('0x8')]('/:id/fields',auth[_0x5ebc('0x9')](),controller[_0x5ebc('0xd')]);router[_0x5ebc('0xe')]('/',auth['isAuthenticated'](),controller[_0x5ebc('0xf')]);router[_0x5ebc('0xe')](_0x5ebc('0x10'),auth['isAuthenticated'](),controller[_0x5ebc('0x11')]);router[_0x5ebc('0x12')]('/:id',auth['isAuthenticated'](),controller['update']);router['delete'](_0x5ebc('0x13'),auth[_0x5ebc('0x9')](),controller['destroy']);module['exports']=router;