Built motion from commit (unavailable).|2.5.15
[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 _0x18e4=['zoho_unique_index','idField','FieldId','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./intZohoField.attributes','exports','ZohoField','int_zoho_fields'];(function(_0x512eba,_0x186d08){var _0x2c5e35=function(_0x5437f9){while(--_0x5437f9){_0x512eba['push'](_0x512eba['shift']());}};_0x2c5e35(++_0x186d08);}(_0x18e4,0x1d4));var _0x418e=function(_0x701c5d,_0x47a566){_0x701c5d=_0x701c5d-0x0;var _0x617b08=_0x18e4[_0x701c5d];return _0x617b08;};'use strict';var _=require('lodash');var util=require(_0x418e('0x0'));var logger=require(_0x418e('0x1'))(_0x418e('0x2'));var moment=require('moment');var BPromise=require(_0x418e('0x3'));var rp=require(_0x418e('0x4'));var fs=require('fs');var path=require(_0x418e('0x5'));var rimraf=require(_0x418e('0x6'));var config=require(_0x418e('0x7'));var attributes=require(_0x418e('0x8'));module[_0x418e('0x9')]=function(_0x513a17,_0x13fd51){return _0x513a17['define'](_0x418e('0xa'),attributes,{'tableName':_0x418e('0xb'),'paranoid':![],'indexes':[{'name':_0x418e('0xc'),'fields':[_0x418e('0xd'),_0x418e('0xe')],'unique':!![]}],'timestamps':!![]});};