Built motion from commit 25580385.|2.6.2
[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 _0x4fce=['username','password','token','remoteUri','serverUrl','type','ZendeskConfiguration','Tag','ZendeskField','Subjects','content','variableName','key','keyType','keyContent','Variable','Fields','idField','nameField','customField','../../client','getZendeskAccounts','GetZendeskAccount','name'];(function(_0x46a671,_0x758e9a){var _0x526d75=function(_0xde3640){while(--_0xde3640){_0x46a671['push'](_0x46a671['shift']());}};_0x526d75(++_0x758e9a);}(_0x4fce,0x74));var _0xe4fc=function(_0x1785cb,_0x39a964){_0x1785cb=_0x1785cb-0x0;var _0x3bba22=_0x4fce[_0x1785cb];return _0x3bba22;};'use strict';var client=require(_0xe4fc('0x0'));exports[_0xe4fc('0x1')]=function(){return function(_0x31ae5c){return client['Request'](_0xe4fc('0x2'),{'options':{'raw':![],'attributes':['id',_0xe4fc('0x3'),_0xe4fc('0x4'),_0xe4fc('0x5'),_0xe4fc('0x6'),_0xe4fc('0x7'),'authType',_0xe4fc('0x8'),_0xe4fc('0x9')],'include':[{'model':_0xe4fc('0xa'),'as':'Configurations','attributes':['id',_0xe4fc('0x3')],'include':[{'model':_0xe4fc('0xb'),'attributes':['id','name']},{'model':_0xe4fc('0xc'),'as':_0xe4fc('0xd'),'attributes':['id',_0xe4fc('0x9'),_0xe4fc('0xe'),_0xe4fc('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xe4fc('0x3')]}]},{'model':_0xe4fc('0xc'),'as':'Descriptions','attributes':['id','type',_0xe4fc('0xe'),_0xe4fc('0x10'),_0xe4fc('0x11'),_0xe4fc('0x12'),_0xe4fc('0xf')],'include':[{'model':_0xe4fc('0x13'),'as':'Variable','attributes':['id',_0xe4fc('0x3')]}]},{'model':'ZendeskField','as':_0xe4fc('0x14'),'attributes':['id',_0xe4fc('0x9'),_0xe4fc('0xe'),_0xe4fc('0x15'),_0xe4fc('0x16'),_0xe4fc('0x17'),_0xe4fc('0xf')],'include':[{'model':_0xe4fc('0x13'),'as':_0xe4fc('0x13'),'attributes':['id',_0xe4fc('0x3')]}]}]}]},'log':_0xe4fc('0x2')});};};