5a546d7b2b88fae9728f9b3e82d09be934601f68
[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 _0x5a9c=['idField','FieldId','util','../../config/logger','api','path','rimraf','./intFreshdeskField.attributes','exports','define','int_freshdesk_fields'];(function(_0x599f41,_0x4db732){var _0x2e4d58=function(_0x14c882){while(--_0x14c882){_0x599f41['push'](_0x599f41['shift']());}};_0x2e4d58(++_0x4db732);}(_0x5a9c,0x1a4));var _0xc5a9=function(_0x333f83,_0xe16aa9){_0x333f83=_0x333f83-0x0;var _0x5244e1=_0x5a9c[_0x333f83];return _0x5244e1;};'use strict';var _=require('lodash');var util=require(_0xc5a9('0x0'));var logger=require(_0xc5a9('0x1'))(_0xc5a9('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xc5a9('0x3'));var rimraf=require(_0xc5a9('0x4'));var config=require('../../config/environment');var attributes=require(_0xc5a9('0x5'));module[_0xc5a9('0x6')]=function(_0x129bb3,_0x2ab96a){return _0x129bb3[_0xc5a9('0x7')]('FreshdeskField',attributes,{'tableName':_0xc5a9('0x8'),'paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':[_0xc5a9('0x9'),_0xc5a9('0xa')],'unique':!![]}],'timestamps':!![]});};