Built motion from commit (unavailable).|2.4.4
[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 _0x142c=['Tag','../../client','Request','GetDeskAccount','description','username','authType','serverUrl','Configurations','name','DeskField','content','variableName','type','key','keyContent','Variable','Fields','nameField'];(function(_0x3d280f,_0x35a502){var _0xd1626d=function(_0x1d45bf){while(--_0x1d45bf){_0x3d280f['push'](_0x3d280f['shift']());}};_0xd1626d(++_0x35a502);}(_0x142c,0x86));var _0xc142=function(_0x330d8c,_0x477d0a){_0x330d8c=_0x330d8c-0x0;var _0x38ec91=_0x142c[_0x330d8c];return _0x38ec91;};'use strict';var client=require(_0xc142('0x0'));exports['getDeskAccounts']=function(){return function(_0x434cec){return client[_0xc142('0x1')](_0xc142('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xc142('0x3'),_0xc142('0x4'),'password','remoteUri',_0xc142('0x5'),'type',_0xc142('0x6')],'include':[{'model':'DeskConfiguration','as':_0xc142('0x7'),'attributes':['id',_0xc142('0x8')],'include':[{'model':_0xc142('0x9'),'as':'Subjects','attributes':['id','type',_0xc142('0xa'),_0xc142('0xb')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xc142('0x8')]}]},{'model':_0xc142('0x9'),'as':'Descriptions','attributes':['id',_0xc142('0xc'),'content',_0xc142('0xd'),'keyType',_0xc142('0xe'),_0xc142('0xb')],'include':[{'model':_0xc142('0xf'),'as':_0xc142('0xf'),'attributes':['id','name']}]},{'model':_0xc142('0x9'),'as':_0xc142('0x10'),'attributes':['id','type',_0xc142('0xa'),'idField',_0xc142('0x11'),'customField','variableName'],'include':[{'model':_0xc142('0xf'),'as':_0xc142('0xf'),'attributes':['id',_0xc142('0x8')]}]},{'model':_0xc142('0x12'),'as':'Tags','attributes':['id',_0xc142('0x8')]}]}]},'log':_0xc142('0x2')});};};