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 _0xbb7d=['api','moment','bluebird','request-promise','rimraf','../../config/environment','./intFreshdeskField.attributes','exports','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','FieldId','lodash','util'];(function(_0x54f3f6,_0x30381c){var _0x4e8f19=function(_0x17f3e8){while(--_0x17f3e8){_0x54f3f6['push'](_0x54f3f6['shift']());}};_0x4e8f19(++_0x30381c);}(_0xbb7d,0xb4));var _0xdbb7=function(_0x55237c,_0x2f5f48){_0x55237c=_0x55237c-0x0;var _0x4fddfd=_0xbb7d[_0x55237c];return _0x4fddfd;};'use strict';var _=require(_0xdbb7('0x0'));var util=require(_0xdbb7('0x1'));var logger=require('../../config/logger')(_0xdbb7('0x2'));var moment=require(_0xdbb7('0x3'));var BPromise=require(_0xdbb7('0x4'));var rp=require(_0xdbb7('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xdbb7('0x6'));var config=require(_0xdbb7('0x7'));var attributes=require(_0xdbb7('0x8'));module[_0xdbb7('0x9')]=function(_0x15ad2a,_0x4d2fd9){return _0x15ad2a['define'](_0xdbb7('0xa'),attributes,{'tableName':_0xdbb7('0xb'),'paranoid':![],'indexes':[{'name':_0xdbb7('0xc'),'fields':['idField',_0xdbb7('0xd')],'unique':!![]}],'timestamps':!![]});};