Built motion from commit e6806ed6.|2.6.0
[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 _0x88cc=['define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','lodash','util','../../config/logger','api','path','exports'];(function(_0x2211ed,_0x1bca0b){var _0x4d78cc=function(_0x467b59){while(--_0x467b59){_0x2211ed['push'](_0x2211ed['shift']());}};_0x4d78cc(++_0x1bca0b);}(_0x88cc,0x144));var _0xc88c=function(_0x5d1c9d,_0x8bb82d){_0x5d1c9d=_0x5d1c9d-0x0;var _0x8edfe4=_0x88cc[_0x5d1c9d];return _0x8edfe4;};'use strict';var _=require(_0xc88c('0x0'));var util=require(_0xc88c('0x1'));var logger=require(_0xc88c('0x2'))(_0xc88c('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xc88c('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userProfileResource.attributes');module[_0xc88c('0x5')]=function(_0x288a25,_0x3cd1b8){return _0x288a25[_0xc88c('0x6')](_0xc88c('0x7'),attributes,{'tableName':_0xc88c('0x8'),'paranoid':![],'indexes':[{'name':_0xc88c('0x9'),'fields':[_0xc88c('0xa'),'sectionId']}],'timestamps':!![]});};