Built motion from commit d5e4af8c.|2.6.23
[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 _0xe2d7=['UserProfileSection','user_profile_has_sections','sectionId','lodash','util','api','moment','bluebird','path','rimraf','exports','define'];(function(_0xe8273e,_0x2c4b77){var _0x2e6a8b=function(_0x1db8dc){while(--_0x1db8dc){_0xe8273e['push'](_0xe8273e['shift']());}};_0x2e6a8b(++_0x2c4b77);}(_0xe2d7,0x7b));var _0x7e2d=function(_0x4fda8b,_0x234433){_0x4fda8b=_0x4fda8b-0x0;var _0x52cd9d=_0xe2d7[_0x4fda8b];return _0x52cd9d;};'use strict';var _=require(_0x7e2d('0x0'));var util=require(_0x7e2d('0x1'));var logger=require('../../config/logger')(_0x7e2d('0x2'));var moment=require(_0x7e2d('0x3'));var BPromise=require(_0x7e2d('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7e2d('0x5'));var rimraf=require(_0x7e2d('0x6'));var config=require('../../config/environment');var attributes=require('./userProfileSection.attributes');module[_0x7e2d('0x7')]=function(_0x2798ed,_0x34306f){return _0x2798ed[_0x7e2d('0x8')](_0x7e2d('0x9'),attributes,{'tableName':_0x7e2d('0xa'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x7e2d('0xb'),'userProfileId']}],'timestamps':!![]});};