Built motion from commit (unavailable).|2.5.11
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0xd5b8=['ZendeskConfiguration','Configurations','name','Tag','ZendeskField','Subjects','content','variableName','Variable','key','keyType','Fields','getZendeskAccounts','Request','GetZendeskAccount','password','token','serverUrl','type'];(function(_0x57a2c3,_0x1e4a81){var _0x11f127=function(_0x4e0821){while(--_0x4e0821){_0x57a2c3['push'](_0x57a2c3['shift']());}};_0x11f127(++_0x1e4a81);}(_0xd5b8,0x7e));var _0x8d5b=function(_0x3be34b,_0x4a891c){_0x3be34b=_0x3be34b-0x0;var _0x4326fa=_0xd5b8[_0x3be34b];return _0x4326fa;};'use strict';var client=require('../../client');exports[_0x8d5b('0x0')]=function(){return function(_0xc97c06){return client[_0x8d5b('0x1')](_0x8d5b('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0x8d5b('0x3'),_0x8d5b('0x4'),'remoteUri','authType',_0x8d5b('0x5'),_0x8d5b('0x6')],'include':[{'model':_0x8d5b('0x7'),'as':_0x8d5b('0x8'),'attributes':['id',_0x8d5b('0x9')],'include':[{'model':_0x8d5b('0xa'),'attributes':['id',_0x8d5b('0x9')]},{'model':_0x8d5b('0xb'),'as':_0x8d5b('0xc'),'attributes':['id',_0x8d5b('0x6'),_0x8d5b('0xd'),_0x8d5b('0xe')],'include':[{'model':_0x8d5b('0xf'),'as':_0x8d5b('0xf'),'attributes':['id',_0x8d5b('0x9')]}]},{'model':'ZendeskField','as':'Descriptions','attributes':['id','type',_0x8d5b('0xd'),_0x8d5b('0x10'),_0x8d5b('0x11'),'keyContent',_0x8d5b('0xe')],'include':[{'model':'Variable','as':_0x8d5b('0xf'),'attributes':['id',_0x8d5b('0x9')]}]},{'model':_0x8d5b('0xb'),'as':_0x8d5b('0x12'),'attributes':['id',_0x8d5b('0x6'),_0x8d5b('0xd'),'idField','nameField','customField',_0x8d5b('0xe')],'include':[{'model':_0x8d5b('0xf'),'as':_0x8d5b('0xf'),'attributes':['id','name']}]}]}]},'log':_0x8d5b('0x2')});};};