Built motion from commit ffdca78c.|2.6.24
[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 _0xcc1c=['../../config/environment','get','/:id/configurations','getConfigurations','/:id/fields','isAuthenticated','post','create','/:id','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x52ee26,_0x36ca79){var _0x3f215c=function(_0x5a4bd3){while(--_0x5a4bd3){_0x52ee26['push'](_0x52ee26['shift']());}};_0x3f215c(++_0x36ca79);}(_0xcc1c,0xa3));var _0xccc1=function(_0x3a9661,_0x530b12){_0x3a9661=_0x3a9661-0x0;var _0x5bb119=_0xcc1c[_0x3a9661];return _0x5bb119;};'use strict';var multer=require('multer');var util=require(_0xccc1('0x0'));var path=require(_0xccc1('0x1'));var timeout=require(_0xccc1('0x2'));var express=require(_0xccc1('0x3'));var router=express[_0xccc1('0x4')]();var fs_extra=require(_0xccc1('0x5'));var auth=require(_0xccc1('0x6'));var interaction=require(_0xccc1('0x7'));var config=require(_0xccc1('0x8'));var controller=require('./intZendeskAccount.controller');router[_0xccc1('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0xccc1('0x9')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xccc1('0x9')](_0xccc1('0xa'),auth['isAuthenticated'](),controller[_0xccc1('0xb')]);router['get'](_0xccc1('0xc'),auth[_0xccc1('0xd')](),controller['getFields']);router[_0xccc1('0xe')]('/',auth[_0xccc1('0xd')](),controller[_0xccc1('0xf')]);router[_0xccc1('0xe')]('/:id/configurations',auth[_0xccc1('0xd')](),controller['addConfiguration']);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router['delete'](_0xccc1('0x10'),auth[_0xccc1('0xd')](),controller[_0xccc1('0x11')]);module[_0xccc1('0x12')]=router;