1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xdbb1=['define','Disposition','tools_dispositions','name','ListId','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','OpenchannelAccountId','name_whatsapp','lodash','moment','path','../../config/environment','./disposition.attributes'];(function(_0x4b3b7f,_0x31f908){var _0x3bbd0b=function(_0xf53e56){while(--_0xf53e56){_0x4b3b7f['push'](_0x4b3b7f['shift']());}};_0x3bbd0b(++_0x31f908);}(_0xdbb1,0x105));var _0x1dbb=function(_0x231e16,_0x67347b){_0x231e16=_0x231e16-0x0;var _0x570a7c=_0xdbb1[_0x231e16];return _0x570a7c;};'use strict';var _=require(_0x1dbb('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x1dbb('0x1'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x1dbb('0x2'));var rimraf=require('rimraf');var config=require(_0x1dbb('0x3'));var attributes=require(_0x1dbb('0x4'));module['exports']=function(_0x55df0f,_0xd43ce8){return _0x55df0f[_0x1dbb('0x5')](_0x1dbb('0x6'),attributes,{'tableName':_0x1dbb('0x7'),'paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':[_0x1dbb('0x8'),_0x1dbb('0x9')]},{'unique':!![],'name':'name_chat','fields':[_0x1dbb('0x8'),_0x1dbb('0xa')]},{'unique':!![],'name':_0x1dbb('0xb'),'fields':[_0x1dbb('0x8'),_0x1dbb('0xc')]},{'unique':!![],'name':_0x1dbb('0xd'),'fields':[_0x1dbb('0x8'),_0x1dbb('0xe')]},{'unique':!![],'name':_0x1dbb('0xf'),'fields':[_0x1dbb('0x8'),_0x1dbb('0x10')]},{'unique':!![],'name':'name_openchannel','fields':[_0x1dbb('0x8'),_0x1dbb('0x11')]},{'unique':!![],'name':_0x1dbb('0x12'),'fields':[_0x1dbb('0x8'),'WhatsappAccountId']}],'timestamps':!![]});};