Built motion from commit (unavailable).|2.5.26
[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 _0x1376=['../../client','Request','name','username','password','token','remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','ZendeskField','Subjects','content','variableName','Variable','Descriptions','keyType','keyContent','idField','nameField','GetZendeskAccount'];(function(_0x3a57a6,_0x453e4a){var _0xacdff2=function(_0x4c7f30){while(--_0x4c7f30){_0x3a57a6['push'](_0x3a57a6['shift']());}};_0xacdff2(++_0x453e4a);}(_0x1376,0x114));var _0x6137=function(_0x4c189b,_0x2e71e4){_0x4c189b=_0x4c189b-0x0;var _0x180ede=_0x1376[_0x4c189b];return _0x180ede;};'use strict';var client=require(_0x6137('0x0'));exports['getZendeskAccounts']=function(){return function(_0x58b0c0){return client[_0x6137('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0x6137('0x2'),_0x6137('0x3'),_0x6137('0x4'),_0x6137('0x5'),_0x6137('0x6'),_0x6137('0x7'),_0x6137('0x8'),_0x6137('0x9')],'include':[{'model':_0x6137('0xa'),'as':_0x6137('0xb'),'attributes':['id',_0x6137('0x2')],'include':[{'model':'Tag','attributes':['id',_0x6137('0x2')]},{'model':_0x6137('0xc'),'as':_0x6137('0xd'),'attributes':['id',_0x6137('0x9'),_0x6137('0xe'),_0x6137('0xf')],'include':[{'model':'Variable','as':_0x6137('0x10'),'attributes':['id',_0x6137('0x2')]}]},{'model':_0x6137('0xc'),'as':_0x6137('0x11'),'attributes':['id',_0x6137('0x9'),_0x6137('0xe'),'key',_0x6137('0x12'),_0x6137('0x13'),_0x6137('0xf')],'include':[{'model':_0x6137('0x10'),'as':_0x6137('0x10'),'attributes':['id',_0x6137('0x2')]}]},{'model':'ZendeskField','as':'Fields','attributes':['id',_0x6137('0x9'),_0x6137('0xe'),_0x6137('0x14'),_0x6137('0x15'),'customField',_0x6137('0xf')],'include':[{'model':_0x6137('0x10'),'as':_0x6137('0x10'),'attributes':['id',_0x6137('0x2')]}]}]}]},'log':_0x6137('0x16')});};};