1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x022a=['../../components/interaction/service','../../config/environment','./intZendeskAccount.controller','get','index','isAuthenticated','show','/:id/configurations','getConfigurations','getFields','post','create','/:id','update','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0xb19178,_0x396eb2){var _0x39fbe2=function(_0x26fe50){while(--_0x26fe50){_0xb19178['push'](_0xb19178['shift']());}};_0x39fbe2(++_0x396eb2);}(_0x022a,0x1f0));var _0xa022=function(_0x5b93f8,_0xffefcd){_0x5b93f8=_0x5b93f8-0x0;var _0x1430ec=_0x022a[_0x5b93f8];return _0x1430ec;};'use strict';var multer=require(_0xa022('0x0'));var util=require(_0xa022('0x1'));var path=require(_0xa022('0x2'));var timeout=require(_0xa022('0x3'));var express=require(_0xa022('0x4'));var router=express[_0xa022('0x5')]();var fs_extra=require(_0xa022('0x6'));var auth=require(_0xa022('0x7'));var interaction=require(_0xa022('0x8'));var config=require(_0xa022('0x9'));var controller=require(_0xa022('0xa'));router[_0xa022('0xb')]('/',auth['isAuthenticated'](),controller[_0xa022('0xc')]);router['get']('/:id',auth[_0xa022('0xd')](),controller[_0xa022('0xe')]);router[_0xa022('0xb')](_0xa022('0xf'),auth[_0xa022('0xd')](),controller[_0xa022('0x10')]);router[_0xa022('0xb')]('/:id/fields',auth[_0xa022('0xd')](),controller[_0xa022('0x11')]);router[_0xa022('0x12')]('/',auth['isAuthenticated'](),controller[_0xa022('0x13')]);router['post'](_0xa022('0xf'),auth[_0xa022('0xd')](),controller['addConfiguration']);router['put'](_0xa022('0x14'),auth[_0xa022('0xd')](),controller[_0xa022('0x15')]);router[_0xa022('0x16')]('/:id',auth['isAuthenticated'](),controller[_0xa022('0x17')]);module['exports']=router;