Built motion from commit 10af8726.|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 _0xda54=['compositeIndex','sectionId','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','exports','UserProfileResource','user_profile_has_resources'];(function(_0x3ea225,_0x498697){var _0x408d6b=function(_0x1ca511){while(--_0x1ca511){_0x3ea225['push'](_0x3ea225['shift']());}};_0x408d6b(++_0x498697);}(_0xda54,0x106));var _0x4da5=function(_0x1abeb2,_0x79f462){_0x1abeb2=_0x1abeb2-0x0;var _0x48da20=_0xda54[_0x1abeb2];return _0x48da20;};'use strict';var _=require('lodash');var util=require(_0x4da5('0x0'));var logger=require(_0x4da5('0x1'))(_0x4da5('0x2'));var moment=require(_0x4da5('0x3'));var BPromise=require(_0x4da5('0x4'));var rp=require(_0x4da5('0x5'));var fs=require('fs');var path=require(_0x4da5('0x6'));var rimraf=require(_0x4da5('0x7'));var config=require('../../config/environment');var attributes=require('./userProfileResource.attributes');module[_0x4da5('0x8')]=function(_0x362085,_0x584be2){return _0x362085['define'](_0x4da5('0x9'),attributes,{'tableName':_0x4da5('0xa'),'paranoid':![],'indexes':[{'name':_0x4da5('0xb'),'fields':['resourceId',_0x4da5('0xc')]}],'timestamps':!![]});};