Built motion from commit 511216ff.|2.6.34
[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 _0xf609=['WhatsappAccountId','lodash','util','../../config/logger','api','path','../../config/environment','./disposition.attributes','exports','define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId'];(function(_0x3569e7,_0x163809){var _0x15c795=function(_0x105584){while(--_0x105584){_0x3569e7['push'](_0x3569e7['shift']());}};_0x15c795(++_0x163809);}(_0xf609,0x114));var _0x9f60=function(_0x4861b1,_0x3522aa){_0x4861b1=_0x4861b1-0x0;var _0x45e1ff=_0xf609[_0x4861b1];return _0x45e1ff;};'use strict';var _=require(_0x9f60('0x0'));var util=require(_0x9f60('0x1'));var logger=require(_0x9f60('0x2'))(_0x9f60('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9f60('0x4'));var rimraf=require('rimraf');var config=require(_0x9f60('0x5'));var attributes=require(_0x9f60('0x6'));module[_0x9f60('0x7')]=function(_0xf64006,_0x3adeb8){return _0xf64006[_0x9f60('0x8')](_0x9f60('0x9'),attributes,{'tableName':_0x9f60('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x9f60('0xb'),'fields':[_0x9f60('0xc'),_0x9f60('0xd')]},{'unique':!![],'name':_0x9f60('0xe'),'fields':['name',_0x9f60('0xf')]},{'unique':!![],'name':_0x9f60('0x10'),'fields':[_0x9f60('0xc'),_0x9f60('0x11')]},{'unique':!![],'name':_0x9f60('0x12'),'fields':[_0x9f60('0xc'),_0x9f60('0x13')]},{'unique':!![],'name':_0x9f60('0x14'),'fields':[_0x9f60('0xc'),_0x9f60('0x15')]},{'unique':!![],'name':_0x9f60('0x16'),'fields':['name',_0x9f60('0x17')]},{'unique':!![],'name':'name_whatsapp','fields':[_0x9f60('0xc'),_0x9f60('0x18')]}],'timestamps':!![]});};