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 _0x9b7d=['get','index','/describe','isAuthenticated','describe','show','create','put','/:id','update','destroy','exports','multer','path','../../components/interaction/service','../../config/environment'];(function(_0x19f143,_0x45a328){var _0x5b9acc=function(_0x5d1911){while(--_0x5d1911){_0x19f143['push'](_0x19f143['shift']());}};_0x5b9acc(++_0x45a328);}(_0x9b7d,0x1cc));var _0xd9b7=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x9b7d[_0x19e35c];return _0x3e1fe8;};'use strict';var multer=require(_0xd9b7('0x0'));var util=require('util');var path=require(_0xd9b7('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xd9b7('0x2'));var config=require(_0xd9b7('0x3'));var controller=require('./crmMyCompanies.controller');router[_0xd9b7('0x4')]('/',auth['isAuthenticated'](),controller[_0xd9b7('0x5')]);router[_0xd9b7('0x4')](_0xd9b7('0x6'),auth[_0xd9b7('0x7')](),controller[_0xd9b7('0x8')]);router[_0xd9b7('0x4')]('/:id',auth[_0xd9b7('0x7')](),controller[_0xd9b7('0x9')]);router['post']('/',auth[_0xd9b7('0x7')](),controller[_0xd9b7('0xa')]);router[_0xd9b7('0xb')](_0xd9b7('0xc'),auth[_0xd9b7('0x7')](),controller[_0xd9b7('0xd')]);router['delete'](_0xd9b7('0xc'),auth[_0xd9b7('0x7')](),controller[_0xd9b7('0xe')]);module[_0xd9b7('0xf')]=router;