Built motion from commit 10af8726.|2.6.34
[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 _0xaefa=['create','post','addContacts','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','/describe','describe','/:id','/:id/contacts','getContacts'];(function(_0xb2fed9,_0x1177e0){var _0x2c8eb0=function(_0x4db8d3){while(--_0x4db8d3){_0xb2fed9['push'](_0xb2fed9['shift']());}};_0x2c8eb0(++_0x1177e0);}(_0xaefa,0x193));var _0xaaef=function(_0x28b845,_0x519fe2){_0x28b845=_0x28b845-0x0;var _0x517076=_0xaefa[_0x28b845];return _0x517076;};'use strict';var multer=require(_0xaaef('0x0'));var util=require(_0xaaef('0x1'));var path=require(_0xaaef('0x2'));var timeout=require(_0xaaef('0x3'));var express=require(_0xaaef('0x4'));var router=express[_0xaaef('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xaaef('0x6'));var interaction=require(_0xaaef('0x7'));var config=require(_0xaaef('0x8'));var controller=require('./cmCompany.controller');router['get']('/',auth[_0xaaef('0x9')](),controller['index']);router['get'](_0xaaef('0xa'),auth[_0xaaef('0x9')](),controller[_0xaaef('0xb')]);router['get'](_0xaaef('0xc'),auth['isAuthenticated'](),controller['show']);router['get'](_0xaaef('0xd'),auth[_0xaaef('0x9')](),controller[_0xaaef('0xe')]);router['post']('/',auth[_0xaaef('0x9')](),controller[_0xaaef('0xf')]);router[_0xaaef('0x10')](_0xaaef('0xd'),auth[_0xaaef('0x9')](),controller[_0xaaef('0x11')]);router[_0xaaef('0x12')](_0xaaef('0xc'),auth[_0xaaef('0x9')](),controller['update']);router[_0xaaef('0x13')]('/:id',auth[_0xaaef('0x9')](),controller[_0xaaef('0x14')]);module[_0xaaef('0x15')]=router;