Built motion from commit 616d3211.|2.6.4
[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 _0x96ce=['bluebird','request-promise','path','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','resourceId','lodash','util','../../config/logger','api','moment'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x96ce,0x145));var _0xe96c=function(_0xa013a4,_0x2ff249){_0xa013a4=_0xa013a4-0x0;var _0x27f4a2=_0x96ce[_0xa013a4];return _0x27f4a2;};'use strict';var _=require(_0xe96c('0x0'));var util=require(_0xe96c('0x1'));var logger=require(_0xe96c('0x2'))(_0xe96c('0x3'));var moment=require(_0xe96c('0x4'));var BPromise=require(_0xe96c('0x5'));var rp=require(_0xe96c('0x6'));var fs=require('fs');var path=require(_0xe96c('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xe96c('0x8'));module[_0xe96c('0x9')]=function(_0x334865,_0x14fcb8){return _0x334865[_0xe96c('0xa')](_0xe96c('0xb'),attributes,{'tableName':_0xe96c('0xc'),'paranoid':![],'indexes':[{'name':_0xe96c('0xd'),'fields':[_0xe96c('0xe'),'sectionId']}],'timestamps':!![]});};