bef01c7ac425d023cafab42c2edf345b443eece0
[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 _0x211e=['request-promise','rimraf','../../config/environment','./intDeskField.attributes','exports','define','DeskField','int_desk_fields','desk_unique_index','idField','lodash','util','../../config/logger','api'];(function(_0x1354c9,_0x475347){var _0x116916=function(_0x24051b){while(--_0x24051b){_0x1354c9['push'](_0x1354c9['shift']());}};_0x116916(++_0x475347);}(_0x211e,0x88));var _0xe211=function(_0x518a81,_0x2188a9){_0x518a81=_0x518a81-0x0;var _0xcd6623=_0x211e[_0x518a81];return _0xcd6623;};'use strict';var _=require(_0xe211('0x0'));var util=require(_0xe211('0x1'));var logger=require(_0xe211('0x2'))(_0xe211('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xe211('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xe211('0x5'));var config=require(_0xe211('0x6'));var attributes=require(_0xe211('0x7'));module[_0xe211('0x8')]=function(_0xc9832d,_0x3c0a98){return _0xc9832d[_0xe211('0x9')](_0xe211('0xa'),attributes,{'tableName':_0xe211('0xb'),'paranoid':![],'indexes':[{'name':_0xe211('0xc'),'fields':[_0xe211('0xd'),'FieldId'],'unique':!![]}],'timestamps':!![]});};