Built motion from commit 67e5df37.|2.0.66
[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 _0x8e09=['index','isAuthenticated','describe','/:id','show','/:id/canned_answers','getAnswers','getApplications','/:id/dispositions','getDispositions','/:id/interactions','getInteractions','post','create','addAnswer','notify','/:id/applications','addApplications','addDispositions','put','destroy','delete','removeAnswers','exports','multer','util','path','express','Router','../../components/auth/service','../../config/environment','./openchannelAccount.controller','get'];(function(_0x21b103,_0x3d9a6f){var _0x5c6d7f=function(_0x3e6f77){while(--_0x3e6f77){_0x21b103['push'](_0x21b103['shift']());}};_0x5c6d7f(++_0x3d9a6f);}(_0x8e09,0xff));var _0x98e0=function(_0x37a9d7,_0x2b6fde){_0x37a9d7=_0x37a9d7-0x0;var _0x1343d3=_0x8e09[_0x37a9d7];return _0x1343d3;};'use strict';var multer=require(_0x98e0('0x0'));var util=require(_0x98e0('0x1'));var path=require(_0x98e0('0x2'));var express=require(_0x98e0('0x3'));var router=express[_0x98e0('0x4')]();var auth=require(_0x98e0('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x98e0('0x6'));var controller=require(_0x98e0('0x7'));router[_0x98e0('0x8')]('/',auth['isAuthenticated'](),controller[_0x98e0('0x9')]);router[_0x98e0('0x8')]('/describe',auth[_0x98e0('0xa')](),controller[_0x98e0('0xb')]);router[_0x98e0('0x8')](_0x98e0('0xc'),auth[_0x98e0('0xa')](),controller[_0x98e0('0xd')]);router['get'](_0x98e0('0xe'),auth[_0x98e0('0xa')](),controller[_0x98e0('0xf')]);router[_0x98e0('0x8')]('/:id/applications',auth[_0x98e0('0xa')](),controller[_0x98e0('0x10')]);router['get'](_0x98e0('0x11'),auth['isAuthenticated'](),controller[_0x98e0('0x12')]);router[_0x98e0('0x8')](_0x98e0('0x13'),auth[_0x98e0('0xa')](),controller[_0x98e0('0x14')]);router[_0x98e0('0x15')]('/',auth[_0x98e0('0xa')](),controller[_0x98e0('0x16')]);router[_0x98e0('0x15')](_0x98e0('0xe'),auth[_0x98e0('0xa')](),controller[_0x98e0('0x17')]);router[_0x98e0('0x15')]('/:id/notify',controller[_0x98e0('0x18')]);router[_0x98e0('0x15')](_0x98e0('0x19'),auth[_0x98e0('0xa')](),controller[_0x98e0('0x1a')]);router['post'](_0x98e0('0x11'),auth[_0x98e0('0xa')](),controller['addDisposition']);router[_0x98e0('0x15')]('/:id/dispositions',auth[_0x98e0('0xa')](),controller[_0x98e0('0x1b')]);router[_0x98e0('0x1c')](_0x98e0('0xc'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x98e0('0xc'),auth[_0x98e0('0xa')](),controller[_0x98e0('0x1d')]);router[_0x98e0('0x1e')]('/:id/canned_answers',auth[_0x98e0('0xa')](),controller[_0x98e0('0x1f')]);module[_0x98e0('0x20')]=router;