87a19bbc278f184b34788ed11575d7ae23967528
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x3239=['GetVtigerAccount','description','username','accessKey','remoteUri','serverUrl','Configurations','VtigerField','Subjects','type','variableName','Variable','name','content','key','keyType','keyContent','Fields','idField','nameField','../../client','getVtigerAccounts','Request'];(function(_0x76d2ec,_0x45ea7c){var _0x540bdc=function(_0xf4d00a){while(--_0xf4d00a){_0x76d2ec['push'](_0x76d2ec['shift']());}};_0x540bdc(++_0x45ea7c);}(_0x3239,0xcc));var _0x9323=function(_0x28285b,_0x9ca61a){_0x28285b=_0x28285b-0x0;var _0x137f9a=_0x3239[_0x28285b];return _0x137f9a;};'use strict';var client=require(_0x9323('0x0'));exports[_0x9323('0x1')]=function(){return function(_0x4bc9ea){return client[_0x9323('0x2')](_0x9323('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x9323('0x4'),_0x9323('0x5'),_0x9323('0x6'),_0x9323('0x7'),_0x9323('0x8')],'include':[{'model':'VtigerConfiguration','as':_0x9323('0x9'),'attributes':['id','name'],'include':[{'model':_0x9323('0xa'),'as':_0x9323('0xb'),'attributes':['id',_0x9323('0xc'),'content',_0x9323('0xd')],'include':[{'model':'Variable','as':_0x9323('0xe'),'attributes':['id',_0x9323('0xf')]}]},{'model':_0x9323('0xa'),'as':'Descriptions','attributes':['id',_0x9323('0xc'),_0x9323('0x10'),_0x9323('0x11'),_0x9323('0x12'),_0x9323('0x13'),'variableName'],'include':[{'model':'Variable','as':_0x9323('0xe'),'attributes':['id',_0x9323('0xf')]}]},{'model':_0x9323('0xa'),'as':_0x9323('0x14'),'attributes':['id',_0x9323('0xc'),_0x9323('0x10'),_0x9323('0x15'),_0x9323('0x16'),'customField',_0x9323('0xd')],'include':[{'model':_0x9323('0xe'),'as':_0x9323('0xe'),'attributes':['id',_0x9323('0xf')]}]}]}]},'log':'GetVtigerAccount'});};};