Built motion from commit 355702c8.|2.5.41
[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 _0x9a87=['show','/:id/contacts','post','update','delete','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','/:id'];(function(_0x418ac3,_0x55a340){var _0x14b8f5=function(_0x5902c0){while(--_0x5902c0){_0x418ac3['push'](_0x418ac3['shift']());}};_0x14b8f5(++_0x55a340);}(_0x9a87,0xa6));var _0x79a8=function(_0x3c1b51,_0x12d496){_0x3c1b51=_0x3c1b51-0x0;var _0x38df56=_0x9a87[_0x3c1b51];return _0x38df56;};'use strict';var multer=require(_0x79a8('0x0'));var util=require(_0x79a8('0x1'));var path=require(_0x79a8('0x2'));var timeout=require(_0x79a8('0x3'));var express=require('express');var router=express[_0x79a8('0x4')]();var fs_extra=require(_0x79a8('0x5'));var auth=require(_0x79a8('0x6'));var interaction=require(_0x79a8('0x7'));var config=require(_0x79a8('0x8'));var controller=require('./cmCompany.controller');router[_0x79a8('0x9')]('/',auth[_0x79a8('0xa')](),controller[_0x79a8('0xb')]);router[_0x79a8('0x9')](_0x79a8('0xc'),auth[_0x79a8('0xa')](),controller['describe']);router[_0x79a8('0x9')](_0x79a8('0xd'),auth[_0x79a8('0xa')](),controller[_0x79a8('0xe')]);router[_0x79a8('0x9')](_0x79a8('0xf'),auth[_0x79a8('0xa')](),controller['getContacts']);router[_0x79a8('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0x79a8('0x10')](_0x79a8('0xf'),auth['isAuthenticated'](),controller['addContacts']);router['put'](_0x79a8('0xd'),auth[_0x79a8('0xa')](),controller[_0x79a8('0x11')]);router[_0x79a8('0x12')](_0x79a8('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x79a8('0x13')]=router;