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 _0x6f58=['getFields','create','post','addConfiguration','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','/:id/fields'];(function(_0x33c7fc,_0x16de7e){var _0x2769ad=function(_0x515514){while(--_0x515514){_0x33c7fc['push'](_0x33c7fc['shift']());}};_0x2769ad(++_0x16de7e);}(_0x6f58,0xaa));var _0x86f5=function(_0x4b130e,_0x1ead28){_0x4b130e=_0x4b130e-0x0;var _0x5a184f=_0x6f58[_0x4b130e];return _0x5a184f;};'use strict';var multer=require(_0x86f5('0x0'));var util=require(_0x86f5('0x1'));var path=require(_0x86f5('0x2'));var timeout=require(_0x86f5('0x3'));var express=require(_0x86f5('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x86f5('0x5'));var config=require(_0x86f5('0x6'));var controller=require('./intVtigerAccount.controller');router[_0x86f5('0x7')]('/',auth[_0x86f5('0x8')](),controller[_0x86f5('0x9')]);router['get'](_0x86f5('0xa'),auth[_0x86f5('0x8')](),controller['show']);router['get'](_0x86f5('0xb'),auth[_0x86f5('0x8')](),controller[_0x86f5('0xc')]);router[_0x86f5('0x7')](_0x86f5('0xd'),auth['isAuthenticated'](),controller[_0x86f5('0xe')]);router['post']('/',auth[_0x86f5('0x8')](),controller[_0x86f5('0xf')]);router[_0x86f5('0x10')](_0x86f5('0xb'),auth[_0x86f5('0x8')](),controller[_0x86f5('0x11')]);router[_0x86f5('0x12')](_0x86f5('0xa'),auth['isAuthenticated'](),controller[_0x86f5('0x13')]);router[_0x86f5('0x14')]('/:id',auth[_0x86f5('0x8')](),controller[_0x86f5('0x15')]);module[_0x86f5('0x16')]=router;