Built motion from commit (unavailable).|2.5.11
[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 _0xda9b=['Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','Tag','Tags','GetDeskAccount','../../client','Request','name','description','username','password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content','variableName'];(function(_0x5866ee,_0x2714d3){var _0x1ccd4f=function(_0x3a96d8){while(--_0x3a96d8){_0x5866ee['push'](_0x5866ee['shift']());}};_0x1ccd4f(++_0x2714d3);}(_0xda9b,0x16a));var _0xbda9=function(_0x533bd3,_0x1c84b4){_0x533bd3=_0x533bd3-0x0;var _0x5e129a=_0xda9b[_0x533bd3];return _0x5e129a;};'use strict';var client=require(_0xbda9('0x0'));exports['getDeskAccounts']=function(){return function(_0x526311){return client[_0xbda9('0x1')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xbda9('0x2'),_0xbda9('0x3'),_0xbda9('0x4'),_0xbda9('0x5'),_0xbda9('0x6'),_0xbda9('0x7'),_0xbda9('0x8'),_0xbda9('0x9')],'include':[{'model':_0xbda9('0xa'),'as':_0xbda9('0xb'),'attributes':['id',_0xbda9('0x2')],'include':[{'model':_0xbda9('0xc'),'as':_0xbda9('0xd'),'attributes':['id',_0xbda9('0x8'),_0xbda9('0xe'),_0xbda9('0xf')],'include':[{'model':_0xbda9('0x10'),'as':_0xbda9('0x10'),'attributes':['id',_0xbda9('0x2')]}]},{'model':_0xbda9('0xc'),'as':_0xbda9('0x11'),'attributes':['id',_0xbda9('0x8'),_0xbda9('0xe'),_0xbda9('0x12'),_0xbda9('0x13'),_0xbda9('0x14'),_0xbda9('0xf')],'include':[{'model':_0xbda9('0x10'),'as':_0xbda9('0x10'),'attributes':['id',_0xbda9('0x2')]}]},{'model':_0xbda9('0xc'),'as':_0xbda9('0x15'),'attributes':['id',_0xbda9('0x8'),'content',_0xbda9('0x16'),_0xbda9('0x17'),'customField',_0xbda9('0xf')],'include':[{'model':_0xbda9('0x10'),'as':_0xbda9('0x10'),'attributes':['id',_0xbda9('0x2')]}]},{'model':_0xbda9('0x18'),'as':_0xbda9('0x19'),'attributes':['id',_0xbda9('0x2')]}]}]},'log':_0xbda9('0x1a')});};};