d613c8233c6957e5182dd0a661333efd9724c746
[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 _0x44d1=['idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intDeskField.attributes','exports','DeskField','int_desk_fields'];(function(_0x89b526,_0x4904a3){var _0x585f23=function(_0x3b6d55){while(--_0x3b6d55){_0x89b526['push'](_0x89b526['shift']());}};_0x585f23(++_0x4904a3);}(_0x44d1,0x1a2));var _0x144d=function(_0x32eafc,_0x250586){_0x32eafc=_0x32eafc-0x0;var _0x48ffa2=_0x44d1[_0x32eafc];return _0x48ffa2;};'use strict';var _=require(_0x144d('0x0'));var util=require(_0x144d('0x1'));var logger=require(_0x144d('0x2'))(_0x144d('0x3'));var moment=require(_0x144d('0x4'));var BPromise=require(_0x144d('0x5'));var rp=require(_0x144d('0x6'));var fs=require('fs');var path=require(_0x144d('0x7'));var rimraf=require(_0x144d('0x8'));var config=require(_0x144d('0x9'));var attributes=require(_0x144d('0xa'));module[_0x144d('0xb')]=function(_0x436c5e,_0x33352b){return _0x436c5e['define'](_0x144d('0xc'),attributes,{'tableName':_0x144d('0xd'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x144d('0xe'),_0x144d('0xf')],'unique':!![]}],'timestamps':!![]});};