12193d2efd94a093faf78230797276a0510b6254
[motion2.git] / server / api / userProfileResource / userProfileResource.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 _0xcae1=['compositeIndex','resourceId','sectionId','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','define','UserProfileResource','user_profile_has_resources'];(function(_0x3a4c02,_0x120520){var _0x14b161=function(_0x283b86){while(--_0x283b86){_0x3a4c02['push'](_0x3a4c02['shift']());}};_0x14b161(++_0x120520);}(_0xcae1,0x1d3));var _0x1cae=function(_0x299ecf,_0x5e642b){_0x299ecf=_0x299ecf-0x0;var _0x4813c9=_0xcae1[_0x299ecf];return _0x4813c9;};'use strict';var _=require(_0x1cae('0x0'));var util=require(_0x1cae('0x1'));var logger=require('../../config/logger')(_0x1cae('0x2'));var moment=require(_0x1cae('0x3'));var BPromise=require(_0x1cae('0x4'));var rp=require(_0x1cae('0x5'));var fs=require('fs');var path=require(_0x1cae('0x6'));var rimraf=require(_0x1cae('0x7'));var config=require(_0x1cae('0x8'));var attributes=require(_0x1cae('0x9'));module['exports']=function(_0x49bde4,_0xa43dc7){return _0x49bde4[_0x1cae('0xa')](_0x1cae('0xb'),attributes,{'tableName':_0x1cae('0xc'),'paranoid':![],'indexes':[{'name':_0x1cae('0xd'),'fields':[_0x1cae('0xe'),_0x1cae('0xf')]}],'timestamps':!![]});};