d6f08d7f13fae78d2e716aac77f0af5b0c14142a
[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 _0x99fa=['../../config/environment','./intDeskField.attributes','exports','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf'];(function(_0x5e6fe1,_0x8f80ad){var _0x5a6018=function(_0x1f1225){while(--_0x1f1225){_0x5e6fe1['push'](_0x5e6fe1['shift']());}};_0x5a6018(++_0x8f80ad);}(_0x99fa,0xca));var _0xa99f=function(_0x16daee,_0xaf8850){_0x16daee=_0x16daee-0x0;var _0x436115=_0x99fa[_0x16daee];return _0x436115;};'use strict';var _=require(_0xa99f('0x0'));var util=require(_0xa99f('0x1'));var logger=require(_0xa99f('0x2'))(_0xa99f('0x3'));var moment=require('moment');var BPromise=require(_0xa99f('0x4'));var rp=require(_0xa99f('0x5'));var fs=require('fs');var path=require(_0xa99f('0x6'));var rimraf=require(_0xa99f('0x7'));var config=require(_0xa99f('0x8'));var attributes=require(_0xa99f('0x9'));module[_0xa99f('0xa')]=function(_0x22e5bd,_0x165d7e){return _0x22e5bd['define']('DeskField',attributes,{'tableName':_0xa99f('0xb'),'paranoid':![],'indexes':[{'name':_0xa99f('0xc'),'fields':[_0xa99f('0xd'),_0xa99f('0xe')],'unique':!![]}],'timestamps':!![]});};