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