0bb65c4c9cc9f1d2e6162c0869cbea26bd7b68b2
[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 _0x7a54=['variableName','VtigerField','Descriptions','content','keyContent','Variable','Fields','idField','nameField','customField','../../client','getVtigerAccounts','GetVtigerAccount','name','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Subjects','type'];(function(_0x2c6e89,_0x348764){var _0x5b8ad5=function(_0x42286a){while(--_0x42286a){_0x2c6e89['push'](_0x2c6e89['shift']());}};_0x5b8ad5(++_0x348764);}(_0x7a54,0x106));var _0x47a5=function(_0x3ffe54,_0x4d122f){_0x3ffe54=_0x3ffe54-0x0;var _0x4e459a=_0x7a54[_0x3ffe54];return _0x4e459a;};'use strict';var client=require(_0x47a5('0x0'));exports[_0x47a5('0x1')]=function(){return function(_0x44b31e){return client['Request'](_0x47a5('0x2'),{'options':{'raw':![],'attributes':['id',_0x47a5('0x3'),'description',_0x47a5('0x4'),_0x47a5('0x5'),_0x47a5('0x6'),_0x47a5('0x7')],'include':[{'model':_0x47a5('0x8'),'as':'Configurations','attributes':['id',_0x47a5('0x3')],'include':[{'model':'VtigerField','as':_0x47a5('0x9'),'attributes':['id',_0x47a5('0xa'),'content',_0x47a5('0xb')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x47a5('0xc'),'as':_0x47a5('0xd'),'attributes':['id','type',_0x47a5('0xe'),'key','keyType',_0x47a5('0xf'),_0x47a5('0xb')],'include':[{'model':_0x47a5('0x10'),'as':_0x47a5('0x10'),'attributes':['id',_0x47a5('0x3')]}]},{'model':_0x47a5('0xc'),'as':_0x47a5('0x11'),'attributes':['id','type',_0x47a5('0xe'),_0x47a5('0x12'),_0x47a5('0x13'),_0x47a5('0x14'),_0x47a5('0xb')],'include':[{'model':_0x47a5('0x10'),'as':_0x47a5('0x10'),'attributes':['id',_0x47a5('0x3')]}]}]}]},'log':'GetVtigerAccount'});};};