101f9e52756f38bc88832bc8c33f8ccecf4f6534
[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 _0xdc41=['Descriptions','key','keyContent','Fields','content','idField','nameField','customField','GetZendeskAccount','../../client','getZendeskAccounts','Request','name','username','password','token','remoteUri','authType','serverUrl','ZendeskConfiguration','Configurations','Tag','ZendeskField','type','variableName','Variable'];(function(_0x208bc9,_0x4f36f6){var _0x2675a8=function(_0x452e72){while(--_0x452e72){_0x208bc9['push'](_0x208bc9['shift']());}};_0x2675a8(++_0x4f36f6);}(_0xdc41,0x127));var _0x1dc4=function(_0x5b3c56,_0x3de089){_0x5b3c56=_0x5b3c56-0x0;var _0x5091f0=_0xdc41[_0x5b3c56];return _0x5091f0;};'use strict';var client=require(_0x1dc4('0x0'));exports[_0x1dc4('0x1')]=function(){return function(_0x1e853a){return client[_0x1dc4('0x2')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x1dc4('0x3'),_0x1dc4('0x4'),_0x1dc4('0x5'),_0x1dc4('0x6'),_0x1dc4('0x7'),_0x1dc4('0x8'),_0x1dc4('0x9'),'type'],'include':[{'model':_0x1dc4('0xa'),'as':_0x1dc4('0xb'),'attributes':['id',_0x1dc4('0x3')],'include':[{'model':_0x1dc4('0xc'),'attributes':['id','name']},{'model':_0x1dc4('0xd'),'as':'Subjects','attributes':['id',_0x1dc4('0xe'),'content',_0x1dc4('0xf')],'include':[{'model':_0x1dc4('0x10'),'as':_0x1dc4('0x10'),'attributes':['id',_0x1dc4('0x3')]}]},{'model':'ZendeskField','as':_0x1dc4('0x11'),'attributes':['id',_0x1dc4('0xe'),'content',_0x1dc4('0x12'),'keyType',_0x1dc4('0x13'),_0x1dc4('0xf')],'include':[{'model':_0x1dc4('0x10'),'as':_0x1dc4('0x10'),'attributes':['id',_0x1dc4('0x3')]}]},{'model':_0x1dc4('0xd'),'as':_0x1dc4('0x14'),'attributes':['id',_0x1dc4('0xe'),_0x1dc4('0x15'),_0x1dc4('0x16'),_0x1dc4('0x17'),_0x1dc4('0x18'),_0x1dc4('0xf')],'include':[{'model':_0x1dc4('0x10'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x1dc4('0x19')});};};