Built motion from commit c738b9ac.|2.6.25
[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 _0x0d9d=['api','moment','bluebird','request-promise','path','rimraf','./intZendeskField.attributes','ZendeskField','int_zendesk_fields','zendesk_unique_index','idField','FieldId','lodash','../../config/logger'];(function(_0x7185f7,_0x37065){var _0x182e45=function(_0x519e0d){while(--_0x519e0d){_0x7185f7['push'](_0x7185f7['shift']());}};_0x182e45(++_0x37065);}(_0x0d9d,0x194));var _0xd0d9=function(_0x5b5dbc,_0x303b33){_0x5b5dbc=_0x5b5dbc-0x0;var _0x45ac8e=_0x0d9d[_0x5b5dbc];return _0x45ac8e;};'use strict';var _=require(_0xd0d9('0x0'));var util=require('util');var logger=require(_0xd0d9('0x1'))(_0xd0d9('0x2'));var moment=require(_0xd0d9('0x3'));var BPromise=require(_0xd0d9('0x4'));var rp=require(_0xd0d9('0x5'));var fs=require('fs');var path=require(_0xd0d9('0x6'));var rimraf=require(_0xd0d9('0x7'));var config=require('../../config/environment');var attributes=require(_0xd0d9('0x8'));module['exports']=function(_0x1ea407,_0x24255f){return _0x1ea407['define'](_0xd0d9('0x9'),attributes,{'tableName':_0xd0d9('0xa'),'paranoid':![],'indexes':[{'name':_0xd0d9('0xb'),'fields':[_0xd0d9('0xc'),_0xd0d9('0xd')],'unique':!![]}],'timestamps':!![]});};