d9a8b401c4d4d5edbbe2d01f151c07b265b03ba7
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0xed90=['bluebird','path','rimraf','../../config/environment','./intZohoField.attributes','exports','ZohoField','int_zoho_fields','zoho_unique_index','idField','FieldId','lodash','util','../../config/logger','api','moment'];(function(_0x3990a7,_0x598f36){var _0x28b1da=function(_0x5062f2){while(--_0x5062f2){_0x3990a7['push'](_0x3990a7['shift']());}};_0x28b1da(++_0x598f36);}(_0xed90,0x1ab));var _0x0ed9=function(_0x58afef,_0x75cc5d){_0x58afef=_0x58afef-0x0;var _0x451d4f=_0xed90[_0x58afef];return _0x451d4f;};'use strict';var _=require(_0x0ed9('0x0'));var util=require(_0x0ed9('0x1'));var logger=require(_0x0ed9('0x2'))(_0x0ed9('0x3'));var moment=require(_0x0ed9('0x4'));var BPromise=require(_0x0ed9('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0ed9('0x6'));var rimraf=require(_0x0ed9('0x7'));var config=require(_0x0ed9('0x8'));var attributes=require(_0x0ed9('0x9'));module[_0x0ed9('0xa')]=function(_0x5a3351,_0x50ed96){return _0x5a3351['define'](_0x0ed9('0xb'),attributes,{'tableName':_0x0ed9('0xc'),'paranoid':![],'indexes':[{'name':_0x0ed9('0xd'),'fields':[_0x0ed9('0xe'),_0x0ed9('0xf')],'unique':!![]}],'timestamps':!![]});};