Built motion from commit 37e1ed56.|2.6.29
[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 _0xe458=['lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshsalesField.attributes','define','FreshsalesField','int_freshsales_fields','freshsales_unique_index','idField','FieldId'];(function(_0x5459a6,_0x2ecfe8){var _0x5cf422=function(_0x39f4f4){while(--_0x39f4f4){_0x5459a6['push'](_0x5459a6['shift']());}};_0x5cf422(++_0x2ecfe8);}(_0xe458,0x160));var _0x8e45=function(_0x1e85a8,_0x3f8d0e){_0x1e85a8=_0x1e85a8-0x0;var _0x34a8ea=_0xe458[_0x1e85a8];return _0x34a8ea;};'use strict';var _=require(_0x8e45('0x0'));var util=require(_0x8e45('0x1'));var logger=require('../../config/logger')(_0x8e45('0x2'));var moment=require(_0x8e45('0x3'));var BPromise=require(_0x8e45('0x4'));var rp=require(_0x8e45('0x5'));var fs=require('fs');var path=require(_0x8e45('0x6'));var rimraf=require(_0x8e45('0x7'));var config=require(_0x8e45('0x8'));var attributes=require(_0x8e45('0x9'));module['exports']=function(_0x4a9756,_0x3aea2b){return _0x4a9756[_0x8e45('0xa')](_0x8e45('0xb'),attributes,{'tableName':_0x8e45('0xc'),'paranoid':![],'indexes':[{'name':_0x8e45('0xd'),'fields':[_0x8e45('0xe'),_0x8e45('0xf')],'unique':!![]}],'timestamps':!![]});};