Built motion from commit 9d7072cc.|2.5.39
[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 _0x66da=['/:id','show','/:id/contacts','post','put','update','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCompany.controller','get','index','/describe','isAuthenticated','describe'];(function(_0x55f8b4,_0x43f30d){var _0x2475f9=function(_0xdd6f4a){while(--_0xdd6f4a){_0x55f8b4['push'](_0x55f8b4['shift']());}};_0x2475f9(++_0x43f30d);}(_0x66da,0x16f));var _0xa66d=function(_0x390733,_0x1e3d32){_0x390733=_0x390733-0x0;var _0x33beb9=_0x66da[_0x390733];return _0x33beb9;};'use strict';var multer=require(_0xa66d('0x0'));var util=require(_0xa66d('0x1'));var path=require(_0xa66d('0x2'));var timeout=require(_0xa66d('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xa66d('0x4'));var interaction=require(_0xa66d('0x5'));var config=require(_0xa66d('0x6'));var controller=require(_0xa66d('0x7'));router[_0xa66d('0x8')]('/',auth['isAuthenticated'](),controller[_0xa66d('0x9')]);router[_0xa66d('0x8')](_0xa66d('0xa'),auth[_0xa66d('0xb')](),controller[_0xa66d('0xc')]);router[_0xa66d('0x8')](_0xa66d('0xd'),auth[_0xa66d('0xb')](),controller[_0xa66d('0xe')]);router[_0xa66d('0x8')](_0xa66d('0xf'),auth[_0xa66d('0xb')](),controller['getContacts']);router[_0xa66d('0x10')]('/',auth[_0xa66d('0xb')](),controller['create']);router['post']('/:id/contacts',auth[_0xa66d('0xb')](),controller['addContacts']);router[_0xa66d('0x11')]('/:id',auth[_0xa66d('0xb')](),controller[_0xa66d('0x12')]);router['delete'](_0xa66d('0xd'),auth[_0xa66d('0xb')](),controller['destroy']);module[_0xa66d('0x13')]=router;