Built motion from commit 351e7f9c.|2.6.31
[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 _0xcb91=['/:id/fields','post','create','update','destroy','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intZendeskAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations'];(function(_0x482116,_0x155b78){var _0x3fe7b4=function(_0x58253a){while(--_0x58253a){_0x482116['push'](_0x482116['shift']());}};_0x3fe7b4(++_0x155b78);}(_0xcb91,0x117));var _0x1cb9=function(_0x151721,_0x20d5bc){_0x151721=_0x151721-0x0;var _0x2deaa7=_0xcb91[_0x151721];return _0x2deaa7;};'use strict';var multer=require(_0x1cb9('0x0'));var util=require(_0x1cb9('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x1cb9('0x2'));var router=express[_0x1cb9('0x3')]();var fs_extra=require(_0x1cb9('0x4'));var auth=require(_0x1cb9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x1cb9('0x6'));var controller=require(_0x1cb9('0x7'));router[_0x1cb9('0x8')]('/',auth[_0x1cb9('0x9')](),controller[_0x1cb9('0xa')]);router[_0x1cb9('0x8')](_0x1cb9('0xb'),auth['isAuthenticated'](),controller[_0x1cb9('0xc')]);router[_0x1cb9('0x8')](_0x1cb9('0xd'),auth[_0x1cb9('0x9')](),controller[_0x1cb9('0xe')]);router[_0x1cb9('0x8')](_0x1cb9('0xf'),auth[_0x1cb9('0x9')](),controller['getFields']);router[_0x1cb9('0x10')]('/',auth[_0x1cb9('0x9')](),controller[_0x1cb9('0x11')]);router[_0x1cb9('0x10')](_0x1cb9('0xd'),auth[_0x1cb9('0x9')](),controller['addConfiguration']);router['put'](_0x1cb9('0xb'),auth[_0x1cb9('0x9')](),controller[_0x1cb9('0x12')]);router['delete'](_0x1cb9('0xb'),auth[_0x1cb9('0x9')](),controller[_0x1cb9('0x13')]);module[_0x1cb9('0x14')]=router;