Built motion from commit d9028345.|2.5.43
[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 _0x2f82=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','isAuthenticated','get','describe','show','getContacts','post','create','/:id/contacts','addContacts','put','/:id','delete','destroy','exports'];(function(_0x15b584,_0x34c776){var _0x54811b=function(_0x468d45){while(--_0x468d45){_0x15b584['push'](_0x15b584['shift']());}};_0x54811b(++_0x34c776);}(_0x2f82,0xa8));var _0x22f8=function(_0x20eca8,_0x5cf63f){_0x20eca8=_0x20eca8-0x0;var _0x1dd774=_0x2f82[_0x20eca8];return _0x1dd774;};'use strict';var multer=require('multer');var util=require(_0x22f8('0x0'));var path=require(_0x22f8('0x1'));var timeout=require(_0x22f8('0x2'));var express=require(_0x22f8('0x3'));var router=express[_0x22f8('0x4')]();var fs_extra=require(_0x22f8('0x5'));var auth=require(_0x22f8('0x6'));var interaction=require(_0x22f8('0x7'));var config=require(_0x22f8('0x8'));var controller=require(_0x22f8('0x9'));router['get']('/',auth[_0x22f8('0xa')](),controller['index']);router[_0x22f8('0xb')]('/describe',auth['isAuthenticated'](),controller[_0x22f8('0xc')]);router[_0x22f8('0xb')]('/:id',auth[_0x22f8('0xa')](),controller[_0x22f8('0xd')]);router[_0x22f8('0xb')]('/:id/contacts',auth[_0x22f8('0xa')](),controller[_0x22f8('0xe')]);router[_0x22f8('0xf')]('/',auth[_0x22f8('0xa')](),controller[_0x22f8('0x10')]);router[_0x22f8('0xf')](_0x22f8('0x11'),auth['isAuthenticated'](),controller[_0x22f8('0x12')]);router[_0x22f8('0x13')](_0x22f8('0x14'),auth[_0x22f8('0xa')](),controller['update']);router[_0x22f8('0x15')](_0x22f8('0x14'),auth[_0x22f8('0xa')](),controller[_0x22f8('0x16')]);module[_0x22f8('0x17')]=router;