aa43918cd162bfff7706bb13c354b3d11e173a79
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0x13eb=['lodash','util','api','moment','request-promise','path','rimraf','exports','define','FreshsalesField','int_freshsales_fields','idField','FieldId'];(function(_0x5ac7f6,_0x10b1df){var _0x502beb=function(_0x5dbc85){while(--_0x5dbc85){_0x5ac7f6['push'](_0x5ac7f6['shift']());}};_0x502beb(++_0x10b1df);}(_0x13eb,0x8f));var _0xb13e=function(_0x3aa5cf,_0x4879b3){_0x3aa5cf=_0x3aa5cf-0x0;var _0x22854a=_0x13eb[_0x3aa5cf];return _0x22854a;};'use strict';var _=require(_0xb13e('0x0'));var util=require(_0xb13e('0x1'));var logger=require('../../config/logger')(_0xb13e('0x2'));var moment=require(_0xb13e('0x3'));var BPromise=require('bluebird');var rp=require(_0xb13e('0x4'));var fs=require('fs');var path=require(_0xb13e('0x5'));var rimraf=require(_0xb13e('0x6'));var config=require('../../config/environment');var attributes=require('./intFreshsalesField.attributes');module[_0xb13e('0x7')]=function(_0xaadc20,_0x382048){return _0xaadc20[_0xb13e('0x8')](_0xb13e('0x9'),attributes,{'tableName':_0xb13e('0xa'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0xb13e('0xb'),_0xb13e('0xc')],'unique':!![]}],'timestamps':!![]});};