Built motion from commit 25580385.|2.6.2
[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 _0x7622=['define','UserProfileSection','user_profile_has_sections','userProfileId','lodash','util','../../config/logger','api','bluebird','rimraf','../../config/environment','./userProfileSection.attributes','exports'];(function(_0x3f7109,_0x188ed1){var _0x1fdd39=function(_0x551576){while(--_0x551576){_0x3f7109['push'](_0x3f7109['shift']());}};_0x1fdd39(++_0x188ed1);}(_0x7622,0x6c));var _0x2762=function(_0x289c3e,_0x3614b5){_0x289c3e=_0x289c3e-0x0;var _0x25a4b3=_0x7622[_0x289c3e];return _0x25a4b3;};'use strict';var _=require(_0x2762('0x0'));var util=require(_0x2762('0x1'));var logger=require(_0x2762('0x2'))(_0x2762('0x3'));var moment=require('moment');var BPromise=require(_0x2762('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2762('0x5'));var config=require(_0x2762('0x6'));var attributes=require(_0x2762('0x7'));module[_0x2762('0x8')]=function(_0x289d74,_0x178f36){return _0x289d74[_0x2762('0x9')](_0x2762('0xa'),attributes,{'tableName':_0x2762('0xb'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':['sectionId',_0x2762('0xc')]}],'timestamps':!![]});};