Built motion from commit 25580385.|2.6.2
[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 _0xb3f3=['Router','fs-extra','../../config/environment','./intZendeskAccount.controller','get','index','isAuthenticated','show','/:id/configurations','getFields','post','addConfiguration','put','/:id','update','delete','destroy','exports','util','connect-timeout','express'];(function(_0x5357ca,_0x801fac){var _0x24a125=function(_0x29ff8c){while(--_0x29ff8c){_0x5357ca['push'](_0x5357ca['shift']());}};_0x24a125(++_0x801fac);}(_0xb3f3,0xcf));var _0x3b3f=function(_0x4b40de,_0x3efe59){_0x4b40de=_0x4b40de-0x0;var _0x5c9460=_0xb3f3[_0x4b40de];return _0x5c9460;};'use strict';var multer=require('multer');var util=require(_0x3b3f('0x0'));var path=require('path');var timeout=require(_0x3b3f('0x1'));var express=require(_0x3b3f('0x2'));var router=express[_0x3b3f('0x3')]();var fs_extra=require(_0x3b3f('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3b3f('0x5'));var controller=require(_0x3b3f('0x6'));router[_0x3b3f('0x7')]('/',auth['isAuthenticated'](),controller[_0x3b3f('0x8')]);router['get']('/:id',auth[_0x3b3f('0x9')](),controller[_0x3b3f('0xa')]);router['get'](_0x3b3f('0xb'),auth[_0x3b3f('0x9')](),controller['getConfigurations']);router[_0x3b3f('0x7')]('/:id/fields',auth[_0x3b3f('0x9')](),controller[_0x3b3f('0xc')]);router[_0x3b3f('0xd')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x3b3f('0xb'),auth[_0x3b3f('0x9')](),controller[_0x3b3f('0xe')]);router[_0x3b3f('0xf')](_0x3b3f('0x10'),auth[_0x3b3f('0x9')](),controller[_0x3b3f('0x11')]);router[_0x3b3f('0x12')](_0x3b3f('0x10'),auth[_0x3b3f('0x9')](),controller[_0x3b3f('0x13')]);module[_0x3b3f('0x14')]=router;