425ce3390b8d5eb323e6a133250bf7dcf82c6a84
[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 _0xc3a6=['define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./userProfileSection.attributes','exports'];(function(_0x322a06,_0x1b38eb){var _0x109686=function(_0x304bc5){while(--_0x304bc5){_0x322a06['push'](_0x322a06['shift']());}};_0x109686(++_0x1b38eb);}(_0xc3a6,0x116));var _0x6c3a=function(_0x20f60b,_0x3d4649){_0x20f60b=_0x20f60b-0x0;var _0x42c65c=_0xc3a6[_0x20f60b];return _0x42c65c;};'use strict';var _=require(_0x6c3a('0x0'));var util=require('util');var logger=require(_0x6c3a('0x1'))(_0x6c3a('0x2'));var moment=require(_0x6c3a('0x3'));var BPromise=require(_0x6c3a('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6c3a('0x5'));var rimraf=require(_0x6c3a('0x6'));var config=require(_0x6c3a('0x7'));var attributes=require(_0x6c3a('0x8'));module[_0x6c3a('0x9')]=function(_0x65b400,_0x543cc9){return _0x65b400[_0x6c3a('0xa')](_0x6c3a('0xb'),attributes,{'tableName':_0x6c3a('0xc'),'paranoid':![],'indexes':[{'name':_0x6c3a('0xd'),'fields':[_0x6c3a('0xe'),_0x6c3a('0xf')]}],'timestamps':!![]});};