Built motion from commit 67e5df37.|2.0.66
[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 _0xb016=['getAgents','post','/:id/contacts','addCustomField','addAgents','put','update','destroy','delete','removeAgents','multer','util','path','Router','../../components/auth/service','../../config/environment','./cmList.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/dispositions','getContacts','/:id/contacts/csv','/:id/fields','/:id/users'];(function(_0x2aea9e,_0x1f587f){var _0x430b92=function(_0x416c37){while(--_0x416c37){_0x2aea9e['push'](_0x2aea9e['shift']());}};_0x430b92(++_0x1f587f);}(_0xb016,0xce));var _0x6b01=function(_0x46974e,_0x5d6ca5){_0x46974e=_0x46974e-0x0;var _0xccba96=_0xb016[_0x46974e];return _0xccba96;};'use strict';var multer=require(_0x6b01('0x0'));var util=require(_0x6b01('0x1'));var path=require(_0x6b01('0x2'));var express=require('express');var router=express[_0x6b01('0x3')]();var auth=require(_0x6b01('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x6b01('0x5'));var controller=require(_0x6b01('0x6'));router[_0x6b01('0x7')]('/',auth[_0x6b01('0x8')](),controller[_0x6b01('0x9')]);router[_0x6b01('0x7')](_0x6b01('0xa'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x6b01('0xb'),auth[_0x6b01('0x8')](),controller[_0x6b01('0xc')]);router[_0x6b01('0x7')](_0x6b01('0xd'),auth[_0x6b01('0x8')](),controller['getDispositions']);router[_0x6b01('0x7')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x6b01('0xe')]);router['get'](_0x6b01('0xf'),controller['getContactsCsv']);router[_0x6b01('0x7')](_0x6b01('0x10'),auth[_0x6b01('0x8')](),controller['getCustomFields']);router[_0x6b01('0x7')](_0x6b01('0x11'),auth[_0x6b01('0x8')](),controller[_0x6b01('0x12')]);router[_0x6b01('0x13')]('/',auth[_0x6b01('0x8')](),controller['create']);router['post'](_0x6b01('0xd'),auth['isAuthenticated'](),controller['addDisposition']);router[_0x6b01('0x13')](_0x6b01('0x14'),auth['isAuthenticated'](),controller['addContacts']);router[_0x6b01('0x13')](_0x6b01('0x10'),auth[_0x6b01('0x8')](),controller[_0x6b01('0x15')]);router[_0x6b01('0x13')](_0x6b01('0x11'),auth['isAuthenticated'](),controller[_0x6b01('0x16')]);router[_0x6b01('0x17')](_0x6b01('0xb'),auth[_0x6b01('0x8')](),controller[_0x6b01('0x18')]);router['delete']('/:id',auth[_0x6b01('0x8')](),controller[_0x6b01('0x19')]);router[_0x6b01('0x1a')](_0x6b01('0x11'),auth[_0x6b01('0x8')](),controller[_0x6b01('0x1b')]);module['exports']=router;