Built motion from commit (unavailable).|2.0.77
[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 _0x68df=['getAgents','post','create','/:id/dispositions','addDisposition','/:id/contacts','addContacts','addCustomField','/:id/users','addAgents','put','update','delete','destroy','removeDispositions','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','/:id','show','getDispositions','/:id/contacts/csv','/:id/fields','getCustomFields'];(function(_0x283127,_0x54d4d5){var _0x43da5d=function(_0x10947f){while(--_0x10947f){_0x283127['push'](_0x283127['shift']());}};_0x43da5d(++_0x54d4d5);}(_0x68df,0xaf));var _0xf68d=function(_0x470dbb,_0xbdf285){_0x470dbb=_0x470dbb-0x0;var _0x1e5d9c=_0x68df[_0x470dbb];return _0x1e5d9c;};'use strict';var multer=require(_0xf68d('0x0'));var util=require(_0xf68d('0x1'));var path=require(_0xf68d('0x2'));var timeout=require(_0xf68d('0x3'));var express=require(_0xf68d('0x4'));var router=express[_0xf68d('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xf68d('0x6'));var config=require(_0xf68d('0x7'));var controller=require('./cmList.controller');router[_0xf68d('0x8')]('/',auth[_0xf68d('0x9')](),controller['index']);router[_0xf68d('0x8')](_0xf68d('0xa'),auth[_0xf68d('0x9')](),controller['describe']);router['get'](_0xf68d('0xb'),auth[_0xf68d('0x9')](),controller[_0xf68d('0xc')]);router[_0xf68d('0x8')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0xf68d('0xd')]);router[_0xf68d('0x8')]('/:id/contacts',auth['isAuthenticated'](),controller['getContacts']);router[_0xf68d('0x8')](_0xf68d('0xe'),auth[_0xf68d('0x9')](),controller['getContactsCsv']);router[_0xf68d('0x8')](_0xf68d('0xf'),auth['isAuthenticated'](),controller[_0xf68d('0x10')]);router['get']('/:id/users',auth[_0xf68d('0x9')](),controller[_0xf68d('0x11')]);router[_0xf68d('0x12')]('/',auth[_0xf68d('0x9')](),controller[_0xf68d('0x13')]);router[_0xf68d('0x12')](_0xf68d('0x14'),auth['isAuthenticated'](),controller[_0xf68d('0x15')]);router['post'](_0xf68d('0x16'),auth[_0xf68d('0x9')](),controller[_0xf68d('0x17')]);router['post'](_0xf68d('0xf'),auth[_0xf68d('0x9')](),controller[_0xf68d('0x18')]);router['post'](_0xf68d('0x19'),auth[_0xf68d('0x9')](),controller[_0xf68d('0x1a')]);router[_0xf68d('0x1b')]('/:id',auth[_0xf68d('0x9')](),controller[_0xf68d('0x1c')]);router[_0xf68d('0x1d')](_0xf68d('0xb'),auth[_0xf68d('0x9')](),controller[_0xf68d('0x1e')]);router['delete'](_0xf68d('0x14'),auth[_0xf68d('0x9')](),controller[_0xf68d('0x1f')]);router['delete'](_0xf68d('0x19'),auth[_0xf68d('0x9')](),controller['removeAgents']);module['exports']=router;