Built motion from commit 1fa89557.|2.6.10
[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 _0x0849=['destroy','delete','removeDispositions','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmList.controller','isAuthenticated','index','get','/describe','/:id','show','/:id/dispositions','getDispositions','/:id/contacts','getContacts','/:id/contacts/csv','getContactsCsv','/:id/fields','getCustomFields','post','addDisposition','addCustomField','/:id/users','addAgents','put','update'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x0849,0xca));var _0x9084=function(_0x428be5,_0x1ae0be){_0x428be5=_0x428be5-0x0;var _0x5e4e91=_0x0849[_0x428be5];return _0x5e4e91;};'use strict';var multer=require(_0x9084('0x0'));var util=require(_0x9084('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9084('0x2'));var router=express[_0x9084('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x9084('0x4'));var interaction=require(_0x9084('0x5'));var config=require(_0x9084('0x6'));var controller=require(_0x9084('0x7'));router['get']('/',auth[_0x9084('0x8')](),controller[_0x9084('0x9')]);router[_0x9084('0xa')](_0x9084('0xb'),auth[_0x9084('0x8')](),controller['describe']);router[_0x9084('0xa')]('/global_fields',auth[_0x9084('0x8')](),controller['getGlobalCustomFields']);router['get'](_0x9084('0xc'),auth[_0x9084('0x8')](),controller[_0x9084('0xd')]);router[_0x9084('0xa')](_0x9084('0xe'),auth[_0x9084('0x8')](),controller[_0x9084('0xf')]);router[_0x9084('0xa')](_0x9084('0x10'),auth[_0x9084('0x8')](),controller[_0x9084('0x11')]);router['get'](_0x9084('0x12'),auth[_0x9084('0x8')](),controller[_0x9084('0x13')]);router['get'](_0x9084('0x14'),auth['isAuthenticated'](),controller[_0x9084('0x15')]);router[_0x9084('0xa')]('/:id/users',auth['isAuthenticated'](),controller['getAgents']);router[_0x9084('0x16')]('/',auth[_0x9084('0x8')](),controller['create']);router[_0x9084('0x16')](_0x9084('0xe'),auth[_0x9084('0x8')](),controller[_0x9084('0x17')]);router['post'](_0x9084('0x10'),auth['isAuthenticated'](),controller['addContacts']);router[_0x9084('0x16')](_0x9084('0x14'),auth[_0x9084('0x8')](),controller[_0x9084('0x18')]);router['post'](_0x9084('0x19'),auth[_0x9084('0x8')](),controller[_0x9084('0x1a')]);router[_0x9084('0x1b')](_0x9084('0xc'),auth[_0x9084('0x8')](),controller[_0x9084('0x1c')]);router['delete'](_0x9084('0xc'),auth['isAuthenticated'](),controller[_0x9084('0x1d')]);router[_0x9084('0x1e')](_0x9084('0xe'),auth['isAuthenticated'](),controller[_0x9084('0x1f')]);router['delete'](_0x9084('0x19'),auth[_0x9084('0x8')](),controller['removeAgents']);module[_0x9084('0x20')]=router;