Built motion from commit 746c7d2a.|2.5.35
[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 _0x2342=['getAgents','post','create','addDisposition','addAnswer','/:id/notify','notify','addApplications','addAgents','/:id/send','send','put','/:id','update','delete','destroy','removeDispositions','removeAnswers','removeAgents','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelAccount.controller','get','isAuthenticated','index','/describe','describe','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','/:id/interactions','getInteractions','/:id/users'];(function(_0x27ed1f,_0x128269){var _0x1091fb=function(_0x152166){while(--_0x152166){_0x27ed1f['push'](_0x27ed1f['shift']());}};_0x1091fb(++_0x128269);}(_0x2342,0x197));var _0x2234=function(_0x22885d,_0x1d3193){_0x22885d=_0x22885d-0x0;var _0x7a79c0=_0x2342[_0x22885d];return _0x7a79c0;};'use strict';var multer=require(_0x2234('0x0'));var util=require(_0x2234('0x1'));var path=require('path');var timeout=require(_0x2234('0x2'));var express=require(_0x2234('0x3'));var router=express[_0x2234('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x2234('0x5'));var interaction=require(_0x2234('0x6'));var config=require(_0x2234('0x7'));var controller=require(_0x2234('0x8'));router[_0x2234('0x9')]('/',auth[_0x2234('0xa')](),controller[_0x2234('0xb')]);router['get'](_0x2234('0xc'),auth[_0x2234('0xa')](),controller[_0x2234('0xd')]);router['get']('/:id',auth[_0x2234('0xa')](),controller['show']);router[_0x2234('0x9')](_0x2234('0xe'),auth['isAuthenticated'](),controller[_0x2234('0xf')]);router[_0x2234('0x9')](_0x2234('0x10'),auth[_0x2234('0xa')](),controller[_0x2234('0x11')]);router[_0x2234('0x9')](_0x2234('0x12'),auth[_0x2234('0xa')](),controller[_0x2234('0x13')]);router[_0x2234('0x9')](_0x2234('0x14'),auth['isAuthenticated'](),controller[_0x2234('0x15')]);router[_0x2234('0x9')](_0x2234('0x16'),auth['isAuthenticated'](),controller[_0x2234('0x17')]);router[_0x2234('0x18')]('/',auth[_0x2234('0xa')](),controller[_0x2234('0x19')]);router[_0x2234('0x18')]('/:id/dispositions',auth[_0x2234('0xa')](),controller[_0x2234('0x1a')]);router['post'](_0x2234('0x10'),auth[_0x2234('0xa')](),controller[_0x2234('0x1b')]);router['post'](_0x2234('0x1c'),controller[_0x2234('0x1d')]);router['post']('/:id/applications',auth['isAuthenticated'](),controller[_0x2234('0x1e')]);router[_0x2234('0x18')](_0x2234('0x16'),auth[_0x2234('0xa')](),controller[_0x2234('0x1f')]);router[_0x2234('0x18')](_0x2234('0x20'),auth[_0x2234('0xa')](),controller[_0x2234('0x21')]);router[_0x2234('0x22')](_0x2234('0x23'),auth[_0x2234('0xa')](),controller[_0x2234('0x24')]);router[_0x2234('0x25')](_0x2234('0x23'),auth[_0x2234('0xa')](),controller[_0x2234('0x26')]);router[_0x2234('0x25')](_0x2234('0xe'),auth[_0x2234('0xa')](),controller[_0x2234('0x27')]);router[_0x2234('0x25')]('/:id/canned_answers',auth[_0x2234('0xa')](),controller[_0x2234('0x28')]);router[_0x2234('0x25')](_0x2234('0x16'),auth[_0x2234('0xa')](),controller[_0x2234('0x29')]);module[_0x2234('0x2a')]=router;