Built motion from commit 953226e6.|2.6.32
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0xeeb9=['util','../../config/logger','bluebird','request-promise','rimraf','../../config/environment','exports','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId'];(function(_0x40aebf,_0x31078c){var _0x826b7d=function(_0x121934){while(--_0x121934){_0x40aebf['push'](_0x40aebf['shift']());}};_0x826b7d(++_0x31078c);}(_0xeeb9,0x150));var _0x9eeb=function(_0x564883,_0x1f674d){_0x564883=_0x564883-0x0;var _0x131a99=_0xeeb9[_0x564883];return _0x131a99;};'use strict';var _=require('lodash');var util=require(_0x9eeb('0x0'));var logger=require(_0x9eeb('0x1'))('api');var moment=require('moment');var BPromise=require(_0x9eeb('0x2'));var rp=require(_0x9eeb('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9eeb('0x4'));var config=require(_0x9eeb('0x5'));var attributes=require('./intFreshdeskField.attributes');module[_0x9eeb('0x6')]=function(_0x4c5a2e,_0x5b88c3){return _0x4c5a2e['define'](_0x9eeb('0x7'),attributes,{'tableName':_0x9eeb('0x8'),'paranoid':![],'indexes':[{'name':_0x9eeb('0x9'),'fields':[_0x9eeb('0xa'),_0x9eeb('0xb')],'unique':!![]}],'timestamps':!![]});};