Built motion from commit (unavailable).|2.5.19
[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 _0x5e0e=['util','api','moment','bluebird','request-promise','path','../../config/environment','exports','define','Disposition','tools_dispositions','name','ListId','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','WhatsappAccountId','lodash'];(function(_0x5b607f,_0x41ee14){var _0x3e6320=function(_0x29fbb5){while(--_0x29fbb5){_0x5b607f['push'](_0x5b607f['shift']());}};_0x3e6320(++_0x41ee14);}(_0x5e0e,0x89));var _0xe5e0=function(_0x1f15d4,_0x547ee1){_0x1f15d4=_0x1f15d4-0x0;var _0x407670=_0x5e0e[_0x1f15d4];return _0x407670;};'use strict';var _=require(_0xe5e0('0x0'));var util=require(_0xe5e0('0x1'));var logger=require('../../config/logger')(_0xe5e0('0x2'));var moment=require(_0xe5e0('0x3'));var BPromise=require(_0xe5e0('0x4'));var rp=require(_0xe5e0('0x5'));var fs=require('fs');var path=require(_0xe5e0('0x6'));var rimraf=require('rimraf');var config=require(_0xe5e0('0x7'));var attributes=require('./disposition.attributes');module[_0xe5e0('0x8')]=function(_0x3e564e,_0x2ff9ac){return _0x3e564e[_0xe5e0('0x9')](_0xe5e0('0xa'),attributes,{'tableName':_0xe5e0('0xb'),'paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':[_0xe5e0('0xc'),_0xe5e0('0xd')]},{'unique':!![],'name':'name_chat','fields':[_0xe5e0('0xc'),_0xe5e0('0xe')]},{'unique':!![],'name':_0xe5e0('0xf'),'fields':[_0xe5e0('0xc'),_0xe5e0('0x10')]},{'unique':!![],'name':_0xe5e0('0x11'),'fields':[_0xe5e0('0xc'),_0xe5e0('0x12')]},{'unique':!![],'name':_0xe5e0('0x13'),'fields':[_0xe5e0('0xc'),_0xe5e0('0x14')]},{'unique':!![],'name':_0xe5e0('0x15'),'fields':[_0xe5e0('0xc'),'OpenchannelAccountId']},{'unique':!![],'name':'name_whatsapp','fields':[_0xe5e0('0xc'),_0xe5e0('0x16')]}],'timestamps':!![]});};