Built motion from commit 1fa89557.|2.6.10
[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 _0x4389=['define','UserProfileResource','compositeIndex','resourceId','sectionId','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','./userProfileResource.attributes'];(function(_0x56ac27,_0x343ec5){var _0x1843bf=function(_0x4ecf73){while(--_0x4ecf73){_0x56ac27['push'](_0x56ac27['shift']());}};_0x1843bf(++_0x343ec5);}(_0x4389,0xd7));var _0x9438=function(_0x454dc4,_0x4f1d36){_0x454dc4=_0x454dc4-0x0;var _0x40e230=_0x4389[_0x454dc4];return _0x40e230;};'use strict';var _=require('lodash');var util=require(_0x9438('0x0'));var logger=require(_0x9438('0x1'))(_0x9438('0x2'));var moment=require(_0x9438('0x3'));var BPromise=require(_0x9438('0x4'));var rp=require(_0x9438('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9438('0x6'));var config=require(_0x9438('0x7'));var attributes=require(_0x9438('0x8'));module['exports']=function(_0x44233d,_0x37ed3f){return _0x44233d[_0x9438('0x9')](_0x9438('0xa'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x9438('0xb'),'fields':[_0x9438('0xc'),_0x9438('0xd')]}],'timestamps':!![]});};