Built motion from commit eddce310.|2.6.12
[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 _0x2c5a=['password','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','name','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','Tag','Tags','../../client','Request','GetDeskAccount','username'];(function(_0x4ab27b,_0x2aff79){var _0xecb87f=function(_0x3db6a9){while(--_0x3db6a9){_0x4ab27b['push'](_0x4ab27b['shift']());}};_0xecb87f(++_0x2aff79);}(_0x2c5a,0x176));var _0xa2c5=function(_0x3dfdf5,_0x1f3c80){_0x3dfdf5=_0x3dfdf5-0x0;var _0x1126e9=_0x2c5a[_0x3dfdf5];return _0x1126e9;};'use strict';var client=require(_0xa2c5('0x0'));exports['getDeskAccounts']=function(){return function(_0x50bb6d){return client[_0xa2c5('0x1')](_0xa2c5('0x2'),{'options':{'raw':![],'attributes':['id','name','description',_0xa2c5('0x3'),_0xa2c5('0x4'),_0xa2c5('0x5'),_0xa2c5('0x6'),_0xa2c5('0x7'),_0xa2c5('0x8')],'include':[{'model':_0xa2c5('0x9'),'as':_0xa2c5('0xa'),'attributes':['id',_0xa2c5('0xb')],'include':[{'model':_0xa2c5('0xc'),'as':_0xa2c5('0xd'),'attributes':['id','type',_0xa2c5('0xe'),_0xa2c5('0xf')],'include':[{'model':_0xa2c5('0x10'),'as':_0xa2c5('0x10'),'attributes':['id','name']}]},{'model':_0xa2c5('0xc'),'as':_0xa2c5('0x11'),'attributes':['id',_0xa2c5('0x7'),_0xa2c5('0xe'),_0xa2c5('0x12'),_0xa2c5('0x13'),_0xa2c5('0x14'),'variableName'],'include':[{'model':'Variable','as':_0xa2c5('0x10'),'attributes':['id','name']}]},{'model':_0xa2c5('0xc'),'as':_0xa2c5('0x15'),'attributes':['id','type',_0xa2c5('0xe'),_0xa2c5('0x16'),_0xa2c5('0x17'),_0xa2c5('0x18'),_0xa2c5('0xf')],'include':[{'model':'Variable','as':_0xa2c5('0x10'),'attributes':['id',_0xa2c5('0xb')]}]},{'model':_0xa2c5('0x19'),'as':_0xa2c5('0x1a'),'attributes':['id','name']}]}]},'log':_0xa2c5('0x2')});};};