Built motion from commit e0fa946e.|2.6.5
[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 _0x94d4=['moment','bluebird','path','rimraf','../../config/environment','./intFreshsalesField.attributes','exports','freshsales_unique_index','idField','lodash','util','api'];(function(_0x56fbaa,_0x3bc5a6){var _0x49fbc1=function(_0x19b08b){while(--_0x19b08b){_0x56fbaa['push'](_0x56fbaa['shift']());}};_0x49fbc1(++_0x3bc5a6);}(_0x94d4,0xa5));var _0x494d=function(_0x2ee5cc,_0x21d0c8){_0x2ee5cc=_0x2ee5cc-0x0;var _0x377ede=_0x94d4[_0x2ee5cc];return _0x377ede;};'use strict';var _=require(_0x494d('0x0'));var util=require(_0x494d('0x1'));var logger=require('../../config/logger')(_0x494d('0x2'));var moment=require(_0x494d('0x3'));var BPromise=require(_0x494d('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x494d('0x5'));var rimraf=require(_0x494d('0x6'));var config=require(_0x494d('0x7'));var attributes=require(_0x494d('0x8'));module[_0x494d('0x9')]=function(_0x1772bd,_0x595c04){return _0x1772bd['define']('FreshsalesField',attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x494d('0xa'),'fields':[_0x494d('0xb'),'FieldId'],'unique':!![]}],'timestamps':!![]});};