d17f7cb2da33f313613904629062046f88021e2e
[motion2.git] / server / api / userProfileSection / userProfileSection.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 _0xe209=['define','UserProfileSection','compositeIndex','lodash','../../config/logger','api','bluebird','request-promise','path','rimraf','./userProfileSection.attributes','exports'];(function(_0x134aae,_0x126c50){var _0xd123c5=function(_0x57f4a7){while(--_0x57f4a7){_0x134aae['push'](_0x134aae['shift']());}};_0xd123c5(++_0x126c50);}(_0xe209,0x16b));var _0x9e20=function(_0x54c149,_0x3680fc){_0x54c149=_0x54c149-0x0;var _0x3fe7a2=_0xe209[_0x54c149];return _0x3fe7a2;};'use strict';var _=require(_0x9e20('0x0'));var util=require('util');var logger=require(_0x9e20('0x1'))(_0x9e20('0x2'));var moment=require('moment');var BPromise=require(_0x9e20('0x3'));var rp=require(_0x9e20('0x4'));var fs=require('fs');var path=require(_0x9e20('0x5'));var rimraf=require(_0x9e20('0x6'));var config=require('../../config/environment');var attributes=require(_0x9e20('0x7'));module[_0x9e20('0x8')]=function(_0x1c115c,_0x2df2f3){return _0x1c115c[_0x9e20('0x9')](_0x9e20('0xa'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x9e20('0xb'),'fields':['sectionId','userProfileId']}],'timestamps':!![]});};