Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / intDeskField / intDeskField.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 _0x89ca=['idField','lodash','util','bluebird','request-promise','./intDeskField.attributes','exports','int_desk_fields','desk_unique_index'];(function(_0x56b886,_0x1ff474){var _0x164baf=function(_0x575d09){while(--_0x575d09){_0x56b886['push'](_0x56b886['shift']());}};_0x164baf(++_0x1ff474);}(_0x89ca,0x18d));var _0xa89c=function(_0x44918d,_0x2ea17d){_0x44918d=_0x44918d-0x0;var _0x1c32aa=_0x89ca[_0x44918d];return _0x1c32aa;};'use strict';var _=require(_0xa89c('0x0'));var util=require(_0xa89c('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xa89c('0x2'));var rp=require(_0xa89c('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xa89c('0x4'));module[_0xa89c('0x5')]=function(_0x5bb553,_0x2f14a0){return _0x5bb553['define']('DeskField',attributes,{'tableName':_0xa89c('0x6'),'paranoid':![],'indexes':[{'name':_0xa89c('0x7'),'fields':[_0xa89c('0x8'),'FieldId'],'unique':!![]}],'timestamps':!![]});};