Built motion from commit 3c2ce842.|2.6.31
[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 _0x3abe=['idField','FieldId','lodash','api','request-promise','path','./intZendeskField.attributes','define','ZendeskField','int_zendesk_fields','zendesk_unique_index'];(function(_0x24eda8,_0x1416cd){var _0x372428=function(_0x4bb6c8){while(--_0x4bb6c8){_0x24eda8['push'](_0x24eda8['shift']());}};_0x372428(++_0x1416cd);}(_0x3abe,0x7b));var _0xe3ab=function(_0x432fbd,_0x3bc1eb){_0x432fbd=_0x432fbd-0x0;var _0x13c8b1=_0x3abe[_0x432fbd];return _0x13c8b1;};'use strict';var _=require(_0xe3ab('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xe3ab('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xe3ab('0x2'));var fs=require('fs');var path=require(_0xe3ab('0x3'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xe3ab('0x4'));module['exports']=function(_0x13e50c,_0x209351){return _0x13e50c[_0xe3ab('0x5')](_0xe3ab('0x6'),attributes,{'tableName':_0xe3ab('0x7'),'paranoid':![],'indexes':[{'name':_0xe3ab('0x8'),'fields':[_0xe3ab('0x9'),_0xe3ab('0xa')],'unique':!![]}],'timestamps':!![]});};