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 _0xe4b2=['post','create','addContacts','put','update','delete','/:id','destroy','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./cmCompany.controller','get','index','isAuthenticated','show','/:id/contacts','getContacts'];(function(_0x18e3a1,_0xd51faa){var _0x69b4a1=function(_0x2509a8){while(--_0x2509a8){_0x18e3a1['push'](_0x18e3a1['shift']());}};_0x69b4a1(++_0xd51faa);}(_0xe4b2,0x1d6));var _0x2e4b=function(_0x1a398d,_0x5609c1){_0x1a398d=_0x1a398d-0x0;var _0x4314b6=_0xe4b2[_0x1a398d];return _0x4314b6;};'use strict';var multer=require('multer');var util=require(_0x2e4b('0x0'));var path=require('path');var timeout=require(_0x2e4b('0x1'));var express=require(_0x2e4b('0x2'));var router=express[_0x2e4b('0x3')]();var fs_extra=require(_0x2e4b('0x4'));var auth=require(_0x2e4b('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x2e4b('0x6'));var controller=require(_0x2e4b('0x7'));router[_0x2e4b('0x8')]('/',auth['isAuthenticated'](),controller[_0x2e4b('0x9')]);router[_0x2e4b('0x8')]('/describe',auth['isAuthenticated'](),controller['describe']);router['get']('/:id',auth[_0x2e4b('0xa')](),controller[_0x2e4b('0xb')]);router[_0x2e4b('0x8')](_0x2e4b('0xc'),auth[_0x2e4b('0xa')](),controller[_0x2e4b('0xd')]);router[_0x2e4b('0xe')]('/',auth[_0x2e4b('0xa')](),controller[_0x2e4b('0xf')]);router[_0x2e4b('0xe')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x2e4b('0x10')]);router[_0x2e4b('0x11')]('/:id',auth[_0x2e4b('0xa')](),controller[_0x2e4b('0x12')]);router[_0x2e4b('0x13')](_0x2e4b('0x14'),auth[_0x2e4b('0xa')](),controller[_0x2e4b('0x15')]);module['exports']=router;