a014ea2467d8fc16ea020dc479512bb40e4fdaa0
[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 _0xc5c8=['util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId'];(function(_0x4bfa86,_0x3ee1d8){var _0x14cdb0=function(_0x226de1){while(--_0x226de1){_0x4bfa86['push'](_0x4bfa86['shift']());}};_0x14cdb0(++_0x3ee1d8);}(_0xc5c8,0x1ef));var _0x8c5c=function(_0x4de5b9,_0x535035){_0x4de5b9=_0x4de5b9-0x0;var _0x486440=_0xc5c8[_0x4de5b9];return _0x486440;};'use strict';var _=require('lodash');var util=require(_0x8c5c('0x0'));var logger=require('../../config/logger')(_0x8c5c('0x1'));var moment=require(_0x8c5c('0x2'));var BPromise=require(_0x8c5c('0x3'));var rp=require(_0x8c5c('0x4'));var fs=require('fs');var path=require(_0x8c5c('0x5'));var rimraf=require(_0x8c5c('0x6'));var config=require(_0x8c5c('0x7'));var attributes=require(_0x8c5c('0x8'));module[_0x8c5c('0x9')]=function(_0x5773de,_0x4aad0e){return _0x5773de[_0x8c5c('0xa')](_0x8c5c('0xb'),attributes,{'tableName':_0x8c5c('0xc'),'paranoid':![],'indexes':[{'name':_0x8c5c('0xd'),'fields':[_0x8c5c('0xe'),'sectionId']}],'timestamps':!![]});};