Built motion from commit (unavailable).|2.5.30
[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 _0x7af2=['path','rimraf','./intFreshdeskField.attributes','exports','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','lodash','../../config/logger','api','moment','bluebird'];(function(_0x278b9e,_0x51dea0){var _0x22dc32=function(_0x2ac834){while(--_0x2ac834){_0x278b9e['push'](_0x278b9e['shift']());}};_0x22dc32(++_0x51dea0);}(_0x7af2,0x1b5));var _0x27af=function(_0x26e58d,_0x208844){_0x26e58d=_0x26e58d-0x0;var _0x593c36=_0x7af2[_0x26e58d];return _0x593c36;};'use strict';var _=require(_0x27af('0x0'));var util=require('util');var logger=require(_0x27af('0x1'))(_0x27af('0x2'));var moment=require(_0x27af('0x3'));var BPromise=require(_0x27af('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x27af('0x5'));var rimraf=require(_0x27af('0x6'));var config=require('../../config/environment');var attributes=require(_0x27af('0x7'));module[_0x27af('0x8')]=function(_0x71efcd,_0x1cd21b){return _0x71efcd['define'](_0x27af('0x9'),attributes,{'tableName':_0x27af('0xa'),'paranoid':![],'indexes':[{'name':_0x27af('0xb'),'fields':[_0x27af('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};