Built motion from commit 43538d75.|2.5.35
[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 _0x4f81=['FreshsalesField','freshsales_unique_index','idField','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshsalesField.attributes','define'];(function(_0x45edc1,_0x5195bf){var _0x1a3556=function(_0x5e39ce){while(--_0x5e39ce){_0x45edc1['push'](_0x45edc1['shift']());}};_0x1a3556(++_0x5195bf);}(_0x4f81,0x1e3));var _0x14f8=function(_0x435184,_0x22a586){_0x435184=_0x435184-0x0;var _0x53dec5=_0x4f81[_0x435184];return _0x53dec5;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x14f8('0x0'))('api');var moment=require(_0x14f8('0x1'));var BPromise=require(_0x14f8('0x2'));var rp=require(_0x14f8('0x3'));var fs=require('fs');var path=require(_0x14f8('0x4'));var rimraf=require(_0x14f8('0x5'));var config=require(_0x14f8('0x6'));var attributes=require(_0x14f8('0x7'));module['exports']=function(_0x33baf0,_0x510822){return _0x33baf0[_0x14f8('0x8')](_0x14f8('0x9'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x14f8('0xa'),'fields':[_0x14f8('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};