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 _0x6bb2=['create','put','update','delete','exports','util','connect-timeout','Router','fs-extra','../../config/environment','./intZohoField.controller','get','isAuthenticated','index','/:id','show'];(function(_0x3ae204,_0x4d994e){var _0x480f72=function(_0x55ae7d){while(--_0x55ae7d){_0x3ae204['push'](_0x3ae204['shift']());}};_0x480f72(++_0x4d994e);}(_0x6bb2,0x95));var _0x26bb=function(_0x24237f,_0x4cf32c){_0x24237f=_0x24237f-0x0;var _0x48298e=_0x6bb2[_0x24237f];return _0x48298e;};'use strict';var multer=require('multer');var util=require(_0x26bb('0x0'));var path=require('path');var timeout=require(_0x26bb('0x1'));var express=require('express');var router=express[_0x26bb('0x2')]();var fs_extra=require(_0x26bb('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x26bb('0x4'));var controller=require(_0x26bb('0x5'));router[_0x26bb('0x6')]('/',auth[_0x26bb('0x7')](),controller[_0x26bb('0x8')]);router['get'](_0x26bb('0x9'),auth[_0x26bb('0x7')](),controller[_0x26bb('0xa')]);router['post']('/',auth[_0x26bb('0x7')](),controller[_0x26bb('0xb')]);router[_0x26bb('0xc')](_0x26bb('0x9'),auth[_0x26bb('0x7')](),controller[_0x26bb('0xd')]);router[_0x26bb('0xe')](_0x26bb('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0x26bb('0xf')]=router;