Built motion from commit (unavailable).|2.5.31
[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 _0xb10b=['idField','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','username','password','remoteUri','authType','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','type','content','variableName','Variable','key','keyType','Fields'];(function(_0x15ceb7,_0x961934){var _0x1d9eaa=function(_0x532231){while(--_0x532231){_0x15ceb7['push'](_0x15ceb7['shift']());}};_0x1d9eaa(++_0x961934);}(_0xb10b,0x92));var _0xbb10=function(_0x55de81,_0x1ebe60){_0x55de81=_0x55de81-0x0;var _0x21d6e6=_0xb10b[_0x55de81];return _0x21d6e6;};'use strict';var client=require(_0xbb10('0x0'));exports[_0xbb10('0x1')]=function(){return function(_0x560022){return client[_0xbb10('0x2')](_0xbb10('0x3'),{'options':{'raw':![],'attributes':['id',_0xbb10('0x4'),_0xbb10('0x5'),_0xbb10('0x6'),_0xbb10('0x7'),_0xbb10('0x8'),_0xbb10('0x9'),'type',_0xbb10('0xa')],'include':[{'model':_0xbb10('0xb'),'as':_0xbb10('0xc'),'attributes':['id','name'],'include':[{'model':_0xbb10('0xd'),'as':_0xbb10('0xe'),'attributes':['id',_0xbb10('0xf'),_0xbb10('0x10'),_0xbb10('0x11')],'include':[{'model':_0xbb10('0x12'),'as':'Variable','attributes':['id','name']}]},{'model':_0xbb10('0xd'),'as':'Descriptions','attributes':['id',_0xbb10('0xf'),_0xbb10('0x10'),_0xbb10('0x13'),_0xbb10('0x14'),'keyContent',_0xbb10('0x11')],'include':[{'model':_0xbb10('0x12'),'as':_0xbb10('0x12'),'attributes':['id',_0xbb10('0x4')]}]},{'model':_0xbb10('0xd'),'as':_0xbb10('0x15'),'attributes':['id','type','content',_0xbb10('0x16'),'nameField','customField',_0xbb10('0x11')],'include':[{'model':_0xbb10('0x12'),'as':'Variable','attributes':['id',_0xbb10('0x4')]}]},{'model':'Tag','as':_0xbb10('0x17'),'attributes':['id','name']}]}]},'log':_0xbb10('0x3')});};};