Built motion from commit 3d6333b4.|2.6.31
[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 _0xea5c=['path','rimraf','./userProfileSection.attributes','define','UserProfileSection','user_profile_has_sections','compositeIndex','sectionId','userProfileId','lodash','../../config/logger','api','moment','request-promise'];(function(_0x5959d6,_0x5adce2){var _0x3b78ab=function(_0x386895){while(--_0x386895){_0x5959d6['push'](_0x5959d6['shift']());}};_0x3b78ab(++_0x5adce2);}(_0xea5c,0x6b));var _0xcea5=function(_0xaafd36,_0x23c73e){_0xaafd36=_0xaafd36-0x0;var _0x126b6f=_0xea5c[_0xaafd36];return _0x126b6f;};'use strict';var _=require(_0xcea5('0x0'));var util=require('util');var logger=require(_0xcea5('0x1'))(_0xcea5('0x2'));var moment=require(_0xcea5('0x3'));var BPromise=require('bluebird');var rp=require(_0xcea5('0x4'));var fs=require('fs');var path=require(_0xcea5('0x5'));var rimraf=require(_0xcea5('0x6'));var config=require('../../config/environment');var attributes=require(_0xcea5('0x7'));module['exports']=function(_0x469688,_0x4babc2){return _0x469688[_0xcea5('0x8')](_0xcea5('0x9'),attributes,{'tableName':_0xcea5('0xa'),'paranoid':![],'indexes':[{'name':_0xcea5('0xb'),'fields':[_0xcea5('0xc'),_0xcea5('0xd')]}],'timestamps':!![]});};