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