65ff0145049754cc450f4dae2a4ff9417d52e47c
[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 _0xda4e=['exports','define','UserProfileResource','user_profile_has_resources','compositeIndex','sectionId','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','./userProfileResource.attributes'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xda4e,0xab));var _0xeda4=function(_0xad1b8e,_0x6efa3){_0xad1b8e=_0xad1b8e-0x0;var _0x187277=_0xda4e[_0xad1b8e];return _0x187277;};'use strict';var _=require(_0xeda4('0x0'));var util=require(_0xeda4('0x1'));var logger=require(_0xeda4('0x2'))(_0xeda4('0x3'));var moment=require(_0xeda4('0x4'));var BPromise=require(_0xeda4('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xeda4('0x6'));var rimraf=require(_0xeda4('0x7'));var config=require('../../config/environment');var attributes=require(_0xeda4('0x8'));module[_0xeda4('0x9')]=function(_0x131d70,_0x16337b){return _0x131d70[_0xeda4('0xa')](_0xeda4('0xb'),attributes,{'tableName':_0xeda4('0xc'),'paranoid':![],'indexes':[{'name':_0xeda4('0xd'),'fields':['resourceId',_0xeda4('0xe')]}],'timestamps':!![]});};