Built motion from commit (unavailable).|2.5.31
[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 _0xf2cf=['../../config/environment','./disposition.attributes','Disposition','tools_dispositions','name_voice','name','ListId','name_chat','name_mail','MailAccountId','SmsAccountId','name_fax','name_openchannel','name_whatsapp','util','../../config/logger','api','bluebird','request-promise','path','rimraf'];(function(_0x35fb84,_0x7450da){var _0x2d6b75=function(_0x3f908d){while(--_0x3f908d){_0x35fb84['push'](_0x35fb84['shift']());}};_0x2d6b75(++_0x7450da);}(_0xf2cf,0xf5));var _0xff2c=function(_0x262a7f,_0x4dc717){_0x262a7f=_0x262a7f-0x0;var _0x32b45c=_0xf2cf[_0x262a7f];return _0x32b45c;};'use strict';var _=require('lodash');var util=require(_0xff2c('0x0'));var logger=require(_0xff2c('0x1'))(_0xff2c('0x2'));var moment=require('moment');var BPromise=require(_0xff2c('0x3'));var rp=require(_0xff2c('0x4'));var fs=require('fs');var path=require(_0xff2c('0x5'));var rimraf=require(_0xff2c('0x6'));var config=require(_0xff2c('0x7'));var attributes=require(_0xff2c('0x8'));module['exports']=function(_0x8f0f4,_0x68b356){return _0x8f0f4['define'](_0xff2c('0x9'),attributes,{'tableName':_0xff2c('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xff2c('0xb'),'fields':[_0xff2c('0xc'),_0xff2c('0xd')]},{'unique':!![],'name':_0xff2c('0xe'),'fields':[_0xff2c('0xc'),'ChatWebsiteId']},{'unique':!![],'name':_0xff2c('0xf'),'fields':[_0xff2c('0xc'),_0xff2c('0x10')]},{'unique':!![],'name':'name_sms','fields':[_0xff2c('0xc'),_0xff2c('0x11')]},{'unique':!![],'name':_0xff2c('0x12'),'fields':['name','FaxAccountId']},{'unique':!![],'name':_0xff2c('0x13'),'fields':[_0xff2c('0xc'),'OpenchannelAccountId']},{'unique':!![],'name':_0xff2c('0x14'),'fields':['name','WhatsappAccountId']}],'timestamps':!![]});};