Built motion from commit (unavailable).|2.5.21
[motion2.git] / server / api / cmCompany / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x9536=['post','create','/:id/contacts','addContacts','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','isAuthenticated','/describe','describe','show','getContacts'];(function(_0x2e1c86,_0x281ecc){var _0x584f13=function(_0x30d6f9){while(--_0x30d6f9){_0x2e1c86['push'](_0x2e1c86['shift']());}};_0x584f13(++_0x281ecc);}(_0x9536,0x179));var _0x6953=function(_0x420b24,_0x382adc){_0x420b24=_0x420b24-0x0;var _0x4da552=_0x9536[_0x420b24];return _0x4da552;};'use strict';var multer=require(_0x6953('0x0'));var util=require(_0x6953('0x1'));var path=require(_0x6953('0x2'));var timeout=require(_0x6953('0x3'));var express=require('express');var router=express[_0x6953('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x6953('0x5'));var config=require(_0x6953('0x6'));var controller=require(_0x6953('0x7'));router[_0x6953('0x8')]('/',auth[_0x6953('0x9')](),controller['index']);router[_0x6953('0x8')](_0x6953('0xa'),auth[_0x6953('0x9')](),controller[_0x6953('0xb')]);router[_0x6953('0x8')]('/:id',auth[_0x6953('0x9')](),controller[_0x6953('0xc')]);router[_0x6953('0x8')]('/:id/contacts',auth[_0x6953('0x9')](),controller[_0x6953('0xd')]);router[_0x6953('0xe')]('/',auth[_0x6953('0x9')](),controller[_0x6953('0xf')]);router[_0x6953('0xe')](_0x6953('0x10'),auth[_0x6953('0x9')](),controller[_0x6953('0x11')]);router['put'](_0x6953('0x12'),auth['isAuthenticated'](),controller[_0x6953('0x13')]);router[_0x6953('0x14')](_0x6953('0x12'),auth[_0x6953('0x9')](),controller[_0x6953('0x15')]);module[_0x6953('0x16')]=router;