Built motion from commit 9d0783e6.|2.6.13
[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 _0x0f5b=['../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','./intDeskField.attributes','exports','define','DeskField','int_desk_fields','desk_unique_index','FieldId','lodash','util'];(function(_0x3bd2fc,_0x1c93db){var _0x48372f=function(_0x5c4e8e){while(--_0x5c4e8e){_0x3bd2fc['push'](_0x3bd2fc['shift']());}};_0x48372f(++_0x1c93db);}(_0x0f5b,0x67));var _0xb0f5=function(_0x38e271,_0x124323){_0x38e271=_0x38e271-0x0;var _0x24e0e1=_0x0f5b[_0x38e271];return _0x24e0e1;};'use strict';var _=require(_0xb0f5('0x0'));var util=require(_0xb0f5('0x1'));var logger=require(_0xb0f5('0x2'))(_0xb0f5('0x3'));var moment=require('moment');var BPromise=require(_0xb0f5('0x4'));var rp=require(_0xb0f5('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb0f5('0x6'));var config=require(_0xb0f5('0x7'));var attributes=require(_0xb0f5('0x8'));module[_0xb0f5('0x9')]=function(_0x1c1d13,_0x213a97){return _0x1c1d13[_0xb0f5('0xa')](_0xb0f5('0xb'),attributes,{'tableName':_0xb0f5('0xc'),'paranoid':![],'indexes':[{'name':_0xb0f5('0xd'),'fields':['idField',_0xb0f5('0xe')],'unique':!![]}],'timestamps':!![]});};