a5e047192146d5eef69cd83ea24b45e1c4026318
[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 _0x6c48=['api','moment','path','rimraf','../../config/environment','exports','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','../../config/logger'];(function(_0x44c734,_0x572c98){var _0x39d761=function(_0x2df4a7){while(--_0x2df4a7){_0x44c734['push'](_0x44c734['shift']());}};_0x39d761(++_0x572c98);}(_0x6c48,0x1d9));var _0x86c4=function(_0x3446e8,_0x59d7d3){_0x3446e8=_0x3446e8-0x0;var _0x5751a4=_0x6c48[_0x3446e8];return _0x5751a4;};'use strict';var _=require(_0x86c4('0x0'));var util=require(_0x86c4('0x1'));var logger=require(_0x86c4('0x2'))(_0x86c4('0x3'));var moment=require(_0x86c4('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x86c4('0x5'));var rimraf=require(_0x86c4('0x6'));var config=require(_0x86c4('0x7'));var attributes=require('./intFreshdeskField.attributes');module[_0x86c4('0x8')]=function(_0x2836eb,_0x16021f){return _0x2836eb['define'](_0x86c4('0x9'),attributes,{'tableName':_0x86c4('0xa'),'paranoid':![],'indexes':[{'name':_0x86c4('0xb'),'fields':[_0x86c4('0xc'),_0x86c4('0xd')],'unique':!![]}],'timestamps':!![]});};