Built motion from commit e6806ed6.|2.6.0
[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 _0x5eda=['DeskConfiguration','Configurations','Subjects','type','variableName','Variable','DeskField','Descriptions','keyType','Fields','content','nameField','customField','Tag','Tags','getDeskAccounts','Request','GetDeskAccount','name','description','username','password','remoteUri','authType','serverUrl'];(function(_0x82140,_0x3a9d87){var _0x2b15a6=function(_0x2b565e){while(--_0x2b565e){_0x82140['push'](_0x82140['shift']());}};_0x2b15a6(++_0x3a9d87);}(_0x5eda,0xbe));var _0xa5ed=function(_0x11e768,_0x5e6902){_0x11e768=_0x11e768-0x0;var _0x121d82=_0x5eda[_0x11e768];return _0x121d82;};'use strict';var client=require('../../client');exports[_0xa5ed('0x0')]=function(){return function(_0x209f01){return client[_0xa5ed('0x1')](_0xa5ed('0x2'),{'options':{'raw':![],'attributes':['id',_0xa5ed('0x3'),_0xa5ed('0x4'),_0xa5ed('0x5'),_0xa5ed('0x6'),_0xa5ed('0x7'),_0xa5ed('0x8'),'type',_0xa5ed('0x9')],'include':[{'model':_0xa5ed('0xa'),'as':_0xa5ed('0xb'),'attributes':['id',_0xa5ed('0x3')],'include':[{'model':'DeskField','as':_0xa5ed('0xc'),'attributes':['id',_0xa5ed('0xd'),'content',_0xa5ed('0xe')],'include':[{'model':_0xa5ed('0xf'),'as':'Variable','attributes':['id',_0xa5ed('0x3')]}]},{'model':_0xa5ed('0x10'),'as':_0xa5ed('0x11'),'attributes':['id',_0xa5ed('0xd'),'content','key',_0xa5ed('0x12'),'keyContent','variableName'],'include':[{'model':'Variable','as':_0xa5ed('0xf'),'attributes':['id','name']}]},{'model':_0xa5ed('0x10'),'as':_0xa5ed('0x13'),'attributes':['id',_0xa5ed('0xd'),_0xa5ed('0x14'),'idField',_0xa5ed('0x15'),_0xa5ed('0x16'),_0xa5ed('0xe')],'include':[{'model':_0xa5ed('0xf'),'as':_0xa5ed('0xf'),'attributes':['id',_0xa5ed('0x3')]}]},{'model':_0xa5ed('0x17'),'as':_0xa5ed('0x18'),'attributes':['id',_0xa5ed('0x3')]}]}]},'log':_0xa5ed('0x2')});};};