c19ac3745794f7c1c79d7bbb5f6680d8e7bade04
[motion2.git] / server / api / intZendeskField / intZendeskField.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 _0x0f1a=['lodash','../../config/logger','moment','request-promise','path','../../config/environment','./intZendeskField.attributes','exports','int_zendesk_fields','zendesk_unique_index','idField','FieldId'];(function(_0x2c3a7f,_0x50b41b){var _0x16fbff=function(_0x3a8913){while(--_0x3a8913){_0x2c3a7f['push'](_0x2c3a7f['shift']());}};_0x16fbff(++_0x50b41b);}(_0x0f1a,0x15c));var _0xa0f1=function(_0x1a1c45,_0x4fdc66){_0x1a1c45=_0x1a1c45-0x0;var _0x3dbd0f=_0x0f1a[_0x1a1c45];return _0x3dbd0f;};'use strict';var _=require(_0xa0f1('0x0'));var util=require('util');var logger=require(_0xa0f1('0x1'))('api');var moment=require(_0xa0f1('0x2'));var BPromise=require('bluebird');var rp=require(_0xa0f1('0x3'));var fs=require('fs');var path=require(_0xa0f1('0x4'));var rimraf=require('rimraf');var config=require(_0xa0f1('0x5'));var attributes=require(_0xa0f1('0x6'));module[_0xa0f1('0x7')]=function(_0x10c99a,_0x7c96c2){return _0x10c99a['define']('ZendeskField',attributes,{'tableName':_0xa0f1('0x8'),'paranoid':![],'indexes':[{'name':_0xa0f1('0x9'),'fields':[_0xa0f1('0xa'),_0xa0f1('0xb')],'unique':!![]}],'timestamps':!![]});};