Built motion from commit e6806ed6.|2.6.0
[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 _0x12ed=['lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./intZendeskField.attributes','define','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId'];(function(_0xa32cfe,_0x465b22){var _0x1d2973=function(_0x3157ea){while(--_0x3157ea){_0xa32cfe['push'](_0xa32cfe['shift']());}};_0x1d2973(++_0x465b22);}(_0x12ed,0xb0));var _0xd12e=function(_0x2eb255,_0x278e0a){_0x2eb255=_0x2eb255-0x0;var _0x1d71c=_0x12ed[_0x2eb255];return _0x1d71c;};'use strict';var _=require(_0xd12e('0x0'));var util=require(_0xd12e('0x1'));var logger=require(_0xd12e('0x2'))(_0xd12e('0x3'));var moment=require(_0xd12e('0x4'));var BPromise=require(_0xd12e('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd12e('0x6'));var rimraf=require(_0xd12e('0x7'));var config=require(_0xd12e('0x8'));var attributes=require(_0xd12e('0x9'));module['exports']=function(_0x222b84,_0x87312b){return _0x222b84[_0xd12e('0xa')](_0xd12e('0xb'),attributes,{'tableName':_0xd12e('0xc'),'paranoid':![],'indexes':[{'name':_0xd12e('0xd'),'fields':[_0xd12e('0xe'),_0xd12e('0xf')],'unique':!![]}],'timestamps':!![]});};