Built motion from commit 9d0783e6.|2.6.13
[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 _0xaa5d=['WhatsappAccountId','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./disposition.attributes','exports','define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xaa5d,0xb7));var _0xdaa5=function(_0x34b1b8,_0x54c9bf){_0x34b1b8=_0x34b1b8-0x0;var _0x542dd8=_0xaa5d[_0x34b1b8];return _0x542dd8;};'use strict';var _=require('lodash');var util=require(_0xdaa5('0x0'));var logger=require(_0xdaa5('0x1'))(_0xdaa5('0x2'));var moment=require(_0xdaa5('0x3'));var BPromise=require(_0xdaa5('0x4'));var rp=require(_0xdaa5('0x5'));var fs=require('fs');var path=require(_0xdaa5('0x6'));var rimraf=require('rimraf');var config=require(_0xdaa5('0x7'));var attributes=require(_0xdaa5('0x8'));module[_0xdaa5('0x9')]=function(_0x5a57d8,_0x167baf){return _0x5a57d8[_0xdaa5('0xa')](_0xdaa5('0xb'),attributes,{'tableName':_0xdaa5('0xc'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xdaa5('0xd'),'fields':[_0xdaa5('0xe'),_0xdaa5('0xf')]},{'unique':!![],'name':_0xdaa5('0x10'),'fields':[_0xdaa5('0xe'),_0xdaa5('0x11')]},{'unique':!![],'name':_0xdaa5('0x12'),'fields':['name',_0xdaa5('0x13')]},{'unique':!![],'name':'name_sms','fields':[_0xdaa5('0xe'),_0xdaa5('0x14')]},{'unique':!![],'name':_0xdaa5('0x15'),'fields':[_0xdaa5('0xe'),_0xdaa5('0x16')]},{'unique':!![],'name':_0xdaa5('0x17'),'fields':[_0xdaa5('0xe'),_0xdaa5('0x18')]},{'unique':!![],'name':'name_whatsapp','fields':[_0xdaa5('0xe'),_0xdaa5('0x19')]}],'timestamps':!![]});};