Built motion from commit (unavailable).|2.3.5
[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 _0x3c6d=['../../client','Request','GetDeskAccount','name','description','username','password','remoteUri','serverUrl','Configurations','DeskField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','Tags'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0x3c6d,0x190));var _0xd3c6=function(_0x596d3c,_0x5435b9){_0x596d3c=_0x596d3c-0x0;var _0x128b24=_0x3c6d[_0x596d3c];return _0x128b24;};'use strict';var client=require(_0xd3c6('0x0'));exports['getDeskAccounts']=function(){return function(_0x520c9a){return client[_0xd3c6('0x1')](_0xd3c6('0x2'),{'options':{'raw':![],'attributes':['id',_0xd3c6('0x3'),_0xd3c6('0x4'),_0xd3c6('0x5'),_0xd3c6('0x6'),_0xd3c6('0x7'),'authType','type',_0xd3c6('0x8')],'include':[{'model':'DeskConfiguration','as':_0xd3c6('0x9'),'attributes':['id','name'],'include':[{'model':_0xd3c6('0xa'),'as':_0xd3c6('0xb'),'attributes':['id',_0xd3c6('0xc'),_0xd3c6('0xd'),_0xd3c6('0xe')],'include':[{'model':_0xd3c6('0xf'),'as':_0xd3c6('0xf'),'attributes':['id',_0xd3c6('0x3')]}]},{'model':_0xd3c6('0xa'),'as':_0xd3c6('0x10'),'attributes':['id',_0xd3c6('0xc'),'content',_0xd3c6('0x11'),_0xd3c6('0x12'),_0xd3c6('0x13'),_0xd3c6('0xe')],'include':[{'model':_0xd3c6('0xf'),'as':_0xd3c6('0xf'),'attributes':['id','name']}]},{'model':_0xd3c6('0xa'),'as':_0xd3c6('0x14'),'attributes':['id','type',_0xd3c6('0xd'),_0xd3c6('0x15'),_0xd3c6('0x16'),_0xd3c6('0x17'),_0xd3c6('0xe')],'include':[{'model':_0xd3c6('0xf'),'as':_0xd3c6('0xf'),'attributes':['id',_0xd3c6('0x3')]}]},{'model':'Tag','as':_0xd3c6('0x18'),'attributes':['id',_0xd3c6('0x3')]}]}]},'log':_0xd3c6('0x2')});};};