Built motion from commit ffdca78c.|2.6.24
[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 _0x26db=['remoteUri','authType','serverUrl','type','ZendeskConfiguration','Configurations','Tag','Subjects','variableName','Variable','Descriptions','content','keyType','ZendeskField','Fields','nameField','customField','../../client','Request','GetZendeskAccount','name','username','password','token'];(function(_0x5e8430,_0x16c192){var _0x5b61a0=function(_0x26f84b){while(--_0x26f84b){_0x5e8430['push'](_0x5e8430['shift']());}};_0x5b61a0(++_0x16c192);}(_0x26db,0x149));var _0xb26d=function(_0x5251f5,_0x10264c){_0x5251f5=_0x5251f5-0x0;var _0x4b9f81=_0x26db[_0x5251f5];return _0x4b9f81;};'use strict';var client=require(_0xb26d('0x0'));exports['getZendeskAccounts']=function(){return function(_0x40834f){return client[_0xb26d('0x1')](_0xb26d('0x2'),{'options':{'raw':![],'attributes':['id',_0xb26d('0x3'),_0xb26d('0x4'),_0xb26d('0x5'),_0xb26d('0x6'),_0xb26d('0x7'),_0xb26d('0x8'),_0xb26d('0x9'),_0xb26d('0xa')],'include':[{'model':_0xb26d('0xb'),'as':_0xb26d('0xc'),'attributes':['id',_0xb26d('0x3')],'include':[{'model':_0xb26d('0xd'),'attributes':['id',_0xb26d('0x3')]},{'model':'ZendeskField','as':_0xb26d('0xe'),'attributes':['id',_0xb26d('0xa'),'content',_0xb26d('0xf')],'include':[{'model':_0xb26d('0x10'),'as':_0xb26d('0x10'),'attributes':['id',_0xb26d('0x3')]}]},{'model':'ZendeskField','as':_0xb26d('0x11'),'attributes':['id',_0xb26d('0xa'),_0xb26d('0x12'),'key',_0xb26d('0x13'),'keyContent',_0xb26d('0xf')],'include':[{'model':_0xb26d('0x10'),'as':_0xb26d('0x10'),'attributes':['id',_0xb26d('0x3')]}]},{'model':_0xb26d('0x14'),'as':_0xb26d('0x15'),'attributes':['id','type',_0xb26d('0x12'),'idField',_0xb26d('0x16'),_0xb26d('0x17'),_0xb26d('0xf')],'include':[{'model':_0xb26d('0x10'),'as':'Variable','attributes':['id',_0xb26d('0x3')]}]}]}]},'log':'GetZendeskAccount'});};};