Built motion from commit (unavailable).|2.5.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 _0x74f3=['create','addConfiguration','delete','destroy','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intZendeskAccount.controller','isAuthenticated','index','get','/:id','show','/:id/configurations','getConfigurations','/:id/fields','getFields'];(function(_0x155ff8,_0x36724a){var _0x7b6794=function(_0x5e8916){while(--_0x5e8916){_0x155ff8['push'](_0x155ff8['shift']());}};_0x7b6794(++_0x36724a);}(_0x74f3,0x164));var _0x374f=function(_0x506ba3,_0xad9ee6){_0x506ba3=_0x506ba3-0x0;var _0x1aec66=_0x74f3[_0x506ba3];return _0x1aec66;};'use strict';var multer=require(_0x374f('0x0'));var util=require(_0x374f('0x1'));var path=require(_0x374f('0x2'));var timeout=require('connect-timeout');var express=require(_0x374f('0x3'));var router=express[_0x374f('0x4')]();var fs_extra=require(_0x374f('0x5'));var auth=require(_0x374f('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x374f('0x7'));var controller=require(_0x374f('0x8'));router['get']('/',auth[_0x374f('0x9')](),controller[_0x374f('0xa')]);router[_0x374f('0xb')](_0x374f('0xc'),auth[_0x374f('0x9')](),controller[_0x374f('0xd')]);router[_0x374f('0xb')](_0x374f('0xe'),auth['isAuthenticated'](),controller[_0x374f('0xf')]);router[_0x374f('0xb')](_0x374f('0x10'),auth[_0x374f('0x9')](),controller[_0x374f('0x11')]);router['post']('/',auth[_0x374f('0x9')](),controller[_0x374f('0x12')]);router['post'](_0x374f('0xe'),auth[_0x374f('0x9')](),controller[_0x374f('0x13')]);router['put'](_0x374f('0xc'),auth[_0x374f('0x9')](),controller['update']);router[_0x374f('0x14')](_0x374f('0xc'),auth['isAuthenticated'](),controller[_0x374f('0x15')]);module['exports']=router;