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