Built motion from commit d5e4af8c.|2.6.23
[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 _0x7fbc=['exports','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./intZendeskAccount.controller','isAuthenticated','index','get','/:id','show','/:id/configurations','getConfigurations','getFields','put','delete'];(function(_0x16889b,_0x5624ce){var _0x8bcf73=function(_0x21ca4c){while(--_0x21ca4c){_0x16889b['push'](_0x16889b['shift']());}};_0x8bcf73(++_0x5624ce);}(_0x7fbc,0x73));var _0xc7fb=function(_0x7cfbd0,_0x4d8181){_0x7cfbd0=_0x7cfbd0-0x0;var _0x273fe2=_0x7fbc[_0x7cfbd0];return _0x273fe2;};'use strict';var multer=require('multer');var util=require(_0xc7fb('0x0'));var path=require(_0xc7fb('0x1'));var timeout=require(_0xc7fb('0x2'));var express=require('express');var router=express[_0xc7fb('0x3')]();var fs_extra=require(_0xc7fb('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xc7fb('0x5'));var config=require(_0xc7fb('0x6'));var controller=require(_0xc7fb('0x7'));router['get']('/',auth[_0xc7fb('0x8')](),controller[_0xc7fb('0x9')]);router[_0xc7fb('0xa')](_0xc7fb('0xb'),auth[_0xc7fb('0x8')](),controller[_0xc7fb('0xc')]);router[_0xc7fb('0xa')](_0xc7fb('0xd'),auth[_0xc7fb('0x8')](),controller[_0xc7fb('0xe')]);router[_0xc7fb('0xa')]('/:id/fields',auth[_0xc7fb('0x8')](),controller[_0xc7fb('0xf')]);router['post']('/',auth[_0xc7fb('0x8')](),controller['create']);router['post'](_0xc7fb('0xd'),auth[_0xc7fb('0x8')](),controller['addConfiguration']);router[_0xc7fb('0x10')]('/:id',auth[_0xc7fb('0x8')](),controller['update']);router[_0xc7fb('0x11')](_0xc7fb('0xb'),auth[_0xc7fb('0x8')](),controller['destroy']);module[_0xc7fb('0x12')]=router;