Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0xaa16=['Configurations','moduleSearch','ZohoField','Subjects','type','variableName','Variable','Descriptions','content','key','keyType','keyContent','Fields','idField','nameField','customField','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','code'];(function(_0x7df286,_0x144438){var _0x196caa=function(_0x1ea57b){while(--_0x1ea57b){_0x7df286['push'](_0x7df286['shift']());}};_0x196caa(++_0x144438);}(_0xaa16,0x103));var _0x6aa1=function(_0x4a7b64,_0x16733c){_0x4a7b64=_0x4a7b64-0x0;var _0x500da6=_0xaa16[_0x4a7b64];return _0x500da6;};'use strict';var client=require('../../client');exports[_0x6aa1('0x0')]=function(){return function(_0x528262){return client[_0x6aa1('0x1')](_0x6aa1('0x2'),{'options':{'raw':![],'attributes':['id',_0x6aa1('0x3'),_0x6aa1('0x4'),_0x6aa1('0x5'),_0x6aa1('0x6'),_0x6aa1('0x7'),_0x6aa1('0x8'),_0x6aa1('0x9'),_0x6aa1('0xa'),'refreshToken'],'include':[{'model':'ZohoConfiguration','as':_0x6aa1('0xb'),'attributes':['id',_0x6aa1('0x3'),'moduleCreate',_0x6aa1('0xc'),_0x6aa1('0x4')],'include':[{'model':_0x6aa1('0xd'),'as':_0x6aa1('0xe'),'attributes':['id',_0x6aa1('0xf'),'content',_0x6aa1('0x10')],'include':[{'model':_0x6aa1('0x11'),'as':_0x6aa1('0x11'),'attributes':['id','name']}]},{'model':_0x6aa1('0xd'),'as':_0x6aa1('0x12'),'attributes':['id',_0x6aa1('0xf'),_0x6aa1('0x13'),_0x6aa1('0x14'),_0x6aa1('0x15'),_0x6aa1('0x16'),_0x6aa1('0x10')],'include':[{'model':_0x6aa1('0x11'),'as':_0x6aa1('0x11'),'attributes':['id',_0x6aa1('0x3')]}]},{'model':_0x6aa1('0xd'),'as':_0x6aa1('0x17'),'attributes':['id','type',_0x6aa1('0x13'),_0x6aa1('0x18'),_0x6aa1('0x19'),_0x6aa1('0x1a'),_0x6aa1('0x10')],'include':[{'model':'Variable','as':_0x6aa1('0x11'),'attributes':['id','name']}]}]}]},'log':'GetZohoAccount'});};};