4bb18c75fd1540bd64de947a756724b1d830ad2f
[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 _0x05f1=['multer','path','express','Router','../../components/interaction/service','../../config/environment','./openchannelAccount.controller','index','get','show','/:id/dispositions','isAuthenticated','/:id/canned_answers','getAnswers','/:id/applications','getApplications','getInteractions','/:id/users','getAgents','post','addDisposition','addAnswer','notify','addApplications','addAgents','/:id/send','/:id','update','delete','destroy','removeDispositions','removeAnswers','removeAgents','exports'];(function(_0x2bfa87,_0x3e4c3b){var _0xca164d=function(_0x2cfee3){while(--_0x2cfee3){_0x2bfa87['push'](_0x2bfa87['shift']());}};_0xca164d(++_0x3e4c3b);}(_0x05f1,0x88));var _0x105f=function(_0x5f3f88,_0x562baf){_0x5f3f88=_0x5f3f88-0x0;var _0xd08119=_0x05f1[_0x5f3f88];return _0xd08119;};'use strict';var multer=require(_0x105f('0x0'));var util=require('util');var path=require(_0x105f('0x1'));var timeout=require('connect-timeout');var express=require(_0x105f('0x2'));var router=express[_0x105f('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x105f('0x4'));var config=require(_0x105f('0x5'));var controller=require(_0x105f('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x105f('0x7')]);router[_0x105f('0x8')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x105f('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x105f('0x9')]);router['get'](_0x105f('0xa'),auth[_0x105f('0xb')](),controller['getDispositions']);router['get'](_0x105f('0xc'),auth[_0x105f('0xb')](),controller[_0x105f('0xd')]);router[_0x105f('0x8')](_0x105f('0xe'),auth[_0x105f('0xb')](),controller[_0x105f('0xf')]);router['get']('/:id/interactions',auth['isAuthenticated'](),controller[_0x105f('0x10')]);router[_0x105f('0x8')](_0x105f('0x11'),auth[_0x105f('0xb')](),controller[_0x105f('0x12')]);router[_0x105f('0x13')]('/',auth[_0x105f('0xb')](),controller['create']);router[_0x105f('0x13')](_0x105f('0xa'),auth['isAuthenticated'](),controller[_0x105f('0x14')]);router['post'](_0x105f('0xc'),auth[_0x105f('0xb')](),controller[_0x105f('0x15')]);router['post']('/:id/notify',controller[_0x105f('0x16')]);router[_0x105f('0x13')]('/:id/applications',auth[_0x105f('0xb')](),controller[_0x105f('0x17')]);router[_0x105f('0x13')]('/:id/users',auth[_0x105f('0xb')](),controller[_0x105f('0x18')]);router[_0x105f('0x13')](_0x105f('0x19'),auth[_0x105f('0xb')](),controller['send']);router['put'](_0x105f('0x1a'),auth[_0x105f('0xb')](),controller[_0x105f('0x1b')]);router[_0x105f('0x1c')]('/:id',auth[_0x105f('0xb')](),controller[_0x105f('0x1d')]);router[_0x105f('0x1c')]('/:id/dispositions',auth[_0x105f('0xb')](),controller[_0x105f('0x1e')]);router[_0x105f('0x1c')](_0x105f('0xc'),auth[_0x105f('0xb')](),controller[_0x105f('0x1f')]);router[_0x105f('0x1c')](_0x105f('0x11'),auth[_0x105f('0xb')](),controller[_0x105f('0x20')]);module[_0x105f('0x21')]=router;