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 _0x896e=['isAuthenticated','/describe','describe','show','post','create','/:id/contacts','addContacts','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get'];(function(_0xc9790d,_0x33ac1c){var _0x2e3793=function(_0x4004c5){while(--_0x4004c5){_0xc9790d['push'](_0xc9790d['shift']());}};_0x2e3793(++_0x33ac1c);}(_0x896e,0x1e9));var _0xe896=function(_0x507f38,_0x3283a4){_0x507f38=_0x507f38-0x0;var _0x25b505=_0x896e[_0x507f38];return _0x25b505;};'use strict';var multer=require(_0xe896('0x0'));var util=require(_0xe896('0x1'));var path=require(_0xe896('0x2'));var timeout=require(_0xe896('0x3'));var express=require(_0xe896('0x4'));var router=express[_0xe896('0x5')]();var auth=require(_0xe896('0x6'));var interaction=require(_0xe896('0x7'));var config=require(_0xe896('0x8'));var controller=require(_0xe896('0x9'));router[_0xe896('0xa')]('/',auth[_0xe896('0xb')](),controller['index']);router[_0xe896('0xa')](_0xe896('0xc'),auth[_0xe896('0xb')](),controller[_0xe896('0xd')]);router[_0xe896('0xa')]('/:id',auth[_0xe896('0xb')](),controller[_0xe896('0xe')]);router[_0xe896('0xa')]('/:id/contacts',auth[_0xe896('0xb')](),controller['getContacts']);router[_0xe896('0xf')]('/',auth['isAuthenticated'](),controller[_0xe896('0x10')]);router[_0xe896('0xf')](_0xe896('0x11'),auth['isAuthenticated'](),controller[_0xe896('0x12')]);router[_0xe896('0x13')](_0xe896('0x14'),auth['isAuthenticated'](),controller[_0xe896('0x15')]);router[_0xe896('0x16')](_0xe896('0x14'),auth['isAuthenticated'](),controller[_0xe896('0x17')]);module[_0xe896('0x18')]=router;