c1b987a99e24537356534a40b49bb980f4d3bbb3
[motion2.git] / server / api / cmList / 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 _0xb6d4=['exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./cmList.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/contacts','getContacts','getContactsCsv','getCustomFields','/:id/users','getAgents','post','/:id/dispositions','addDisposition','addContacts','/:id/fields','addCustomField','addAgents','put','update','delete','removeDispositions','removeAgents'];(function(_0x92924,_0x55d113){var _0x23b7aa=function(_0x4739b3){while(--_0x4739b3){_0x92924['push'](_0x92924['shift']());}};_0x23b7aa(++_0x55d113);}(_0xb6d4,0x16c));var _0x4b6d=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0xb6d4[_0x3bf83f];return _0x22c4a9;};'use strict';var multer=require(_0x4b6d('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x4b6d('0x1'));var express=require(_0x4b6d('0x2'));var router=express[_0x4b6d('0x3')]();var auth=require(_0x4b6d('0x4'));var interaction=require(_0x4b6d('0x5'));var config=require('../../config/environment');var controller=require(_0x4b6d('0x6'));router[_0x4b6d('0x7')]('/',auth[_0x4b6d('0x8')](),controller[_0x4b6d('0x9')]);router[_0x4b6d('0x7')](_0x4b6d('0xa'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0xb')]);router[_0x4b6d('0x7')](_0x4b6d('0xc'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0xd')]);router['get']('/:id/dispositions',auth['isAuthenticated'](),controller['getDispositions']);router[_0x4b6d('0x7')](_0x4b6d('0xe'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0xf')]);router[_0x4b6d('0x7')]('/:id/contacts/csv',auth['isAuthenticated'](),controller[_0x4b6d('0x10')]);router[_0x4b6d('0x7')]('/:id/fields',auth['isAuthenticated'](),controller[_0x4b6d('0x11')]);router[_0x4b6d('0x7')](_0x4b6d('0x12'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0x13')]);router[_0x4b6d('0x14')]('/',auth[_0x4b6d('0x8')](),controller['create']);router['post'](_0x4b6d('0x15'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0x16')]);router[_0x4b6d('0x14')](_0x4b6d('0xe'),auth['isAuthenticated'](),controller[_0x4b6d('0x17')]);router[_0x4b6d('0x14')](_0x4b6d('0x18'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0x19')]);router['post'](_0x4b6d('0x12'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0x1a')]);router[_0x4b6d('0x1b')]('/:id',auth[_0x4b6d('0x8')](),controller[_0x4b6d('0x1c')]);router['delete']('/:id',auth[_0x4b6d('0x8')](),controller['destroy']);router[_0x4b6d('0x1d')](_0x4b6d('0x15'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0x1e')]);router[_0x4b6d('0x1d')](_0x4b6d('0x12'),auth[_0x4b6d('0x8')](),controller[_0x4b6d('0x1f')]);module[_0x4b6d('0x20')]=router;