a107245d09dd42a6f51dc746fff58ebc834c9c27
[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 _0x2a84=['FreshsalesField','int_freshsales_fields','idField','FieldId','lodash','util','api','moment','bluebird','path','../../config/environment','./intFreshsalesField.attributes','exports'];(function(_0x566760,_0x1f7104){var _0x30ca6d=function(_0x3aa193){while(--_0x3aa193){_0x566760['push'](_0x566760['shift']());}};_0x30ca6d(++_0x1f7104);}(_0x2a84,0x170));var _0x42a8=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x2a84[_0x19e35c];return _0x3e1fe8;};'use strict';var _=require(_0x42a8('0x0'));var util=require(_0x42a8('0x1'));var logger=require('../../config/logger')(_0x42a8('0x2'));var moment=require(_0x42a8('0x3'));var BPromise=require(_0x42a8('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x42a8('0x5'));var rimraf=require('rimraf');var config=require(_0x42a8('0x6'));var attributes=require(_0x42a8('0x7'));module[_0x42a8('0x8')]=function(_0x59505e,_0x593b3a){return _0x59505e['define'](_0x42a8('0x9'),attributes,{'tableName':_0x42a8('0xa'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0x42a8('0xb'),_0x42a8('0xc')],'unique':!![]}],'timestamps':!![]});};