Built motion from commit f74363e9.|2.6.34
[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 _0xaae6=['path','../../config/environment','./userProfileResource.attributes','exports','define','UserProfileResource','user_profile_has_resources','resourceId','lodash','util','../../config/logger','moment','bluebird'];(function(_0x4c12ec,_0x2e9103){var _0x3ae42c=function(_0x5a728f){while(--_0x5a728f){_0x4c12ec['push'](_0x4c12ec['shift']());}};_0x3ae42c(++_0x2e9103);}(_0xaae6,0xbe));var _0x6aae=function(_0x35da54,_0x47e8d6){_0x35da54=_0x35da54-0x0;var _0x19d34d=_0xaae6[_0x35da54];return _0x19d34d;};'use strict';var _=require(_0x6aae('0x0'));var util=require(_0x6aae('0x1'));var logger=require(_0x6aae('0x2'))('api');var moment=require(_0x6aae('0x3'));var BPromise=require(_0x6aae('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6aae('0x5'));var rimraf=require('rimraf');var config=require(_0x6aae('0x6'));var attributes=require(_0x6aae('0x7'));module[_0x6aae('0x8')]=function(_0x553158,_0x7b8aa0){return _0x553158[_0x6aae('0x9')](_0x6aae('0xa'),attributes,{'tableName':_0x6aae('0xb'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x6aae('0xc'),'sectionId']}],'timestamps':!![]});};