Built motion from commit 9d1906d1.|2.5.40
[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 _0x2788=['type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','Fields','idField','nameField','customField','Tag','Tags','../../client','GetDeskAccount','name','username','password','remoteUri','authType'];(function(_0x177dbd,_0x4c0429){var _0x59a4cb=function(_0x6a8632){while(--_0x6a8632){_0x177dbd['push'](_0x177dbd['shift']());}};_0x59a4cb(++_0x4c0429);}(_0x2788,0xc1));var _0x8278=function(_0x30dabd,_0x405dde){_0x30dabd=_0x30dabd-0x0;var _0x2cde2c=_0x2788[_0x30dabd];return _0x2cde2c;};'use strict';var client=require(_0x8278('0x0'));exports['getDeskAccounts']=function(){return function(_0xe1358d){return client['Request'](_0x8278('0x1'),{'options':{'raw':![],'attributes':['id',_0x8278('0x2'),'description',_0x8278('0x3'),_0x8278('0x4'),_0x8278('0x5'),_0x8278('0x6'),_0x8278('0x7'),_0x8278('0x8')],'include':[{'model':_0x8278('0x9'),'as':_0x8278('0xa'),'attributes':['id',_0x8278('0x2')],'include':[{'model':_0x8278('0xb'),'as':_0x8278('0xc'),'attributes':['id','type',_0x8278('0xd'),_0x8278('0xe')],'include':[{'model':_0x8278('0xf'),'as':_0x8278('0xf'),'attributes':['id',_0x8278('0x2')]}]},{'model':_0x8278('0xb'),'as':_0x8278('0x10'),'attributes':['id',_0x8278('0x7'),_0x8278('0xd'),_0x8278('0x11'),_0x8278('0x12'),'keyContent',_0x8278('0xe')],'include':[{'model':'Variable','as':_0x8278('0xf'),'attributes':['id',_0x8278('0x2')]}]},{'model':'DeskField','as':_0x8278('0x13'),'attributes':['id',_0x8278('0x7'),_0x8278('0xd'),_0x8278('0x14'),_0x8278('0x15'),_0x8278('0x16'),_0x8278('0xe')],'include':[{'model':_0x8278('0xf'),'as':_0x8278('0xf'),'attributes':['id',_0x8278('0x2')]}]},{'model':_0x8278('0x17'),'as':_0x8278('0x18'),'attributes':['id',_0x8278('0x2')]}]}]},'log':_0x8278('0x1')});};};