Built motion from commit e1760111.|2.6.18
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0x8e8a=['DeskConfiguration','DeskField','Subjects','content','variableName','Variable','keyContent','Fields','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','password','remoteUri','authType','type','serverUrl'];(function(_0x4c7b5e,_0x4efbba){var _0x3f7e02=function(_0x1abf28){while(--_0x1abf28){_0x4c7b5e['push'](_0x4c7b5e['shift']());}};_0x3f7e02(++_0x4efbba);}(_0x8e8a,0x106));var _0xa8e8=function(_0x3bdbf5,_0x4bf2a3){_0x3bdbf5=_0x3bdbf5-0x0;var _0x8e05c6=_0x8e8a[_0x3bdbf5];return _0x8e05c6;};'use strict';var client=require(_0xa8e8('0x0'));exports[_0xa8e8('0x1')]=function(){return function(_0x46cfa8){return client[_0xa8e8('0x2')](_0xa8e8('0x3'),{'options':{'raw':![],'attributes':['id',_0xa8e8('0x4'),_0xa8e8('0x5'),'username',_0xa8e8('0x6'),_0xa8e8('0x7'),_0xa8e8('0x8'),_0xa8e8('0x9'),_0xa8e8('0xa')],'include':[{'model':_0xa8e8('0xb'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0xa8e8('0xc'),'as':_0xa8e8('0xd'),'attributes':['id','type',_0xa8e8('0xe'),_0xa8e8('0xf')],'include':[{'model':'Variable','as':_0xa8e8('0x10'),'attributes':['id',_0xa8e8('0x4')]}]},{'model':_0xa8e8('0xc'),'as':'Descriptions','attributes':['id',_0xa8e8('0x9'),'content','key','keyType',_0xa8e8('0x11'),_0xa8e8('0xf')],'include':[{'model':_0xa8e8('0x10'),'as':_0xa8e8('0x10'),'attributes':['id',_0xa8e8('0x4')]}]},{'model':_0xa8e8('0xc'),'as':_0xa8e8('0x12'),'attributes':['id','type','content','idField','nameField','customField',_0xa8e8('0xf')],'include':[{'model':_0xa8e8('0x10'),'as':_0xa8e8('0x10'),'attributes':['id',_0xa8e8('0x4')]}]},{'model':_0xa8e8('0x13'),'as':_0xa8e8('0x14'),'attributes':['id',_0xa8e8('0x4')]}]}]},'log':'GetDeskAccount'});};};