728fcbfac93d3bee711f07e88fb820085fb8cdd0
[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 _0x5bf5=['keyContent','Fields','nameField','customField','GetZendeskAccount','../../client','Request','name','password','token','remoteUri','serverUrl','type','ZendeskConfiguration','Configurations','Tag','ZendeskField','Subjects','variableName','Variable','Descriptions','content','key','keyType'];(function(_0x28b56e,_0xca202c){var _0x3dce9f=function(_0x254dc2){while(--_0x254dc2){_0x28b56e['push'](_0x28b56e['shift']());}};_0x3dce9f(++_0xca202c);}(_0x5bf5,0x13d));var _0x55bf=function(_0x5b26c3,_0xd4e9b2){_0x5b26c3=_0x5b26c3-0x0;var _0x51a88c=_0x5bf5[_0x5b26c3];return _0x51a88c;};'use strict';var client=require(_0x55bf('0x0'));exports['getZendeskAccounts']=function(){return function(_0x4872ad){return client[_0x55bf('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x55bf('0x2'),'username',_0x55bf('0x3'),_0x55bf('0x4'),_0x55bf('0x5'),'authType',_0x55bf('0x6'),_0x55bf('0x7')],'include':[{'model':_0x55bf('0x8'),'as':_0x55bf('0x9'),'attributes':['id','name'],'include':[{'model':_0x55bf('0xa'),'attributes':['id','name']},{'model':_0x55bf('0xb'),'as':_0x55bf('0xc'),'attributes':['id',_0x55bf('0x7'),'content',_0x55bf('0xd')],'include':[{'model':'Variable','as':_0x55bf('0xe'),'attributes':['id',_0x55bf('0x2')]}]},{'model':_0x55bf('0xb'),'as':_0x55bf('0xf'),'attributes':['id',_0x55bf('0x7'),_0x55bf('0x10'),_0x55bf('0x11'),_0x55bf('0x12'),_0x55bf('0x13'),_0x55bf('0xd')],'include':[{'model':_0x55bf('0xe'),'as':_0x55bf('0xe'),'attributes':['id','name']}]},{'model':_0x55bf('0xb'),'as':_0x55bf('0x14'),'attributes':['id',_0x55bf('0x7'),_0x55bf('0x10'),'idField',_0x55bf('0x15'),_0x55bf('0x16'),_0x55bf('0xd')],'include':[{'model':_0x55bf('0xe'),'as':'Variable','attributes':['id',_0x55bf('0x2')]}]}]}]},'log':_0x55bf('0x17')});};};