Built motion from commit (unavailable).|2.3.98
[motion2.git] / server / api / disposition / disposition.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 _0x0b0e=['Disposition','tools_dispositions','name_voice','name_chat','name','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','lodash','../../config/logger','moment','bluebird','request-promise','./disposition.attributes','exports','define'];(function(_0x1a9f11,_0x103b01){var _0x3f69e5=function(_0x33b43f){while(--_0x33b43f){_0x1a9f11['push'](_0x1a9f11['shift']());}};_0x3f69e5(++_0x103b01);}(_0x0b0e,0x187));var _0xe0b0=function(_0x1bd2a6,_0x45f0fc){_0x1bd2a6=_0x1bd2a6-0x0;var _0x525206=_0x0b0e[_0x1bd2a6];return _0x525206;};'use strict';var _=require(_0xe0b0('0x0'));var util=require('util');var logger=require(_0xe0b0('0x1'))('api');var moment=require(_0xe0b0('0x2'));var BPromise=require(_0xe0b0('0x3'));var rp=require(_0xe0b0('0x4'));var attributes=require(_0xe0b0('0x5'));module[_0xe0b0('0x6')]=function(_0x38a058,_0x399e67){return _0x38a058[_0xe0b0('0x7')](_0xe0b0('0x8'),attributes,{'tableName':_0xe0b0('0x9'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xe0b0('0xa'),'fields':['name','ListId']},{'unique':!![],'name':_0xe0b0('0xb'),'fields':[_0xe0b0('0xc'),_0xe0b0('0xd')]},{'unique':!![],'name':_0xe0b0('0xe'),'fields':['name',_0xe0b0('0xf')]},{'unique':!![],'name':_0xe0b0('0x10'),'fields':['name',_0xe0b0('0x11')]},{'unique':!![],'name':_0xe0b0('0x12'),'fields':['name',_0xe0b0('0x13')]},{'unique':!![],'name':_0xe0b0('0x14'),'fields':[_0xe0b0('0xc'),'OpenchannelAccountId']}],'timestamps':!![]});};