Built motion from commit (unavailable).|2.5.31
[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 _0x8e46=['util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./cmCompany.controller','isAuthenticated','index','get','/describe','show','post','/:id/contacts','put','update','delete','/:id','destroy','exports','multer'];(function(_0x1cc8fe,_0x105328){var _0x230054=function(_0x1a1b56){while(--_0x1a1b56){_0x1cc8fe['push'](_0x1cc8fe['shift']());}};_0x230054(++_0x105328);}(_0x8e46,0x133));var _0x68e4=function(_0x4def54,_0x36de1d){_0x4def54=_0x4def54-0x0;var _0x137bee=_0x8e46[_0x4def54];return _0x137bee;};'use strict';var multer=require(_0x68e4('0x0'));var util=require(_0x68e4('0x1'));var path=require(_0x68e4('0x2'));var timeout=require(_0x68e4('0x3'));var express=require(_0x68e4('0x4'));var router=express[_0x68e4('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x68e4('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x68e4('0x7'));var controller=require(_0x68e4('0x8'));router['get']('/',auth[_0x68e4('0x9')](),controller[_0x68e4('0xa')]);router[_0x68e4('0xb')](_0x68e4('0xc'),auth[_0x68e4('0x9')](),controller['describe']);router[_0x68e4('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x68e4('0xd')]);router[_0x68e4('0xb')]('/:id/contacts',auth[_0x68e4('0x9')](),controller['getContacts']);router['post']('/',auth[_0x68e4('0x9')](),controller['create']);router[_0x68e4('0xe')](_0x68e4('0xf'),auth[_0x68e4('0x9')](),controller['addContacts']);router[_0x68e4('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x68e4('0x11')]);router[_0x68e4('0x12')](_0x68e4('0x13'),auth[_0x68e4('0x9')](),controller[_0x68e4('0x14')]);module[_0x68e4('0x15')]=router;