Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / openchannelAccount / 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 _0x84f3=['../../config/environment','./openchannelAccount.controller','get','isAuthenticated','index','describe','/:id','/:id/dispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','/:id/interactions','getInteractions','getAgents','post','create','addDisposition','addAnswer','addApplications','/:id/users','/:id/send','send','put','update','delete','destroy','removeDispositions','removeAnswers','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x88cd7b,_0x4c884c){var _0x56fcc8=function(_0x513b3d){while(--_0x513b3d){_0x88cd7b['push'](_0x88cd7b['shift']());}};_0x56fcc8(++_0x4c884c);}(_0x84f3,0xb2));var _0x384f=function(_0x1928c9,_0x13a6d1){_0x1928c9=_0x1928c9-0x0;var _0x51b5fb=_0x84f3[_0x1928c9];return _0x51b5fb;};'use strict';var multer=require(_0x384f('0x0'));var util=require(_0x384f('0x1'));var path=require('path');var timeout=require(_0x384f('0x2'));var express=require(_0x384f('0x3'));var router=express[_0x384f('0x4')]();var fs_extra=require(_0x384f('0x5'));var auth=require(_0x384f('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x384f('0x7'));var controller=require(_0x384f('0x8'));router[_0x384f('0x9')]('/',auth[_0x384f('0xa')](),controller[_0x384f('0xb')]);router[_0x384f('0x9')]('/describe',auth[_0x384f('0xa')](),controller[_0x384f('0xc')]);router[_0x384f('0x9')](_0x384f('0xd'),auth['isAuthenticated'](),controller['show']);router['get'](_0x384f('0xe'),auth[_0x384f('0xa')](),controller['getDispositions']);router['get'](_0x384f('0xf'),auth['isAuthenticated'](),controller[_0x384f('0x10')]);router[_0x384f('0x9')](_0x384f('0x11'),auth[_0x384f('0xa')](),controller[_0x384f('0x12')]);router[_0x384f('0x9')](_0x384f('0x13'),auth[_0x384f('0xa')](),controller[_0x384f('0x14')]);router[_0x384f('0x9')]('/:id/users',auth[_0x384f('0xa')](),controller[_0x384f('0x15')]);router[_0x384f('0x16')]('/',auth[_0x384f('0xa')](),controller[_0x384f('0x17')]);router[_0x384f('0x16')](_0x384f('0xe'),auth[_0x384f('0xa')](),controller[_0x384f('0x18')]);router[_0x384f('0x16')](_0x384f('0xf'),auth[_0x384f('0xa')](),controller[_0x384f('0x19')]);router[_0x384f('0x16')]('/:id/notify',controller['notify']);router[_0x384f('0x16')]('/:id/applications',auth['isAuthenticated'](),controller[_0x384f('0x1a')]);router[_0x384f('0x16')](_0x384f('0x1b'),auth['isAuthenticated'](),controller['addAgents']);router['post'](_0x384f('0x1c'),auth['isAuthenticated'](),controller[_0x384f('0x1d')]);router[_0x384f('0x1e')](_0x384f('0xd'),auth[_0x384f('0xa')](),controller[_0x384f('0x1f')]);router[_0x384f('0x20')](_0x384f('0xd'),auth[_0x384f('0xa')](),controller[_0x384f('0x21')]);router[_0x384f('0x20')](_0x384f('0xe'),auth[_0x384f('0xa')](),controller[_0x384f('0x22')]);router[_0x384f('0x20')](_0x384f('0xf'),auth[_0x384f('0xa')](),controller[_0x384f('0x23')]);router['delete'](_0x384f('0x1b'),auth[_0x384f('0xa')](),controller['removeAgents']);module[_0x384f('0x24')]=router;