Built motion from commit 1fa89557.|2.6.10
[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 _0xa70c=['GetZendeskAccount','username','token','authType','serverUrl','type','Configurations','name','Tag','ZendeskField','Subjects','content','variableName','Variable','key','keyType','keyContent','Fields','idField','nameField','customField','../../client','getZendeskAccounts','Request'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xa70c,0xbd));var _0xca70=function(_0xb77d35,_0x291854){_0xb77d35=_0xb77d35-0x0;var _0x5389a8=_0xa70c[_0xb77d35];return _0x5389a8;};'use strict';var client=require(_0xca70('0x0'));exports[_0xca70('0x1')]=function(){return function(_0x497228){return client[_0xca70('0x2')](_0xca70('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xca70('0x4'),'password',_0xca70('0x5'),'remoteUri',_0xca70('0x6'),_0xca70('0x7'),_0xca70('0x8')],'include':[{'model':'ZendeskConfiguration','as':_0xca70('0x9'),'attributes':['id',_0xca70('0xa')],'include':[{'model':_0xca70('0xb'),'attributes':['id',_0xca70('0xa')]},{'model':_0xca70('0xc'),'as':_0xca70('0xd'),'attributes':['id',_0xca70('0x8'),_0xca70('0xe'),_0xca70('0xf')],'include':[{'model':_0xca70('0x10'),'as':_0xca70('0x10'),'attributes':['id','name']}]},{'model':_0xca70('0xc'),'as':'Descriptions','attributes':['id',_0xca70('0x8'),_0xca70('0xe'),_0xca70('0x11'),_0xca70('0x12'),_0xca70('0x13'),_0xca70('0xf')],'include':[{'model':_0xca70('0x10'),'as':_0xca70('0x10'),'attributes':['id',_0xca70('0xa')]}]},{'model':_0xca70('0xc'),'as':_0xca70('0x14'),'attributes':['id',_0xca70('0x8'),'content',_0xca70('0x15'),_0xca70('0x16'),_0xca70('0x17'),_0xca70('0xf')],'include':[{'model':_0xca70('0x10'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0xca70('0x3')});};};