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