b99312e340fd3fa70f63adfaecc74f2ffbf6c50f
[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 _0xc12b=['name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','lodash','util','api','bluebird','request-promise','rimraf','../../config/environment','./disposition.attributes','define','Disposition','name_voice','name'];(function(_0x204d76,_0x5694c0){var _0x387956=function(_0x54fa53){while(--_0x54fa53){_0x204d76['push'](_0x204d76['shift']());}};_0x387956(++_0x5694c0);}(_0xc12b,0x8e));var _0xbc12=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xc12b[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0xbc12('0x0'));var util=require(_0xbc12('0x1'));var logger=require('../../config/logger')(_0xbc12('0x2'));var moment=require('moment');var BPromise=require(_0xbc12('0x3'));var rp=require(_0xbc12('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xbc12('0x5'));var config=require(_0xbc12('0x6'));var attributes=require(_0xbc12('0x7'));module['exports']=function(_0x230bc9,_0x38d756){return _0x230bc9[_0xbc12('0x8')](_0xbc12('0x9'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0xbc12('0xa'),'fields':[_0xbc12('0xb'),'ListId']},{'unique':!![],'name':_0xbc12('0xc'),'fields':[_0xbc12('0xb'),_0xbc12('0xd')]},{'unique':!![],'name':_0xbc12('0xe'),'fields':[_0xbc12('0xb'),_0xbc12('0xf')]},{'unique':!![],'name':_0xbc12('0x10'),'fields':[_0xbc12('0xb'),_0xbc12('0x11')]},{'unique':!![],'name':'name_fax','fields':[_0xbc12('0xb'),_0xbc12('0x12')]},{'unique':!![],'name':_0xbc12('0x13'),'fields':[_0xbc12('0xb'),_0xbc12('0x14')]},{'unique':!![],'name':_0xbc12('0x15'),'fields':['name','WhatsappAccountId']}],'timestamps':!![]});};